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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
mov eax, dword [0x4a80a0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21b]
push edi
push 0x103
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x21c], 0
call fcn.004644a0
add esp, 0xc
mov byte [ebp - 0x424], 0
lea eax, [ebp - 0x423]
push 0xff
push 0
push eax
call fcn.004644a0
add esp, 0xc
lea ecx, [ebp - 0x424]
mov edx, 0x49ed48
call fcn.00447390
push esi
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00461408
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x49ed54
push 0x104
push eax
call fcn.004613a5
add esp, 0xc
lea eax, [ebp - 0x564]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x454ed2
mov edx, 0x49d5ec
lea ecx, [ebp - 0x538]
lea ecx, [ecx]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x454d60
test al, al
je 0x454d5c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x454d60
add ecx, 2
add edx, 2
test al, al
jne 0x454d40
xor eax, eax
jmp 0x454d65
sbb eax, eax
or eax, 1
test eax, eax
je 0x454eb5
mov eax, 0x49d5f0
lea ecx, [ebp - 0x538]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x454d98
test dl, dl
je 0x454d94
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x454d98
add ecx, 2
add eax, 2
test dl, dl
jne 0x454d78
xor eax, eax
jmp 0x454d9d
sbb eax, eax
or eax, 1
test eax, eax
je 0x454eb5
test byte [ebp - 0x564], 0x10
lea eax, [ebp - 0x113]
mov byte [ebp - 0x114], 0
je 0x454dff
push 0x103
push 0
push eax
call fcn.004644a0
add esp, 0xc
lea eax, [ebp - 0x538]
push eax
push esi
push str._s_s_
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0046158b
add esp, 0x14
lea eax, [ebp - 0x114]
mov ecx, edi
push eax
call fcn.00454c80
jmp 0x454eb5
push 0xff
push 0
push eax
call fcn.004644a0
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x100
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x538]
push 0
push eax
call fcn.00463ded
add esp, 0x24
lea ecx, [ebp - 0x424]
lea eax, [ebp - 0x114]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x454e62
test dl, dl
je 0x454e5e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x454e62
add eax, 2
add ecx, 2
test dl, dl
jne 0x454e42
xor eax, eax
jmp 0x454e67
sbb eax, eax
or eax, 1
test eax, eax
jne 0x454eb5
push 0x103
push eax
mov byte [ebp - 0x324], al
lea eax, [ebp - 0x323]
push eax
call fcn.004644a0
add esp, 0xc
lea eax, [ebp - 0x538]
push eax
push esi
push 0x49d954
lea eax, [ebp - 0x324]
push 0x104
push eax
call fcn.0046158b
add esp, 0x14
lea eax, [ebp - 0x324]
mov ecx, edi
push eax
call fcn.00454f00
lea eax, [ebp - 0x564]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x454d32
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046125f
mov esp, ebp
pop ebp
ret 4
Function at 0x455880
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
mov eax, dword [0x4a80a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x3ff
lea eax, [ebp - 0x647]
mov byte [ebp - 0x648], 0
push 0
push eax
mov edi, ecx
call fcn.004644a0
add esp, 0xc
lea ecx, [ebp - 0x648]
call fcn.00455ab0
mov eax, dword [0x49edb0]
lea edx, [ebp - 0x14]
movq xmm0, qword [0x49eda8]
mov ecx, edx
mov dword [ebp - 0xc], eax
mov al, byte [0x49edb4]
movq qword [ebp - 0x14], xmm0
mov byte [ebp - 8], al
call fcn.00447390
lea eax, [ebp - 0x14]
push eax
push str._r_n__s_
push edi
call fcn.00447150
add esp, 0xc
lea eax, [ebp - 0x648]
push eax
push str._s___r_n
push edi
call fcn.00447150
movdqu xmm0, xmmword [0x49edb8]
add esp, 0xc
lea edx, [ebp - 0x34]
mov ecx, edx
movdqu xmmword [ebp - 0x34], xmm0
movdqu xmm0, xmmword [0x49edc8]
movdqu xmmword [ebp - 0x24], xmm0
call fcn.00447390
lea eax, [ebp - 0x658]
mov dword [ebp - 0x658], 0
push eax
push 0x20019
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x64c], 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x455a9c
lea eax, [ebp - 0x650]
push eax
lea eax, [edi + 0x420]
push eax
lea eax, [ebp - 0x64c]
push eax
push 0
push str.Salt
push dword [ebp - 0x658]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x658]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
test al, al
je 0x455a9c
mov eax, dword [ebp - 0x650]
push 0x103
mov dword [edi + 0x524], eax
lea eax, [ebp - 0x247]
push 0
push eax
mov byte [ebp - 0x248], 0
call fcn.004644a0
add esp, 0xc
mov dword [ebp - 0x654], 0x104
lea eax, [ebp - 0x658]
mov dword [ebp - 0x658], 0
mov dword [ebp - 0x64c], 0
push eax
push 0x20019
push 0
lea eax, [ebp - 0x34]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x455a9c
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x64c]
push eax
push 0
push str.Store_Root
push dword [ebp - 0x658]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x658]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
test al, al
je 0x455a9c
push 0x103
lea eax, [ebp - 0x13f]
mov byte [ebp - 0x140], 0
push 0
push eax
call fcn.004644a0
add esp, 0xc
lea eax, [ebp - 0x140]
push 0x104
push eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x140]
mov ecx, edi
push eax
call fcn.00454c80
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046125f
mov esp, ebp
pop ebp
ret
Function at 0x455ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4a80a0]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [0x49edd8]
push esi
lea edx, [ebp - 0x24]
mov esi, ecx
movdqu xmmword [ebp - 0x24], xmm0
mov ecx, edx
movdqu xmm0, xmmword [0x49ede8]
movdqu xmmword [ebp - 0x14], xmm0
call fcn.00447390
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], 0x400
push eax
push 0x20019
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x30], 0
push eax
push 0x80000002
mov dword [ebp - 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x455b3c
lea eax, [ebp - 0x28]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push 0
push str.MediaVer
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046125f
mov esp, ebp
pop ebp
ret
Function at 0x4788cb
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a80a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0046eb7f
mov dword [ebp - 0x14], eax
cmp dword [0x4ac930], esi
jne 0x4789be
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x47894b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x478a9e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x478a9e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x478a9e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ac930], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ac934], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x49c2b0
push edi
mov dword [0x4ac938], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ac940], eax
test eax, eax
je 0x4789bb
push 0x49c2cc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ac93c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4789e3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4789d6
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4789f8
push 4
pop eax
jmp 0x478aa0
cmp dword [ebp - 0x14], esi
je 0x4789f8
push dword [0x4ac930]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4789dd
mov eax, dword [0x4ac93c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x478a56
cmp dword [0x4ac940], edi
je 0x478a56
push eax
call ebx
push dword [0x4ac940]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x478a56
test eax, eax
je 0x478a56
call ecx
test eax, eax
je 0x478a4b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x478a4b
test byte [ebp - 8], 1
jne 0x478a56
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x478a86
mov eax, dword [0x4ac934]
cmp eax, edi
je 0x478a83
push eax
call ebx
test eax, eax
je 0x478a83
call eax
mov esi, eax
test esi, esi
je 0x478a83
mov eax, dword [0x4ac938]
cmp eax, edi
je 0x478a83
push eax
call ebx
test eax, eax
je 0x478a83
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ac930]
call ebx
test eax, eax
je 0x478a9e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x478aa0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046125f
mov esp, ebp
pop ebp
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x4a210ad4
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x100370d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x409d0c
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push esi
push ebx
mov esi, dword [ebp + 8]
mov edi, esi
mov dword [ebp - 4], 0
jmp 0x409e6f
cmp ebx, 0x20
je 0x409e6f
cmp ebx, 0x3a
je 0x409e6f
cmp ebx, 0x22
je 0x409e6f
cmp ebx, 0x2a
je 0x409e6f
cmp ebx, 0x2b
je 0x409e6f
cmp ebx, 0x2c
je 0x409e6f
cmp ebx, 0x3b
je 0x409e6f
cmp ebx, 0x3c
je 0x409e6f
cmp ebx, 0x3d
je 0x409e6f
cmp ebx, 0x3e
je 0x409e6f
cmp ebx, 0x3f
je 0x409e6f
cmp ebx, 0x5b
je 0x409e6f
cmp ebx, 0x5d
je 0x409e6f
cmp ebx, 0x7c
je 0x409e6f
cmp ebx, 0x2f
jne 0x409dd8
mov dword [0x42d660], esi
add esp, 0xfffffff8
call fcn.0040fecc
push dword [eax]
push esi
call fcn.0040fed4
add esi, eax
mov eax, dword [0x42d660]
mov byte [eax], 0x2f
mov dword [ebp - 4], 0
jmp 0x409e6c
cmp ebx, 0x2e
jne 0x409e24
cmp dword [ebp - 4], 0
je 0x409e6f
cmp dword [ebp - 4], 8
jg 0x409e18
mov dword [0x42d660], esi
add esp, 0xfffffff8
call fcn.0040fecc
push dword [eax]
push esi
call fcn.0040fed4
add esi, eax
mov eax, dword [0x42d660]
mov byte [eax], 0x2e
mov dword [ebp - 4], 9
jmp 0x409e6c
mov dword [ebp - 4], 0xc
jmp 0x409e6f
cmp dword [ebp - 4], 0xb
jg 0x409e6f
cmp dword [ebp - 4], 8
je 0x409e6f
add esp, 0xfffffff8
call fcn.0040fecc
push dword [eax]
push edi
call fcn.0040fed4
add dword [ebp - 4], eax
add esp, 0x10
mov dword [0x42d660], esi
add esp, 0xfffffff8
call fcn.0040fecc
push dword [eax]
push esi
call fcn.0040fed4
add esi, eax
mov edx, dword [0x42d660]
mov al, byte [ebx + 0x42d670]
mov byte [edx], al
add esp, 0x10
mov dword [0x42d660], edi
add esp, 0xfffffff8
call fcn.0040fecc
push dword [eax]
push edi
call fcn.0040fed4
add edi, eax
mov eax, dword [0x42d660]
movzx ebx, byte [eax]
add esp, 0x10
test ebx, ebx
jne 0x409d28
mov byte [esi], 0
mov eax, dword [ebp + 8]
lea esp, [ebp - 0x28]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x40d648
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push edx
push ecx
mov esi, dword [ebp + 0xc]
sub eax, eax
test esi, esi
je 0x40d6f8
call fcn.0040b72c
mov edi, eax
mov eax, dword [ebp + 8]
sub ebx, ebx
mov ecx, dword [ebp + 0x10]
not eax
test ecx, ecx
je 0x40d6f6
test esi, 3
je 0x40d68c
xor al, byte [esi]
inc esi
mov bl, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40d676
mov edx, ecx
shr ecx, 3
je 0x40d6e1
nop
xor eax, dword [esi]
add esi, 4
mov bl, al
shr eax, 8
xor eax, dword [edi + ebx*4]
mov bl, al
shr eax, 8
xor eax, dword [edi + ebx*4]
mov bl, al
shr eax, 8
xor eax, dword [edi + ebx*4]
mov bl, al
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov bl, al
shr eax, 8
xor eax, dword [edi + ebx*4]
mov bl, al
shr eax, 8
xor eax, dword [edi + ebx*4]
mov bl, al
shr eax, 8
xor eax, dword [edi + ebx*4]
mov bl, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40d694
mov ecx, edx
and ecx, 7
je 0x40d6f6
xor al, byte [esi]
inc esi
mov bl, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40d6e8
not eax
pop ecx
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4313008], 0x8088405
inc edx
mov dword [ebx + 0x4313008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d254
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d27c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x42f689e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f3ff
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f68a5
ret
Function at 0x4205fc
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 0x42f7c17
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 0x420637
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420650
lea eax, [ebp - 0x10]
mov edx, dword [0x43155f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420663
lea eax, [ebp - 0x10]
mov edx, dword [0x43155f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42066f
adc edx, 0
mov edx, dword [edx*4 + 0x43143fc]
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 0x4207e9
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.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4207dc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
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.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4207dc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42077a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42077a
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.00406d8c
test eax, eax
je 0x42077a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42077a
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 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4207dc
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.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4207dc
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 0x420801
inc ebx
cmp ebx, 0x19
jne 0x420629
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f7c1e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x404670
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
sub esp, 8
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp byte [ecx], 0
je 0x4046d7
mov edx, dword [ecx + 4]
cmp edx, 0xffffffff
je 0x4046c1
mov eax, dword [edx]
nop dword [eax]
test eax, eax
je 0x4046c1
js 0x404727
lea edi, [eax + 1]
lock cmpxchg dword [edx], edi
jne 0x404690
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
mov edi, dword [eax + 8]
lock dec dword [eax]
jne 0x4046dd
lea eax, [esp + 4]
push eax
call fcn.004036e0
add esp, 4
jmp 0x4046dd
mov dword [esi + 8], 0xe9
mov dword [esi + 4], 0
mov dword [esi], 1
jmp 0x40471f
mov eax, dword [ecx + 4]
mov edi, dword [eax + 8]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp], 0
mov edx, esp
push 0
push edx
push eax
push ecx
push edi
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x404709
mov eax, dword [esp]
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi], eax
jmp 0x40471f
call fcn.0040e020
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
mov eax, esi
add esp, 8
pop esi
pop edi
ret
ud2