joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004359
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001400
call fcn.0100455c
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1004396
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004396
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10043ae
cmp eax, 0x20b
je 0x100439b
mov dword [ebp - 0x1c], ebx
jmp 0x10043c2
cmp dword [ecx + 0x84], 0xe
jbe 0x1004396
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x10043bc
cmp dword [ecx + 0x74], 0xe
jbe 0x1004396
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1007120], 0xffffffff
or dword [0x1007124], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1006018]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1006014]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1007128], eax
call fcn.01004552
cmp dword [0x1005328], ebx
jne 0x100441d
push fcn.01004552
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100453b
push 0x1005010
push 0x100500c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1006010]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100600c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1005008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x10044b3
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1004487
cmp al, 0x22
jne 0x1004479
cmp byte [esi], 0x22
jne 0x1004490
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100449a
cmp al, 0x20
jbe 0x100448c
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x10044be
movzx eax, word [ebp - 0x50]
jmp 0x10044c1
cmp byte [esi], 0x20
jbe 0x1004490
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10044b3
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x10044de
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1004513
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01004597
ret
Function at 0x40275c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
push edx
pop ebx
mov esi, eax
push ebx
pop eax
call fcn.00403908
or esi, esi
jne 0x402792
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
push esp
pop edx
push ebx
pop eax
call fcn.004039f8
jmp 0x4027b0
call sub.KERNEL32.DLL_GetCommandLineA
push eax
pop edi
push ebx
pop edx
push edi
pop eax
call fcn.00402670
push eax
pop edi
test esi, esi
je 0x4027b0
cmp dword [ebx], 0
je 0x4027b0
dec esi
jmp 0x402799
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c1c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x402f08
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x408014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402fa0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f80
xor eax, eax
push ebp
push 0x402f79
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402fbc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f80
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x408014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x408014], ax
mov esp, ebp
pop ebp
ret

Function at 0x40378c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x409034], 0
je 0x4037ed
cmp word [0x409208], 0xd7b2
jne 0x4037b5
cmp dword [0x409210], 0
jbe 0x4037b5
mov eax, 0x409204
call dword [0x409220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x408080
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403814
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x408020], 0
jne 0x403809
push 0
push 0x408078
push 0x408080
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4041ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
sub edx, edx
mov dword [ebp - 0x10], edx
sub edx, edx
push ebp
push 0x404212
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
pushal
popal
push 7
pop ecx
call fcn.00403a74
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402dfc
push eax
pop ebx
cmp dword [ebp - 4], 0
je 0x4041fc
xor ebx, ebx
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404219
lea eax, [ebp - 0x10]
call fcn.00403908
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x84], 0
call fcn.00401a4a
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, esi
or al, 0x40
push eax
lea eax, [0x404561]
lea edx, [fcn.00401ac0]
sub eax, edx
push eax
push fcn.00401ac0
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401337
push esi
call fcn.00401922
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00401976
mov eax, esi
add eax, 0x1d600
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov edi, dword [ebp - 0x88]
mov eax, esi
mov ecx, edi
or cl, 1
cdq
idiv ecx
mov ebx, eax
add ebx, edi
push ebx
lea edi, [0x4060e4]
mov ebx, esi
dec ebx
and edi, ebx
push edi
call fcn.00401ac0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401a4a
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x118], 0
xor edi, edi
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10e]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
movsx edi, byte [ebp - 0x10e]
sub edi, 0x41
lea eax, [ebp - 0x120]
push eax
call sub.USER32.DLL_GetCursorPos
call sub.KERNEL32.dll_GetLastError
mov eax, edi
pop edi
leave
ret

Function at 0x4ca23a
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4c9fca
mov ecx, dword [esp]
add esp, 4
add esi, 0x6b3a5467
sub esi, 1
add esi, edx
call fcn.004ca28d
or edx, esi
inc edx
xor dword [eax], ecx
mov edx, esi
inc eax
sub edx, 1
mov esi, 0x7d4033b5
mov esi, esi
cmp eax, ebx
jne fcn.004ca23a
sub esi, 0x5649ffc5
push 0x80c2b163
pop esi
ret
Function at 0x4027a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x41dd14
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.0040b804
add esp, 0xc
test eax, eax
je 0x4027c4
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.0040b8e1
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040bb03
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.0040b8e1
mov edx, dword [esp + 0x38]
lea ebp, [esi + edx]
push ebp
call fcn.0040bbc0
mov edi, eax
mov eax, dword [esp + 0x30]
push eax
push 1
push esi
push edi
call fcn.0040bf2a
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0040bfbe
mov eax, dword [esp + 0x50]
lea ebx, [edi + esi]
call fcn.00404760
mov edx, dword [esp + 0x4c]
push 0x41dd1c
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.0040b804
add esp, 0x40
test eax, eax
je 0x402845
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x10]
push ecx
push 1
push ebp
push edi
call fcn.0040c19c
mov edx, dword [esp + 0x20]
push edx
call fcn.0040bfbe
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x403ca0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebx, 1
push esi
mov esi, eax
or eax, 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x70], eax
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebx
call fcn.0040b64c
sub esi, dword [esp + 0x80]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [esp + 0x10], esi
fmul qword [0x420010]
fild dword [esp + 0x10]
fmulp st(1)
fiadd dword [esp + 0x80]
call fcn.004184c0
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x403de0
jmp 0x403d70
call fcn.0040b64c
mov dword [esp + 0x80], eax
fild dword [esp + 0x80]
fmul qword [0x420010]
fmul qword [0x420020]
fadd qword [0x420018]
call fcn.004184c0
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x14]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x403dc8
jmp 0x403db0
add ecx, ebx
cmp ecx, 0x1a
jne 0x403db9
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x14]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x403db0
add esi, dword [esp + ecx*4 + 0x14]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x403d70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
Function at 0x405fe0
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
mov eax, 0x1068
call fcn.00416580
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x1064], eax
mov eax, dword [esp + 0x106c]
push ebx
push ebp
push 0x41dd14
push eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
xor ebp, ebp
call fcn.0040b804
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
jne 0x40604b
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
pop ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.0040b582
add esp, 0x1068
ret
push esi
push 2
push ebx
push eax
call fcn.0040b8e1
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040bb03
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push edx
mov dword [esp + 0x2c], eax
call fcn.0040b8e1
mov eax, dword [esp + 0x28]
push eax
push 0x1000
lea ecx, [esp + 0x94]
push 1
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], 0x67452301
mov dword [esp + 0x4c], 0xefcdab89
mov dword [esp + 0x50], 0x98badcfe
mov dword [esp + 0x54], 0x10325476
mov dword [esp + 0x58], 0xc3d2e1f0
call fcn.0040bf2a
mov esi, eax
add esp, 0x2c
cmp esi, ebx
jbe 0x4060f6
lea edx, [esp + 0x70]
push esi
push edx
lea ebx, [esp + 0x1c]
call fcn.00405e50
mov eax, dword [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x80]
push 1
push ecx
add ebp, esi
call fcn.0040bf2a
mov esi, eax
add esp, 0x18
test esi, esi
ja 0x4060c1
xor ebx, ebx
push edi
lea esi, [esp + 0x18]
call fcn.00405ef0
mov edx, dword [esp + 0x10]
push edx
call fcn.0040bfbe
add esp, 8
pop esi
cmp ebp, dword [esp + 0xc]
jb 0x406024
mov ecx, dword [esp + 0x106c]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040b582
add esp, 0x1068
ret

Function at 0x406880
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.00416580
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [ebx]
mov eax, dword [esp + 0x1010]
push ebp
mov ebp, dword [0x41c1e0]
push edi
xor edi, edi
push edi
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x4068d8
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.0040b582
add esp, 0x100c
ret
cmp dword [esp + 8], edi
jbe 0x40691d
push esi
nop
mov ecx, dword [ebx]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x40691c
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.0040c19c
add edi, esi
add esp, 0x10
mov dword [0x42471c], edi
cmp edi, dword [esp + 0xc]
jb 0x4068e0
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.0040bfbe
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp edi, dword [esp + 8]
pop edi
sbb eax, eax
pop ebp
xor ecx, esp
inc eax
call fcn.0040b582
add esp, 0x100c
ret
Function at 0x408840
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
jne 0x408847
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x408924
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41f998]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x41f998]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x41f998]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41f998]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41f998]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41f998]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41f998]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41f998]
inc ecx
sub edx, 8
sub esi, 1
jne 0x408860
pop edi
test edx, edx
je 0x40894b
jmp 0x408930
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x41f998]
inc ecx
sub edx, 1
jne 0x408930
not eax
pop esi
ret

Function at 0x408950
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x41f998]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x41f998]
mov dword [edx + 8], ecx
ret

Function at 0x4089a0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x41f998]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x41f998]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x409da0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x409dbe
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x409db2
cmp dword [edi + 0x7c], ebx
je 0x409dcd
call fcn.0040a190
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00409b10
add esp, 0xc
test eax, eax
je 0x409df4
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x84
call fcn.0040bbc0
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x409e35
push 0x4000
call fcn.0040bbc0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x409e42
push esi
call fcn.0040c21e
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x409e8a
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00408c60
test eax, eax
jne 0x409e8a
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x409eb4
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x409ebd
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x70]
mov dword [esi + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmp ebp, ebx
je 0x409ef7
mov cl, byte [ebp]
cmp cl, bl
je 0x409ef7
call fcn.00408950
add ebp, 1
jne 0x409ee6
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x40b0c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.004104c0
add esp, 0xc
cmp edi, esi
je 0x40b1a8
mov eax, 0x41de30
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40b105
sub eax, edx
sar eax, 1
je 0x40b12f
push 0x41dd1c
lea edx, [esp + 8]
push 0x41de30
push edx
call fcn.0040b804
add esp, 0xc
jmp 0x40b16a
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [fcn.0041c0c4]
push 0x41fff4
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.0040b5bd
push 0x41dd1c
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0040b804
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x40b18d
push eax
push 1
push 0x200
push edi
call fcn.0040c19c
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040bfbe
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040b582
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040b582
add esp, 0x214
ret

Function at 0x40b1c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.004104c0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x40b2c5
mov eax, 0x41dd3c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40b205
sub eax, edx
sar eax, 1
je 0x40b2c5
cmp dword [0x423070], 3
jne 0x40b24c
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [fcn.0041c01c]
push 0x41dc88
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0040b5bd
add esp, 0xc
jmp 0x40b25c
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [fcn.0041c0c4]
push 0x41dd3c
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.0040b5bd
push 0x41dd14
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0040b804
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x40b2c5
push eax
push 1
push 0x200
push esi
call fcn.0040bf2a
mov edx, dword [esp + 0x14]
push edx
call fcn.0040bfbe
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040b582
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040b582
add esp, 0x214
ret
Function at 0x40b2e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.004104c0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x40b3af
mov eax, 0x41fff4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40b325
sub eax, edx
sar eax, 1
je 0x40b3af
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [fcn.0041c0c4]
push 0x41fff4
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0040b5bd
push 0x41dd14
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040b804
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x40b3af
push eax
push 1
push 0x200
push esi
call fcn.0040bf2a
mov eax, dword [esp + 0x14]
push eax
call fcn.0040bfbe
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040b582
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040b582
add esp, 0x214
ret