joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e1a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44e1d3
push esi
call fcn.004512a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44e1cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44e259
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44e242
mov eax, dword [esi + 8]
test eax, eax
je 0x44e1f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44e23e
cmp eax, 2
je 0x44e242
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44e1ea
cmp eax, 3
je 0x44e21d
cmp eax, 1
jne 0x44e1ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44e1ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44e1ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044e280
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44e268
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044e280
add esp, 4
pop esi
ret

Function at 0x4763e4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47641c
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.00474471
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00474449
jmp 0x476428
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x477ad5
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 0x477b17
call fcn.0047d7c5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x477b17
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x477b0e
xor eax, eax
jmp 0x477b1f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00477b25
pop edi
pop esi
pop ebx
ret 4

Function at 0x47dcf5
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 0x47dd23
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47dd41
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047dc5b
jmp 0x47dd41
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47dd41
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047dc5b
test edi, edi
mov eax, edi
jne 0x47dd2b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401150
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x40d020]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
push edi
push 0x104
push 0
push esi
call fcn.00407fea
push 0x104
lea edi, [esi + 0x104]
push 0
push edi
call fcn.00407fea
mov edx, 0x409550
add esp, 0x18
mov ebp, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x4011aa
mov byte [eax], cl
add eax, 1
sub ebp, 1
jne 0x401197
jmp 0x4011ae
test ebp, ebp
jne 0x4011b1
sub eax, 1
push 0x103
mov byte [eax], 0
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00407fea
add esp, 0xc
push 1
push 0x23
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
lea edx, [esp + 0xc]
push edx
push 0x40927c
mov eax, 0x104
call fcn.00401050
push 0x103
lea eax, [esp + 0x11d]
push 0
push eax
mov byte [esp + 0x124], 0
call fcn.00407fea
lea ecx, [esp + 0x20]
push ecx
push 0x409298
mov eax, 0x104
lea edi, [esp + 0x12c]
call fcn.00401050
add esp, 0x20
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
pop ebp
jne 0x40124a
lea eax, [esp + 0x104]
push eax
call fcn.00401270
mov ecx, dword [esp + 0x208]
xor ecx, esp
mov eax, esi
call fcn.00407648
add esp, 0x20c
ret
Function at 0x4013d0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
push 0x409730
push 1
push 0
push 0x409720
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [edi], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jge 0x401411
push esi
push str.CoCreateInstance_failed:_0x_08lx_n
jmp 0x401449
mov eax, dword [esp + 8]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov esi, eax
test esi, esi
jge 0x401430
push esi
push str.get_LocalPolicy_failed:_0x_08lx_n
jmp 0x401449
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push edi
push eax
call edx
mov esi, eax
test esi, esi
jge 0x401452
push esi
push str.get_CurrentProfile_failed:_0x_08lx_n
call dword [0x409138]
add esp, 8
mov eax, dword [esp + 4]
test eax, eax
je 0x401462
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 8]
test eax, eax
je 0x401472
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x402140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40215a
pop esi
pop ebx
pop ecx
ret 4
push ebp
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x18]
push 0x4095e0
push eax
mov dword [esp + 0x18], 0
call dword [0x409128]
mov esi, eax
add esp, 8
test esi, esi
je 0x4021b5
push esi
push edi
push 1
push ebp
call dword [0x40912c]
add esp, 0x10
cmp edi, eax
jne 0x4021ab
mov dword [esp + 0x10], 1
push esi
call dword [0x409130]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 4

Function at 0x4021d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x404
mov eax, dword [0x40d020]
xor eax, esp
mov dword [esp + 0x400], eax
push edi
push 0x3ff
lea eax, [esp + 9]
push 0
push eax
mov edi, ecx
mov byte [esp + 0x10], 0
call fcn.00407fea
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [esp + 0xc]
push edx
push str._s_d__s
mov eax, 0x400
call fcn.00401050
mov ecx, dword [esp + 0x414]
add esp, 0x10
pop edi
xor ecx, esp
mov eax, 1
call fcn.00407648
add esp, 0x404
ret

Function at 0x402410
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x40d020]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00407fea
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x402475
push 0xed
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402475
lea edx, [esp]
push 0x5c
push edx
call dword [0x40913c]
add esp, 8
test eax, eax
je 0x402475
mov byte [eax + 1], 0
push edi
lea edi, [esp + 4]
call fcn.00401100
mov eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push str.ShowVerboseInfo
push str.CMain
call edi
lea ecx, [esp + 4]
push ecx
neg eax
push 0
sbb eax, eax
push str.ShowTraceInfo
neg eax
push str.CMain
mov dword [esi], eax
call edi
lea edx, [esp + 4]
push edx
neg eax
push 0
sbb eax, eax
push str.ShowErrorInfo
neg eax
push str.CMain
mov dword [esi + 4], eax
call edi
neg eax
sbb eax, eax
neg eax
cmp dword [esi + 0x20], 0
mov dword [esi + 8], eax
pop edi
jne 0x4024eb
push str.CMain
lea ecx, [esi + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00407648
add esp, 0x108
ret
Function at 0x402530
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe10
mov eax, dword [0x40d020]
xor eax, esp
mov dword [esp + 0xe0c], eax
push esi
push edi
push 0x3ff
lea eax, [esp + 0xa15]
push 0
push eax
mov esi, ecx
mov edi, edx
mov byte [esp + 0xa1c], 0
call fcn.00407fea
add esp, 0xc
push 0x3ff
lea ecx, [esp + 0x215]
push 0
push ecx
mov byte [esp + 0x21c], 0
call fcn.00407fea
add esp, 0xc
push 0x3ff
lea edx, [esp + 0x615]
push 0
push edx
mov byte [esp + 0x61c], 0
call fcn.00407fea
add esp, 0xc
push 0
call dword [0x409110]
add esp, 4
push 0x1ff
mov dword [esp + 0xc], eax
lea eax, [esp + 0x15]
push 0
push eax
mov dword [esp + 0x18], edx
mov byte [esp + 0x1c], 0
call fcn.00407fea
lea ecx, [esp + 0x14]
add esp, 0xc
push ecx
call dword [0x409100]
add esp, 4
push eax
push str._Y__m__d__H:_M:_S
lea edx, [esp + 0x18]
push 0x200
push edx
call dword [0x409108]
add esp, 0x10
cmp dword [esi + 0x24], 0x10
jb 0x40260b
mov esi, dword [esi + 0x10]
jmp 0x40260e
add esi, 0x10
push edi
push esi
push str.TRACE
push str._s:_s__s_r_n
mov eax, 0x3ff
lea edi, [esp + 0xa20]
call fcn.00401050
push ebx
mov eax, edi
push eax
push 0x3fe
lea ecx, [esp + 0x22c]
push 0x3ff
push ecx
call dword [0x40910c]
add esp, 0x24
test eax, eax
jl 0x402657
cmp eax, 0x3fe
ja 0x402657
jne 0x40265f
mov byte [esp + 0x60e], 0
lea edx, [esp + 0x210]
push edx
lea eax, [esp + 0x14]
push eax
push str._s__s
mov eax, 0x3ff
lea edi, [esp + 0x61c]
call fcn.00401050
add esp, 0xc
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.004026b0
mov ecx, dword [esp + 0xe14]
pop edi
pop esi
xor ecx, esp
call fcn.00407648
mov esp, ebp
pop ebp
ret

Function at 0x4026b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
call dword [section..data]
cmp dword [0x40d448], 0
jne 0x4026d8
call fcn.00402950
mov dword [0x40d44c], eax
mov dword [0x40d448], 1
cmp dword [0x40d44c], 0
je 0x402749
push 0
push 0x20
push 4
push 0
push 1
push 0xc0000000
call fcn.00402750
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402749
mov ebx, esi
call fcn.00402820
push 2
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push ebx
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
mov dword [esp + 0x10], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402728
push ebx
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x402820
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x28
cmp ebx, 0xffffffff
push ebp
push esi
push edi
je 0x402945
cmp dword [0x40d44c], 2
jne 0x402945
call fcn.00402a10
xor edi, edi
push edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
push eax
push edi
push ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea ecx, [esp + 0x18]
push ecx
push 8
lea edx, [esp + 0x2c]
push edx
push ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402914
lea eax, [edi + 8]
lea edx, [esp + 0x28]
lea esi, [esp + 0x20]
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x4028a8
sub eax, 4
add edx, 4
add esi, 4
cmp eax, 4
jae 0x402890
cmp eax, edi
je 0x402905
movzx ecx, byte [esi]
movzx ebp, byte [edx]
sub ecx, ebp
jne 0x4028f7
sub eax, 1
add edx, 1
add esi, 1
cmp eax, edi
je 0x402905
movzx ecx, byte [esi]
movzx ebp, byte [edx]
sub ecx, ebp
jne 0x4028f7
sub eax, 1
add edx, 1
add esi, 1
cmp eax, edi
je 0x402905
movzx ecx, byte [esi]
movzx ebp, byte [edx]
sub ecx, ebp
jne 0x4028f7
sub eax, 1
add edx, 1
add esi, 1
cmp eax, edi
je 0x402905
movzx ecx, byte [esi]
movzx edx, byte [edx]
sub ecx, edx
je 0x402905
cmp ecx, edi
mov eax, 1
jg 0x402907
or eax, 0xffffffff
jmp 0x402907
xor eax, eax
xor ecx, ecx
cmp eax, edi
setne cl
mov eax, ecx
cmp eax, edi
je 0x402945
push edi
lea edx, [esp + 0x1c]
push edx
push edi
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [esp + 0x20]
push eax
push 8
lea ecx, [esp + 0x34]
push ecx
push ebx
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
add esp, 0x28
ret

Function at 0x402950
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x40d020]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00407fea
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4029b6
push 0xed
push 0x40d558
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4029b6
push 0x5c
push 0x40d558
call dword [0x40913c]
add esp, 8
test eax, eax
je 0x4029b6
mov byte [eax + 1], 0
push edi
push str.ConfigKernelDebug.ini
push 0x40d558
push 0x40953c
mov eax, 0x104
lea edi, [esp + 0x10]
call fcn.00401050
add esp, 0xc
mov ecx, edi
push ecx
push 0
push str.Log2File
push str.Base
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x108]
pop edi
xor ecx, esp
call fcn.00407648
add esp, 0x108
ret
Function at 0x404a90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x404a9f
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x404b87
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x40abe8]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x40abe8]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x40abe8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x40abe8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x40abe8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x40abe8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x40abe8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x40abe8]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x404ab0
pop ebp
test edi, edi
je 0x404bac
jmp 0x404b90
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x40abe8]
add ecx, 1
sub edi, 1
jne 0x404b90
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x404bc0
Capabilities:
Hash data with crc32

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

Function at 0x404c10
Capabilities:
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
xor al, bl
movzx ebx, al
xor ebx, edx
shr edx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x40abe8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x40abe8]
pop ebx
mov dword [esi + 8], ecx
ret

Function at 0x4053d0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x405402
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 0x4053f8
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 0x405415
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.00407f9c
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x405430
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x405463
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 0x40545d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x40548f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x405475
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.00407f9c
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x4054a6
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 0x4054a0
cmp byte [esi + 8], 0
je 0x4054a0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x405540
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x405585
cmp byte [esi + 1], 0
je 0x40558d
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 0x4055a2
cmp byte [esi + 1], 0
je 0x405594
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 0x4055ab
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40555e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x4055ab
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
cmp ebp, edi
mov dword [esp + 0xc], edi
jae 0x4055bf
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call dword [0x409148]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4055de
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
cmp edi, eax
mov dword [esp + 0x18], 0xffffffff
jbe 0x405703
jmp 0x40560c
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
cmp eax, edi
mov dword [esp + 0x14], edi
ja 0x40561d
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
cmp ebp, 0x404
mov dword [esp + 0x20], eax
jbe 0x405636
mov ebp, 0x404
cmp byte [esi], 0
je 0x40565b
cmp byte [esi + 1], 0
je 0x405703
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 0x40565e
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x405686
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 0x405680
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x4056ac
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x405697
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00407f9c
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x405703
lea eax, [ebp - 3]
test eax, eax
jl 0x4056ee
lea esp, [esp]
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x4056de
cmp byte [eax + ebx + 1], 0x4b
jne 0x4056de
cmp byte [eax + ebx + 2], 5
jne 0x4056de
cmp byte [eax + ebx + 3], 6
je 0x4056e4
test eax, eax
jge 0x4056c0
jmp 0x4056ee
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x405703
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x405600
push ebx
call dword [0x409154]
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x4060d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x4060e8
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x4060dd
cmp dword [edi + 0x7c], ebx
je 0x4060fb
mov ebx, edi
call fcn.004064c0
xor ebx, ebx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00405e40
add esp, 0xc
test eax, eax
je 0x406121
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
mov ebp, dword [0x409148]
push esi
push 0x84
call ebp
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x406164
push 0x4000
call ebp
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x406171
push esi
call dword [0x409154]
add esp, 4
pop esi
pop ebp
pop edi
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 0x4061b9
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00404ed0
test eax, eax
jne 0x4061b9
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 0x4061e3
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x4061ec
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
mov al, byte [esi + 0x6c]
mov ebp, dword [esp + 0x20]
neg al
lea edx, [esi + 0x70]
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
sbb eax, eax
and eax, 0xc
cmp ebp, ebx
mov dword [esi + 0x7c], eax
je 0x406229
mov cl, byte [ebp]
cmp cl, bl
je 0x406229
call fcn.00404bc0
add ebp, 1
jne 0x406218
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 ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret