joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401770
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push 0x1388
push 0x610
push 0x610
push 0xff
push 6
push 0x40040003
push eax
push ecx
pop edi
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
push eax
pop ebx
cmp ebx, 0xffffffff
jne 0x4017d1
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.00401f90
push eax
push str.oy36nex6stjpl91vdxhwocbukty1
call fcn.0040100f
add esp, 0xc
push ebx
mov dword [edi], ebx
sub esi, esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edi], ebx
pop edi
push esi
pop eax
pop esi
pop ebx
pop ebp
ret
push 0x10100180
push 6
push ebx
call fcn.004015a0
push eax
pop esi
add esp, 0xc
or esi, esi
jne 0x40180c
push str.twa57mwcowz5r37l6a8022fddkx56ticv1u
call fcn.0040100f
add esp, 4
or ebx, ebx
je 0x40180c
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edi], 0xffffffff
pop edi
push esi
pop eax
pop esi
pop ebx
pop ebp
ret
mov dword [edi], ebx
mov edi, dword [ebp + 8]
call fcn.004013e0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40275e
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x406c08
call fcn.00402a4c
sub ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x4075c8
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_b3pmmvtczjeyazq1ylig4v947o]
cmp eax, ebx
je 0x4024f0
cmp eax, esi
jne 0x4024e3
sub esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x4024f3
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4024ca
sub esi, esi
inc esi
mov eax, dword [0x4075b8]
cmp eax, esi
jne 0x402506
push 0x1f
call sub.msvcr90.dll__amsg_exit
pop ecx
jmp 0x402541
mov eax, dword [0x4075b8]
or eax, eax
jne 0x40253b
mov dword [0x4075b8], esi
push 0x405618
push 0x40530c
call sub.msvcr90.dll__initterm_e
pop ecx
pop ecx
or eax, eax
je 0x402541
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402618
mov dword [0x407274], esi
mov eax, dword [0x4075b8]
cmp eax, esi
jne 0x402565
push 0x405208
push section..rdata
call sub.msvcr90.dll__initterm
pop ecx
pop ecx
mov dword [0x4075b8], 2
cmp dword [ebp - 0x1c], ebx
jne 0x402572
push ebx
push edi
call dword [sym.imp.kernel32.dll_1k1852mhlyrwvmifq0t]
cmp dword [0x4075e0], ebx
je 0x402593
push 0x4075e0
call 0x402980
pop ecx
or eax, eax
je 0x402593
push ebx
push 2
push ebx
call dword [0x4075e0]
mov eax, dword [0x40725c]
mov ecx, dword [sym.imp.msvcr90.dll___winitenv]
mov dword [ecx], eax
push dword [0x40725c]
push dword [0x407260]
push dword [0x407258]
call fcn.00401005
add esp, 0xc
mov dword [0x407270], eax
cmp dword [0x407264], ebx
jne 0x4025fe
push eax
call dword [sym.imp.msvcr90.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcr90.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x407274], ebx
jne 0x40260c
call dword [sym.imp.msvcr90.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x407270]
call fcn.00402a91
ret
call 0x402b44
jmp 0x4024a8
Function at 0x408510
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3660
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4cf084]
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, edx
mov bl, cl
mov dword [ebp - 4], 0
mov esi, dword [0x4cfa10]
cmp esi, 0x4cfa10
je 0x40857d
test byte [esi + 0x1c], 2
je 0x40857d
cmp byte [esi + 0x19], 4
jb 0x40857d
push edi
movzx eax, bl
mov edx, 0x4bb9ac
push eax
push dword [esi + 0x14]
mov ecx, 0x77
push dword [esi + 0x10]
call fcn.00401990
add esp, 0x10
test bl, bl
je 0x4086c4
call fcn.00472b60
movzx eax, bl
mov word [ebp - 0x14], ax
mov eax, dword [ebp + 8]
mov word [ebp - 0x12], di
mov eax, dword [eax + 0x18]
mov esi, dword [eax]
cmp esi, 0xffffffff
jne 0x4085ae
call fcn.00472b60
mov ebx, 0x2719
jmp 0x4085f3
or byte [eax + 4], 8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x14]
push eax
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.00472b60
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x18], esi
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test edi, edi
jne 0x4085f9
xor ebx, ebx
call fcn.00472b60
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
xor ecx, ecx
mov eax, fcn.00412a70
test ebx, ebx
cmove eax, ecx
test eax, eax
je 0x40863a
mov eax, dword [0x4cfa10]
cmp eax, 0x4cfa10
je 0x40863a
test byte [eax + 0x1c], 2
je 0x40863a
cmp byte [eax + 0x19], 2
jb 0x40863a
push ebx
push dword [eax + 0x14]
mov edx, 0x4bb9ac
mov ecx, 0x78
push dword [eax + 0x10]
call fcn.00401960
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], 4
mov ecx, dword [eax + 0x18]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
mov dl, byte [ecx + 4]
lea eax, [ebp - 0x14]
mov ecx, dword [ecx]
push eax
push 0x80
push 0xffff
call fcn.00419470
add esp, 0x14
cmp dword [ebp - 0x1c], 0
jne 0x4086c4
cmp dword [ebp - 0x24], 4
jne 0x408719
mov ecx, dword [0x4cfa10]
cmp ecx, 0x4cfa10
je 0x4086c4
test byte [ecx + 0x1c], 2
je 0x4086c4
cmp byte [ecx + 0x19], 5
jb 0x4086c4
movzx eax, word [ebp - 0x12]
mov esi, str.FALSE
cmp word [ebp - 0x14], 0
mov edx, 0x4bb9ac
push eax
mov eax, str.TRUE
cmove eax, esi
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x79
call fcn.00401f60
add esp, 0x10
mov dword [ebp - 4], 2
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4086fd
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x4086fd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], edi
cmp edi, 1
jne 0x4086fd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
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.00477156
mov esp, ebp
pop ebp
ret
push str.linger_socket_option_resize
lea ecx, [ebp - 0x20]
call fcn.00411dd0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00411370
int3
Function at 0x40cbe0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x4cf084]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
call fcn.00472b60
mov esi, dword [esi]
cmp esi, 0xffffffff
jne 0x40cc0f
mov ebx, 0x2719
jmp 0x40cc47
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
push edi
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.00472b60
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x10], esi
mov ebx, eax
mov dword [esp + 0xc], ebx
test edi, edi
jne 0x40cc54
xor ebx, ebx
call fcn.00472b60
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x40cc6c
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00477156
mov esp, ebp
pop ebp
ret 4
mov edx, str.set_option
lea ecx, [esp + 0xc]
call fcn.0041af60
int3
Function at 0x40eca0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3e18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4cf084]
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 edx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], edi
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 8]
mov dword [edx + 8], 0
mov dword [ebp - 0x18], eax
mov dword [edx + 4], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
lea esi, [ecx + 0x14]
mov dword [ebp - 0x34], eax
push 0x168
mov dword [ebp - 0x28], esi
call fcn.00411d20
mov dl, byte [edi + 4]
mov ebx, eax
mov ecx, dword [edi]
add esp, 8
shr dl, 2
lea edi, [ebx + 0x28]
and dl, 1
mov dword [ebx + 0x24], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebx + 0x20], esi
mov esi, dword [ebp + 0xc]
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0x410a10
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x1c], 0
mov dword [edi], 0xffffffff
mov dword [ebx + 0x2c], esi
mov eax, dword [ecx + 0x1c]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], 0
mov byte [ebx + 0x158], dl
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x15c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x160], eax
mov dword [ebx + 0x164], 0
mov eax, dword [ebp - 0x18]
push ebx
push 0x90
mov dword [ebp - 0x18], 0
mov dword [ebx + 0x164], eax
lea eax, [ebx + 0x38]
cmp dword [esi], 0xffffffff
push eax
push 6
push 1
push dword [ecx + 0x1c]
setne al
mov dword [ebp - 0x1c], 0
push edi
movzx eax, al
push eax
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.004124c0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
call fcn.00410960
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x40ee2a
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x40ee2a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], edi
cmp edi, 1
jne 0x40ee2a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
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.00477156
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40f830
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3ea0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4cf084]
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 ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
push eax
push 0x5c
mov dword [ebp - 0x30], eax
call fcn.00411d20
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x28]
mov esi, dword [eax + 0xc]
test esi, esi
je 0x40f88d
lock inc dword [esi + 8]
mov esi, dword [eax + 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0x410610
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0x1c
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
test esi, esi
je 0x40f8ec
lea eax, [esi + 8]
lock inc dword [eax]
push dword [ebp - 0x30]
mov dword [edi + 0x28], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x2c], esi
mov eax, dword [ecx]
mov dword [edi + 0x30], eax
mov eax, dword [ecx + 4]
lea ecx, [edi + 0x38]
mov dword [edi + 0x34], eax
call fcn.0040f350
mov dword [ebp - 4], 0
test esi, esi
je 0x40f929
or eax, 0xffffffff
lea ecx, [esi + 8]
lock xadd dword [ecx], eax
jne 0x40f929
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 4]
add eax, 0x18
mov dword [ebp - 0x20], ecx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0x28]
push 0
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x40f963
mov ecx, dword [ebx + 4]
push 0x2719
push edi
call fcn.004123d0
jmp 0x40f9c6
push edi
lea ecx, [edi + 0x24]
mov dword [ebp - 0x14], 0
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 1
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x40f9bd
cmp eax, 0x3e5
je 0x40f9bd
push dword [ebp - 0x14]
mov ecx, dword [ebx + 4]
push eax
push edi
call fcn.004123d0
jmp 0x40f9c6
mov ecx, dword [ebx + 4]
push edi
call fcn.00412450
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.00477156
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40f9f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4cf084]
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 ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
push eax
push 0x54
mov dword [ebp - 0x2c], eax
call fcn.00411d20
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x24]
mov esi, dword [eax + 0xc]
test esi, esi
je 0x40fa4d
lock inc dword [esi + 8]
mov esi, dword [eax + 0xc]
mov ecx, dword [eax + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0x410490
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
test esi, esi
je 0x40fa9f
lea eax, [esi + 8]
lock inc dword [eax]
push dword [ebp - 0x2c]
mov dword [edi + 0x20], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x24], esi
mov eax, dword [ecx]
mov dword [edi + 0x28], eax
mov eax, dword [ecx + 4]
lea ecx, [edi + 0x30]
mov dword [edi + 0x2c], eax
call fcn.0040f350
mov dword [ebp - 4], 0
test esi, esi
je 0x40fadc
or eax, 0xffffffff
lea ecx, [esi + 8]
lock xadd dword [ecx], eax
jne 0x40fadc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov esi, 0x10
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], ecx
mov ecx, 0x1c
cmp word [eax], 2
mov eax, dword [ebx + 4]
cmovne esi, ecx
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0x24]
push 0
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x40fb2a
mov ecx, dword [ebx + 4]
push 0x2719
push edi
call fcn.004123d0
jmp 0x40fb81
push edi
push esi
push dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push 0
push ecx
push 1
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSASendTo]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x40fb78
cmp eax, 0x3e5
je 0x40fb78
push dword [ebp - 0x14]
mov ecx, dword [ebx + 4]
push eax
push edi
call fcn.004123d0
jmp 0x40fb81
mov ecx, dword [ebx + 4]
push edi
call fcn.00412450
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.00477156
mov esp, ebp
pop ebp
ret 0x14

Function at 0x411b70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x539a3c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411b88
mov edx, dword [eax + 4]
jmp 0x411b8a
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0xff
ja 0x411ba9
test edx, edx
je 0x411ba9
cmp dword [edx], 0
jne 0x411ba9
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.00477710
add esp, 4
pop ebp
ret
Function at 0x411bc0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4cf084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
push 0
je 0x411c14
mov ecx, dword [edi + 4]
push 0
push ebx
call fcn.004123d0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477156
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x411c3c
mov ecx, dword [edi + 4]
push 0x2719
push ebx
call fcn.004123d0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477156
mov esp, ebp
pop ebp
ret 0x18
push ebx
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 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 0x411c98
cmp eax, 0x3e5
je 0x411c98
push dword [ebp - 8]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.004123d0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477156
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [edi + 4]
push ebx
call fcn.00412450
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00477156
mov esp, ebp
pop ebp
ret 0x18

Function at 0x411cc0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x4cf084]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x411cfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0xc], esi
call fcn.00472b60
mov dword [esp + 0x10], eax
test esi, esi
jne 0x411d0f
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00477156
mov esp, ebp
pop ebp
ret
mov edx, 0x4bb460
lea ecx, [esp + 0xc]
call fcn.0041af60
int3

Function at 0x411d20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [0x539a3c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x411d5c
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x411d5c
mov eax, dword [ecx]
test eax, eax
je 0x411d5c
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jae 0x411d76
push eax
call fcn.00477710
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.00477167
xor edx, edx
movzx ecx, bl
add esp, 4
cmp ebx, 0xff
cmovbe edx, ecx
mov byte [eax + ebx], dl
pop ebx
pop ebp
ret
Function at 0x412060
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4cf084]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov dword [esp + 0x10], ecx
mov esi, edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx]
mov dword [esp + 0xc], ecx
push edi
mov edi, dword [ebp + 0x10]
cmp eax, 0x40
jne 0x4120a5
call fcn.00472b60
mov ecx, dword [esp + 0x10]
mov dword [ebx], 0x2745
mov dword [ebx + 4], eax
mov eax, dword [ebx]
test eax, eax
jne 0x412184
test ecx, ecx
je 0x412112
test edi, edi
je 0x412112
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebp + 8]
push eax
push eax
push 0
push esi
call dword [sym.imp.MSWSOCK.dll_GetAcceptExSockaddrs]
mov esi, dword [esp + 0x20]
cmp esi, dword [edi]
jbe 0x4120ff
call fcn.00472b60
mov dword [ebx], 0x2726
mov dword [ebx + 4], eax
jmp 0x412112
push esi
push dword [esp + 0x1c]
push dword [esp + 0x18]
call fcn.00479730
add esp, 0xc
mov dword [edi], esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], eax
cmp esi, 0xffffffff
jne 0x412142
call fcn.00472b60
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00477156
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [esp + 0x2c]
push eax
push 0x700b
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.00472b60
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
jne 0x412184
call fcn.00472b60
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00477156
mov esp, ebp
pop ebp
ret
Function at 0x412240
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4cf084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
push edi
mov edi, dword [ebp + 0x1c]
mov eax, dword [esi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
push 0
je 0x412294
mov ecx, dword [esi + 4]
push 0
push edi
call fcn.004123d0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477156
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebx]
cmp ecx, 0xffffffff
jne 0x4122bc
mov ecx, dword [esi + 4]
push 0x2719
push edi
call fcn.004123d0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477156
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x10]
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 0x4122f3
mov eax, 0x2746
jmp 0x412300
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
je 0x41232b
cmp eax, 0x3e5
je 0x41232b
push dword [ebp - 8]
mov ecx, dword [esi + 4]
push eax
push edi
call fcn.004123d0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477156
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [esi + 4]
push edi
call fcn.00412450
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00477156
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4158a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3f60
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4cf084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00477167
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00459eaf
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
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