joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401490
Capabilities:
Read file via mapping

Disassembly:
push ecx
push esi
mov esi, eax
mov al, byte [esi + 0x1d]
test al, al
jne 0x4014d1
cmp dword [esi + 0x20], 0xffffffff
jne 0x4014d1
cmp dword [esi + 0x18], 0x10
jb 0x4014ac
mov eax, dword [esi + 4]
jmp 0x4014af
lea eax, [esi + 4]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
sete al
mov byte [esi + 0x1d], al
mov esi, dword [esi + 0x20]
cmp esi, 0xffffffff
je 0x401598
cmp byte [ebx], 0
jne 0x401598
mov eax, dword [ebx + 4]
test eax, eax
jne 0x401519
mov cl, byte [esp + 0xc]
test cl, cl
mov eax, 2
je 0x4014ff
mov eax, 0x1000002
push 0
push 0
push 0
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [ebx + 4], eax
jne 0x401519
mov byte [ebx], 1
mov eax, dword [ebx + 4]
test eax, eax
je 0x401598
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x401598
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [ebx + 8], eax
jne 0x40154a
mov ecx, eax
test ecx, ecx
mov byte [ebx], 1
setne al
pop esi
pop ecx
ret
push edi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
call fcn.00401410
add esp, 8
test al, al
pop edi
je 0x401584
mov eax, dword [esp + 4]
test eax, eax
je 0x401584
mov edx, dword [ebx + 8]
lea eax, [edx + eax - 1]
mov dword [ebx + 0xc], eax
xor eax, eax
mov ecx, edx
test ecx, ecx
setne al
pop esi
pop ecx
ret
mov ecx, dword [ebx + 8]
push ecx
mov byte [ebx], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx + 8], 0
mov ecx, dword [ebx + 8]
xor eax, eax
test ecx, ecx
setne al
pop esi
pop ecx
ret

Function at 0x4015b0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ebp
ret

Function at 0x4015d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x4093f4]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
jbe 0x40165c
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
je 0x40165c
mov dword [ebp - 0x150], 1
jmp 0x401628
mov ecx, dword [ebp - 0x150]
add ecx, 1
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x150]
cmp edx, dword [ebp + 0xc]
jae 0x40164f
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40164d
jmp 0x40164f
jmp 0x401619
mov edx, dword [ebp - 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
call fcn.004032e4
mov esp, ebp
pop ebp
ret
Function at 0x401900
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 8]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 2
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4019a2
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0xc]
jae 0x4019a2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0x14]
push ecx
call fcn.00401860
add esp, 8
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401995
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x14]
jae 0x401997
jmp 0x4019a2
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
jmp 0x401945
mov esp, ebp
pop ebp
ret
Function at 0x402a00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x403a01
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [esi], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x14], ecx
mov cl, byte [esp + 0x50]
cmp cl, bl
mov dword [esi + 8], edx
mov edx, dword [esp + 0x48]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x28], 1
mov dword [esi + 0xc], ebp
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], ebx
jne 0x402b17
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x50], edi
jbe 0x402aaf
lea ecx, [edx + 0xc]
mov edx, eax
jmp 0x402a90
mov eax, dword [ecx]
cmp eax, edi
jbe 0x402a98
mov edi, eax
add ecx, 0x10
dec edx
jne 0x402a90
cmp edi, 0x100000
mov dword [esp + 0x50], edi
mov eax, 0x406d00
ja 0x402ab3
lea eax, [esp + 0x50]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.004032ae
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x402ad9
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x24], edi
push ebx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, ebx
jne 0x402b17
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], str.bad_allocation
call dword [sym.imp.MSVCR71.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
push 0x407484
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x406d04
call sub.MSVCR71.dll__CxxThrowException
mov ecx, ebp
imul ecx, ecx, 0x44
add ecx, 4
push ecx
call fcn.004032ae
add esp, 4
mov dword [esp + 0x50], eax
cmp eax, ebx
mov byte [esp + 0x28], 2
je 0x402b4f
push 0x401d90
push 0x401d50
push ebp
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebp
call fcn.00403428
jmp 0x402b51
xor edi, edi
mov eax, dword [esi + 0x2c]
cmp eax, edi
mov byte [esp + 0x28], 1
je 0x402b81
cmp eax, ebx
je 0x402b7e
mov edx, dword [eax - 4]
lea ebp, [eax - 4]
push 0x401d90
push edx
push 0x44
push eax
call fcn.004033c8
push ebp
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x2c], edi
cmp dword [esi + 0x2c], ebx
jne 0x402bb4
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], str.bad_allocation
call dword [sym.imp.MSVCR71.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
push 0x407484
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x406d04
call sub.MSVCR71.dll__CxxThrowException
mov ecx, esi
call fcn.004026f0
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x24
Function at 0x403490
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x407008
call fcn.00403704
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4034d0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4034d0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4034e8
cmp eax, 0x20b
je 0x4034d5
mov dword [ebp - 0x1c], ebx
jmp 0x4034fc
cmp dword [ecx + 0x84], 0xe
jbe 0x4034d0
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x4034f6
cmp dword [ecx + 0x74], 0xe
jbe 0x4034d0
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.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x409434], 0xffffffff
or dword [0x409438], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40942c]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x409428]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x409430], eax
call fcn.004037a6
call fcn.00403846
cmp dword [0x409418], ebx
jne 0x40355c
push fcn.00403846
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00403834
push 0x409010
push 0x40900c
call sub.MSVCR71.dll__initterm
push 0x4037ea
call fcn.00403794
mov eax, dword [0x409424]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x409420]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x4035b0
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x409008
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40362e
cmp al, bl
je 0x4035da
cmp dword [ebp - 0x20], ebx
jne 0x40362e
mov al, byte [esi]
cmp al, bl
je 0x4035ea
cmp al, 0x20
ja 0x4035ea
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4035da
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x403606
movzx eax, word [ebp - 0x54]
jmp 0x403609
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00403200
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x403626
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x403683
cmp al, 0x22
jne 0x40363d
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x403650
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x4035c8
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040373f
ret
Function at 0x41a2af
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419f5d

Function at 0x41de6c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041dceb

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

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

Disassembly:
sub esp, 8
call fcn.100065c9
push eax
lea ecx, [esp + 4]
call sub.MFC42.DLL_AFX_MAINTAIN_STATE2::AFX_MAINTAIN_STATE2
push 5
push str.control.exe_inetcpl.cpl
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [eax + 4], ecx
add esp, 8
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x10006bfe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call sub.MFC42.DLL_CCmdTarget::CCmdTarget
lea edi, [esi + 0x2c]
mov dword [esp + 0x18], 0
mov ecx, edi
call sub.MFC42.DLL_CString::CString_1
lea ebp, [esi + 0x30]
mov byte [esp + 0x18], 1
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_1
push 0x1000b6d8
mov ecx, edi
mov byte [esp + 0x1c], 2
mov dword [esi], 0x10008990
mov byte [esi + 0x24], 0
call fcn.10006168
push 0x1000b6d8
mov ecx, ebp
call fcn.10006168
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x10002f30
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x30]
lea edi, [esi + 0x30]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 4
push 0
push 0
push 0x10008e80
mov dword [esi + 0x28], eax
call sub.MFC42.DLL_AfxBeginThread
push edi
lea ecx, [eax + 0x6c]
mov dword [esi + 0x20], eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esi + 0x20]
lea eax, [esi + 0x2c]
push eax
add ecx, 0x78
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esi + 0x20]
mov dl, byte [esi + 0x24]
mov byte [ecx + 0x74], dl
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
ret
Function at 0x10005240
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x100052a2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x100054b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebx
push 0
push 0
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x1000559b
lea eax, [esp + 0x10]
push eax
push str..htm
push 0x80000000
call fcn.10005240
add esp, 0xc
test eax, eax
jne 0x1000559b
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
push 0x80000000
call fcn.10005240
add esp, 0xc
test eax, eax
jne 0x1000559b
lea ecx, [esp + 0x10]
push str.__1_
push ecx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x10005575
lea edx, [esp + 0x10]
push 0x1000b5f0
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x10005575
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x10005578
mov byte [esi], 0
push 0x1000b250
push esi
call edi
push ebp
push esi
call edi
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x417a10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x677388
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x71906c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
push 0x10
push str.B873F776C2D3EB99
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00407210
mov dword [ebp - 4], 0
call fcn.00419e50
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
mov ebx, dword [ebp - 0x28]
mov edx, 0x811c9dc5
cmovae esi, ebx
mov dword [ebp - 0x2c], eax
mov edi, dword [eax + 4]
xor ecx, ecx
cmp dword [ebp - 0x18], ecx
jbe 0x417aa5
nop word [eax + eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [ebp - 0x18]
jb 0x417a90
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 0x2c]
and eax, edx
mov ecx, dword [ecx + 0xc]
mov esi, dword [ecx + eax*8]
add eax, eax
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ebp - 0x30], edx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x34], eax
cmp edx, edi
jne 0x417aca
mov eax, edi
jmp 0x417ace
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x417b03
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 8]
push eax
call fcn.00419610
test al, al
je 0x417aed
mov esi, dword [esi]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
jmp 0x417ac2
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00419610
test al, al
mov ecx, edi
cmove ecx, esi
jmp 0x417b05
mov ecx, edi
cmp ecx, edi
je 0x417b47
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0041a5c0
mov eax, dword [ebp - 0x38]
mov esi, dword [eax + 0x20]
mov edi, dword [eax + 0x24]
cmp esi, edi
je 0x417b44
mov ebx, dword [ebp - 0x3c]
nop dword [eax]
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x417b97
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
add esi, 0x28
cmp esi, edi
jne 0x417b30
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x417b76
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x417b6c
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417b92
push ecx
push ebx
call fcn.0042dda0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d755
mov esp, ebp
pop ebp
ret
call fcn.0050cb1e
call fcn.00428367
int3
Function at 0x4184f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x41851b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00418cf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x41853d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x41853f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x4185c3
jg 0x418554
test esi, esi
je 0x4185c3
test ecx, ecx
jl 0x41859d
jg 0x41855e
test eax, eax
je 0x41859d
cmp edi, ecx
jg 0x418572
jl 0x418568
cmp esi, eax
jae 0x418572
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00507230
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x4185a0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4185c3
jg 0x4185aa
test esi, esi
je 0x4185c3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4185c3
push eax
push esi
push 1
push edx
call fcn.00510f17
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4185e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x41860b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00418dd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x41862d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x41862f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x4186ce
jg 0x41864c
test esi, esi
je 0x4186ce
test ecx, ecx
jl 0x418699
jg 0x418656
test eax, eax
je 0x418699
cmp ebx, ecx
jg 0x41866a
jl 0x418660
cmp esi, eax
jae 0x41866a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00507230
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x4186a0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x4186ce
jg 0x4186aa
test esi, esi
je 0x4186ce
cmp dword [edi + 0x4c], 0
je 0x4186ce
mov ecx, edi
call fcn.004192a0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.005114ec
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418a00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x71906c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x418a30
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d755
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x418a6c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x418a6c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d755
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x418b53
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x418a94
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x418ac7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.005107b5
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d755
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x418b53
cmp eax, 1
jle 0x418b26
cmp eax, 3
jne 0x418b53
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.005107b5
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d755
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x418b43
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00510f17
add esp, 0x10
cmp edi, eax
jne 0x418b53
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x418a57
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d755
mov esp, ebp
pop ebp
ret 4