joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404780
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
xor esi, esi
cmp dword [eax + 0x18], 0x10
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
jb 0x40479f
mov eax, dword [eax + 4]
jmp 0x4047a2
add eax, 4
push esi
push esi
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x4047c6
push esi
push str.Error
push str.GetDiskFreeSpaceEx_failure
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [ebp + 8]
call fcn.00404630
mov ecx, dword [esp + 0xc]
cmp ecx, edx
ja 0x4047e9
jb 0x4047e0
mov edx, dword [esp + 8]
cmp edx, eax
ja 0x4047e9
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x405a90
Capabilities:
Get disk size

Disassembly:
sub esp, 0xc
cmp dword [eax + 0x54], 0x10
mov dword [esp + 4], 0
mov dword [esp + 8], 0
jb 0x405aae
mov eax, dword [eax + 0x40]
jmp 0x405ab1
add eax, 0x40
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x405ad7
push eax
push str.Error
push str.GetDiskFreeSpaceEx_failure
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 8], 0
ja 0x405af0
jb 0x405aea
cmp dword [esp + 4], 0x100000
jae 0x405af0
mov al, 1
add esp, 0xc
ret
xor al, al
add esp, 0xc
ret
Function at 0x405b00
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x445206
mov eax, dword fs:[0]
push eax
sub esp, 0x750
mov eax, dword [0x45a4d0]
xor eax, esp
mov dword [esp + 0x748], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45a4d0]
xor eax, esp
push eax
lea eax, [esp + 0x764]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x774]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x20], ebx
cmp dword [esi + 0x18], 0x10
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea edi, [esi + 4]
jb 0x405b5f
mov eax, dword [edi]
jmp 0x405b61
mov eax, edi
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x405b85
push ebx
push str.Error
push str.GetDiskFreeSpaceEx_failure
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esi + 0x18], 0x10
jb 0x405b8d
mov edi, dword [edi]
lea edx, [esp + 0x25c]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x164]
push ecx
lea edx, [esp + 0x2c]
push edx
push edi
call fcn.0042e6f7
mov edi, 0xf
lea eax, [esp + 0x34]
add esp, 0x14
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405bc8
sub eax, edx
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.00402770
push 1
push 0x44cc78
lea ecx, [esp + 0x48]
push ecx
xor eax, eax
mov dword [esp + 0x778], ebx
call fcn.00402300
cmp eax, 0xffffffff
je 0x405c45
push eax
xor ecx, ecx
lea esi, [esp + 0x28]
lea edx, [esp + 0x44]
call fcn.00401ec0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x778], 1
call fcn.00402220
mov esi, 0x10
mov byte [esp + 0x76c], bl
cmp dword [esp + 0x3c], esi
jb 0x405c4a
mov edx, dword [esp + 0x28]
push edx
call fcn.004110df
add esp, 4
jmp 0x405c4a
mov esi, 0x10
mov edx, dword [esp + 0x44]
cmp dword [esp + 0x58], esi
jae 0x405c58
lea edx, [esp + 0x44]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x18], eax
fild qword [esp + 0x14]
and ecx, 0x80000000
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebx
fild qword [esp + 0x14]
sub esp, 8
fchs
faddp st(1)
fld qword [0x44f700]
fmul st(1), st(0)
fmul st(1), st(0)
fmulp st(1)
fstp qword [esp]
push edx
push 0x44cc7c
lea edx, [esp + 0x36c]
push 0x400
push edx
call fcn.0042e435
lea eax, [esp + 0x374]
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], ebx
add esp, 0x18
mov byte [ebp + 4], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405cd0
sub eax, edx
push eax
lea eax, [esp + 0x360]
push eax
mov ecx, ebp
call fcn.00402770
cmp dword [esp + 0x58], esi
jb 0x405cfc
mov ecx, dword [esp + 0x44]
push ecx
call fcn.004110df
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x764]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x748]
xor ecx, esp
call fcn.0042dcb1
add esp, 0x75c
ret 4
Function at 0x407780
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xc
mov eax, 1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x45e784], al
jne 0x4077a4
or dword [0x45e784], eax
call ebx
mov dword [0x45e780], eax
call ebx
mov ecx, eax
sub ecx, dword [0x45e780]
cmp ecx, 0x1f4
jb 0x407856
movzx edx, word [edi]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
shl edx, 0x10
push edx
push 0
mov dword [0x45e780], eax
mov eax, dword [esi + 0xbc]
push 0x401
push eax
call ebx
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0xbc]
push 0
push ecx
push 0x402
push edx
call ebx
cmp dword [edi + 0x20], 0x10
jb 0x4077fb
mov eax, dword [edi + 0xc]
jmp 0x4077fe
lea eax, [edi + 0xc]
push eax
push 0x3ea
mov ecx, esi
call fcn.00417570
mov eax, dword [esi + 0x110]
push 0x640000
push 0
push 0x401
push eax
call ebx
fld dword [edi + 0x24]
mov edx, dword [esi + 0x110]
fnstcw word [esp + 6]
movzx eax, word [esp + 6]
or eax, 0xc00
mov dword [esp + 8], eax
push 0
fldcw word [esp + 0xc]
fistp qword [esp + 0xc]
mov ecx, dword [esp + 0xc]
push ecx
push 0x402
fldcw word [esp + 0x12]
push edx
call ebx
pop ebx
add esp, 0xc
ret
Function at 0x407a80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x445126
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x45a4d0]
xor eax, esp
mov dword [esp + 0x498], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45a4d0]
xor eax, esp
push eax
lea eax, [esp + 0x4b4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c4]
push 0x44
xor ebx, ebx
lea eax, [esp + 0x48]
push ebx
push eax
call fcn.0042fd30
xor eax, eax
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0xb4], 0xf
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
lea ecx, [ebp + 0x80]
push ecx
mov edi, str.Setup.exe
lea esi, [esp + 0x38]
mov dword [esp + 0x4cc], ebx
call fcn.004067e0
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x9c]
mov byte [esp + 0x4c8], 1
call fcn.00402220
mov edi, 0x10
mov byte [esp + 0x4bc], bl
cmp dword [esp + 0x40], edi
jb 0x407b5a
mov edx, dword [esp + 0x2c]
push edx
call fcn.004110df
add esp, 4
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], edi
jae 0x407b71
lea eax, [esp + 0x94]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x407bc9
push 0x3ff
lea eax, [esp + 0xb1]
push ebx
push eax
call fcn.0042fd30
add esp, 0xc
push ebp
mov ecx, 6
lea ebx, [esp + 0xb0]
call fcn.00407ec0
cmp dword [esp + 0xa8], edi
jb 0x407c03
mov ecx, dword [esp + 0x94]
push ecx
jmp 0x407bfb
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
cmp dword [esp + 0xa8], edi
jb 0x407c03
mov edx, dword [esp + 0x94]
push edx
call fcn.004110df
add esp, 4
mov ecx, dword [esp + 0x4b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x498]
xor ecx, esp
call fcn.0042dcb1
add esp, 0x4ac
ret 4
Function at 0x407c30
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x445928
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45a4d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x94], ebx
je 0x407d7c
lea eax, [esp + 0x18]
push eax
call fcn.00405e70
lea edi, [esi + 0x80]
mov dword [esp + 0x38], ebx
cmp dword [edi + 0x18], 0x10
jb 0x407c86
mov ecx, dword [edi + 4]
jmp 0x407c89
lea ecx, [edi + 4]
lea edx, [esp + 0x18]
push edx
call fcn.00402fd0
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 4
xor esi, esi
test eax, eax
jle 0x407d14
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
lea eax, [esp + 0x1c]
call fcn.00401f40
cmp dword [eax + 0x18], 0x10
jb 0x407cd2
mov ebx, dword [eax + 4]
jmp 0x407cd5
lea ebx, [eax + 4]
push 0
push ebx
call fcn.0042e199
add esp, 8
cmp eax, 0xffffffff
je 0x407cf2
push ebx
call ebp
test eax, eax
jne 0x407cf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
inc esi
add ecx, edx
cmp esi, ecx
jl 0x407cbd
xor ebx, ebx
cmp dword [edi + 0x18], 0x10
jb 0x407d1f
mov esi, dword [edi + 4]
jmp 0x407d22
lea esi, [edi + 4]
push ebx
push esi
call fcn.0042e199
add esp, 8
cmp eax, 0xffffffff
je 0x407d38
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call fcn.00405dd0
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x407d63
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
push edx
call fcn.004036e0
mov eax, dword [esp + 0x28]
add esp, 4
push eax
call fcn.004110df
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004110df
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret

Function at 0x408010
Capabilities:
Resume thread

Disassembly:
cmp byte [esi + 0x1c], 0
je 0x40803f
lea eax, [esi + 0x18]
push eax
push 0
push esi
push 0x4080b0
push 0
push 0
call fcn.0042eb05
add esp, 0x18
test eax, eax
mov dword [esi + 0xc], eax
mov byte [esi + 0x1c], 0
mov byte [esi + 0x1d], 0
setne al
ret
cmp byte [esi + 0x1d], 0
je 0x40805b
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x408057
xor al, al
ret
mov byte [esi + 0x1d], 0
mov al, 1
ret

Function at 0x408060
Capabilities:
Terminate thread

Disassembly:
push ecx
mov ecx, dword [esi + 0xc]
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp], 0x103
jne 0x40809f
mov edx, dword [esi + 0xc]
push 0x103
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [esi + 0xc], eax
mov byte [esi + 0x1e], al
mov byte [esi + 0x1c], 1
pop ecx
ret
mov byte [esi + 0x1e], 0
mov byte [esi + 0x1c], 1
pop ecx
ret
Function at 0x408130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408149
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408184
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x408180
lea ebx, [ebx]
cmp esi, eax
jae 0x408184
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x408170
cmp esi, eax
jb 0x40818a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x408a40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x445618
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x45a4d0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
xor edx, edx
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], edx
lea ecx, [esi + 0x14]
mov byte [ecx + 4], dl
mov dword [esi + 4], edx
mov dword [esi + 8], 4
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], edx
mov eax, 0x44c8a7
mov dword [esp + 0x18], edx
mov dword [esi], vtable.TiXmlText.0
lea edi, [eax + 1]
mov bl, byte [eax]
inc eax
cmp bl, dl
jne 0x408aa1
sub eax, edi
push eax
push 0x44c8a7
call fcn.00402770
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x409260
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x445093
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45a4d0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
xor edx, edx
lea edi, [esi + 0x14]
mov dword [edi + 0x14], edx
mov ecx, 0xf
mov dword [edi + 0x18], ecx
mov byte [edi + 4], dl
mov ebx, 1
mov dword [esi + 4], edx
mov dword [esi + 8], ebx
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], edx
mov dword [esp + 0x1c], edx
lea eax, [esi + 0x38]
mov dword [esi], vtable.TiXmlElement.0
mov dword [eax], vtable.TiXmlAttribute.0
mov dword [eax + 0x20], ecx
mov dword [eax + 0x1c], edx
mov byte [eax + 0xc], dl
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x38], edx
mov byte [eax + 0x28], dl
mov dword [eax + 0x44], eax
mov dword [eax + 0x40], eax
mov byte [esp + 0x1c], bl
mov eax, ebp
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], edx
lea ebx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, dl
jne 0x4092f0
sub eax, ebx
push eax
push ebp
mov ecx, edi
call fcn.00402770
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x40e4b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x40e4b7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x40e594
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 + 0x44f0a8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x44f0a8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x44f0a8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44f0a8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44f0a8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44f0a8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44f0a8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44f0a8]
inc ecx
sub edx, 8
sub esi, 1
jne 0x40e4d0
pop edi
test edx, edx
je 0x40e5bb
jmp 0x40e5a0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x44f0a8]
inc ecx
sub edx, 1
jne 0x40e5a0
not eax
pop esi
ret

Function at 0x40e5c0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x44f0a8]
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 + 0x44f0a8]
mov dword [edx + 8], ecx
ret

Function at 0x40e610
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

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 + 0x44f0a8]
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 + 0x44f0a8]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x40edc0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x40edf2
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ede8
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x40ee05
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.00434040
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x40ee20
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x40ee53
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ee4d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x40ee7f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x40ee65
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.00434040
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x40ee96
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x40ee90
cmp byte [esi + 8], 0
je 0x40ee90
or eax, 0xffffffff
add esp, 8
ret
Function at 0x40efd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x40f015
cmp byte [esi + 1], 0
je 0x40f01d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x40f032
cmp byte [esi + 1], 0
je 0x40f024
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x40f03b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40efee
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40f03b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x40f04f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0042f957
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40f06d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x40f181
jmp 0x40f090
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x40f0a1
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x40f0ba
mov ebp, 0x404
cmp byte [esi], 0
je 0x40f0df
cmp byte [esi + 1], 0
je 0x40f181
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40f0e2
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x40f10a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f104
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x40f130
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40f11b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00434040
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x40f181
lea eax, [ebp - 3]
test eax, eax
jl 0x40f16c
dec eax
cmp byte [eax + ebx], 0x50
jne 0x40f15c
cmp byte [eax + ebx + 1], 0x4b
jne 0x40f15c
cmp byte [eax + ebx + 2], 5
jne 0x40f15c
cmp byte [eax + ebx + 3], 6
je 0x40f162
test eax, eax
jge 0x40f140
jmp 0x40f16c
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x40f181
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x40f084
push ebx
call fcn.0042f77a
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x40fbd0
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 0x40fbee
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x40fbe2
cmp dword [edi + 0x7c], ebx
je 0x40fbfd
call fcn.0040ffc0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0040f940
add esp, 0xc
test eax, eax
je 0x40fc24
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x84
call fcn.0042f957
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40fc65
push 0x4000
call fcn.0042f957
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 0x40fc72
push esi
call fcn.0042f77a
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 0x40fcba
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0040e8d0
test eax, eax
jne 0x40fcba
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 0x40fce4
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x40fced
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 0x40fd27
mov cl, byte [ebp]
cmp cl, bl
je 0x40fd27
call fcn.0040e5c0
add ebp, 1
jne 0x40fd16
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