joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4270ac
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00418150
mov edi, eax
xor eax, eax
mov ebx, dword [ebp + 8]
jmp 0x4270de
inc eax
jmp 0x4270d8
add ebx, 2
cmp word [ebx], 0
jne 0x4270d5
cmp word [ebx], 0
jne 0x4270d2
sub ebx, dword [ebp + 8]
sar ebx, 1
jns 0x4270ee
adc ebx, 0
inc ebx
add ebx, edi
mov edx, ebx
add edx, edx
imul edx, eax
mov eax, edx
call fcn.0042a1e8
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
jmp 0x42713a
mov ecx, edi
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00418084
mov eax, edi
add eax, eax
add eax, esi
mov edx, ebx
call fcn.00418160
mov eax, edi
add eax, eax
add esi, eax
jmp 0x427131
add ebx, 2
add esi, 2
cmp word [ebx], 0
jne 0x42712b
add esi, 2
cmp word [ebx], 0
jne 0x42710a
mov word [esi], 0
mov eax, dword [ebp - 0x10]
push eax
push 1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00427d90
mov ebx, eax
mov eax, dword [ebp - 8]
mov word [eax], 0x2a
mov eax, dword [ebp - 8]
mov word [eax + 2], 0
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov esi, eax
mov eax, dword [ebp - 8]
mov word [eax], 0
cmp esi, 0xffffffff
je 0x42721e
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 8]
call fcn.00418160
test byte [ebp - 0x260], 0x10
je 0x427203
mov edx, 0x42722c
lea eax, [ebp - 0x234]
call fcn.00413afc
test eax, eax
je 0x427203
mov edx, 0x427230
lea eax, [ebp - 0x234]
call fcn.00413afc
test eax, eax
je 0x427203
mov eax, dword [ebp - 8]
call fcn.00418254
mov ebx, eax
add ebx, 2
mov word [ebx], 0x5c
add ebx, 2
mov word [ebx], 0
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004270ac
mov ebx, eax
lea eax, [ebp - 0x260]
push eax
push esi
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x42718f
push esi
call sub.kernel32.dll_FindClose_1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x428db4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
push eax
call sub.msvcrt.dll__get_osfhandle
pop ecx
mov dword [ebp - 0x10], eax
mov ebx, dword [0x431e94]
push 1
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x431e94]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x428e09
xor eax, eax
jmp 0x428eaf
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x428e18
xor eax, eax
jmp 0x428eaf
mov edi, dword [ebp + 8]
mov edi, dword [edi]
mov esi, edi
test esi, esi
jbe 0x428e6f
cmp esi, 3
jb 0x428e69
cmp byte [ebx], 0xa
jne 0x428e35
lea eax, [ebx + 1]
cmp byte [eax], 0xd
je 0x428e42
cmp byte [ebx], 0xd
jne 0x428e69
lea eax, [ebx + 1]
cmp byte [eax], 0xa
jne 0x428e69
lea eax, [ebx + 2]
mov byte [eax], 0
mov eax, dword [0x431e94]
mov edi, ebx
sub edi, eax
add edi, 2
push 0
push 0
mov eax, dword [ebp - 0xc]
add eax, edi
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetFilePointer_1
jmp 0x428e6f
dec esi
inc ebx
test esi, esi
ja 0x428e23
mov eax, dword [0x432088]
mov eax, dword [eax]
call fcn.00425408
mov edx, dword [ebp - 8]
push edx
mov edx, dword [ebp - 4]
push edx
push edi
mov edx, dword [0x431e94]
push edx
test eax, eax
setne al
and eax, 0x7f
push eax
mov eax, dword [0x432088]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_MultiByteToWideChar_1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x429430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa8
lea edi, [esp + 8]
mov dword [esp + 0xc], 0x80000002
mov dword [esp + 0x10], 0x80000001
cmp byte [0x43199e], 0
je 0x42945b
mov byte [0x43199c], 1
mov ebp, 2
lea esi, [esp + 0xc]
push esp
push 0x429600
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegOpenKeyW
test eax, eax
jne 0x4295ea
xor eax, eax
mov dword [edi], eax
lea ebx, [esp + 0x18]
mov dword [esp + 4], 0x40
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x42964c
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4294cd
cmp dword [edi], 4
jne 0x4294b8
cmp dword [ebx], 0
setne al
mov byte [0x431986], al
jmp 0x4294cd
cmp dword [edi], 1
jne 0x4294cd
push ebx
call sub.msvcrt.dll__wtol
pop ecx
dec eax
sete al
mov byte [0x431986], al
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x42966c
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x429510
cmp dword [edi], 4
jne 0x4294fb
cmp dword [ebx], 0
setne al
mov byte [0x43199c], al
jmp 0x429510
cmp dword [edi], 1
jne 0x429510
push ebx
call sub.msvcrt.dll__wtol
pop ecx
dec eax
sete al
mov byte [0x43199c], al
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x429690
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x429553
cmp dword [edi], 4
jne 0x42953e
cmp dword [ebx], 0
setne al
mov byte [0x43199d], al
jmp 0x429553
cmp dword [edi], 1
jne 0x429553
push ebx
call sub.msvcrt.dll__wtol
pop ecx
dec eax
sete al
mov byte [0x43199d], al
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x4296b4
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x42959a
cmp dword [edi], 4
jne 0x42957f
movzx eax, word [ebx]
mov word [0x4319a4], ax
jmp 0x42959a
cmp dword [edi], 1
jne 0x42959a
push 0
lea eax, [esp + 0x18]
push eax
push ebx
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov word [0x4319a4], ax
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x4296d0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4295e1
cmp dword [edi], 4
jne 0x4295c6
movzx eax, word [ebx]
mov word [0x4319a6], ax
jmp 0x4295e1
cmp dword [edi], 1
jne 0x4295e1
push 0
lea eax, [esp + 0x18]
push eax
push ebx
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov word [0x4319a6], ax
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
add esi, 4
dec ebp
jne 0x429464
mov al, 1
add esp, 0x58
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42b018
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42b129
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
mov word [ebp - 0xc], 0x3d
movzx eax, word [ebp - 4]
dec eax
add ax, 0x41
mov word [ebp - 0xa], ax
mov word [ebp - 8], 0x3a
mov word [ebp - 6], 0
xor ebx, ebx
lea eax, [ebp - 0xc]
call fcn.00419fac
mov esi, eax
test esi, esi
je 0x42b07a
push esi
call sub.kernel32.dll_SetCurrentDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x42b104
test esi, esi
je 0x42b08f
push 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
movzx eax, word [ebp - 0xa]
mov word [ebp - 0x216], ax
movzx eax, word [ebp - 8]
mov word [ebp - 0x214], ax
mov word [ebp - 0x212], 0x5c
mov word [ebp - 0x210], 0
lea edx, [ebp - 0x216]
lea eax, [ebp - 0xc]
call fcn.0041a234
lea eax, [ebp - 0x216]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
jne 0x42b0fa
push 0xffffffffffffffff
lea edx, [ebp - 0x21c]
mov eax, dword [0x431e84]
call fcn.004095b4
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
xor edx, edx
call fcn.0042b1b0
test esi, esi
je 0x42b104
push edi
call sub.kernel32.dll_SetErrorMode
mov eax, dword [0x4321f0]
xor edx, edx
call fcn.0041bfd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b130
lea eax, [ebp - 0x21c]
call fcn.004069d4
ret
Function at 0x42b398
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov dword [esp + 4], ecx
mov esi, edx
mov dword [esp], eax
mov dword [esp + 0x1c], 0xffffffff
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0xc
mov eax, 3
and eax, esi
cmp eax, 2
ja 0x42b3dc
mov edx, 1
and edx, esi
mov ecx, 8
and ecx, esi
and edx, ecx
je 0x42b3e4
or eax, 0xffffffff
jmp 0x42b5b9
test eax, eax
je 0x42b40d
mov edi, 0x40000000
mov edx, 0x42b5c4
mov eax, dword [esp]
call fcn.00413b28
test eax, eax
je 0x42b406
mov dword [esp + 4], 1
mov ebp, 2
jmp 0x42b417
mov edi, 0x80000000
mov ebp, 3
cmp esi, 0x10a
jne 0x42b498
push 0
push 0x80
push 3
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, 0x80000000
or eax, edi
push eax
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42b4e1
push 0
push 0x80
push ebp
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42b4e1
call sub.kernel32.dll_GetLastError_2
mov dword [0x4319c8], eax
cmp dword [0x4319c8], 0x6e
jne 0x42b490
mov dword [0x4319c8], 2
or eax, 0xffffffff
jmp 0x42b5b9
push 0
push 0x80
push ebp
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42b4e1
call sub.kernel32.dll_GetLastError_2
mov dword [0x4319c8], eax
cmp dword [0x4319c8], 0x6e
jne 0x42b4d9
mov dword [0x4319c8], 2
or eax, 0xffffffff
jmp 0x42b5b9
push 8
push ebx
call sub.msvcrt.dll__open_osfhandle
add esp, 8
mov edi, eax
test esi, 8
je 0x42b5b0
mov eax, edi
call fcn.0041beb0
test eax, eax
jne 0x42b5b0
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
test eax, eax
je 0x42b5b0
mov word [esp + 8], 0
mov dword [esp + 0x10], 0xffffffff
push 2
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_SetFilePointer_1
mov ebp, eax
call sub.kernel32.dll_GetLastError_2
mov dword [0x4319c8], eax
cmp ebp, 0xffffffff
jne 0x42b562
cmp dword [0x4319c8], 0
je 0x42b562
cmp edi, 0xffffffff
je 0x42b55d
push edi
call sub.msvcrt.dll__close
pop ecx
or eax, 0xffffffff
jmp 0x42b5b9
push 0
lea eax, [esp + 0x10]
push eax
push 1
lea eax, [esp + 0x14]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
mov ebp, eax
test ebp, ebp
jne 0x42b591
xor eax, eax
mov dword [esp + 0x10], eax
push 2
lea eax, [esp + 0x14]
push eax
push 0
push ebx
call sub.kernel32.dll_SetFilePointer_1
cmp word [esp + 8], 0x1a
jne 0x42b5b0
mov dword [esp + 0x10], 0xffffffff
push 2
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_SetFilePointer_1
mov eax, edi
call fcn.0042b6dc
mov eax, edi
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42b948
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffff8
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0x5c
mov word [esp + 6], 0
push esp
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x42b974
xor eax, eax
pop ecx
pop edx
ret
mov al, 1
pop ecx
pop edx
ret

Function at 0x42b97c
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffddc
mov word [esp + 8], ax
mov word [esp + 0xa], 0x3a
mov word [esp + 0xc], 0x5c
mov word [esp + 0xe], 0
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x42b9af
mov al, 1
jmp 0x42b9f4
cmp eax, 2
je 0x42b9f2
cmp eax, 5
je 0x42b9f2
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x10]
push eax
push 0x104
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
jne 0x42b9f2
call sub.kernel32.dll_GetLastError_2
cmp eax, 5
jne 0x42b9f2
mov al, 1
jmp 0x42b9f4
xor eax, eax
add esp, 0x224
ret

Function at 0x42becc
Capabilities:
Set console window title

Disassembly:
push ebx
push esi
push ecx
mov ebx, eax
test ebx, ebx
je 0x42bf9e
mov eax, dword [0x431f0c]
cmp dword [eax], 0
jne 0x42bf9e
mov eax, dword [0x431e08]
cmp byte [eax], 0
jne 0x42bf9e
mov eax, 0x20c
call fcn.00403980
mov dword [esp], eax
cmp dword [esp], 0
je 0x42bf9e
push 0x104
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_GetConsoleTitleW
mov esi, eax
test esi, esi
je 0x42bf9e
mov eax, ebx
call fcn.00418150
add eax, esi
add eax, dword [0x44b954]
add eax, 0xa
mov edx, eax
add edx, edx
mov eax, esp
call fcn.004039b4
cmp dword [esp], 0
je 0x42bf9e
mov eax, dword [0x431fb8]
cmp byte [eax], 0
je 0x42bf61
mov eax, dword [0x44b954]
add eax, eax
add eax, dword [esp]
mov edx, ebx
call fcn.00418160
jmp 0x42bf8d
mov edx, 0x42bfa4
mov eax, dword [esp]
call fcn.00418174
mov eax, dword [esp]
call fcn.00418150
mov dword [0x44b954], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00418174
mov eax, dword [0x431fb8]
mov byte [eax], 1
mov eax, dword [esp]
push eax
call sub.kernel32.dll_SetConsoleTitleW
mov eax, dword [esp]
call fcn.0040399c
pop edx
pop esi
pop ebx
ret

Function at 0x42c214
Capabilities:
Encrypt data using rc6

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
lea edx, [esp + 4]
mov eax, dword [0x44ba0c]
mov ecx, 0x40
call fcn.00403b24
mov dword [0x44b958], 0xb7e15163
mov ebx, 0x2b
mov eax, 0x44b958
mov edx, dword [eax]
add edx, 0x9e3779b9
mov dword [eax + 4], edx
add eax, 4
dec ebx
jne 0x42c242
xor ebx, ebx
xor edi, edi
xor esi, esi
xor ebp, ebp
mov dword [esp], 0x84
mov eax, dword [ebx*4 + 0x44b958]
add eax, esi
add eax, ebp
mov edx, 3
call fcn.0042c0c0
mov esi, eax
mov dword [ebx*4 + 0x44b958], esi
lea edx, [ebp + esi]
mov eax, dword [esp + edi*4 + 4]
add eax, esi
add eax, ebp
call fcn.0042c0c0
mov ebp, eax
mov dword [esp + edi*4 + 4], ebp
lea eax, [ebx + 1]
mov ecx, 0x2c
cdq
idiv ecx
mov ebx, edx
inc edi
and edi, 0x8000000f
jns 0x42c2b2
dec edi
or edi, 0xfffffff0
inc edi
dec dword [esp]
jne 0x42c262
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42c5ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, eax
xor ebx, ebx
push esp
push 0x20019
push 0
push 0x42c69c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x42c67c
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x42c6dc
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x42c63b
mov bl, 1
jmp 0x42c67c
push esp
push 0x20119
push 0
push 0x42c69c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x42c67c
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x42c6dc
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x42c67c
mov bl, 1
test bl, bl
je 0x42c690
mov eax, esi
lea edx, [esp + 0xc]
mov ecx, pe_nt_image_headers32
call fcn.004071b4
add esp, 0x20c
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40105a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401051
cmp dword [ebp - 0xc], 4
jne 0x401051
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov bl, 1
mov dword [ecx], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x40105f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
mov eax, dword [0x4083a8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
lea eax, [ebp - 0x20]
push eax
xor bl, bl
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4010c7
cmp dword [ebp - 0x10], 2
jne 0x4010c7
cmp dword [ebp - 0x1c], 5
ja 0x4010a0
jne 0x4010c7
cmp dword [ebp - 0x18], 1
jb 0x4010c7
lea eax, [ebp - 0x24]
push eax
push dword [0x4080b0]
push dword [0x4080ac]
push 0x80000002
call fcn.00401000
add esp, 0x10
test al, al
je 0x4010c7
mov bl, byte [ebp - 0x24]
and bl, 1
mov ecx, dword [ebp + 0x74]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00402eb8
add ebp, 0x78
leave
ret

Function at 0x4010d9
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x4083a8]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40111e
push esi
push str.ADOBE_READLOGGER_CMD:COMMENT:_s
lea eax, [ebp - 0xcc]
push 0xc7
push eax
call dword [sym.imp.MSVCR80.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402eb8
leave
ret

Function at 0x401301
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x40131e
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
mov eax, dword [esi]
pop esi
leave
ret
Function at 0x4013ea
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
call fcn.00401350
xor ebx, ebx
test al, al
je 0x401491
cmp byte [edi], bl
jne 0x401491
cmp dword [edi + 4], ebx
jne 0x401433
cmp byte [ebp + 8], bl
push 2
pop eax
je 0x40141b
mov eax, 0x1000002
push ebx
push ebx
push ebx
push eax
push ebx
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [edi + 4], eax
jne 0x401433
mov byte [edi], 1
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x401491
cmp dword [edi + 8], ebx
jne 0x401491
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [edi + 8], eax
jne 0x401457
mov byte [edi], 1
jmp 0x401491
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00401394
add esp, 0xc
test al, al
je 0x401482
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x401482
mov ecx, dword [edi + 8]
lea eax, [ecx + eax - 1]
mov dword [edi + 0xc], eax
jmp 0x401491
push dword [edi + 8]
mov byte [edi], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [edi + 8], ebx
xor eax, eax
cmp dword [edi + 8], ebx
pop esi
setne al
pop ebx
leave
ret

Function at 0x40149d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ebp
ret

Function at 0x4014b2
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x4083a8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
jbe 0x40153c
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
je 0x40153c
mov dword [ebp - 0x150], 1
jmp 0x40150a
mov eax, dword [ebp - 0x150]
inc eax
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
cmp eax, dword [ebp + 0xc]
jae 0x401530
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40152e
jmp 0x401530
jmp 0x4014fd
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402eb8
leave
ret
Function at 0x40178b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
jg 0x4017c9
jl 0x4017ad
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x7fffffff
ja 0x4017c9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 4], 0xffffffff
jg 0x4017ce
jl 0x4017c9
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x80000001
jae 0x4017ce
jmp 0x401856
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 8]
neg eax
sbb eax, eax
and eax, 0xfffffffe
inc eax
inc eax
push eax
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x401856
and dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xc]
jae 0x401856
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.004016b8
pop ecx
pop ecx
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401849
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jae 0x40184b
jmp 0x401856
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4017fd
leave
ret

Function at 0x402a75
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0x14c
mov eax, dword [0x4083a8]
xor eax, ebp
mov dword [ebp + 0xc8], eax
mov eax, dword [ebp + 0xd4]
push ebx
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor ebx, ebx
test eax, eax
jne 0x402af2
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x136
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x402ad2
mov byte [ebp - 0x71], bl
jmp 0x402ae4
push dword [ebp - 0x78]
lea eax, [ebp - 0x70]
push eax
push ebx
push esi
mov byte [ebp - 0x71], 1
call edi
add esp, 0x10
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x71], bl
jne 0x402afd
push dword [ebp - 0x78]
push ebx
push ebx
push esi
call edi
add esp, 0x10
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
pop ebx
call fcn.00402eb8
add ebp, 0xcc
leave
ret
Function at 0x402d68
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4083a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x244
push edi
xor esi, esi
lea eax, [ebp - 0x248]
push esi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x402db7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402eb8
leave
ret
push str.kernel32.dll
lea eax, [ebp - 0x248]
push 0x122
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
je 0x402da7
push str.HeapSetInformation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x402dff
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x402da9
push esi
push esi
push 1
push esi
call eax
mov esi, eax
neg esi
sbb esi, esi
neg esi
jmp 0x402df4

Function at 0x402eb8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4083a8]
jne 0x402ec2
repz ret
jmp fcn.0040340c