joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432be0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
je 0x432cd7
cmp byte [ebp + 0xc], bl
je 0x432c44
mov ebx, dword [ebp + 8]
test byte [ebx], 8
je 0x432c44
xor eax, eax
mov dword [ebp - 4], eax
call fcn.004827a0
or byte [ebx], 8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea edx, [ebp - 4]
push edx
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.004827a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x432c44
call fcn.004827a0
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.004827a0
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
test ebx, ebx
je 0x432cd7
call fcn.004827a0
cmp dword [esi + 4], eax
jne 0x432c81
cmp dword [esi], 0x2733
je 0x432c93
call fcn.004827a0
cmp dword [esi + 4], eax
jne 0x432cd3
cmp dword [esi], 0x4d5
jne 0x432cd3
lea ecx, [ebp - 4]
push ecx
push 0x8004667e
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 8]
and byte [eax], 0xfc
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.004827a0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
jne 0x432ce3
xor edi, edi
call fcn.004827a0
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432f70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0
push 1
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [esi + 4], edi
test edi, edi
jne 0x432fc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov dword [esp + 0x10], ebx
call fcn.004827a0
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x432fc7
lea eax, [esp + 0x10]
push eax
mov ecx, str.thread.entry_event
call fcn.004019f0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], eax
mov dword [esi + 8], eax
cmp dword [ebx + 8], 0
jne 0x433019
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov dword [esp + 0x10], ebx
call fcn.004827a0
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x433016
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.thread.exit_event
call fcn.004019f0
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0xc]
push edx
push 0
push esi
push 0x432ef0
push eax
push 0
mov dword [esp + 0x24], 0
call fcn.0046685b
add esp, 0x18
mov dword [ebx + 4], eax
test eax, eax
jne 0x433094
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov dword [esp + 0x10], eax
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
test edi, edi
je 0x433062
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x433070
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x10], esi
call fcn.004827a0
mov dword [esp + 0x14], eax
test esi, esi
je 0x433094
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.thread
call fcn.004019f0
test edi, edi
je 0x4330a8
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x435350
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e498
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x4ad658]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x4353b5
push 1
add esi, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor esi, esi
call fcn.004827a0
mov dword [edi + 4], eax
mov dword [edi], esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4b6138]
push ecx
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x4b6138]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, edx
push eax
push ecx
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00435120
test eax, eax
je 0x435402
lea ecx, [ecx]
cmp ebx, 0xffffffff
je 0x4353f6
inc ebx
push edi
mov ecx, esi
call fcn.00435120
test eax, eax
jne 0x4353f0
mov edx, dword [ebp - 0x10]
mov eax, dword [0x4b6138]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x435670
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
push 0
lea edx, [ebp - 8]
push edx
push 2
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x4b60e4
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
test eax, eax
je 0x4356bd
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
push edx
push method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_56
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret
Function at 0x4359b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48cb5f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4ad658]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_service.0
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
lea eax, [esi + 0x30]
mov byte [ebp - 4], 3
push eax
mov dword [esi + 0x2c], edi
call fcn.004358d0
mov ebx, eax
call fcn.004827a0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
cmp ebx, edi
je 0x435a36
lea ecx, [ebp - 0x18]
push ecx
mov ecx, str.mutex
call fcn.004019f0
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
or ecx, 0xffffffff
mov byte [ebp - 4], 5
mov dword [ebp + 0xc], ecx
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x10], ecx
ja 0x435a54
lea eax, [ebp + 0x10]
mov edx, dword [eax]
push edx
push edi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
cmp eax, edi
jne 0x435a8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x18], ebx
call fcn.004827a0
mov dword [ebp - 0x14], eax
cmp ebx, edi
je 0x435a8c
lea eax, [ebp - 0x18]
push eax
mov ecx, str.iocp
call fcn.004019f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x439690
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c812
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4ad658]
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 edi, ecx
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov dword [ebp - 0x224], edi
mov byte [edi], bl
push 0x18e
lea ecx, [ebp - 0x21e]
mov dword [ebp - 4], ebx
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x228], 1
mov word [ebp - 0x220], ax
call fcn.00469070
add esp, 0xc
lea edx, [ebp - 0x220]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x7f
lea eax, [ebp - 0x8f]
push ebx
push eax
mov byte [ebp - 0x90], bl
call fcn.00469070
add esp, 0xc
push 0x80
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x4397b0
lea edx, [ebp - 0x90]
push edx
push 0x4b4bc8
call fcn.004364f0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0043b010
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov ecx, dword [eax + esi + 0xc]
xor edi, edi
test cl, 6
jne 0x43978b
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x43978b
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x4397aa
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], ebx
jne 0x4397a3
or eax, 4
push ebx
push eax
call fcn.00437010
mov edi, dword [ebp - 0x224]
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x4397ea
mov eax, dword [eax + 0xc]
cmp dword [eax], ebx
je 0x4397ea
mov eax, dword [eax]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4397d8
sub ecx, esi
push ecx
push eax
mov ecx, edi
call fcn.00412da0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, edi
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.00464d49
mov esp, ebp
pop ebp
ret
Function at 0x439810
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ba32
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x4ad658]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x130], ebx
push 6
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push str.unknow
mov ecx, esi
mov dword [ebp - 0x134], esi
mov byte [esi], bl
call fcn.00412da0
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x130], 1
mov dword [ebp - 0x12c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x439942
mov eax, dword [ebp - 0x128]
cmp eax, 5
jne 0x4398e5
mov eax, dword [ebp - 0x124]
cmp eax, ebx
jne 0x4398bb
push 7
push str.WIN2000
mov ecx, esi
call fcn.00412da0
jmp 0x439942
cmp eax, 1
jne 0x4398d0
push 5
push str.WINXP
mov ecx, esi
call fcn.00412da0
jmp 0x439942
cmp eax, 2
jne 0x439942
push 7
push str.WIN2003
mov ecx, esi
call fcn.00412da0
jmp 0x439942
cmp eax, 6
jne 0x439942
mov eax, dword [ebp - 0x124]
cmp eax, ebx
jne 0x43990a
cmp byte [ebp - 0x12], 1
mov ecx, esi
jne 0x439903
push str.WINVISTA
jmp 0x43993d
push str.WIN2008
jmp 0x43993d
cmp eax, 1
jne 0x439924
mov ecx, esi
cmp byte [ebp - 0x12], al
jne 0x43991d
push str.WIN7
jmp 0x43993d
push str.WIN2008R2
jmp 0x43993d
cmp eax, 2
jne 0x439942
cmp byte [ebp - 0x12], 1
mov ecx, esi
jne 0x439938
push str.WIN8
jmp 0x43993d
push str.WIN2012
call fcn.0040bad0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464d49
mov esp, ebp
pop ebp
ret
Function at 0x439a90
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d8ac
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4ad658]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov dword [ebp - 4], ebx
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov dword [esi + 0x4c], eax
mov dword [esi + 0x48], ebx
mov byte [esi + 0x38], bl
mov dword [esi + 0x68], eax
mov dword [esi + 0x64], ebx
mov byte [esi + 0x54], bl
mov dword [esi + 0x84], eax
mov dword [esi + 0x80], ebx
mov byte [esi + 0x70], bl
mov dword [esi + 0xa0], eax
mov dword [esi + 0x9c], ebx
mov byte [esi + 0x8c], bl
mov dword [esi + 0xbc], eax
mov dword [esi + 0xb8], ebx
mov byte [esi + 0xa8], bl
mov dword [esi + 0xd8], eax
mov dword [esi + 0xd4], ebx
mov byte [esi + 0xc4], bl
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe4], ebx
mov byte [ebp - 4], 8
call fcn.00439e30
push 0xffffffffffffffff
push ebx
push 0x4b5e60
lea ecx, [esi + 0xa8]
call fcn.00412a40
push 0xffffffffffffffff
push ebx
push 0x4b5e44
lea ecx, [esi + 0x8c]
call fcn.00412a40
push 0xffffffffffffffff
push ebx
push 0x4b5df0
lea ecx, [esi + 0x38]
call fcn.00412a40
push 0xffffffffffffffff
push ebx
push 0x4b5e0c
lea ecx, [esi + 0x54]
call fcn.00412a40
push 0xffffffffffffffff
push ebx
push 0x4b5e28
lea ecx, [esi + 0x70]
call fcn.00412a40
push 0xffffffffffffffff
push ebx
push 0x4b5dd4
lea ecx, [esi + 0x1c]
call fcn.00412a40
push 0xffffffffffffffff
push ebx
push 0x4b5db8
mov ecx, esi
call fcn.00412a40
mov byte [esi + 0xe8], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43aa10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ab00
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ad658]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.00465047
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [ecx], 0
call fcn.00412a40
mov dword [esi], vtable.boost::lock_error.0
mov dword [ebp - 4], 1
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x43aaa2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x43ae70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b968
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4ad658]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.00465047
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push ebx
add edi, 0x14
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.00412a40
mov dword [esi + 0x30], vtable.boost::exception.0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43e2c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488308
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4ad658]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.00464e82
add esp, 4
cmp eax, ebx
je 0x43e3a4
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.00464e82
add esp, 4
cmp eax, ebx
je 0x43e380
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.00464f9b
push 0x4a0c2c
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.004695d4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.00464f9b
push 0x4a0c2c
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.004695d4
int3
Function at 0x4473a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b5c7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ad658]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x49abb8
mov dword [edi + 0x10], 0x49a270
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 0x18]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.00423c60
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.004326c0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov edx, dword [0x4b60fc]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x448420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489968
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4ad658]
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 edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x448541
cmp byte [edi + 0x49], bl
je 0x448541
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x448535
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x448495
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x4484ad
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4484d6
dec eax
je 0x4484da
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x448530
jmp 0x44853c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4484ea
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x448513
cmp ebx, 0x10
jae 0x4484f9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004659a3
add esp, 0x10
cmp esi, eax
jne 0x44852d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x448539
test esi, esi
jne 0x4484a1
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004142b0
jmp 0x44849b
lea ecx, [ebp - 0x2c]
call fcn.00412f00
xor al, al
jmp 0x448543
lea ecx, [ebp - 0x2c]
call fcn.00412f00
mov al, 1
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.00464d49
mov esp, ebp
pop ebp
ret