joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a3ea
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5117e4
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 8
push esi
push edi
mov eax, dword [0x54f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x10
call fcn.00443e65
mov edi, eax
mov dword [ebp - 0x14], edi
mov ecx, dword [ebx + 8]
mov dword [ebp - 4], 0
push 0x10000
mov dword [edi + 0xc], ecx
mov dword [edi + 4], 0
mov dword [edi], 0x10000
call fcn.004441a2
mov esi, dword [ebx + 0xc]
add esp, 8
mov dword [edi + 8], eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 4], 8
mov dword [edi], 0x10000
mov dword [eax], 0x3e9
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
push esi
mov dword [ecx + 4], eax
mov ecx, edi
call fcn.0049abf0
dec esi
cmp esi, 9
ja case.0x49a2e0.5
movzx eax, byte [esi + 0x49a434]
jmp dword [eax*4 + 0x49a420]
mov esi, dword [ebx + 0x10]
sub esp, 0x10
mov eax, esp
mov ecx, edi
movups xmm0, xmmword [esi + 4]
movups xmmword [eax], xmm0
call fcn.0049ac80
push dword [esi + 0x24]
mov ecx, edi
call fcn.0049abf0
movsd xmm1, qword [esi + 0x28]
mov ecx, edi
call fcn.0049ad40
movsd xmm1, qword [esi + 0x30]
mov ecx, edi
call fcn.0049ad40
movsd xmm1, qword [esi + 0x38]
mov ecx, edi
call fcn.0049ad40
movsd xmm1, qword [esi + 0x40]
mov ecx, edi
call fcn.0049ad40
push dword [esi]
mov ecx, edi
call fcn.0049abf0
mov eax, dword [esi + 0x60]
mov ecx, edi
sub eax, dword [esi + 0x5c]
sar eax, 2
push eax
call fcn.0049abf0
mov eax, dword [ebx + 0x10]
xor esi, esi
mov ecx, dword [eax + 0x5c]
mov eax, dword [eax + 0x60]
sub eax, ecx
sar eax, 2
test eax, eax
je case.0x49a2e0.5
nop dword [eax]
push dword [ecx + esi*4]
mov ecx, edi
call fcn.0049abf0
mov eax, dword [ebx + 0x10]
inc esi
mov ecx, dword [eax + 0x5c]
mov eax, dword [eax + 0x60]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x49a370
jmp case.0x49a2e0.5
mov edi, dword [ebx + 0x10]
push ecx
mov esi, esp
mov dword [ebp - 0x18], esi
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00403870
mov ecx, dword [ebp - 0x14]
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.0049ade0
mov eax, dword [edi + 4]
push ecx
sub eax, 0x10
mov esi, esp
push eax
mov dword [ebp - 0x18], esi
call fcn.00403870
mov edi, dword [ebp - 0x14]
add esp, 4
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.0049ade0
jmp case.0x49a2e0.5
mov esi, dword [ebx + 0x10]
mov ecx, edi
push dword [esi]
call fcn.0049abf0
push dword [esi + 4]
jmp 0x49a3ef
mov eax, dword [ebx + 0x10]
push dword [eax]
mov ecx, edi
call fcn.0049abf0
push edi
push 0
push 0x49a440
call fcn.0044d973
add esp, 0xc
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x49aa30
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
mov esi, ecx
push 0
push dword [esi + 4]
push dword [esi + 8]
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, dword [esi + 4]
jge 0x49aa72
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSA_Error__d
push 0x19
push str.EcoMessage::Send
push 0
push 0
push 5
push 6
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
add esp, 0x20
mov eax, edi
pop edi
mov dword [esi + 4], 0
pop esi
ret

Function at 0x49aa80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
push 0
push 0x20
push dword [ebx + 8]
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jg 0x49aac3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSA_Error__d
push 0x30
push str.EcoMessage::Receive
push 0
push 0
push 5
push 6
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
add esp, 0x20
mov eax, dword [ebx + 8]
mov esi, dword [eax + 4]
mov dword [ebp - 4], esi
cmp esi, dword [ebx]
jle 0x49aaf5
push esi
mov dword [ebx], esi
call fcn.004441a2
push edi
push dword [ebx + 8]
mov esi, eax
push esi
call fcn.00445c10
push dword [ebx + 8]
call fcn.0044419d
mov dword [ebx + 8], esi
add esp, 0x14
mov esi, dword [ebp - 4]
cmp edi, esi
jge 0x49ab54
nop dword [eax]
push 0
mov eax, esi
sub eax, edi
push eax
mov eax, dword [ebx + 8]
add eax, edi
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x49ab30
add edi, eax
cmp edi, esi
jl 0x49ab00
mov eax, edi
mov dword [ebx + 4], 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSA_Error__d
push 0x43
push str.EcoMessage::Receive
push 0
push 0
push 5
push 6
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
add esp, 0x20
mov eax, edi
mov dword [ebx + 4], 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49ddf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511c0d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x54f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movsd qword [ebp - 0x18], xmm3
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edi + 8], 0x707
mov dword [edi + 0xc], 0x1f000c
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 0x707
mov dword [edi + 0x1c], 0x1f000c
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], 0x707
mov dword [edi + 0x2c], 0x1f000c
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
lea ecx, [edi + 0x44]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov byte [ebp - 4], 7
mov eax, dword [ebp + 0x50]
test eax, eax
jne 0x49dec0
push 8
mov byte [edi + 0x90], 1
call fcn.00443e65
mov esi, eax
mov dword [ebp + 0x50], esi
mov byte [ebp - 4], 8
push 0x38
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00443e65
mov byte [ebp - 4], 7
lea ecx, [edi + 0x44]
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi], eax
mov dword [edi + 0x94], esi
jmp 0x49decd
mov byte [edi + 0x90], 0
mov dword [edi + 0x94], eax
movups xmm0, xmmword [ebp + 0x18]
mov eax, dword [ebp + 0x40]
mov dword [edi + 0x40], eax
lea eax, [ebp + 0x44]
movups xmmword [edi + 0x18], xmm0
movsd xmm0, qword [ebp - 0x18]
movsd qword [edi], xmm0
movups xmm0, xmmword [ebp + 8]
movups xmmword [edi + 8], xmm0
movups xmm0, xmmword [ebp + 0x28]
movups xmmword [edi + 0x28], xmm0
movsd xmm0, qword [ebp + 0x38]
movsd qword [edi + 0x38], xmm0
cmp ecx, eax
je 0x49df17
mov eax, dword [ebp + 0x48]
mov edx, dword [ebp + 0x44]
sub eax, edx
sar eax, 4
push eax
push edx
call fcn.00406d60
mov edx, dword [ebp + 0x44]
xorps xmm0, xmm0
movups xmmword [edi + 0x50], xmm0
movups xmmword [edi + 0x60], xmm0
movups xmmword [edi + 0x70], xmm0
movups xmmword [edi + 0x80], xmm0
test edx, edx
je 0x49df60
mov ecx, dword [ebp + 0x4c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x49df56
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49df75
push ecx
push edx
call fcn.00443e34
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x4c
call fcn.0044d695
int3
Function at 0x4c93e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1bc
mov eax, dword [0x54f040]
xor eax, esp
mov dword [esp + 0x1b8], eax
push esi
mov esi, dword [sym.imp.PHDPFuncs.dll_LogPrintf]
push str.Start
push 0x7c
push str.MainEcoLoop
push 0
push 0
push 2
push 6
call esi
add esp, 0x1c
lea eax, [esp + 0x28]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4c945d
push str.Unable_to_initialize_winsock.
push 0x83
push str.main
push 0
push 0
push 5
push 6
call esi
add esp, 0x1c
pop esi
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.00443e26
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.PHDPFuncs.dll_GetVersionInfo]
add esp, 4
movups xmm0, xmmword [eax]
movd edx, xmm0
movaps xmmword [esp + 0x10], xmm0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp edx, 3
jne 0x4c94c4
cmp ecx, 1
jne 0x4c94c4
cmp eax, 0x11
jne 0x4c94c4
push eax
push ecx
push 3
push str.PHD_EcoEngine_n_____PHDEco____Ver__d._d._d_n_n
call fcn.00415430
add esp, 0x10
call fcn.004dc380
mov ecx, eax
call fcn.004dc5c0
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop esi
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.00443e26
mov esp, ebp
pop ebp
ret
push 0x11
push 1
push 3
push eax
push ecx
push edx
push str.PHDPFuncs_DLL___d._d._d__is_not_correct_version___d._d._d__n
push 0x8d
push str.main
push 0
push 0
push 5
push 6
call esi
mov ecx, dword [esp + 0x1f0]
add esp, 0x34
pop esi
xor ecx, esp
call fcn.00443e26
mov esp, ebp
pop ebp
ret
Function at 0x4ca9a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5168a5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x54f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0xc]
mov dword [ebp - 0x18], 0
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.00401cc0
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
push esi
call fcn.00482d10
cmp dword [esi + 0x30], 0
je 0x4caa52
mov eax, dword [edi + 0x78]
lea ecx, [esi + 0x2c]
mov edi, dword [eax]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp + 0xc], edi
push eax
call fcn.00402560
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0xd], 0
jne 0x4caa52
cmp edi, dword [eax + 0x10]
jl 0x4caa52
cmp eax, dword [esi + 0x2c]
je 0x4caa52
movsd xmm0, qword [eax + 0x18]
movsd qword [esi], xmm0
movsd xmm0, qword [eax + 0x20]
movsd qword [esi + 8], xmm0
movsd xmm0, qword [eax + 0x28]
movsd qword [esi + 0x10], xmm0
movsd xmm0, qword [eax + 0x30]
movsd qword [esi + 0x18], xmm0
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x4caa7a
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x4caa7a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x4caa7a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
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 8
Function at 0x4dc030
Capabilities:
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51853c
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x54f040]
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
mov eax, dword [0x5515c0]
cmp dword [eax], 0
jle 0x4dc07e
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
push 0xa
call esi
mov eax, dword [0x5515c0]
cmp dword [eax], 0
jg 0x4dc070
lock inc dword [eax]
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4dc0c1
push str.Unable_to_open_broadcast_socket.
push 0x145
push str.Scheduler::FindNetwork
push 0
push 0
push 5
push 6
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
mov eax, dword [0x5515c0]
add esp, 0x1c
lock dec dword [eax]
jmp 0x4dc1c1
mov esi, dword [edi + 0x18]
add edi, 0x18
mov dword [ebp - 0x24], 1
mov ecx, edi
push dword [esi + 4]
push edi
call fcn.0040e820
push 4
lea eax, [ebp - 0x24]
mov dword [esi + 4], esi
push eax
push 0x20
push 0xffff
mov dword [esi], esi
mov dword [esi + 8], esi
push ebx
mov dword [edi + 4], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, 2
mov word [ebp - 0x20], ax
movzx eax, word [0x54fae8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0xffffffffffffffff
mov word [ebp - 0x1e], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10000
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], ebx
call fcn.004441a2
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
mov dword [eax], 0x3ea
mov dword [eax + 4], 8
push dword [0x54fae8]
mov dword [ebp - 0x34], 0x10000
mov dword [ebp - 0x30], 8
call fcn.0049abf0
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push 0x10
push eax
push 0
push dword [ebp - 0x30]
push esi
push dword [ebp - 0x28]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jg 0x4dc1a5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSA_Error__d
push 0x24
push str.EcoMessage::SendTo
push 0
push 0
push 5
push 6
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
add esp, 0x20
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [0x5515c0]
lock dec dword [eax]
test esi, esi
je 0x4dc1c1
push esi
call fcn.0044419d
add esp, 4
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.00443e26
mov esp, ebp
pop ebp
ret
Function at 0x4dc380
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51858a
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x54f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x5515b8], 0
jne 0x4dc594
push 0x3c
call fcn.00443e65
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
push 0x18
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.00443e65
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebx], eax
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
lea edi, [ebx + 0x14]
mov byte [ebp - 4], 2
lea esi, [edi + 4]
mov dword [edi], 0
mov dword [ebp - 0x14], edi
push 0x2c
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00443e65
add esp, 0xc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea eax, [edi + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push eax
call esi
push 4
push 4
mov dword [0x5515c0], 0
mov dword [ebx + 0x38], 0
mov dword [0x5515b8], ebx
mov dword [0x54fae0], 5
call fcn.0044d7b0
add esp, 8
mov dword [0x5515c0], eax
test eax, eax
je 0x4dc486
mov dword [eax], 0
push 4
push 4
call fcn.0044d7b0
add esp, 8
mov dword [0x5515bc], eax
test eax, eax
je 0x4dc4a1
mov dword [eax], 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x55159c], eax
cmp eax, 0xffffffff
jne 0x4dc4d7
push str.Unable_to_open_socket.
push 0xcb
push str.Scheduler::RspNetwork
push 0
push 0
push 5
push 6
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
add esp, 0x1c
push 0x5515a0
call esi
mov esi, dword [sym.imp.PHDPFuncs.dll_GetRegistryValueInt]
push str.MaxConnections
push str.PHDwinEcoEngine
call esi
add esp, 8
mov dword [0x54fae4], eax
test eax, eax
jg 0x4dc506
mov dword [0x54fae4], 0x14
push str.MaxGrpCompile
push str.PHDwinEcoEngine
call esi
add esp, 8
mov dword [0x54faec], eax
test eax, eax
jg 0x4dc528
mov dword [0x54faec], 4
push str.Log_Product_Dependencies
push str.PHDwinEcoEngine
call esi
test eax, eax
push str.Log_Case_Dependencies
push str.PHDwinEcoEngine
setne byte [0x551598]
call esi
test eax, eax
push str.Log_Alloc_Splits
push str.PHDwinEcoEngine
setne byte [0x5515c8]
call esi
test eax, eax
push str.Log_Cashflows
push str.PHDwinEcoEngine
setne byte [0x55159a]
call esi
test eax, eax
push str.Log_Phase_Configurations
push str.PHDwinEcoEngine
setne byte [0x55159b]
call esi
add esp, 0x28
test eax, eax
setne byte [0x551599]
mov eax, dword [0x5515bc]
lock inc dword [eax]
mov eax, dword [0x5515b8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e06c0
Capabilities:
Create tcp socket
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518d82
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x54f040]
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
push 0x11
push 2
push 2
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4e072c
push str.Unable_to_open_broadcast_socket.
push 0x238
push str.Task::SendAll
push 0
push 0
push 5
push 6
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
add esp, 0x1c
xor bl, bl
jmp 0x4e083e
push 4
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 1
push eax
push 0x20
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, 2
mov word [ebp - 0x20], ax
movzx eax, word [0x54fae8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0xffffffffffffffff
mov word [ebp - 0x1e], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10000
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], edi
call fcn.004441a2
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
mov esi, esp
mov dword [eax], 0x3ec
mov dword [eax + 4], 8
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x34], 0x10000
push eax
mov dword [ebp - 0x30], 8
mov dword [ebp - 0x24], esi
call fcn.00403870
add esp, 4
lea ecx, [ebp - 0x34]
add eax, 0x10
mov dword [esi], eax
call fcn.0049ade0
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x24], esi
call fcn.00403870
add esp, 4
lea ecx, [ebp - 0x34]
add eax, 0x10
mov dword [esi], eax
call fcn.0049ade0
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push 0x10
push eax
push 0
push dword [ebp - 0x30]
push esi
push dword [ebp - 0x28]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jg 0x4e081f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSA_Error__d
push 0x24
push str.EcoMessage::SendTo
push 0
push 0
push 5
push 6
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
add esp, 0x20
push 1
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov bl, 1
test esi, esi
je 0x4e083e
push esi
call fcn.0044419d
add esp, 4
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e085f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4e087e
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.00443e26
mov esp, ebp
pop ebp
ret 8
Function at 0x4e23a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519176
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x54f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4e2469
push 0x10
mov dword [ebp - 4], 0
call fcn.00443e65
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
push 0x10000
mov dword [esi + 0xc], eax
mov dword [esi + 4], 0
mov dword [esi], 0x10000
call fcn.004441a2
mov dword [esi + 8], eax
add esp, 4
mov byte [ebp - 4], 0
mov dword [esi + 4], 8
mov dword [esi], 0x10000
mov dword [eax], 0x3e9
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 4
mov dword [eax + 4], ecx
mov ecx, esi
call fcn.0049abf0
push dword [ebp + 8]
mov ecx, esi
call fcn.0049abf0
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0049abf0
push esi
push 0
push 0x49a440
call fcn.0044d973
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0x10], 0
jne 0x4e24a0
cmp dword [ebp + 0xc], 0x64
jl 0x4e24a0
mov ecx, edi
call fcn.004e1160
push 0
push 0
sub esp, 0xc
mov ecx, edi
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
call fcn.004e0d80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x505400
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
pop esi
cmp eax, 0xffffffff
jne 0x505446
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Unable_to_open_socket__error___d_.
push 0x18
push str.TCPListener::Init
push 0
push 0
push 5
push 6
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
add esp, 0x20
xor al, al
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 1
push 6
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x41d400
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18000]
push edi
or ebp, 0xffffffff
jmp 0x41d422
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41d429
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41d418
mov eax, 1
add ebx, ebx
jne 0x41d43b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41d430
jne 0x41d44c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d430
xor ecx, ecx
sub eax, 3
jb 0x41d460
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41d4d2
mov ebp, eax
add ebx, ebx
jne 0x41d46b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41d478
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41d49c
inc ecx
add ebx, ebx
jne 0x41d488
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41d47d
jne 0x41d499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d47d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41d4bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41d4ad
jmp 0x41d41e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41d4bc
add edi, ecx
jmp 0x41d41e
pop esi
mov edi, esi
mov ecx, 0x170
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41d4da
cmp byte [edi], 5
jne 0x41d4da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41d4df
lea edi, [esi + 0x1b000]
mov eax, dword [edi]
or eax, eax
je 0x41d557
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x228ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22910]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41d50c
mov ecx, edi
jns 0x41d53b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x22914]
or eax, eax
je 0x41d551
mov dword [ebx], eax
add ebx, 4
jmp 0x41d529
call dword [esi + 0x2291c]
mov ebp, dword [esi + 0x22918]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41d58b
sub esp, 0xffffff80
jmp 0x40b05f