joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001a500
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [0x1022daec]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1001a542
mov eax, dword [eax + 4]
test eax, eax
je 0x1001a542
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1001a542
mov dword [eax + 8], 0
mov al, byte [ecx]
cmp al, 7
jb 0x1001a539
mov byte [ecx + 0x1c], al
jmp 0x1001a552
push ecx
call fcn.100317aa
add esp, 4
push 0x1d
call fcn.1003176a
mov ecx, eax
add esp, 4
mov byte [ecx + 0x1c], 7
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x1001a58d
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 8], eax
movq xmm0, qword [ebp + 0x10]
movq qword [ecx + 0xc], xmm0
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x14], eax
mov eax, esi
mov dword [ecx], 0x1001abd0
mov dword [esi], ecx
mov dword [ebp - 0xc], 0
pop esi
mov esp, ebp
pop ebp
ret 0x18
xor ecx, ecx
mov eax, esi
mov dword [esi], ecx
mov dword [ebp - 0xc], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x1001a5a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a8088
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x1021bfec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x28]
mov dword [ebp - 4], 0
push dword [0x1022daec]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1001a60e
mov eax, dword [eax + 4]
test eax, eax
je 0x1001a60e
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1001a60e
mov dword [eax + 8], 0
mov al, byte [ecx]
cmp al, 0xa
jb 0x1001a605
mov byte [ecx + 0x28], al
jmp 0x1001a61e
push ecx
call fcn.100317aa
add esp, 4
push 0x29
call fcn.1003176a
mov ecx, eax
add esp, 4
mov byte [ecx + 0x28], 0xa
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x1001a67e
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x14], eax
movq xmm0, qword [ebp + 0x1c]
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
movq qword [ecx + 0x18], xmm0
mov eax, dword [ebp + 0x24]
mov dword [ecx + 0x20], eax
mov dword [ecx], 0x1001acd0
jmp 0x1001a680
xor ecx, ecx
mov dword [esi], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.1001a9a0
lea ecx, [ebp + 0xc]
call fcn.10013290
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x24
Function at 0x1001a6b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a80be
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1021bfec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x20]
mov dword [ebp - 4], 0
push dword [0x1022daec]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1001a720
mov eax, dword [eax + 4]
test eax, eax
je 0x1001a720
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1001a720
mov dword [eax + 8], 0
mov al, byte [ecx]
cmp al, 8
jb 0x1001a717
mov byte [ecx + 0x20], al
jmp 0x1001a730
push ecx
call fcn.100317aa
add esp, 4
push 0x21
call fcn.1003176a
mov ecx, eax
add esp, 4
mov byte [ecx + 0x20], 8
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x1001a776
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0xc], eax
movq xmm0, qword [ebp + 0x14]
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
movq qword [ecx + 0x10], xmm0
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 0x18], eax
mov dword [ecx], 0x1001ada0
jmp 0x1001a778
xor ecx, ecx
mov dword [edi], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.1001a8e0
mov dword [ebp - 4], 1
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1001a7b8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1001a7b8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1001a7b8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
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 0x1c

Function at 0x1001a8e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a7886
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1021bfec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x1001a944
mov dword [ebp - 4], 0
mov esi, dword [esi + 0xc]
test esi, esi
je 0x1001a93d
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1001a93d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1001a93d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x1001a982
push dword [0x1022daec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1001a972
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1001a972
cmp dword [ecx + 8], 0
jne 0x1001a972
mov al, byte [esi + 0x20]
mov byte [esi], al
mov dword [ecx + 8], esi
jmp 0x1001a97b
push esi
call fcn.100317aa
add esp, 4
mov dword [edi + 4], 0
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 0x1001a9a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x1001a9ba
add ecx, 8
call fcn.10013290
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x1001aa00
push dword [0x1022daec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1001a9f0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1001a9f0
cmp dword [ecx + 8], 0
jne 0x1001a9f0
mov al, byte [esi + 0x28]
mov byte [esi], al
mov dword [ecx + 8], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.100317aa
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x1001b330
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, edx
cmp ecx, 0xffffffff
jne 0x1001b363
mov edx, 0x2719
lea ecx, [ebp - 0x10]
call fcn.10010b30
mov ecx, dword [ebp + 0xc]
movq xmm0, qword [eax]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0x8004667e
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [ebp + 0xc]
mov esi, eax
test esi, esi
sets dl
call fcn.10011930
test esi, esi
pop esi
js 0x1001b35c
or byte [edi], 2
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x1001b3a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, edx
push edi
mov edi, ecx
mov eax, dword [esi]
cmp eax, 0x4cf
jg 0x1001b3d8
je 0x1001b3d1
cmp eax, 0x79
je 0x1001b3ca
cmp eax, 0x4c9
jne 0x1001b3fa
mov edx, 0x274d
jmp 0x1001b3e4
mov edx, 0x274c
jmp 0x1001b3e4
mov edx, 0x2743
jmp 0x1001b3e4
cmp eax, 0x4d0
jne 0x1001b3fa
mov edx, 0x2751
lea ecx, [ebp - 0xc]
call fcn.10010b30
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
cmp byte [esi + 4], 0
jne 0x1001b447
cmp edi, 0xffffffff
jne 0x1001b426
mov edx, 0x2719
lea ecx, [ebp - 0xc]
call fcn.10010b30
pop edi
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x7010
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
mov ecx, esi
setne dl
call fcn.10011930
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001b450
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1021bfec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x20c], 1
push eax
mov esi, ecx
mov dword [ebp - 0x108], 1
lea eax, [ebp - 0x108]
mov dword [ebp - 0x208], esi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x104], esi
push eax
push 0
lea eax, [esi + 1]
mov dword [ebp - 0x21c], 0
push eax
mov edi, edx
mov dword [ebp - 0x218], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x1001b4d4
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101677cc
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x210], 0
cmp esi, 0xffffffff
jne 0x1001b513
mov edx, 0x2719
lea ecx, [ebp - 0x228]
call fcn.10010b30
movq xmm0, qword [eax]
movq qword [edi], xmm0
mov eax, dword [eax + 8]
mov dword [edi + 8], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101677cc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 4
push eax
lea eax, [ebp - 0x210]
push eax
push 0x1007
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
mov esi, eax
mov ecx, edi
test esi, esi
setne dl
call fcn.10011930
test esi, esi
jne 0x1001b65d
mov edx, dword [ebp - 0x210]
test edx, edx
je 0x1001b61b
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10228880]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1022c6ac]
cmp eax, dword [ecx + 4]
jle 0x1001b5aa
push 0x1022c6ac
call fcn.1016792e
add esp, 4
cmp dword [0x1022c6ac], 0xffffffff
jne 0x1001b5a4
call fcn.10005060
push 0x1022c6ac
call fcn.101678ef
add esp, 4
mov edx, dword [ebp - 0x210]
mov ecx, dword [0x1022c6d8]
mov eax, dword [0x1022c6dc]
mov dword [ebp - 0x228], edx
cmp ecx, 0x25c5e09b
jne 0x1001b5ca
cmp eax, 0x8fafd21e
je 0x1001b5d9
cmp ecx, 0x257edf0d
jne 0x1001b5e0
cmp eax, 0xb2ab117a
jne 0x1001b5e0
test edx, edx
setne al
jmp 0x1001b5f0
mov eax, dword [0x1022c6d0]
mov ecx, 0x1022c6d0
push edx
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x224], al
mov al, 1
movq xmm0, qword [ebp - 0x228]
movq qword [edi], xmm0
mov dword [edi + 8], 0x1022c6d0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101677cc
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 8]
mov dword [edi], 0
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp ecx, 0x25c5e09b
jne 0x1001b639
cmp eax, 0x8fafd21e
je 0x1001b648
cmp ecx, 0x257edf0d
jne 0x1001b64c
cmp eax, 0xb2ab117a
jne 0x1001b64c
xor al, al
jmp 0x1001b657
mov eax, dword [esi]
mov ecx, esi
push 0
mov eax, dword [eax + 0x18]
call eax
mov byte [edi + 4], al
mov dword [edi + 8], esi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.101677cc
mov esp, ebp
pop ebp
ret
Function at 0x1001b670
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 1
push edx
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov esi, dword [ebp + 0x10]
mov dl, 1
mov ecx, esi
mov edi, eax
call fcn.10011930
mov ecx, dword [esi]
cmp ecx, 0x40
jne 0x1001b6b8
mov edx, 0x2746
jmp 0x1001b6c5
cmp ecx, 0x4d2
jne 0x1001b6dd
mov edx, 0x274d
lea ecx, [ebp - 0x14]
call fcn.10010b30
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
jmp 0x1001b6ed
cmp ecx, 0x2738
je 0x1001b6fa
cmp ecx, 0xea
je 0x1001b6fa
test edi, edi
je 0x1001b6fa
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 8]
mov dword [esi], 0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
cmp ecx, 0x25c5e09b
jne 0x1001b718
cmp eax, 0x8fafd21e
je 0x1001b727
cmp ecx, 0x257edf0d
jne 0x1001b738
cmp eax, 0xb2ab117a
jne 0x1001b738
xor al, al
mov dword [esi + 8], edi
mov byte [esi + 4], al
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, edi
push 0
mov eax, dword [eax + 0x18]
call eax
mov dword [esi + 8], edi
mov byte [esi + 4], al
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001b870
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, edx
cmp ecx, 0xffffffff
jne 0x1001b8a4
mov edx, 0x2719
lea ecx, [ebp - 0xc]
call fcn.10010b30
mov ecx, dword [ebp + 0x10]
pop esi
movq xmm0, qword [eax]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push ebx
push 0x8004667e
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [ebp + 0x10]
mov edi, eax
test edi, edi
sets dl
call fcn.10011930
test edi, edi
js 0x1001b8dd
cmp dword [ebx], 0
je 0x1001b8da
or byte [esi], 1
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
and byte [esi], 0xfc
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001b8f0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
test edx, edx
jne 0x1001b949
test ecx, ecx
jne 0x1001b949
cmp dword [ebp + 0xc], ecx
jne 0x1001b949
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1001b96a
mov eax, 0x10624dd3
imul dword [esi + 4]
imul eax, dword [esi], 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
mov eax, 1
cmove ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0x14]
push dword [ecx + 8]
push ecx
call fcn.10010a90
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1001b96a
cmp dword [esi], 0
jne 0x1001b96a
mov eax, dword [esi + 4]
test eax, eax
jle 0x1001b96a
cmp eax, 0x3e8
jge 0x1001b96a
mov dword [esi + 4], 0x3e8
push esi
push dword [ebp + 0xc]
push ecx
push edx
push ebx
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [ebp + 0x14]
mov esi, eax
test esi, esi
sets dl
call fcn.10011930
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x1001c1f0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a821b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x1021bfec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 8]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::asio::detail::select_reactor.0
mov ecx, dword [ecx]
call fcn.10016f70
lea ecx, [esi + 0x18]
mov dword [esi + 0x14], eax
call fcn.1000e640
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.1001ba90
push 0x1001c3e0
push 0x1001daa0
push 4
push 0x1c
lea eax, [esi + 0x38]
mov byte [ebp - 4], 2
push eax
call fcn.10167e7a
push 0x1001b0e0
push 0x1001b0b0
push 3
push 0xc
lea eax, [esi + 0xa8]
mov byte [ebp - 4], 3
push eax
call fcn.10167e7a
mov byte [ebp - 4], 4
mov dword [esi + 0xcc], 0
push 0xc
mov byte [esi + 0xd0], 0
mov dword [esi + 0xd4], 0
mov byte [esi + 0xd8], 0
call fcn.1003176a
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov byte [ebp - 4], 5
test edi, edi
je 0x1001c316
push 0x10
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.1003176a
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001c302
mov dword [eax], vtable.boost::asio::detail::win_thread::func_class_boost::asio::detail::select_reactor::thread_function_.0
mov dword [eax + 0xc], esi
jmp 0x1001c304
xor eax, eax
push 0
push eax
mov ecx, edi
call fcn.1000eaa0
mov dword [esi + 0xd4], edi
jmp 0x1001c320
mov dword [esi + 0xd4], 0
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 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
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 0x1001caf3
mov ecx, dword [edi + 4]
push 0
push dword [ebp + 0x1c]
call fcn.100115f0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x1001cb15
mov ecx, dword [edi + 4]
push 0x2719
push dword [ebp + 0x1c]
call fcn.100115f0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov ebx, dword [ebp + 0x1c]
lea ecx, [ebp + 0x18]
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 0x1001cb69
cmp eax, 0x3e5
je 0x1001cb69
push dword [ebp + 0x18]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.100115f0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov ecx, dword [edi + 4]
push ebx
call fcn.10011580
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
Function at 0x1001cb80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
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 0x1001cbb3
mov ecx, dword [esi + 4]
push 0
push dword [ebp + 0x1c]
call fcn.100115f0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
jne 0x1001cbd5
mov ecx, dword [esi + 4]
push 0x2719
push dword [ebp + 0x1c]
call fcn.100115f0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x1c]
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 0x1001cc0f
mov eax, 0x2746
jmp 0x1001cc1c
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
je 0x1001cc3c
cmp eax, 0x3e5
je 0x1001cc3c
push dword [ebp + 0x18]
mov ecx, dword [esi + 4]
push eax
push edi
call fcn.100115f0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov ecx, dword [esi + 4]
push edi
call fcn.10011580
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
Function at 0x10020fd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a80be
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1021bfec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x34]
mov dword [ebp - 4], 0
push dword [0x1022daec]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10021040
mov eax, dword [eax + 4]
test eax, eax
je 0x10021040
mov esi, dword [eax + 8]
test esi, esi
je 0x10021040
mov dword [eax + 8], 0
mov al, byte [esi]
cmp al, 0xd
jb 0x10021037
mov byte [esi + 0x34], al
jmp 0x10021050
push esi
call fcn.100317aa
add esp, 4
push 0x35
call fcn.1003176a
mov esi, eax
add esp, 4
mov byte [esi + 0x34], 0xd
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
test esi, esi
je 0x100210a0
mov eax, dword [ebp + 8]
lea ecx, [esi + 8]
mov dword [esi + 4], eax
lea eax, [ebp + 0xc]
push eax
call fcn.1001f670
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x20], eax
movq xmm0, qword [ebp + 0x28]
movq qword [esi + 0x24], xmm0
mov eax, dword [ebp + 0x30]
mov dword [esi + 0x2c], eax
mov dword [esi], 0x10021200
jmp 0x100210a2
xor esi, esi
lea ecx, [ebp - 0x18]
mov dword [edi], esi
mov dword [ebp - 0x14], 0
call fcn.10021110
mov dword [ebp - 4], 1
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x100210e2
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x100210e2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x100210e2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
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 0x30

Function at 0x10021110
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a7886
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1021bfec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x10021174
mov dword [ebp - 4], 0
mov esi, dword [esi + 0xc]
test esi, esi
je 0x1002116d
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1002116d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1002116d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x100211b2
push dword [0x1022daec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100211a2
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100211a2
cmp dword [ecx + 8], 0
jne 0x100211a2
mov al, byte [esi + 0x34]
mov byte [esi], al
mov dword [ecx + 8], esi
jmp 0x100211ab
push esi
call fcn.100317aa
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret