joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d8410
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x511b97
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.004fdaa1
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.004fdaa1
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.004d8f30
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x4d8f80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x511c70
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00509bca
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x4d8fb3
xor al, al
jmp 0x4d90df
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4d8fd5
xor al, al
jmp 0x4d90df
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4d8fe8
xor al, al
jmp 0x4d90df
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4d8ffc
xor al, al
jmp 0x4d90df
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.004fdb66
test eax, eax
jne 0x4d9030
xor al, al
jmp 0x4d90df
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x58406c
mov dword [esp + 0x20], ebp
call fcn.00509bca
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.005067a7
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.005067fe
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4d90c4
mov ax, word [ebx]
test ax, ax
je 0x4d90b6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004d9100
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4d909a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.005067fe
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4d9600
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.00507e57
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4d9646
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.004db268
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x5ab958
push ecx
call fcn.004dd5d5
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4dded9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4ddef9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004dc8fa
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4ddf1c
test byte [esp + 8], 2
je 0x4ddf1c
call fcn.004dc96d
mov dword [eax], 0xd
call fcn.004dc976
mov dword [eax], 5
jmp 0x4ddef5
xor eax, eax
ret
Function at 0x4f5080
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x512d50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.004ea18b
mov eax, dword [0x587428]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004ea0bd
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004f5b20
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4f5127
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4f511e
cmp al, 0xff
je 0x4f511e
dec al
mov byte [ecx], al
jmp 0x4f5127
push ecx
call fcn.004ff6f1
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4f5158
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4f514f
cmp al, 0xff
je 0x4f514f
dec al
mov byte [ecx], al
jmp 0x4f5158
push ecx
call fcn.004ff6f1
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x501d6a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x501da2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ffde2
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ffdba
jmp 0x501dae
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x503565
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5035a7
call fcn.00509bca
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5035a7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x50359e
xor eax, eax
jmp 0x5035af
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005035b5
pop edi
pop esi
pop ebx
ret 4

Function at 0x50a0fa
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x50a128
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x50a146
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0050a060
jmp 0x50a146
mov eax, dword [esi + 0x14]
test eax, eax
je 0x50a146
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0050a060
test edi, edi
mov eax, edi
jne 0x50a130
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401150
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edi
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x401192
cmp dword [esp + 8], esi
jne 0x401192
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40118c
push eax
push esi
push edi
call fcn.00401090
add esp, 0xc
pop edi
mov al, 1
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret

Function at 0x4011a0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edi
push ecx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x4011e2
cmp dword [esp + 8], esi
jne 0x4011e2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4011dc
push eax
push esi
push edi
call fcn.00401090
add esp, 0xc
pop edi
mov al, 1
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret
Function at 0x401400
Capabilities:
Encode data using xor
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x40
mov esi, ebx
lea edi, [esp + 0x18]
push ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.user32.dll_GetKeyboardState]
xor edx, edx
lea eax, [ebx + 8]
lea ecx, [ebx + 0x710]
mov esi, dword [eax - 8]
mov edi, dword [esp + edx*4 + 0x18]
and esi, 0x80808080
mov dword [eax - 8], esi
mov ebp, esi
xor ebp, edi
and ebp, esi
mov dword [ecx - 0x610], ebp
mov esi, dword [eax - 8]
xor esi, edi
and esi, edi
mov edi, dword [esp + edx*4 + 0x1c]
mov dword [ecx], esi
mov esi, dword [eax - 4]
and esi, 0x80808080
mov dword [eax - 4], esi
mov ebp, edi
xor ebp, esi
and ebp, esi
mov dword [ecx - 0x60c], ebp
mov esi, dword [eax - 4]
xor esi, edi
and esi, edi
mov edi, dword [esp + edx*4 + 0x20]
mov dword [ecx + 4], esi
mov esi, dword [eax]
and esi, 0x80808080
mov ebp, esi
mov dword [eax], esi
xor ebp, edi
and ebp, esi
mov dword [ecx - 0x608], ebp
mov esi, dword [eax]
xor esi, edi
and esi, edi
mov edi, dword [esp + edx*4 + 0x24]
mov dword [ecx + 8], esi
mov esi, dword [eax + 4]
and esi, 0x80808080
mov ebp, esi
mov dword [eax + 4], esi
xor ebp, edi
and ebp, esi
mov dword [ecx - 0x604], ebp
mov esi, dword [eax + 4]
xor esi, edi
and esi, edi
mov dword [ecx + 0xc], esi
add edx, 4
add ecx, 0x10
add eax, 0x10
cmp edx, 0x40
jl 0x401431
lea eax, [ebx + 0x100]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
lea esi, [ebx + 0x610]
mov dword [esp + 0x10], eax
lea edi, [ebx + 0x208]
call dword [sym.imp.winmm.dll_timeGetTime]
mov ecx, ebx
sub ecx, esi
nop
mov ebp, dword [esp + 0x14]
mov dl, byte [ebp]
inc ebp
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x10]
mov byte [esi], dl
mov dl, byte [ebp]
inc ebp
test dl, dl
mov dword [esp + 0x10], ebp
je 0x401541
cmp byte [ecx + esi], 0
je 0x401541
mov ebp, dword [edi]
mov edx, eax
sub edx, ebp
cmp edx, dword [ebx + 0x608]
jb 0x401543
mov edx, dword [ebx + 0x60c]
add edx, eax
mov dword [edi], edx
mov byte [esi], 0x80
jmp 0x401543
mov dword [edi], eax
add edi, 4
inc esi
lea ebp, [ebx + 0x710]
cmp esi, ebp
jb 0x401500
lea eax, [ebx + 0x810]
push ebx
push eax
call fcn.004012f0
lea eax, [ebx + 0x100]
push eax
lea ecx, [ebx + 0x814]
push ecx
call fcn.004012f0
lea eax, [ebx + 0x610]
push eax
lea edx, [ebx + 0x818]
push edx
call fcn.004012f0
push ebp
add ebx, 0x81c
push ebx
call fcn.004012f0
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401c00
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.kernel32.dll_SetFilePointer]
push esi
push 0
mov esi, eax
push 0
lea esi, [esi*4 + 8]
push esi
push edi
call ebx
cmp eax, esi
je 0x401c2b
pop esi
mov eax, 0x10
pop ebx
add esp, 8
ret
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x401c4b
cmp dword [esp + 0xc], 4
je 0x401c56
pop esi
mov eax, 4
pop ebx
add esp, 8
ret
mov edx, dword [esp + 8]
push 0
push 0
push edx
push edi
call ebx
mov esi, dword [esp + 8]
xor ecx, ecx
cmp eax, esi
sete cl
pop esi
pop ebx
dec ecx
and ecx, 0x10
mov eax, ecx
add esp, 8
ret
Function at 0x401f30
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push 0
push 0
push 4
push esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 4
je 0x401f4b
xor eax, eax
add esp, 8
ret
push 0
lea eax, [esp + 8]
push eax
push 4
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.kernel32.dll_ReadFile]
mov ecx, dword [esp]
neg eax
sbb eax, eax
and eax, ecx
add esp, 8
ret

Function at 0x4020b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push edi
push 0
push 0
push 0
call fcn.00401090
mov edi, dword [esp + 0x28]
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 8], eax
jne 0x4020d9
mov eax, 8
pop edi
add esp, 0x14
ret
push 0
push 0
push 0
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
test eax, eax
je 0x4020f4
mov eax, 0x10
pop edi
add esp, 0x14
ret
push ebx
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
push esi
push 0
lea eax, [esp + 0x28]
push eax
mov esi, 4
push esi
lea ecx, [esp + 0x24]
push ecx
push edi
call ebx
test eax, eax
je 0x402147
cmp dword [esp + 0x24], esi
jne 0x402147
cmp dword [esp + 0x18], 0x43524158
jne 0x40215a
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.00401090
add esp, 0xc
lea ecx, [esp + 0x14]
mov edx, edi
call fcn.00401bd0
test al, al
jne 0x402150
mov eax, esi
pop esi
pop ebx
pop edi
add esp, 0x14
ret
cmp dword [esp + 0x14], 0x10000
jbe 0x402166
pop esi
pop ebx
mov eax, 0xa
pop edi
add esp, 0x14
ret
push ebp
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.00401090
mov eax, dword [esp + 0x24]
add esp, 0xc
xor ebp, ebp
test eax, eax
lea esi, [eax*4 + 0xa]
jbe 0x4021cf
jmp 0x402190
push 0
lea eax, [esp + 0x24]
push eax
push 4
lea ecx, [esp + 0x34]
push ecx
push edi
call ebx
test eax, eax
je 0x402214
cmp dword [esp + 0x20], 4
jne 0x402214
cmp dword [esp + 0x28], esi
jl 0x402221
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push 4
push eax
call fcn.00401090
mov eax, dword [esp + 0x24]
add esp, 0xc
inc ebp
cmp ebp, eax
jb 0x402190
push 0
lea ecx, [esp + 0x2c]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push edi
call ebx
test eax, eax
je 0x402214
cmp dword [esp + 0x28], 2
jne 0x402214
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push 2
push ecx
call fcn.00401090
add esp, 0xc
cmp word [esp + 0x14], 0
je 0x40222e
pop ebp
pop esi
pop ebx
mov eax, 0xb
pop edi
add esp, 0x14
ret
pop ebp
pop esi
pop ebx
mov eax, 4
pop edi
add esp, 0x14
ret
pop ebp
pop esi
pop ebx
mov eax, 0xa
pop edi
add esp, 0x14
ret
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40223c
mov edx, dword [esp + 0x18]
mov dword [eax], edx
pop ebp
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x14
ret
Function at 0x402c30
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
cmp ecx, 0xffffffff
jne 0x402c46
mov eax, 0x16
pop esi
pop ecx
ret 4
mov eax, dword [esp + 0xc]
cmp eax, dword [esi + 8]
jb 0x402c59
mov eax, 0x17
pop esi
pop ecx
ret 4
mov edx, dword [esi + 0x20]
push edi
mov edi, dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
lea eax, [eax*4 + 4]
push 0
add edx, eax
push edx
push ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], eax
call edi
cmp eax, 0xffffffff
jne 0x402c90
pop edi
mov eax, 0x14
pop esi
pop ecx
ret 4
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
cmp dword [esp + 0x10], 4
je 0x402cba
pop edi
mov eax, 9
pop esi
pop ecx
ret 4
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 8]
mov ecx, dword [esi + 4]
push 0
push 0
add eax, edx
push eax
push ecx
call edi
xor edx, edx
cmp eax, 0xffffffff
setne dl
pop edi
pop esi
dec edx
and edx, 0x14
mov eax, edx
pop ecx
ret 4

Function at 0x402c31
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
cmp ecx, 0xffffffff
jne 0x402c46
mov eax, 0x16
pop esi
pop ecx
ret 4
mov eax, dword [esp + 0xc]
cmp eax, dword [esi + 8]
jb 0x402c59
mov eax, 0x17
pop esi
pop ecx
ret 4
mov edx, dword [esi + 0x20]
push edi
mov edi, dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
lea eax, [eax*4 + 4]
push 0
add edx, eax
push edx
push ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], eax
call edi
cmp eax, 0xffffffff
jne 0x402c90
pop edi
mov eax, 0x14
pop esi
pop ecx
ret 4
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
cmp dword [esp + 0x10], 4
je 0x402cba
pop edi
mov eax, 9
pop esi
pop ecx
ret 4
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 8]
mov ecx, dword [esi + 4]
push 0
push 0
add eax, edx
push eax
push ecx
call edi
xor edx, edx
cmp eax, 0xffffffff
setne dl
pop edi
pop esi
dec edx
and edx, 0x14
mov eax, edx
pop ecx
ret 4

Function at 0x402cf3
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
push eax
call fcn.00402c30
test eax, eax
jne 0x402d41
mov ecx, dword [esi + 4]
push 1
push eax
push 4
push ecx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x402d41
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 8]
push edx
push 4
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
cmp dword [esp + 4], 4
jne 0x402d41
mov eax, dword [esp + 8]
cmp eax, 0x400
jbe 0x402d44
or eax, 0xffffffff
pop esi
add esp, 8
ret

Function at 0x4051d0
Capabilities:
Print debug messages

Disassembly:
mov edx, dword [esp + 0xc]
mov eax, dword [0x493a68]
mov ecx, dword [eax]
push 0
push 0
push edx
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push edx
push eax
call dword [ecx + 0x54]
test eax, eax
jge 0x405200
push 0x46f598
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
xor eax, eax
ret
mov eax, 1
ret
Function at 0x405310
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 4]
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov eax, dword [0x493a68]
mov ebp, dword [esp + 0x88]
push 0
mov dword [esp + 0x24], edx
lea edi, [esi + 0x130]
push edi
or ecx, 0x40
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], 0x6c
mov dword [esp + 0x28], 7
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x30], ebp
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
jge 0x405394
push 0x46f60c
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push ebx
call fcn.00405070
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x74
ret 0x10
mov ebx, dword [esi + 0x124]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x94]
and ebx, 0xfffffffb
cmp ecx, 0xffffffff
mov dword [esi + 0x12c], eax
mov dword [esi + 0x128], ebp
mov dword [esi + 0x120], ecx
mov dword [esi + 0x124], ebx
mov eax, ebx
je 0x405410
or eax, 4
lea edx, [esp + 0x10]
push edx
mov dword [esi + 0x124], eax
mov eax, dword [edi]
push 8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x74]
mov esi, eax
test esi, esi
jge 0x405410
push 0x46f5e8
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call fcn.00405070
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x74
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x74
ret 0x10

Function at 0x405420
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x6c
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 4]
xor eax, eax
mov ecx, 0x1b
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x78]
test eax, eax
mov dword [esp + 8], 0x6c
jne 0x40545b
mov dword [esp + 0xc], 1
mov dword [esp + 0x70], 0x200
jmp 0x40546f
mov dword [esp + 0xc], 0x21
mov dword [esp + 0x70], 0x218
mov dword [esp + 0x1c], eax
mov eax, dword [0x493a68]
mov ecx, dword [eax]
push 0
add esi, 0x130
push esi
lea edx, [esp + 0x10]
push edx
push eax
call dword [ecx + 0x18]
mov edi, eax
test edi, edi
jge 0x4054b6
push 0x46f634
mov dword [0x493aa8], 0
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push edi
call fcn.00405070
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0x6c
ret 4
mov eax, dword [esi]
pop edi
mov dword [0x493aa8], eax
mov eax, 1
pop esi
add esp, 0x6c
ret 4

Function at 0x4054d0
Capabilities:
Print debug messages

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 4]
mov eax, dword [0x493aa8]
add esi, 0x130
push esi
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov esi, eax
test esi, esi
jge 0x405517
push 0x46f654
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call fcn.00405070
add esp, 4
xor eax, eax
pop esi
pop ecx
ret
mov eax, 1
pop esi
pop ecx
ret