joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4403e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c2f71
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x62c7a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0x52455301
mov word [edi + 8], 0x56
mov byte [edi + 0x22], 0
mov dword [edi + 0x24], vtable.ISocketHandler.0
lea esi, [edi + 0x848]
mov dword [edi], vtable.IOCPServer.0
mov dword [edi + 0x24], vtable.IOCPServer.1.0
mov dword [edi + 0x838], 0
mov dword [edi + 0x83c], 0
mov dword [edi + 0x840], 0
mov dword [edi + 0x844], 0
push 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005596ac
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x850], 0
push 0xfa0
mov byte [ebp - 4], 1
mov dword [edi + 0x868], 0x3e8
call fcn.00559c06
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 8
mov dword [edi + 0x854], eax
lea eax, [edi + 0x86c]
mov dword [edi + 0x860], 0
mov dword [edi + 0x85c], 0
push eax
mov dword [edi + 0x858], 0
mov dword [edi + 0x864], 0x3e8
call esi
push 0xfa0
mov byte [ebp - 4], 2
mov dword [edi + 0x898], 0x3e8
call fcn.00559c06
add esp, 4
mov dword [edi + 0x884], eax
lea eax, [edi + 0x89c]
mov dword [edi + 0x890], 0
mov dword [edi + 0x88c], 0
mov dword [edi + 0x888], 0
push eax
mov dword [edi + 0x894], 0x3e8
call esi
lea ecx, [edi + 0x8b8]
mov byte [ebp - 4], 3
mov dword [edi + 0x8b4], 0
call fcn.0044e270
lea ecx, [edi + 0x8bc]
mov byte [ebp - 4], 4
call fcn.0044e270
lea ecx, [edi + 0x8c0]
mov byte [ebp - 4], 5
call fcn.0044e270
lea ecx, [edi + 0x8c4]
mov byte [ebp - 4], 6
call fcn.0044e270
mov dword [edi + 0x30], 0
mov eax, edi
mov dword [edi + 0x2c], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x28], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x442ee0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x611010]
xor ecx, ecx
mov edx, 4
mov dword [ebp - 4], 0
mul edx
push esi
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00559c06
mov ecx, dword [0x611010]
shl ecx, 2
push ecx
push 0
push eax
mov dword [0x62f030], eax
call fcn.0055c100
xor esi, esi
add esp, 0x10
cmp dword [0x611010], esi
jle 0x442f65
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x443370
push 0x10000
push 0
call edi
mov ecx, dword [0x62f030]
mov dword [ecx + esi*4], eax
mov eax, dword [0x62f030]
cmp dword [eax + esi*4], 0
je 0x442f6d
inc esi
cmp esi, dword [0x611010]
jl 0x442f32
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x28], 0
jg 0x4432bc
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
sub eax, 2
je 0x443249
sub eax, 1
je 0x443200
sub eax, 1
jne 0x4432ba
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 0x4432b3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop edi
pop ebx
pop esi
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 0x44321f
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, esi
call fcn.00443a60
test al, al
jne 0x4432ba
push str.HandleGoodIoCompletions__:_setup_new_accept_failed
call fcn.004441c0
mov eax, dword [esi]
add esp, 4
mov ecx, esi
call dword [eax + 8]
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
mov ebx, dword [ebp + 0x14]
nop dword [eax]
push 0
push ebx
push dword [ebp + 0x10]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
je 0x44329f
test edi, edi
je 0x443287
push edi
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00443590
cmp edi, ebx
je 0x443250
mov ecx, esi
call fcn.00443720
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4432ba
mov eax, dword [ecx]
push 0
push dword [esi + 4]
call dword [eax + 0xc]
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.HandleGoodIoCompletions__:_recv_failed:_error_code:__d
call fcn.004441c0
add esp, 8
mov ecx, esi
call fcn.00443720
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x443720
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push ebx
push 0x61102c
call esi
push 0x61102c
call esi
mov eax, dword [0x611018]
cmp eax, dword [0x61101c]
push 0x61102c
sete bl
call edi
test bl, bl
je 0x443791
push 0x61102c
call edi
push 0x3e8
call fcn.00442f80
add esp, 4
jmp 0x443754
mov ecx, dword [0x61101c]
mov eax, dword [0x611014]
pop ebx
mov esi, dword [eax + ecx*4]
inc ecx
mov dword [0x61101c], ecx
cmp ecx, dword [0x611024]
jl 0x4437b9
mov eax, dword [0x611020]
mov dword [0x61101c], eax
push 0x61102c
call edi
push dword [esi + 0x20]
call fcn.00559c0f
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [esi + 0x20], 0
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 0x443805
mov eax, dword [ecx + 4]
mov dword [esi + 0x28], eax
push 0
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x44388a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x44388a
push eax
push str.RegisterRecv__:_registration_failed:_error_code:__d
call fcn.004441c0
push dword [esi + 0x20]
call fcn.00559c0f
add esp, 0xc
mov dword [esi + 0x20], 0
mov ecx, 0x611014
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
push esi
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
call fcn.00443690
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4438e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
call fcn.00559c06
push esi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push eax
mov dword [ebp - 0x10], esi
call fcn.0055bb80
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [eax + eax]
push 0x61102c
call edi
push 0x61102c
call edi
mov eax, dword [0x611018]
cmp eax, dword [0x61101c]
push 0x61102c
sete bl
call esi
test bl, bl
je 0x44395d
push 0x61102c
call esi
push 0x3e8
call fcn.00442f80
add esp, 4
jmp 0x443920
mov ecx, dword [0x61101c]
mov eax, dword [0x611014]
mov ebx, dword [eax + ecx*4]
inc ecx
mov dword [0x61101c], ecx
cmp ecx, dword [0x611024]
jl 0x443984
mov eax, dword [0x611020]
mov dword [0x61101c], eax
push 0x61102c
call esi
push dword [ebx + 0x20]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
call fcn.00559c0f
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 1
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x28], 0
test ecx, ecx
je 0x4439ce
mov eax, dword [ecx + 4]
mov dword [ebx + 0x28], eax
push 0
push ebx
push 0
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x443a4a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x443a4a
push dword [ebx + 0x20]
call fcn.00559c0f
add esp, 4
mov dword [ebx + 0x20], 0
mov ecx, 0x611014
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
push ebx
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
call fcn.00443690
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x443a60
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x62c7a8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
mov eax, ecx
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], eax
push ecx
push 4
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0xb5367df1
push ecx
push 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], 0x11cfcbac
push ecx
push 0xc8000006
push dword [eax + 4]
mov dword [ebp - 0xc], 0x8000ca95
mov dword [ebp - 8], 0x92a1485f
mov dword [ebp - 0x18], 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 [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x443af8
push str.Failed_to_create_socket_in_IOCP_setup.
call fcn.004441c0
add esp, 4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005596ea
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push 0x61102c
call edi
push 0x61102c
call edi
mov eax, dword [0x611018]
cmp eax, dword [0x61101c]
push 0x61102c
sete bl
call esi
test bl, bl
je 0x443b44
push 0x61102c
call esi
push 0x3e8
call fcn.00442f80
add esp, 4
jmp 0x443b07
mov ecx, dword [0x61101c]
mov eax, dword [0x611014]
mov ebx, dword [eax + ecx*4]
inc ecx
mov dword [0x61101c], ecx
cmp ecx, dword [0x611024]
jl 0x443b6b
mov eax, dword [0x611020]
mov dword [0x61101c], eax
push 0x61102c
call esi
push dword [ebx + 0x20]
call fcn.00559c0f
mov ecx, dword [ebp - 0x20]
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x18], 3
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov eax, dword [ecx + 4]
push 0x62f054
mov dword [ebx + 0x28], eax
call edi
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push ebx
push eax
mov eax, dword [ebp - 0x20]
push 0x20
push 0x20
push 0
push 0x62f0a0
push edi
push dword [eax + 4]
call dword [ebp - 0x24]
test eax, eax
jne 0x443c27
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x443c27
push str.AcceptEx___Failed_and_IO_aint_pending.
call fcn.004441c0
add esp, 4
mov ecx, ebx
call fcn.004438a0
push ebx
mov ecx, 0x611014
call fcn.00443690
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x62f054
call esi
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005596ea
mov esp, ebp
pop ebp
ret
push 0x62f054
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.005596ea
mov esp, ebp
pop ebp
ret
Function at 0x443c90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c31c4
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x62c7a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lock inc dword [0x62f038]
cmp dword [0x62f038], 1
jne 0x443dce
push 4
call fcn.005596ac
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x443ced
mov ecx, eax
call fcn.00440280
jmp 0x443cef
xor eax, eax
push dword [0x611010]
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x62f034], eax
call fcn.004402d0
call fcn.00442ee0
test al, al
jne 0x443d48
mov esi, dword [0x62f034]
test esi, esi
je 0x443d2d
mov ecx, esi
call fcn.00440290
push 4
push esi
call fcn.005596dc
add esp, 8
lock dec dword [0x62f038]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x7530
call fcn.00442f80
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 4
push 0x62f03c
call ebx
mov edi, dword [sym.imp.WS2_32.dll_WSACreateEvent]
xor esi, esi
nop word [eax + eax]
call edi
test eax, eax
je 0x443d34
push eax
mov ecx, 0x611074
call fcn.00443600
inc esi
cmp esi, 0x3f
jl 0x443d70
call edi
mov dword [0x62f06c], eax
test eax, eax
je 0x443d34
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0x442b20
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x62f070], eax
test eax, eax
je 0x443d34
push 0x62f074
call ebx
push 0x62f054
call ebx
mov al, 1
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 0x443df0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov dword [esi + 0xc], eax
mov eax, dword [edi]
test eax, eax
je 0x443eb6
cmp eax, 0xffffffff
je 0x443eb6
mov ecx, dword [0x62f034]
push 0
push eax
call fcn.004402b0
test al, al
jne 0x443e3f
push str.Startup__:_Associate_Device_failed_for_pre_created_socket.
call fcn.004441c0
add esp, 4
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x62f03c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
mov ecx, 0x62f094
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push eax
call fcn.00442570
push 0x62f03c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, esi
call fcn.00443720
test al, al
jne 0x443f45
push str.Startup__:_Register_Receive_failed.
call fcn.004441c0
add esp, 4
push 0x62f03c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov ecx, 0x62f094
call fcn.00444e00
push 0x62f03c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop esi
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 0x443eec
push str.Startup__:_Socket_Creation_Failure.
call fcn.004441c0
add esp, 4
mov dword [edi], 0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x62f034]
push 0
push eax
call fcn.004402b0
test al, al
jne 0x443f15
push str.Startup__:_Associate_Device_failed.
call fcn.004441c0
add esp, 4
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x62f03c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
mov ecx, 0x62f094
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push eax
call fcn.00442570
push 0x62f03c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x443f56
mov dword [esi + 0x10], 5
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4441c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00559fa0
mov eax, dword [0x62c7a8]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0x5d1658
push eax
call fcn.0043d380
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x2004]
push 0xffffffffffffffff
push eax
call fcn.0043d340
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0058336e
add esp, 0x1c
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005596ea
mov esp, ebp
pop ebp
ret
Function at 0x445010
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c322c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x62c7a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0x52455301
mov word [edi + 8], 0x56
mov byte [edi + 0x22], 0
lea esi, [edi + 0x38]
mov dword [edi], vtable.Server.0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
push 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005596ac
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x40], 0
push 0x9c40
mov byte [ebp - 4], 1
mov dword [edi + 0x58], 0x2710
call fcn.00559c06
add esp, 8
mov dword [edi + 0x44], eax
lea eax, [edi + 0x5c]
mov dword [edi + 0x50], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x48], 0
push eax
mov dword [edi + 0x54], 0x2710
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [edi + 0x7c]
mov byte [ebp - 4], 2
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
call fcn.0044e270
lea ecx, [edi + 0x80]
mov byte [ebp - 4], 3
call fcn.0044e270
lea ecx, [edi + 0x84]
mov byte [ebp - 4], 4
call fcn.0044e270
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
Function at 0x447910
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x62c7a8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x62f0e8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], ecx
je 0x447972
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x44793c
mov eax, dword [esi]
mov ecx, 0x62f0e8
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x447961
test dl, dl
je 0x44795d
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x447961
add ecx, 2
add eax, 2
test dl, dl
jne 0x447941
xor eax, eax
jmp 0x447966
sbb eax, eax
or eax, 1
test eax, eax
jne 0x447972
mov edi, dword [0x62f0e0]
jmp 0x4479a9
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x44797c
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x447a2a
cmp dword [esi + 0x14], 0x10
jb 0x447995
mov esi, dword [esi]
push esi
push 0x62f0e8
call fcn.0043d380
add esp, 8
mov dword [0x62f0e0], edi
mov ebx, dword [ebp - 0x18]
push 0x33
push dword [ebx + 8]
push dword [ebx]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x447a2a
mov eax, dword [edi + 0xc]
mov ecx, 2
push dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebx + 4], eax
mov word [ebp - 0x14], cx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x447a15
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
cmp eax, 0x2733
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005596ea
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005596ea
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005596ea
mov esp, ebp
pop ebp
ret 8
Function at 0x447b50
Capabilities:
Create tcp socket
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x62c7a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
mov dword [esi + 0x18], eax
cmp edi, 0xffffffff
jne 0x447b87
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, edi
je 0x447c1f
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 8], eax
test eax, eax
je 0x447c1f
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x447c1f
cmp edi, 0xffffffff
je 0x447bdf
push 0x23
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x447c1f
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x447c1f
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
lea eax, [esi + 0x14]
push eax
push 0
push esi
push 0x447700
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
test eax, eax
je 0x447c1f
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x20], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005596ea
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.005596ea
mov esp, ebp
pop ebp
ret 0xc

Function at 0x447de0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x62c7a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
mov eax, 2
push edi
push dword [ebp + 0xc]
mov word [ebp - 0x14], ax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0x14]
push esi
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp - 4]
cmp eax, 0xffffffff
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.005596ea
mov esp, ebp
pop ebp
ret 0x10
Function at 0x447e90
Capabilities:
Create thread
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x62c7a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
mov byte [esi + 0x24], al
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
jne 0x447ecb
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x447f0b
cmp byte [esi + 0x24], 1
jne 0x447f78
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, 2
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi]
mov dword [ebp - 0x10], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x447f1f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005596ea
mov esp, ebp
pop ebp
ret 0x18
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 8], eax
test eax, eax
je 0x447f0b
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x447f0b
push 3
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x447f0b
lea eax, [esi + 0x14]
push eax
push 0
push esi
push 0x447cb0
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
test eax, eax
je 0x447f0b
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x20], eax
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x447f80
sub ecx, edx
je 0x447f9c
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 4], eax
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.005596ea
mov esp, ebp
pop ebp
ret 0x18

Function at 0x44c8f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x62c7a8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0xffffffffffffffff
push eax
call fcn.0043d340
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0058336e
add esp, 0x1c
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005596ea
mov esp, ebp
pop ebp
ret