joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440f50
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 4]
mov dword [ebx + 0xc], eax
mov eax, dword [edi]
test eax, eax
je 0x44101e
cmp eax, 0xffffffff
je 0x44101e
mov esi, dword [0x592160]
push 0
push 0
push dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp dword [esi], eax
je 0x440fa9
push str.Startup__:_Associate_Device_failed_for_pre_created_socket.
call fcn.00442a10
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x59217c
call esi
mov eax, dword [edi]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push dword [esp + 0x10]
mov dword [esp + 0x18], ebx
push eax
push ecx
lea eax, [esp + 0x24]
push eax
call fcn.00444bf0
push 0x59217c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, ebx
call fcn.004420f0
test al, al
jne 0x4410b8
push str.Startup__:_Register_Receive_failed.
call fcn.00442a10
add esp, 4
push 0x59217c
call esi
push edi
call fcn.00442c10
push 0x59217c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x441055
push str.Startup__:_Socket_Creation_Failure.
call fcn.00442a10
add esp, 4
mov dword [edi], 0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [0x592160]
push 0
push 0
push dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp dword [esi], eax
je 0x441084
push str.Startup__:_Associate_Device_failed.
call fcn.00442a10
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x59217c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push dword [esp + 0x10]
mov dword [esp + 0x18], ebx
push eax
push ecx
lea eax, [esp + 0x24]
push eax
call fcn.00444bf0
push 0x59217c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0xc]
mov ecx, 5
test eax, eax
pop edi
cmove eax, ecx
mov dword [ebx + 0x10], eax
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x441120
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x57bbb4]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [esp + 0x18], ecx
cmp dword [eax + 0x14], 0x10
push edi
jb 0x441148
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x44117a
push str.Connect__:_gethostbyname___failed.
call fcn.00442a10
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c90dc
mov esp, ebp
pop ebp
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
mov dword [esp + 0x10], ebx
nop word [eax + eax]
push 0x58e6d0
xor bh, bh
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x58e6d0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x58e6bc]
cmp eax, dword [0x58e6c0]
push 0x58e6d0
sete bl
call edi
test bl, bl
jne 0x4411e9
mov ecx, dword [0x58e6c0]
mov bh, 1
mov eax, dword [0x58e6b8]
mov eax, dword [eax + ecx*4]
inc ecx
cmp ecx, dword [0x58e6c8]
mov dword [esp + 0x10], eax
cmovge ecx, dword [0x58e6c4]
mov dword [0x58e6c0], ecx
push 0x58e6d0
call edi
test bh, bh
jne 0x441227
cmp esi, 0xa
jg 0x441204
push 0x32
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x441190
push str.Connect__:_try_count_exceeding.
call fcn.00442a10
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c90dc
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
push 0x10
push ebx
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x44126a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Connect__:_WSAEventSelect___failed:_error_code:__d
call fcn.00442a10
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c90dc
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x14]
mov ecx, 2
push dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 8], eax
mov word [esp + 0x28], cx
mov dword [esp + 0x2c], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x592194
mov word [esp + 0x2a], ax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
push dword [esp + 0x14]
mov dword [esp + 0x1c], esi
push eax
push ecx
lea eax, [esp + 0x28]
push eax
call fcn.00444d70
push 0x592194
call edi
push 0x10
lea eax, [esp + 0x28]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x441308
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x441308
push eax
push str.Connect__:_connect___failed:_error_code:__d
call fcn.00442a10
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c90dc
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x34]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c90dc
mov esp, ebp
pop ebp
ret 8
Function at 0x441d30
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x2c
mov eax, dword [0x57bbb4]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
push 0
push 0
mov eax, ecx
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
push ecx
push 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], 0xb5367df1
push ecx
push 0x10
lea ecx, [esp + 0x3c]
mov dword [esp + 0x40], 0x11cfcbac
push ecx
push 0xc8000006
push dword [eax + 4]
mov dword [esp + 0x50], 0x8000ca95
mov dword [esp + 0x54], 0x92a1485f
mov dword [esp + 0x38], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
jne 0x441dda
push str.Failed_to_create_socket_in_IOCP_setup.
call fcn.00442a10
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c90dc
add esp, 0x2c
ret
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [eax + eax]
push 0x58e670
xor bh, bh
call ebp
push 0x58e670
call ebp
mov eax, dword [0x58e65c]
cmp eax, dword [0x58e660]
push 0x58e670
sete bl
call esi
test bl, bl
jne 0x441e3d
mov ecx, dword [0x58e660]
mov bh, 1
mov eax, dword [0x58e658]
mov edi, dword [eax + ecx*4]
inc ecx
cmp ecx, dword [0x58e668]
cmovge ecx, dword [0x58e664]
mov dword [0x58e660], ecx
push 0x58e670
call esi
test bh, bh
jne 0x441e54
mov ecx, 0x3e8
call fcn.00442510
jmp 0x441df0
push dword [edi + 0x20]
call fcn.004c93fc
mov eax, dword [esp + 0x1c]
add esp, 4
mov ebx, dword [esp + 0x20]
mov dword [edi + 0x28], 0
mov dword [edi + 0x18], 3
mov dword [edi + 0x14], eax
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov eax, dword [eax + 4]
push 0x592164
mov dword [edi + 0x28], eax
call ebp
push edi
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
push 0x20
push 0x20
push 0
push 0x592120
push ebx
push dword [eax + 4]
call dword [esp + 0x3c]
test eax, eax
jne 0x441f01
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x441f01
push str.AcceptEx___Failed_and_IO_aint_pending.
call fcn.00442a10
add esp, 4
mov ecx, edi
call fcn.00440d00
push edi
call fcn.004442c0
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x592164
call esi
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c90dc
add esp, 0x2c
ret
push 0x592164
call esi
mov ecx, dword [esp + 0x34]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c90dc
add esp, 0x2c
ret
Function at 0x441f20
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
push esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0
call fcn.004c943f
push esi
push dword [esp + 0x28]
mov dword [esp + 0x24], eax
push eax
mov dword [esp + 0x24], esi
call fcn.004e7f40
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebp, ebp
push ebx
push 0x58e670
xor bh, bh
call edi
push 0x58e670
call edi
mov eax, dword [0x58e65c]
cmp eax, dword [0x58e660]
push 0x58e670
sete bl
call esi
test bl, bl
jne 0x441fae
mov ecx, dword [0x58e660]
mov bh, 1
mov eax, dword [0x58e658]
mov ebp, dword [eax + ecx*4]
inc ecx
cmp ecx, dword [0x58e668]
cmovge ecx, dword [0x58e664]
mov dword [0x58e660], ecx
push 0x58e670
call esi
test bh, bh
jne 0x441fc5
mov ecx, 0x3e8
call fcn.00442510
jmp 0x441f61
push dword [ebp + 0x20]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
call fcn.004c93fc
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ebp + 0x18], 1
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x1c], 0xffffffff
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x28], 0
pop ebx
test ecx, ecx
je 0x442005
mov eax, dword [ecx + 4]
mov dword [ebp + 0x28], eax
push 0
push ebp
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x28]
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x442077
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x442077
push dword [ebp + 0x20]
call fcn.004c93fc
add esp, 4
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0
push ebp
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], 0
call fcn.004442c0
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x10
ret 8
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x10
ret 8
Function at 0x4420f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
nop dword [eax]
push 0x58e670
xor bh, bh
call ebp
push 0x58e670
call ebp
mov eax, dword [0x58e65c]
cmp eax, dword [0x58e660]
push 0x58e670
sete bl
call edi
test bl, bl
jne 0x44217d
mov ecx, dword [0x58e660]
mov bh, 1
mov eax, dword [0x58e658]
mov esi, dword [eax + ecx*4]
inc ecx
cmp ecx, dword [0x58e668]
cmovge ecx, dword [0x58e664]
mov dword [0x58e660], ecx
push 0x58e670
call edi
test bh, bh
jne 0x442194
mov ecx, 0x3e8
call fcn.00442510
jmp 0x442130
push dword [esi + 0x20]
call fcn.004c93fc
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x18], 2
mov dword [esi + 0x14], ecx
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
test ecx, ecx
je 0x4421d3
mov eax, dword [ecx + 4]
mov dword [esi + 0x28], eax
push 0
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push 1
lea eax, [esp + 0x34]
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x442251
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x442251
push eax
push str.RegisterRecv__:_registration_failed:_error_code:__d
call fcn.00442a10
push dword [esi + 0x20]
call fcn.004c93fc
add esp, 0xc
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
push esi
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
call fcn.004442c0
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1c
ret
Function at 0x442260
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x28], 0
jg 0x4423ff
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
sub eax, 2
je 0x442305
sub eax, 1
je 0x4422ba
sub eax, 1
jne 0x4423ff
mov ecx, dword [esi + 0x10]
push dword [edi + 0x1c]
push dword [esi + 4]
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
jne 0x4423f8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esi + 0x10]
push 0
push dword [edi + 0x1c]
mov eax, dword [ecx]
push dword [esi + 4]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x4422d9
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, esi
call fcn.00441d30
test al, al
jne 0x4423ff
push str.HandleGoodIoCompletions__:_setup_new_accept_failed
call fcn.00442a10
mov eax, dword [esi]
add esp, 4
mov ecx, esi
call dword [eax + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp + 0x10]
push 0
push 0x1000
push ebx
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
je 0x4423e4
mov ecx, dword [esi + 0x10]
test edi, edi
je 0x4423cd
test ecx, ecx
jne 0x44233a
push str.ProcessRecv__:_socket_handler_invalid.
jmp 0x4423a9
mov ecx, dword [esi + 0x20]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jge 0x4423a4
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push ebx
push eax
call fcn.004e7f40
add dword [esi + 0x20], edi
add esp, 0xc
mov ecx, dword [esi + 0x10]
push 0
push dword [esi + 0x20]
mov eax, dword [ecx]
push dword [esi + 0x14]
push dword [esi + 4]
call dword [eax + 8]
mov edx, dword [esi + 0x20]
mov ebx, eax
cmp ebx, edx
jle 0x442380
mov ebx, dword [ebp + 0x10]
mov dword [esi + 0x20], 0
jmp 0x4423b1
test ebx, ebx
jle 0x44239a
mov ecx, dword [esi + 0x14]
sub edx, ebx
push edx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.004e7f40
mov edx, dword [esi + 0x20]
add esp, 0xc
sub edx, ebx
mov ebx, dword [ebp + 0x10]
mov dword [esi + 0x20], edx
jmp 0x4423b1
push str.ProcessRecv__:_AddData___failed_to_add.
call fcn.00442a10
add esp, 4
cmp edi, 0x1000
je 0x442308
mov ecx, esi
call fcn.004420f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test ecx, ecx
je 0x4423ff
mov eax, dword [ecx]
push 0
push dword [esi + 4]
call dword [eax + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.HandleGoodIoCompletions__:_recv_failed:_error_code:__d
call fcn.00442a10
add esp, 8
mov ecx, esi
call fcn.004420f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x442a10
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2008
call fcn.004ca000
mov eax, dword [0x57bbb4]
xor eax, esp
mov dword [esp + 0x2004], eax
push dword [esp + 0x200c]
lea eax, [esp + 4]
push 0x55b940
push eax
call fcn.00444650
add esp, 0xc
lea eax, [esp + 0x2010]
push eax
push 0
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x100c]
push 0x1000
push eax
call fcn.0043c920
add esp, 0x14
lea eax, [esp + 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x2004]
xor ecx, esp
call fcn.004c90dc
add esp, 0x2008
ret
Function at 0x44a110
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 0x44a13b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044ab40
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 0x44a15d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x44a15f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x44a1e3
jg 0x44a174
test esi, esi
je 0x44a1e3
test ecx, ecx
jl 0x44a1bd
jg 0x44a17e
test eax, eax
je 0x44a1bd
cmp edi, ecx
jg 0x44a192
jl 0x44a188
cmp esi, eax
jae 0x44a192
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.004e7f40
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 0x44a1c0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x44a1e3
jg 0x44a1ca
test esi, esi
je 0x44a1e3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x44a1e3
push eax
push esi
push 1
push edx
call fcn.005120ad
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 0x44a200
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 0x44a22b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044ac20
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 0x44a24d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x44a24f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x44a2ee
jg 0x44a26c
test esi, esi
je 0x44a2ee
test ecx, ecx
jl 0x44a2b9
jg 0x44a276
test eax, eax
je 0x44a2b9
cmp ebx, ecx
jg 0x44a28a
jl 0x44a280
cmp esi, eax
jae 0x44a28a
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.004e7f40
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 0x44a2c0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x44a2ee
jg 0x44a2ca
test esi, esi
je 0x44a2ee
cmp dword [edi + 0x4c], 0
je 0x44a2ee
mov ecx, edi
call fcn.0044b7c0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.00512702
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 0x44a6f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x57bbb4]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x44a720
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004c90dc
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x44a75d
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x44a75d
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 [esp + 0x2c]
xor ecx, esp
call fcn.004c90dc
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
je 0x44a830
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x44a785
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 edx, dword [esi + 0x38]
test edx, edx
jne 0x44a7b9
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00511869
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004c90dc
add esp, 0x30
ret 4
mov cl, bl
mov byte [esp + 0xf], cl
mov edi, dword [edx]
cmp edi, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x44a847
lea eax, [esp + 0xf]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x4c]
call fcn.00449280
or ecx, 0xffffffff
test al, al
pop edi
cmovne ecx, ebx
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004c90dc
add esp, 0x30
ret 4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
sub edi, eax
je 0x44a81e
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005120ad
add esp, 0x10
cmp edi, eax
jne 0x44a830
lea eax, [esp + 0xf]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
jne 0x44a747
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c90dc
add esp, 0x30
ret 4
lea eax, [esp + 0x10]
mov ecx, edx
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x23]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edi + 0x1c]
test eax, eax
js 0x44a830
cmp eax, 1
jle 0x44a7ff
cmp eax, 3
jne 0x44a830
mov cl, byte [esp + 0xf]
jmp 0x44a7d9
Function at 0x44b820
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x57bbb4]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x44b8be
cmp byte [esi + 0x3d], 0
je 0x44b8be
push 0xffffffffffffffff
call fcn.0044a6f0
cmp eax, 0xffffffff
je 0x44b874
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
cmp edx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x44b8d1
lea edi, [esp + 0xc]
xor eax, eax
mov dword [esp + 8], edi
sub eax, 0
je 0x44b887
sub eax, 1
je 0x44b88b
sub eax, 2
je 0x44b8be
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c90dc
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
lea eax, [esp + 0xc]
sub edi, eax
je 0x44b8a6
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005120ad
add esp, 0x10
cmp edi, eax
jne 0x44b874
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c90dc
add esp, 0x28
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.004c90dc
add esp, 0x28
ret
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
mov edi, dword [esp + 8]
jmp 0x44b865