joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e7d0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x74]
test eax, eax
je 0x40e7e6
mov al, 1
pop esi
add esp, 8
ret 4
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
test edi, edi
je 0x40e87b
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
push edi
push esi
call dword [edx + 4]
mov ebx, eax
test ebx, ebx
je 0x40e86b
mov eax, dword [edi + 4]
mov edi, dword [edi + 8]
mov ebp, dword [esi + 0x80]
push 0
sub edi, eax
mov dword [esp + 0x18], eax
lea eax, [ebx + 4]
push eax
mov eax, dword [esi + 0x28]
push 0
lea ecx, [esp + 0x28]
push ecx
push 1
lea edx, [esp + 0x24]
push edx
add ebp, edi
push eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x2c], edi
mov dword [esi + 0x80], ebp
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x40e8df
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40e8df
mov edi, str.SP:0x_p_DP:0x_p_IP:_15s_SOCKET:0x_p__InternalCloseSocket___WSASend_Error___ErrorCode:_d
jmp 0x40e880
mov ecx, dword [edi + 0x2c]
mov edx, dword [ecx]
push edi
call dword [edx + 8]
mov edi, str.SP:0x_p_DP:0x_p_IP:_15s_SOCKET:0x_p__InternalCloseSocket___WSASend_Error___Cannot_Create_SendOverlapped___ErrorCode:_d
jmp 0x40e880
mov edi, str.SP:0x_p_DP:0x_p_IP:_15s_SOCKET:0x_p__InternalCloseSocket___WSASend_Error___lpBuffer_is_0___ErrorCode:_d
test edi, edi
je 0x40e8df
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ebp, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
push eax
push ecx
push ebp
push edx
push esi
push edi
push 0x22e
push 0x4d63f8
push str.CSession::InternalSend
push 3
push 0x50f190
call fcn.00408780
add esp, 0x2c
mov ecx, esi
call fcn.0040e470
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
push ebx
call dword [edx + 0x10]
pop edi
pop ebp
pop ebx
xor al, al
pop esi
add esp, 8
ret 4
mov eax, dword [esi + 0x74]
pop edi
pop ebp
inc eax
mov dword [esi + 0x74], eax
pop ebx
mov al, 1
pop esi
add esp, 8
ret 4
Function at 0x40e900
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x74]
test eax, eax
je 0x40e94d
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
push ecx
push eax
push edx
push esi
push str.SP:0x_p_DP:0x_p_IP:_15s_SOCKET:0x_p__SendTo_pending_now
push 0x241
push 0x4d63f8
push str.CSession::InternalSendTo
push 3
push 0x50f190
call fcn.00408780
add esp, 0x28
mov al, 1
pop esi
add esp, 8
ret 4
push ebx
push edi
mov edi, dword [esp + 0x18]
xor ebx, ebx
test edi, edi
je 0x40e9e9
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
push edi
push esi
call dword [edx + 4]
mov ebx, eax
test ebx, ebx
je 0x40e9d9
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
sub eax, ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x80]
push 0
add ecx, eax
mov dword [esp + 0x10], eax
lea eax, [edi + 0x18]
mov dword [esi + 0x80], ecx
mov ecx, dword [eax + 0x10]
lea edx, [ebx + 4]
push edx
mov edx, dword [esi + 0x28]
push ecx
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push 1
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x3c], 0
call dword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x40ea4e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40ea4e
mov edi, str.SP:0x_p_DP:0x_p_IP:_15s_SOCKET:0x_p__InternalCloseSocket___WSASendTo_Error___ErrorCode:_d
jmp 0x40e9ee
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx]
push edi
call dword [eax + 8]
mov edi, str.SP:0x_p_DP:0x_p_IP:_15s_SOCKET:0x_p__InternalCloseSocket___WSASendTo_Error___Cannot_Create_SendOverlapped___ErrorCode:_d
jmp 0x40e9ee
mov edi, str.SP:0x_p_DP:0x_p_IP:_15s_SOCKET:0x_p__InternalCloseSocket___WSASendTo_Error___lpBuffer_is_0___ErrorCode:_d
test edi, edi
je 0x40ea4e
mov ecx, dword [esi + 0x30]
push ebp
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ebp, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esi + 0x28]
push eax
mov eax, dword [esi + 0x24]
push edx
push ebp
push eax
push esi
push edi
push 0x274
push 0x4d63f8
push str.CSession::InternalSendTo
push 3
push 0x50f190
call fcn.00408780
add esp, 0x2c
mov ecx, esi
call fcn.0040e470
mov ecx, dword [esi + 0x20]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx]
push ebx
call dword [edx + 0x10]
pop ebp
pop edi
pop ebx
xor al, al
pop esi
add esp, 8
ret 4
mov eax, dword [esi + 0x74]
pop edi
inc eax
mov dword [esi + 0x74], eax
pop ebx
mov al, 1
pop esi
add esp, 8
ret 4
Function at 0x40f680
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x38
mov eax, dword [0x50db60]
push ebx
push ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
push esi
xor eax, eax
push edi
mov edi, ecx
xor ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], ecx
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ecx
je 0x40f76b
mov eax, dword [esp + 0x50]
push 4
lea edx, [edi + 0x24]
push edx
push 0x700b
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x40f769
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x54]
push eax
mov eax, dword [edx + 4]
lea ecx, [esp + 0x20]
push ecx
push 0x20
push 0x20
push ebx
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x30], ebx
call sub.MSWSOCK.dll_GetAcceptExSockaddrs
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40f739
mov ecx, dword [esp + 0x4c]
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.0040dd50
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40f750
mov edx, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.0040dd50
mov ecx, dword [edi + 0x58]
cmp ecx, ebx
je 0x40f76b
mov eax, dword [ecx]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x34]
push edx
call dword [eax]
test al, al
jne 0x40f76b
xor ebp, ebp
xor esi, esi
cmp ebp, ebx
je 0x40f806
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x44]
push eax
call fcn.0040fd20
mov esi, eax
cmp esi, ebx
je 0x40f806
cmp dword [esi + 0x54], ebx
je 0x40f806
cmp dword [esi + 0x24], ebx
je 0x40f806
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov ebx, dword [esp + 0x50]
push ecx
push esi
push edx
push ebx
call dword [sym.imp.kernel32.dll_CreateIoCompletionPort]
test eax, eax
je 0x40f80a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov dword [esi + 0x28], ebx
call fcn.0040e390
mov edx, dword [esp + 0x20]
mov ebx, dword [esi + 0x24]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push ebx
push esi
push str.SP:0x_p_DP:0x_p_IP:_15s__Accept_Session_Complete.
push 0x10d
push 0x4d6b70
push str.CListener::ProcessAccept
push 3
push 0x50f190
call fcn.00408780
add esp, 0x24
mov ecx, esi
call fcn.0040e6a0
mov ecx, dword [edi + 0x44]
push esi
call fcn.0040fe50
jmp 0x40f81a
mov ebx, dword [esp + 0x50]
mov ecx, dword [edi + 0x44]
push esi
call fcn.0040fbe0
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
lea esi, [edi + 4]
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edx, dword [edi + 0x4c]
mov ecx, dword [edi + 0x54]
dec edx
inc ecx
push esi
mov dword [edi + 0x4c], edx
mov dword [edi + 0x54], ecx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ecx, edi
call fcn.0040f560
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
call fcn.004bff5b
add esp, 0x38
ret 0x10
Function at 0x414280
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x42c
mov eax, dword [0x50db60]
push ebx
push esi
mov dword [esp + 0x430], eax
mov esi, ecx
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [esp + 0x14], eax
push 0x103
lea eax, [esp + 0x24]
xor ebx, ebx
push eax
push ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea ecx, [esi + 0x44]
push ecx
push 0x4ff438
lea edx, [esp + 0x12c]
push 0x103
push edx
mov byte [esp + 0x133], bl
call fcn.004be7bb
add esp, 0x10
mov byte [esp + 0x227], bl
call dword [sym.imp.kernel32.dll_GetCommandLineA]
push eax
push 0x4ff438
lea eax, [esp + 0x230]
push 0x207
push eax
call fcn.004be7bb
mov ecx, dword [esi + 0x14]
add esp, 0x10
push 0x428
lea edx, [esp + 0xc]
mov dword [esp + 0x1c], ecx
push edx
mov ecx, esi
mov byte [esp + 0x437], bl
mov byte [esp + 0x10], 0xff
mov byte [esp + 0x11], 0x30
mov word [esp + 0x12], 0x428
mov dword [esp + 0x14], ebx
mov word [esp + 0x1a], bx
mov word [esp + 0x18], bx
call fcn.00413e00
mov ecx, dword [esp + 0x430]
pop esi
pop ebx
call fcn.004bff5b
add esp, 0x42c
ret

Function at 0x4166a0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4cf6fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00415e70
xor ebx, ebx
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
lea edi, [esi + 0xc]
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.00415ef0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x18]
mov ecx, edi
mov byte [esp + 0x18], 1
call fcn.00415ef0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x24]
mov ecx, edi
mov byte [esp + 0x18], 2
call fcn.00415ef0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x10]
mov dword [esi + 0x30], eax
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x34], ecx
mov edx, dword [esi + 0x28]
mov dword [esi + 0x38], edx
xor ecx, ecx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov word [esi + 0x68], bx
mov byte [esi + 0x6a], bl
mov byte [esi + 0x6b], bl
mov dword [esi + 0x6c], ebx
mov byte [esi + 0x70], bl
mov byte [esi + 0x71], bl
lea eax, [esi + 0x3c]
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], ecx
mov dword [edx + 0x20], ecx
mov ecx, esi
mov dword [eax], esi
call fcn.00415df0
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4166b7
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4cf6fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00415e70
xor ebx, ebx
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
lea edi, [esi + 0xc]
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.00415ef0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x18]
mov ecx, edi
mov byte [esp + 0x18], 1
call fcn.00415ef0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x24]
mov ecx, edi
mov byte [esp + 0x18], 2
call fcn.00415ef0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x10]
mov dword [esi + 0x30], eax
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x34], ecx
mov edx, dword [esi + 0x28]
mov dword [esi + 0x38], edx
xor ecx, ecx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov word [esi + 0x68], bx
mov byte [esi + 0x6a], bl
mov byte [esi + 0x6b], bl
mov dword [esi + 0x6c], ebx
mov byte [esi + 0x70], bl
mov byte [esi + 0x71], bl
lea eax, [esi + 0x3c]
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], ecx
mov dword [edx + 0x20], ecx
mov ecx, esi
mov dword [eax], esi
call fcn.00415df0
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x421540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cf933
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esi], 0x4daba8
xor ebx, ebx
push edi
lea ecx, [esi + 0x10]
mov dword [esp + 0xc], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00457f60
mov eax, dword [esp + 0x20]
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], 0xc
lea ecx, [esi + 0x30]
mov dword [esp + 0x18], ebx
mov dword [esi], 0x4dabd0
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0045b530
lea ecx, [esi + 0x78]
mov byte [esp + 0x18], 1
call fcn.00457f80
lea ecx, [esi + 0x88]
call fcn.004583f0
lea edi, [esi + 0xd8]
mov ecx, edi
call fcn.004844b0
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x190], ebx
mov word [esi + 0x194], bx
mov byte [esi + 0x196], bl
mov byte [esi + 0x197], bl
mov word [esi + 0x198], bx
mov word [esi + 0x19a], bx
mov dword [esi + 0x19c], ebx
mov byte [esi + 0x1a0], bl
mov byte [esi + 0x1a1], bl
mov dword [esi + 0x48], esi
mov dword [edi], esi
mov dword [edi + 0x58], esi
mov dword [edi + 0xb0], esi
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x421660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cf961
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x4dabd0
lea edi, [esi + 0x30]
mov ecx, edi
mov dword [esp + 0x14], 2
call fcn.0045b510
lea ecx, [esi + 0xd8]
mov byte [esp + 0x14], 1
call fcn.004844e0
mov ecx, edi
mov byte [esp + 0x14], 0
call fcn.0045ab70
mov ecx, dword [esp + 0xc]
mov dword [esi], 0x4daba8
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4217a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4cf978
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
fld qword [0x4d5418]
push esi
push edi
sub esp, 8
xor edi, edi
fstp qword [esp]
push str.CAggresiveCreature::MoveTo
mov esi, ecx
mov dword [esp + 0x30], str.CAggresiveCreature::MoveTo
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.004098b0
mov ecx, eax
call fcn.00409660
lea eax, [esp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
rdtsc
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov al, byte [esi + 0x1a0]
test al, al
mov dword [esp + 0x34], edi
jne 0x4219be
test dword [esi + 0x19c], 0x3000000
jne 0x4219be
call fcn.0043d6d0
mov cl, byte [eax + 0x125]
test cl, cl
je 0x42189b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
test eax, eax
je 0x42189b
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
lea ecx, [esi + 4]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov edx, dword [edx + 8]
mov al, byte [esp + 0x40]
mov dword [ecx + 8], edx
lea ecx, [esp + 0x14]
mov byte [esi + 0x1a1], al
mov dword [esp + 0x34], 0xffffffff
call fcn.00406970
pop edi
mov eax, 2
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 8
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
lea edi, [esi + 4]
mov edx, edi
mov dword [edx], eax
mov eax, dword [ecx + 4]
push ebx
mov ebx, dword [esi + 0x190]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
push ebp
mov dword [edx + 8], ecx
mov dl, byte [esp + 0x48]
lea ebp, [esi + 0x190]
push edi
mov ecx, ebp
mov byte [esi + 0x1a1], dl
call fcn.00421440
test al, al
jne 0x421912
fld dword [esi + 0xc]
mov eax, dword [esi + 0x20]
sub esp, 0x18
fstp qword [esp + 0x10]
fld dword [esi + 8]
fstp qword [esp + 8]
fld dword [edi]
fstp qword [esp]
push eax
push 0x4dacb8
push 0x6a
push 0x4dac38
push str.CAggresiveCreature::MoveTo
push 5
push 0x50ef58
call fcn.00408780
add esp, 0x34
cmp dword [ebp], ebx
jne 0x421942
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00406970
pop ebp
pop ebx
pop edi
mov eax, 2
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 8
test ebx, ebx
je 0x421953
mov ecx, dword [esi + 0x20]
push 0
push ecx
mov ecx, ebx
call fcn.00416030
mov ebp, dword [ebp]
test ebp, ebp
jne 0x421985
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00406970
pop ebp
pop ebx
pop edi
mov eax, 3
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 8
mov edx, dword [esi + 0x20]
push 0
push esi
push edx
mov ecx, ebp
call fcn.00416b70
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00406970
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 0xffffffff
call fcn.00406970
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, 3
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 8
Function at 0x433b80
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4d011b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
mov eax, 2
push ebp
push esi
xor esi, esi
mov ebx, 1
mov ecx, 0x66
mov edx, 5
push edi
mov edi, 3
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], eax
mov ebp, 0x69
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x1c], 4
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 0x64
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], 0x6a
mov dword [esp + 0x50], 0x67
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], 0x6b
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], 0x68
mov dword [esp + 0x78], ebp
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
lea ebx, [esp + 0x1c]
jmp 0x433c70
push 0x10
call fcn.004bd944
add esp, 4
mov dword [esp + 0x90], eax
cmp eax, esi
mov dword [esp + 0x9c], esi
je 0x433c9e
mov ecx, dword [ebx]
mov edx, dword [ebx - 4]
push ecx
push edx
mov ecx, eax
call fcn.00490f20
mov ebp, eax
jmp 0x433ca0
xor ebp, ebp
cmp ebp, esi
mov dword [esp + 0x9c], 0xffffffff
je 0x433d0d
mov eax, dword [ebx]
shl eax, 1
cmp eax, esi
jle 0x433cdc
mov esi, dword [esp + 0x10]
lea edi, [eax - 1]
shr edi, 1
inc edi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
mov ecx, ebp
call fcn.00490ea0
add esi, 8
dec edi
jne 0x433cc1
mov edi, 3
xor esi, esi
mov ecx, dword [0x523c48]
push ebp
call fcn.00490fc0
test al, al
je 0x433d34
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add ebx, 8
inc eax
add edx, 0x20
cmp eax, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jl 0x433c70
jmp 0x433d67
push 0x4dcfac
push 0xc6
push 0x4dcd70
push str.CCellManager::InitAI
push 5
push 0x50ef58
call fcn.00408780
add esp, 0x18
xor al, al
jmp 0x433d69
push str.State
push 0xd3
push 0x4dcd70
push str.CCellManager::InitAI
push 5
push 0x50ef58
call fcn.00408780
add esp, 0x18
mov ecx, ebp
call fcn.00490e60
push ebp
call fcn.004be8db
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret
Function at 0x43d2e0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x108
mov eax, dword [0x50db60]
push ebx
mov dword [esp + 0x108], eax
mov bl, 1
call dword [sym.imp.kernel32.dll_GetCommandLineA]
push eax
push 0x4ff438
lea eax, [esp + 0xc]
push 0x103
push eax
call fcn.004be7bb
add esp, 0x10
test eax, eax
jge 0x43d350
push str.CommandLine_Parse_failed___Zone
push 0x2a2
push 0x4ddcb8
push str.CServerSetup::GetZoneFromCmdLine
push 5
push 0x50ef58
call fcn.00408780
add esp, 0x18
mov al, bl
pop ebx
mov ecx, dword [esp + 0x104]
call fcn.004bff5b
add esp, 0x108
ret
lea ecx, [esp + 4]
push str.__r_n_t
push ecx
call fcn.004be812
add esp, 8
test eax, eax
je 0x43d33a
push esi
push edi
jmp 0x43d370
mov esi, eax
mov edi, 0x4de344
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x43d387
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x43d39d
push str.__r_n_t
push eax
call fcn.004be812
add esp, 8
test eax, eax
jne 0x43d3c8
push str.__r_n_t
push 0
call fcn.004be812
add esp, 8
test eax, eax
jne 0x43d370
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x104]
call fcn.004bff5b
add esp, 0x108
ret
push eax
call fcn.004be968
mov ecx, dword [esp + 0x114]
add esp, 4
pop edi
pop esi
pop ebx
call fcn.004bff5b
add esp, 0x108
ret

Function at 0x43d3f0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x108
mov eax, dword [0x50db60]
push ebx
mov dword [esp + 0x108], eax
xor bl, bl
call dword [sym.imp.kernel32.dll_GetCommandLineA]
push eax
push 0x4ff438
lea eax, [esp + 0xc]
push 0x103
push eax
call fcn.004be7bb
add esp, 0x10
test eax, eax
jge 0x43d460
push str.CommandLine_Parse_failed___Channel
push 0x2c6
push 0x4ddcb8
push str.CServerSetup::GetChannelFromCmdLine
push 5
push 0x50ef58
call fcn.00408780
add esp, 0x18
mov al, bl
pop ebx
mov ecx, dword [esp + 0x104]
call fcn.004bff5b
add esp, 0x108
ret
lea ecx, [esp + 4]
push str.__r_n_t
push ecx
call fcn.004be812
add esp, 8
test eax, eax
je 0x43d44a
push esi
push edi
jmp 0x43d480
mov esi, eax
mov edi, 0x4de394
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x43d497
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x43d4ad
push str.__r_n_t
push eax
call fcn.004be812
add esp, 8
test eax, eax
jne 0x43d4d8
push str.__r_n_t
push 0
call fcn.004be812
add esp, 8
test eax, eax
jne 0x43d480
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x104]
call fcn.004bff5b
add esp, 0x108
ret
push eax
call fcn.004be968
mov ecx, dword [esp + 0x114]
add esp, 4
pop edi
pop esi
pop ebx
call fcn.004bff5b
add esp, 0x108
ret
Function at 0x441c10
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x21c
mov eax, dword [0x50db60]
push ebp
push esi
push 0
mov dword [esp + 0x224], eax
lea eax, [esp + 0x1c]
push 0x104
push eax
mov esi, ecx
call fcn.00409910
mov byte [esp + 0x127], 0
call fcn.00441bb0
add eax, 0x160
push eax
push 0x4ff438
lea ecx, [esp + 0x130]
push 0x103
push ecx
call fcn.004be7bb
add esp, 0x1c
lea edx, [esp + 8]
push edx
mov byte [esp + 0x223], 0
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov ebp, dword [sym.imp.kernel32.dll_GetFileAttributesA]
lea eax, [esp + 0x18]
push eax
call ebp
cmp eax, 0xffffffff
jne 0x441cb1
push 0
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x441cb1
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x218]
call fcn.004bff5b
add esp, 0x21c
ret
movzx edx, word [esp + 0x14]
movzx eax, word [esp + 0x12]
movzx ecx, word [esp + 0x10]
push edi
xor edi, edi
push edi
push edx
movzx edx, word [esp + 0x1a]
push eax
movzx eax, word [esp + 0x1a]
push ecx
movzx ecx, word [esp + 0x1c]
push edx
push eax
push ecx
lea edx, [esp + 0x13c]
push edx
lea eax, [esp + 0x3c]
push eax
push str._s_sGameLog__04d_02d_02d__02d_02d_02d__04d.log
add esi, 0x24
push 0x104
push esi
call fcn.004be7bb
add esp, 0x30
test eax, eax
jle 0x441d56
push esi
call ebp
cmp eax, 0xffffffff
je 0x441d91
movzx ecx, word [esp + 0x18]
movzx edx, word [esp + 0x16]
movzx eax, word [esp + 0x14]
inc edi
push edi
push ecx
movzx ecx, word [esp + 0x1a]
push edx
movzx edx, word [esp + 0x1a]
push eax
movzx eax, word [esp + 0x1c]
push ecx
push edx
push eax
lea ecx, [esp + 0x13c]
push ecx
lea edx, [esp + 0x3c]
push edx
push str._s_sGameLog__04d_02d_02d__02d_02d_02d__04d.log
push 0x104
push esi
call fcn.004be7bb
add esp, 0x30
test eax, eax
jg 0x441d00
push 0x4def60
push 0xea
push 0x4dedd8
push str.CLogSaveThread::SetLogFileName
push 5
push 0x50ef58
call fcn.00408780
add esp, 0x18
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x218]
call fcn.004bff5b
add esp, 0x21c
ret
mov ecx, dword [esp + 0x224]
pop edi
pop esi
mov al, 1
pop ebp
call fcn.004bff5b
add esp, 0x21c
ret