joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x5498af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x566348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x566348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x565178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5498b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x40153c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00402bd0
test esi, esi
jne 0x401572
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00402cbc
jmp 0x401590
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004013f0
mov edi, eax
test esi, esi
je 0x401590
cmp dword [ebx], 0
je 0x401590
dec esi
jmp 0x401579
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40614c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4061d7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x105]
call fcn.004060ac
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.004060c0
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x4061ec
call fcn.00402e70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061de
lea eax, [ebp - 0x110]
mov edx, 2
call fcn.00402bf4
ret

Function at 0x4061f0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.004060ac
add esp, 0x108
pop ebx
ret

Function at 0x40621c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.004060ac
add esp, 0x108
pop ebx
ret

Function at 0x406244
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffff004
push eax
add esp, 0xfffffff8
mov ebx, eax
mov dword [esp], 0x1000
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x1001
call fcn.00402df8
add esp, 0x1008
pop ebx
ret
Function at 0x40627c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040300c
mov eax, dword [ebp - 8]
call fcn.0040300c
mov eax, dword [ebp + 0xc]
call fcn.0040300c
xor eax, eax
push ebp
push 0x40635e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00402c24
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.0040301c
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40633b
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040301c
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406332
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00403148
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
call fcn.0040301c
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
mov edx, dword [ebp - 0x14]
dec edx
mov eax, ebx
call fcn.00403148
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406365
lea eax, [ebp - 8]
mov edx, 2
call fcn.00402bf4
lea eax, [ebp + 0xc]
call fcn.00402bd0
ret

Function at 0x406444
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, edx
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetWindowTextA
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00402df8
add esp, 0x100
pop ebx
ret
Function at 0x407cc8
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00402bd0
push esp
push esi
call sub.user32.dll_GetActiveWindow
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00404510
test eax, eax
je 0x407d1d
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x407d14
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00402df8
mov eax, dword [esp]
push eax
call sub.ole32.dll_CoTaskMemFree
cmp dword [ebx], 0
je 0x407d3e
mov eax, dword [ebx]
call fcn.00402e24
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x407d3e
mov eax, ebx
mov edx, 0x407d50
call fcn.00402e2c
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x408040
Capabilities:
Create thread

Disassembly:
call fcn.0040812f
pop eax
pop edx
pop dword [0x4189a4]
pop ecx
test edx, edx
push eax
je 0x40803f
push ebx
push esi
push edi
push ebp
mov ebx, 0x416994
mov ebp, 0x4189b8
xor eax, eax
mov dword [ebp - 0x10], eax
test cl, 1
mov esi, 0x407e4c
jne 0x40807b
test cl, 2
lea esi, [esi + 0xc]
jne 0x40807b
lea esi, [esi - 0x14]
test cl, 8
setne byte [ebp - 0x18]
and cl, 0x10
mov byte [ebp - 0x17], cl
mov edi, ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, edx
cmp dword [ebp - 4], eax
jne 0x40809a
mov word [ebp - 4], 0x8000
push eax
push eax
push eax
push eax
push eax
push eax
push 0x407e34
push 0xffffffffffffffff
push ebx
call sub.winmm.dll_waveOutOpen
call sub.kernel32.dll_HeapCreate
test eax, eax
mov dword [ebx - 8], eax
je 0x4080c7
mov dword [ebp - 0xc], esi
call fcn.004088bc
xchg edi, eax
call dword [ebp + 8]
test edi, edi
je 0x408133
mov esi, 0x4289c8
mov dword [esi + 4], 0x10000
or dword [esi + 0x14], 0xffffffff
push 0xc
mov dword [esi], 0x4189c8
pop dword [esi + 0x10]
push 0x20
push esi
push dword [ebx]
call sub.winmm.dll_waveOutPrepareHeader
xor edi, edi
call fcn.004081f0
cmp dword [ebx + 4], edi
jne 0x4080f0
mov dword [ebx + 8], edi
push 0x20
push esi
push dword [ebx]
call sub.winmm.dll_waveOutWrite
test eax, eax
jne 0x408133
push ebp
push edi
push edi
push 0x40819c
push edi
push edi
call sub.kernel32.dll_CreateThread
test eax, eax
mov dword [ebx - 4], eax
je 0x408133
push 0xf
push eax
call sub.kernel32.dll_SetThreadPriority
xchg ebx, eax
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40a3cc
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push ebx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov eax, 0xffffffff
mov ecx, edi
shr ecx, 2
jecxz 0x40a423
mov edx, dword [esi]
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x428aac]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x428aac]
shr edx, 0x10
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x428aac]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x428aac]
add esi, 4
loop 0x40a3e1
mov ecx, edi
and ecx, 3
jecxz 0x40a43b
mov bl, al
xor bl, byte [esi]
shr eax, 8
inc esi
xor eax, dword [ebx*4 + 0x428aac]
loop 0x40a42a
xor eax, 0xffffffff
pop ebx
pop edi
pop esi
ret
Function at 0x40a724
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40a871
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00402bd0
xor eax, eax
mov dword [ebp - 0xc], eax
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call sub.advapi32.dll_CryptAcquireContextA
test eax, eax
je 0x40a85b
xor edx, edx
push ebp
push 0x40a854
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8003
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x40a821
push 0
mov eax, esi
call fcn.00402e24
push eax
mov eax, esi
call fcn.0040301c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptHashData
test eax, eax
je 0x40a821
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x40a821
mov eax, dword [ebp - 0x14]
call fcn.00401250
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x40a821
mov esi, dword [ebp - 0x14]
test esi, esi
jbe 0x40a821
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
mov edx, 2
call fcn.0040a6fc
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.00402e2c
inc dword [ebp - 0x10]
dec esi
jne 0x40a7fe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a85b
cmp dword [ebp - 0xc], 0
je 0x40a83f
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00401268
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptDestroyHash
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CryptReleaseContext
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a878
lea eax, [ebp - 0x18]
call fcn.00402bd0
ret
Function at 0x40b5f8
Capabilities:
Parse pe header
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040300c
xor eax, eax
push ebp
push 0x40b6eb
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.0040301c
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x40b6d5
push 0
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0x48]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp word [ebp - 0x48], 0x5a4d
jne 0x40b6d5
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x140]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp dword [ebp - 0x140], 0x4550
jne 0x40b6d5
mov dword [ebp - 0xe8], edi
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x140]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b6f2
lea eax, [ebp - 4]
call fcn.00402bd0
ret

Function at 0x40b6fc
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040300c
xor eax, eax
push ebp
push 0x40b7d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.0040301c
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40b7c3
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
mov edi, eax
push 0
push edi
push 0
push 2
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x40b7c3
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40b7bd
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.IMAGEHLP.DLL_CheckSumMappedFile
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
je 0x40b7b4
mov byte [ebp - 6], 0
cmp byte [ebp - 5], 1
jne 0x40b7b4
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0040b5f8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b7e0
lea eax, [ebp - 4]
call fcn.00402bd0
ret
Function at 0x40ca7c
Capabilities:
Get file version info

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov byte [esp], cl
mov edi, edx
mov ebp, eax
mov byte [esp + 1], 0
mov eax, edi
mov edx, 8
call fcn.004044c4
lea eax, [esp + 0xc]
push eax
mov eax, ebp
call fcn.0040301c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x40cb5a
mov eax, ebx
call fcn.00401250
mov esi, eax
push esi
push ebx
push 0
mov eax, ebp
call fcn.0040301c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cb51
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0x40cb68
push esi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cb51
mov ebp, dword [esp + 8]
mov byte [esp + 1], 1
cmp byte [esp], 0
je 0x40cb2a
mov eax, dword [ebp + 8]
shr eax, 0x10
mov word [edi], ax
mov ax, word [ebp + 8]
and ax, 0xffff
mov word [edi + 2], ax
mov eax, dword [ebp + 0xc]
shr eax, 0x10
mov word [edi + 4], ax
mov ax, word [ebp + 0xc]
and ax, 0xffff
mov word [edi + 6], ax
jmp 0x40cb51
mov ax, word [ebp + 8]
mov word [edi], ax
mov eax, dword [ebp + 8]
call fcn.004044b8
mov word [edi + 2], ax
mov ax, word [ebp + 0xc]
mov word [edi + 4], ax
mov eax, dword [ebp + 0xc]
call fcn.004044b8
mov word [edi + 6], ax
mov edx, ebx
mov eax, esi
call fcn.00401268
mov al, byte [esp + 1]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40d098
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, eax
xor ebx, ebx
xor eax, eax
mov dword [esp], eax
mov eax, ebp
call fcn.00403b1c
mov esi, eax
test esi, esi
jl 0x40d0dd
inc esi
xor edi, edi
push 0
mov eax, dword [ebp + edi*4]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x40d0d9
inc dword [esp]
inc edi
dec esi
jne 0x40d0b6
mov eax, ebp
call fcn.00403b14
test eax, eax
jle 0x40d0f5
mov eax, ebp
call fcn.00403b14
cmp eax, dword [esp]
sete bl
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40d5b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
mov ebx, edx
mov byte [ebp - 1], 0
push 0x40
mov ecx, eax
mov dl, 1
mov eax, dword [0x409bb4]
call fcn.00409fb4
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x40d6c3
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x48]
mov ecx, 0x40
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 8]
cmp word [ebp - 0x48], 0x5a4d
jne 0x40d6ad
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x10]
lea edx, [ebp - 0x140]
mov ecx, 0xf8
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 8]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x10]
lea edx, [ebp - 0x248]
mov ecx, 0x108
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 8]
cmp dword [ebp - 0x140], 0x4550
jne 0x40d6ad
mov byte [ebp - 1], 1
mov ax, word [ebp - 0x128]
sub ax, 0x10b
je 0x40d663
sub ax, 0x100
je 0x40d686
jmp 0x40d6a9
mov byte [ebx + 1], 1
mov ax, word [ebp - 0x12a]
test ah, 0x20
je 0x40d678
mov byte [ebx], 2
jmp 0x40d6ad
test al, 2
je 0x40d681
mov byte [ebx], 1
jmp 0x40d6ad
mov byte [ebx], 0
jmp 0x40d6ad
mov byte [ebx + 1], 2
mov ax, word [ebp - 0x232]
test ah, 0x20
je 0x40d69b
mov byte [ebx], 2
jmp 0x40d6ad
test al, 2
je 0x40d6a4
mov byte [ebx], 1
jmp 0x40d6ad
mov byte [ebx], 0
jmp 0x40d6ad
mov byte [ebx + 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d6ca
mov eax, dword [ebp - 8]
call fcn.004025a0
ret
Function at 0x40eca4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
lea eax, [ebp - 0x17]
mov edx, dword [0x405c6c]
call fcn.00403428
xor eax, eax
push ebp
push 0x40ee39
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x40ee48
mov eax, dword [0x416674]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x416674]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
je 0x40ee1d
mov eax, dword [0x41518c]
cmp byte [eax], 0
je 0x40ed0b
mov edx, dword [0x41518c]
mov dl, byte [edx]
mov eax, 0x40ee54
call fcn.0040cca4
push ebx
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
lea eax, [ebp - 0x17]
mov edx, 0xf
call fcn.004044c4
lea eax, [ebp - 0x17]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.004044bc
inc dword [ebp - 8]
lea eax, [ebp - 0x16]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.004044bc
inc dword [ebp - 8]
lea eax, [ebp - 0x15]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.004044bc
inc dword [ebp - 8]
lea eax, [ebp - 0x14]
mov ecx, 4
mov edx, dword [ebp - 8]
call fcn.004044bc
add dword [ebp - 8], 4
lea eax, [ebp - 0x10]
mov ecx, 4
mov edx, dword [ebp - 8]
call fcn.004044bc
add dword [ebp - 8], 4
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00402dbc
mov eax, dword [ebp - 0xc]
call fcn.00402e24
inc eax
add dword [ebp - 8], eax
call fcn.0040a924
mov word [ebp - 2], ax
mov al, byte [ebp - 0x16]
sub al, 1
jb 0x40edb1
je 0x40edbb
dec al
je 0x40edc5
jmp 0x40edcf
mov al, byte [ebp - 2]
cmp al, byte [ebp - 0x17]
je 0x40edcf
jmp 0x40ede2
mov al, byte [ebp - 2]
cmp al, byte [ebp - 0x17]
jae 0x40edcf
jmp 0x40ede2
mov al, byte [ebp - 2]
cmp al, byte [ebp - 0x17]
ja 0x40edcf
jmp 0x40ede2
mov al, byte [ebp - 0x15]
mov edx, eax
sub dl, 2
jb 0x40eddd
je 0x40ee1d
jmp 0x40ede2
cmp al, byte [ebp - 1]
je 0x40ee1d
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040301c
mov edx, eax
mov ecx, 0x40ee64
mov eax, dword [0x415198]
mov eax, dword [eax]
call fcn.0040cce4
cmp eax, 6
je 0x40ee1d
push 0
call sub.kernel32.dll_ExitProcess_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ee40
lea eax, [ebp - 0x17]
mov edx, dword [0x405c6c]
call fcn.004034ec
ret
Function at 0x40fba8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040300c
xor eax, eax
push ebp
push 0x40fc2c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.00403148
push 0x104
mov eax, dword [ebp - 8]
call fcn.0040301c
push eax
mov eax, dword [ebp - 4]
call fcn.0040301c
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
jle 0x40fc07
mov edx, eax
dec edx
lea eax, [ebp - 8]
call fcn.00403148
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00402c24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fc33
lea eax, [ebp - 8]
mov edx, 2
call fcn.00402bf4
ret
Function at 0x412530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
xor ecx, ecx
push ebp
push 0x4125f4
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor ecx, ecx
mov dword [ebp - 4], ecx
push edx
push eax
mov eax, dword [0x416674]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
push ebx
mov eax, dword [0x416674]
push eax
call sub.kernel32.dll_SizeofResource
mov esi, eax
test esi, esi
jbe 0x4125d8
push ebx
mov eax, dword [0x416674]
push eax
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
jbe 0x4125d2
push edi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4125cb
push esi
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x412514]
call fcn.00403cd0
add esp, 4
mov eax, dword [ebp - 0xc]
mov ecx, esi
mov edx, dword [ebp - 8]
call fcn.004044bc
push 0x30000
push 0
push esi
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_CreateIconFromResource
mov dword [ebp - 4], eax
mov eax, edi
call fcn.004044cc
push ebx
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4125fb
lea eax, [ebp - 0xc]
mov edx, dword [0x412514]
call fcn.00403cdc
ret

Function at 0x412d3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040300c
xor eax, eax
push ebp
push 0x412dc0
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp - 4]
call fcn.0040301c
push eax
push 0
call sub.kernel32.dll_FindResourceA
mov ebx, eax
push ebx
push 0
call sub.kernel32.dll_SizeofResource
mov esi, eax
push ebx
push 0
call sub.kernel32.dll_LoadResource
mov ebx, eax
push ebx
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push esi
push 0
call sub.gdi32.dll_ExtCreateRegion
mov esi, eax
mov eax, ebx
call fcn.004044cc
push ebx
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412dc7
lea eax, [ebp - 4]
call fcn.00402bd0
ret