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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5626ed
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x5d21e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
lea ebx, [ecx + 8]
mov edi, dword [ecx]
add edi, 0x14
mov eax, dword [edx]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x44], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [edx + 0x1c]
push eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edx + 0x28]
push 0x54
mov dword [ebp - 0x20], ecx
call fcn.0043d8b0
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x440510
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
call fcn.0052c940
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ecx
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [esi + 0x4c], eax
lea eax, [ebx + 0xc]
push esi
push eax
mov dword [esi + 0x50], edx
push ebx
mov byte [ebx + 8], 1
mov ecx, dword [edi + 0x20]
push edi
mov dword [ebp - 0x10], esi
call fcn.004351b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x433cd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5626ed
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x5d21e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
lea ebx, [ecx + 8]
mov edi, dword [ecx]
add edi, 0x14
mov eax, dword [edx]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x44], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [edx + 0x1c]
push eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edx + 0x28]
push 0x54
mov dword [ebp - 0x20], ecx
call fcn.0043d8b0
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x4405e0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
call fcn.0052c940
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ecx
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [esi + 0x4c], eax
lea eax, [ebx + 0xc]
push esi
push eax
mov dword [esi + 0x50], edx
push ebx
mov byte [ebx + 8], 1
mov ecx, dword [edi + 0x20]
push edi
mov dword [ebp - 0x10], esi
call fcn.004351b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x433e20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56271d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5d21e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
lea ebx, [ecx + 8]
mov edi, dword [ecx]
add edi, 0x14
mov eax, dword [edx]
mov ecx, dword [edx + 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x40], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edx + 0x24]
push 0x50
mov dword [ebp - 0x20], ecx
call fcn.0043d8b0
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x4406b0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
call fcn.0052c940
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ecx
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [esi + 0x48], eax
lea eax, [ebx + 0xc]
push esi
push eax
mov dword [esi + 0x4c], edx
push ebx
mov byte [ebx + 8], 1
mov ecx, dword [edi + 0x20]
push edi
mov dword [ebp - 0x10], esi
call fcn.004351b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x437930
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562eb2
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x5d21e8]
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 esi, ecx
mov dword [ebp - 0x1a4], esi
mov dword [ebp - 0x1a8], esi
mov eax, 1
lock xadd dword [0x5dc074], eax
inc eax
mov ebx, 0x5dc078
cmp eax, 1
jne 0x437995
lea eax, [ebp - 0x1a0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [ebx], eax
xor edi, edi
lock xadd dword [ebx], edi
test edi, edi
jne 0x4379f4
push 0x20
mov dword [ebp - 4], edi
call fcn.0053274c
add esp, 4
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4379c7
push 0xffffffffffffffff
push edi
push esi
mov ecx, eax
call fcn.00431a40
jmp 0x4379c9
xor eax, eax
mov ecx, eax
mov dword [esi + 4], eax
call fcn.00434da0
mov dword [esi + 8], eax
mov eax, esi
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.005329db
mov esp, ebp
pop ebp
ret
call fcn.0052c940
mov dword [ebp - 0x1a8], eax
lea eax, [ebp - 0x1ac]
push str.winsock
push eax
mov dword [ebp - 0x1ac], edi
call fcn.00423c00
int3
Function at 0x43d8b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [0x5dc0f0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x43d8f2
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x43d8f2
mov eax, dword [ecx]
test eax, eax
je 0x43d8f2
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x43d8e9
mov byte [eax + ebx], dl
pop ebx
pop ebp
ret
push eax
call fcn.00532a98
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.0053274c
add esp, 4
movzx ecx, bl
xor edx, edx
cmp ebx, 0xff
cmova ecx, edx
mov byte [eax + ebx], cl
pop ebx
pop ebp
ret

Function at 0x43d920
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x5dc0f0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43d938
mov edx, dword [eax + 4]
jmp 0x43d93a
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0xff
ja 0x43d959
test edx, edx
je 0x43d959
cmp dword [edx], 0
jne 0x43d959
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [edx], ecx
pop ebp
ret
push dword [ebp + 8]
call fcn.00532a98
add esp, 4
pop ebp
ret

Function at 0x43e4f0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x43e512
call fcn.0052c940
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 4], eax
or eax, esi
mov dword [ecx], 0x2719
pop esi
pop ebp
ret
push ebx
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call fcn.0052c940
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [ebp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x43e54e
call fcn.0052c940
mov dword [edi], ebx
mov dword [edi + 4], eax
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
Function at 0x441370
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5c0520
push 0x534c20
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5d21e8]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.asio_58CCDC44_6264_4842_90C2_F3C545CB8AA7__u__p
push 0x80
lea eax, [ebp - 0x11c]
push eax
call fcn.00448740
add esp, 0x14
lea eax, [ebp - 0x11c]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x120], edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test edi, edi
jne 0x4413f8
call ebx
jmp 0x441496
cmp eax, 0xb7
jne 0x441408
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi], 0
jne 0x44144e
mov dword [ebp - 4], 0
push bind
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x441444
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x441496
mov dword [ebp - 4], 0xfffffffe
mov byte [esi], 1
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x441496
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005329db
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 1]
mov byte [ebp - 1], 0
push esi
mov esi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 1
call fcn.0052c940
mov esi, dword [esi + 4]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call fcn.0052c940
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x4447e1
cmp eax, 0x4d2
jne 0x4447e6
call fcn.0052c940
test esi, esi
pop esi
jne 0x4447f0
call fcn.0052c940
mov esp, ebp
pop ebp
ret
Function at 0x444800
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, 0x5dc198
lock xadd dword [ecx], eax
mov ecx, dword [esi + 4]
push 0
push ecx
test eax, eax
je 0x44484e
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov esp, ebp
pop ebp
ret
push method.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.virtual_56
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x445bf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
push 0
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.0052c940
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
mov dword [edi + 4], esi
cmp eax, 0x40
jne 0x445c52
call fcn.0052c940
mov dword [edi], 0x2746
jmp 0x445c64
cmp eax, 0x4d2
jne 0x445c67
call fcn.0052c940
mov dword [edi], 0x274d
mov dword [edi + 4], eax
test ebx, ebx
je 0x445c75
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0052c940
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4461f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564175
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x5d21e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], 0
call fcn.0052c940
mov edi, dword [esi + 8]
xor edx, edx
mov dword [ebp - 0x14], eax
lea eax, [edi + 0x18]
lock xadd dword [eax], edx
test edx, edx
jne 0x446253
mov ecx, edi
call fcn.00447dd0
xor edi, edi
call fcn.0052c940
mov dword [ebp - 0x18], edi
xor esi, esi
mov dword [ebp - 0x14], eax
jmp 0x4462e5
mov dword [ebp - 0x10], 0
push dword [0x5dc0f0]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x5dc0f0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push 1
mov ecx, edi
xor esi, esi
call fcn.004414f0
test eax, eax
je 0x4462bc
cmp esi, 0xffffffff
lea eax, [esi + 1]
mov ecx, edi
cmove eax, esi
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 1
call fcn.004414f0
test eax, eax
jne 0x4462a0
push dword [ebp - 0x1c]
push dword [0x5dc0f0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4462e2
push eax
call fcn.00532a98
add esp, 4
mov edi, dword [ebp - 0x18]
test edi, edi
jne 0x4462fc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
call fcn.00442420
int3
Function at 0x447b00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [ebp + 0x18], 0
je 0x447b29
mov ecx, dword [esi + 4]
push 0
push 0
push dword [ebp + 0x1c]
call fcn.00444ab0
pop esi
pop ebp
ret 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
jne 0x447b4a
mov ecx, dword [esi + 4]
push 0
push 0x2719
push dword [ebp + 0x1c]
call fcn.00444ab0
pop esi
pop ebp
ret 0x18
mov eax, dword [ebp + 0x14]
push ebx
push edi
mov edi, dword [ebp + 0x1c]
push 0
push edi
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x447b88
mov eax, 0x2746
jmp 0x447b95
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
je 0x447bb4
cmp eax, 0x3e5
je 0x447bb4
push dword [ebp + 0x18]
mov ecx, dword [esi + 4]
push eax
push edi
call fcn.00444ab0
pop edi
pop ebx
pop esi
pop ebp
ret 0x18
mov ecx, dword [esi + 4]
push edi
call fcn.00444bf0
pop edi
pop ebx
pop esi
pop ebp
ret 0x18

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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [ebp + 0x18], 0
je 0x447bf9
mov ecx, dword [edi + 4]
push 0
push 0
push dword [ebp + 0x1c]
call fcn.00444ab0
pop edi
pop ebp
ret 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x447c1a
mov ecx, dword [edi + 4]
push 0
push 0x2719
push dword [ebp + 0x1c]
call fcn.00444ab0
pop edi
pop ebp
ret 0x18
push ebx
mov ebx, dword [ebp + 0x1c]
lea ecx, [ebp + 0x18]
push esi
push 0
push ebx
push dword [ebp + 0x14]
mov dword [ebp + 0x18], 0
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x447c71
cmp eax, 0x3e5
je 0x447c71
push dword [ebp + 0x18]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.00444ab0
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
mov ecx, dword [edi + 4]
push ebx
call fcn.00444bf0
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
Function at 0x447c90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0
push 1
mov esi, ecx
push 0
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x447cde
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [ebp - 0x10], esi
call fcn.0052c940
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x447d9b
mov esi, dword [ebp - 4]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
mov dword [ebx + 8], eax
cmp dword [esi + 8], 0
jne 0x447d1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [ebp - 0x10], esi
call fcn.0052c940
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x447da9
mov esi, dword [ebp - 4]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push ebx
push 0x448520
push dword [ebp + 0xc]
push 0
call fcn.0053ba3e
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x447d82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [ebp + 8], eax
call dword [edx]
test edi, edi
je 0x447d63
push edi
call esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x447d70
push eax
call esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
call fcn.0052c940
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x447db7
test edi, edi
je 0x447d92
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.thread.entry_event
lea eax, [ebp - 0x10]
push eax
call fcn.00423c00
push str.thread.exit_event
lea eax, [ebp - 0x10]
push eax
call fcn.00423c00
push str.thread
lea eax, [ebp - 0x10]
push eax
call fcn.00423c00
int3
Function at 0x447fb0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5d21e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x110], eax
cmp edi, 0xffffffff
jne 0x447ff9
call fcn.0052c940
mov dword [esi + 4], eax
xor eax, eax
pop edi
mov dword [esi], 0x2719
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005329db
mov esp, ebp
pop ebp
ret
push ebx
mov bh, byte [ebp + 0xc]
mov bl, bh
and bl, 0x10
cmp byte [ebp + 0x1c], 0
mov byte [ebp - 0x109], bl
je 0x448022
test bl, bl
je 0x448028
call fcn.0052c940
mov dword [esi], 0
jmp 0x44812e
mov byte [ebp - 0x109], bl
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push edi
call fcn.00445bf0
add esp, 0x14
test eax, eax
jg 0x448133
test bl, bl
je 0x44804d
test eax, eax
je 0x448116
test bh, 1
jne 0x448131
call fcn.0052c940
cmp dword [esi + 4], eax
jne 0x448068
cmp dword [esi], 0x2733
je 0x448082
call fcn.0052c940
cmp dword [esi + 4], eax
jne 0x448131
cmp dword [esi], 0x4d5
jne 0x448131
push 0
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.0052c940
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
jne 0x4480d5
call fcn.0052c940
mov dword [esi], ebx
mov dword [esi + 4], eax
jmp 0x4480eb
jle 0x4480e7
call fcn.0052c940
mov dword [esi], 0
mov dword [esi + 4], eax
jmp 0x4480eb
test ebx, ebx
js 0x448131
mov edi, dword [ebp + 8]
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 0x110]
push edi
call fcn.00445bf0
add esp, 0x14
test eax, eax
jg 0x448133
mov bl, byte [ebp - 0x109]
mov bh, byte [ebp + 0xc]
jmp 0x448041
lea eax, [ebp - 0x114]
push 2
push eax
call fcn.00444870
add esp, 8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.005329db
mov esp, ebp
pop ebp
ret