joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4085e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3640
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 0x40864d
test byte [esi + 0x1c], 2
je 0x40864d
cmp byte [esi + 0x19], 4
jb 0x40864d
push edi
movzx eax, bl
mov edx, 0x4bba90
push eax
push dword [esi + 0x14]
mov ecx, 0x77
push dword [esi + 0x10]
call fcn.00401990
add esp, 0x10
test bl, bl
je 0x408794
call fcn.00472b40
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 0x40867e
call fcn.00472b40
mov ebx, 0x2719
jmp 0x4086c3
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.00472b40
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 0x4086c9
xor ebx, ebx
call fcn.00472b40
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
xor ecx, ecx
mov eax, fcn.00412b40
test ebx, ebx
cmove eax, ecx
test eax, eax
je 0x40870a
mov eax, dword [0x4cfa10]
cmp eax, 0x4cfa10
je 0x40870a
test byte [eax + 0x1c], 2
je 0x40870a
cmp byte [eax + 0x19], 2
jb 0x40870a
push ebx
push dword [eax + 0x14]
mov edx, 0x4bba90
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.00419530
add esp, 0x14
cmp dword [ebp - 0x1c], 0
jne 0x408794
cmp dword [ebp - 0x24], 4
jne 0x4087e9
mov ecx, dword [0x4cfa10]
cmp ecx, 0x4cfa10
je 0x408794
test byte [ecx + 0x1c], 2
je 0x408794
cmp byte [ecx + 0x19], 5
jb 0x408794
movzx eax, word [ebp - 0x12]
mov esi, str.FALSE
cmp word [ebp - 0x14], 0
mov edx, 0x4bba90
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 0x4087cd
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x4087cd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], edi
cmp edi, 1
jne 0x4087cd
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.00477136
mov esp, ebp
pop ebp
ret
push str.linger_socket_option_resize
lea ecx, [ebp - 0x20]
call fcn.00411ea0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00411440
int3
Function at 0x40ccb0
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.00472b40
mov esi, dword [esi]
cmp esi, 0xffffffff
jne 0x40ccdf
mov ebx, 0x2719
jmp 0x40cd17
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.00472b40
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 0x40cd24
xor ebx, ebx
call fcn.00472b40
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x40cd3c
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00477136
mov esp, ebp
pop ebp
ret 4
mov edx, str.set_option
lea ecx, [esp + 0xc]
call fcn.0041b020
int3
Function at 0x40ed70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3df8
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.00411df0
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], 0x410ae0
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.00412590
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
call fcn.00410a30
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x40eefa
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x40eefa
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], edi
cmp edi, 1
jne 0x40eefa
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.00477136
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40f900
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3e80
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.00411df0
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x28]
mov esi, dword [eax + 0xc]
test esi, esi
je 0x40f95d
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], 0x4106e0
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 0x40f9bc
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.0040f420
mov dword [ebp - 4], 0
test esi, esi
je 0x40f9f9
or eax, 0xffffffff
lea ecx, [esi + 8]
lock xadd dword [ecx], eax
jne 0x40f9f9
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 0x40fa33
mov ecx, dword [ebx + 4]
push 0x2719
push edi
call fcn.004124a0
jmp 0x40fa96
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 0x40fa8d
cmp eax, 0x3e5
je 0x40fa8d
push dword [ebp - 0x14]
mov ecx, dword [ebx + 4]
push eax
push edi
call fcn.004124a0
jmp 0x40fa96
mov ecx, dword [ebx + 4]
push edi
call fcn.00412520
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.00477136
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40fac0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3eb0
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.00411df0
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x24]
mov esi, dword [eax + 0xc]
test esi, esi
je 0x40fb1d
lock inc dword [esi + 8]
mov esi, dword [eax + 0xc]
mov ecx, dword [eax + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0x410560
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 0x40fb6f
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.0040f420
mov dword [ebp - 4], 0
test esi, esi
je 0x40fbac
or eax, 0xffffffff
lea ecx, [esi + 8]
lock xadd dword [ecx], eax
jne 0x40fbac
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 0x40fbfa
mov ecx, dword [ebx + 4]
push 0x2719
push edi
call fcn.004124a0
jmp 0x40fc51
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 0x40fc48
cmp eax, 0x3e5
je 0x40fc48
push dword [ebp - 0x14]
mov ecx, dword [ebx + 4]
push eax
push edi
call fcn.004124a0
jmp 0x40fc51
mov ecx, dword [ebx + 4]
push edi
call fcn.00412520
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.00477136
mov esp, ebp
pop ebp
ret 0x14

Function at 0x411c40
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 0x411c58
mov edx, dword [eax + 4]
jmp 0x411c5a
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0xff
ja 0x411c79
test edx, edx
je 0x411c79
cmp dword [edx], 0
jne 0x411c79
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.004776f0
add esp, 4
pop ebp
ret
Function at 0x411c90
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 0x411ce4
mov ecx, dword [edi + 4]
push 0
push ebx
call fcn.004124a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477136
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x411d0c
mov ecx, dword [edi + 4]
push 0x2719
push ebx
call fcn.004124a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477136
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 0x411d68
cmp eax, 0x3e5
je 0x411d68
push dword [ebp - 8]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.004124a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477136
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [edi + 4]
push ebx
call fcn.00412520
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00477136
mov esp, ebp
pop ebp
ret 0x18

Function at 0x411d90
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 0x411dcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0xc], esi
call fcn.00472b40
mov dword [esp + 0x10], eax
test esi, esi
jne 0x411ddf
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00477136
mov esp, ebp
pop ebp
ret
mov edx, 0x4bb544
lea ecx, [esp + 0xc]
call fcn.0041b020
int3

Function at 0x411df0
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 0x411e2c
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x411e2c
mov eax, dword [ecx]
test eax, eax
je 0x411e2c
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jae 0x411e46
push eax
call fcn.004776f0
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.00477147
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 0x412130
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 0x412175
call fcn.00472b40
mov ecx, dword [esp + 0x10]
mov dword [ebx], 0x2745
mov dword [ebx + 4], eax
mov eax, dword [ebx]
test eax, eax
jne 0x412254
test ecx, ecx
je 0x4121e2
test edi, edi
je 0x4121e2
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 0x4121cf
call fcn.00472b40
mov dword [ebx], 0x2726
mov dword [ebx + 4], eax
jmp 0x4121e2
push esi
push dword [esp + 0x1c]
push dword [esp + 0x18]
call fcn.00479710
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 0x412212
call fcn.00472b40
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.00477136
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.00472b40
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
jne 0x412254
call fcn.00472b40
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.00477136
mov esp, ebp
pop ebp
ret
Function at 0x412310
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 0x412364
mov ecx, dword [esi + 4]
push 0
push edi
call fcn.004124a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477136
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebx]
cmp ecx, 0xffffffff
jne 0x41238c
mov ecx, dword [esi + 4]
push 0x2719
push edi
call fcn.004124a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477136
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 0x4123c3
mov eax, 0x2746
jmp 0x4123d0
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
je 0x4123fb
cmp eax, 0x3e5
je 0x4123fb
push dword [ebp - 8]
mov ecx, dword [esi + 4]
push eax
push edi
call fcn.004124a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477136
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [esi + 4]
push edi
call fcn.00412520
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00477136
mov esp, ebp
pop ebp
ret 0x18

Function at 0x415960
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3f40
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.00477147
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00459e9f
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
Function at 0x415a20
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3540
mov eax, dword fs:[0]
push eax
push ecx
push ebx
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
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00477147
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00459e9f
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov ebx, dword [ebp + 8]
mov dword [edi + 0xc], eax
add esp, 8
mov dword [edi + 0x10], ecx
lea eax, [edi + 0x14]
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 [edi + 0x34], esi
mov dword [ecx], 0
mov ecx, ebx
mov eax, dword [edi + 0x20]
not ecx
and ecx, 1
shl ecx, 2
mov edx, ecx
mov dword [eax], 0
or edx, 2
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, ebx
and al, 2
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, ebx
mov dword [edi + 0x38], 0
cmovne edx, ecx
mov ecx, edx
or ecx, 8
and al, 8
cmove ecx, edx
mov eax, ecx
or eax, 0x10
and bl, 4
cmove eax, ecx
mov dword [edi + 0x3c], eax
mov eax, edi
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 0x419680
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x4cf084]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 8], esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp esi, 0xffffffff
jne 0x4196c5
call fcn.00472b40
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
jmp 0x419703
push 0
call edi
push dword [ebp + 8]
push dword [esp + 0x18]
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
call fcn.00472b40
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
jne 0x4196f9
call fcn.00472b40
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov edi, dword [sym.imp.WS2_32.dll_WSASetLastError]
mov esi, dword [esp + 0xc]
call fcn.00472b40
cmp dword [ebx + 4], eax
jne 0x419715
cmp dword [ebx], 0x2734
je 0x41972f
call fcn.00472b40
cmp dword [ebx + 4], eax
jne 0x419827
cmp dword [ebx], 0x2733
jne 0x419827
cmp esi, 0xffffffff
jne 0x419757
call fcn.00472b40
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00477136
mov esp, ebp
pop ebp
ret
push 0
mov dword [esp + 0x128], esi
mov dword [esp + 0x124], 1
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 1
call edi
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x128]
push eax
push 0
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
call fcn.00472b40
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
js 0x419827
call fcn.00472b40
push 0
mov dword [ebx], 0
mov dword [ebx + 4], eax
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 4
push eax
lea eax, [esp + 0x14]
push eax
push 0x1007
push 0xffff
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_getsockopt]
mov edi, eax
call fcn.00472b40
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
jne 0x419814
call fcn.00472b40
mov dword [ebx], edi
mov dword [ebx + 4], eax
jmp 0x419819
cmp edi, 0xffffffff
je 0x419827
call fcn.00472b40
mov ecx, dword [esp + 0x10]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00477136
mov esp, ebp
pop ebp
ret