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

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [0x6924ec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d3a19
mov eax, dword [eax + 4]
jmp 0x4d3a1b
xor eax, eax
push dword [ebp + 8]
mov byte [ebp - 4], 0
push eax
push dword [ebp - 4]
call fcn.00492910
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x4d3a40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x6924ec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d3a58
mov edx, dword [eax + 4]
jmp 0x4d3a5a
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0x3fc
ja 0x4d3a79
test edx, edx
je 0x4d3a79
cmp dword [edx], 0
jne 0x4d3a79
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.00470aa0
add esp, 4
pop ebp
ret

Function at 0x4d55e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x14]
cmp ebx, 0xffffffff
je 0x4d570e
cmp byte [ebp + 0x10], 0
je 0x4d5650
mov esi, dword [ebp + 0xc]
test byte [esi], 8
je 0x4d5650
xor eax, eax
lea ecx, [ebp - 0xc]
mov dword [ebp + 8], eax
call fcn.00487e10
or byte [esi], 8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp + 8]
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.004a4dd0
add esp, 8
test eax, eax
jne 0x4d5650
lea ecx, [ebp - 0xc]
call fcn.00487e10
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
call fcn.004a4dd0
mov esi, eax
add esp, 8
test esi, esi
je 0x4d570e
push 0
push 0x2733
lea ecx, [ebp - 0xc]
call fcn.0048c1b0
mov ecx, dword [edi]
cmp ecx, dword [ebp - 0xc]
jne 0x4d56b2
mov edx, dword [ebp - 4]
mov ecx, dword [edi + 8]
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
jne 0x4d56a2
cmp ecx, edx
sete al
test al, al
jne 0x4d56d2
jmp 0x4d56b2
mov eax, dword [edx + 8]
cmp dword [ecx + 8], eax
jne 0x4d56b2
mov eax, dword [edx + 0xc]
cmp dword [ecx + 0xc], eax
je 0x4d56d2
push 0
push 0x4d5
lea ecx, [ebp - 0xc]
call fcn.0048c1b0
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004c7840
add esp, 8
test al, al
je 0x4d570a
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 0xc]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
call fcn.004a4dd0
add esp, 8
mov esi, eax
test esi, esi
jne 0x4d5758
mov eax, dword [0x6924b8]
mov dword [ebp - 0xc], 0
mov byte [ebp - 8], 0
test al, 1
jne 0x4d5748
or eax, 1
mov dword [0x6924b0], 0x25c5e09b
mov dword [0x6924b8], eax
mov dword [0x6924b4], 0x8fafd21e
mov dword [0x6924a8], 0x614814
movq xmm0, qword [ebp - 0xc]
movq qword [edi], xmm0
mov dword [edi + 8], 0x6924a8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d5b50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, 0x4cf
jg 0x4d5b86
je 0x4d5b7f
cmp eax, 0x79
je 0x4d5b78
cmp eax, 0x4c9
jne 0x4d5b99
push 0x274d
jmp 0x4d5b92
push 0x274c
jmp 0x4d5b92
push 0x2743
jmp 0x4d5b92
cmp eax, 0x4d0
jne 0x4d5b99
push 0x2751
mov ecx, esi
call fcn.0048c2d0
cmp byte [esi + 4], 0
jne 0x4d5bf9
cmp dword [ebp + 8], 0xffffffff
jne 0x4d5bb6
push 0x2719
mov ecx, esi
call fcn.0048c2d0
pop esi
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0x7010
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
push esi
push eax
call fcn.004a4dd0
add esp, 8
test eax, eax
jne 0x4d5bf9
lea ecx, [ebp - 0xc]
call fcn.00487e10
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

Function at 0x4d5de0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x4d5e03
mov ecx, dword [ebp + 0x14]
push 0x2719
call fcn.0048c2d0
or eax, esi
pop esi
mov esp, ebp
pop ebp
ret
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 esi, dword [ebp + 0x14]
push esi
push eax
call fcn.004a4dd0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4d5e42
lea ecx, [ebp - 0xc]
call fcn.00487e10
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4d6420
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6925cc]
sub esp, 0x400
push esi
push edi
test al, 1
jne 0x4d6480
or eax, 1
mov dword [0x6925cc], eax
mov eax, dword [0x6929d0]
test al, 1
jne 0x4d6473
push 1
or eax, 1
push 0x4c11db7
mov dword [0x6929d0], eax
lea eax, [ebp - 0x400]
push 0x20
push eax
call fcn.004ab910
mov ecx, 0x100
mov esi, eax
mov edi, 0x6925d0
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
mov edi, 0x6925d0
mov dword [0x6925c8], edi
jmp 0x4d6486
mov edi, dword [0x6925c8]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test edx, edx
je 0x4d64a6
mov esi, dword [ebp + 0xc]
mov cl, byte [esi]
lea esi, [esi + 1]
xor cl, al
shr eax, 8
movzx ecx, cl
xor eax, dword [edi + ecx*4]
dec edx
jne 0x4d6493
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4df970
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x4df984
cmp byte [esi], 0
jne 0x4df986
xor esi, esi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4df992
cmp byte [edi], 0
jne 0x4df994
xor edi, edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004f3760
mov edx, dword [ebp + 0x1c]
mov esi, eax
mov eax, dword [ebp + 8]
add esp, 8
movq xmm0, qword [esi]
movq qword [edx], xmm0
mov ecx, dword [esi + 8]
mov dword [edx + 8], ecx
movq xmm0, qword [esi]
mov ecx, dword [esi + 8]
pop edi
movq qword [eax], xmm0
mov dword [eax + 8], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4dfaa0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
jne 0x4dfac3
mov ecx, dword [ebp + 0x14]
push 0x2719
call fcn.0048c2d0
or eax, edi
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp + 8]
mov dword [esi], ecx
mov esi, dword [ebp + 0x14]
push esi
push eax
call fcn.004a4dd0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4dfb10
lea ecx, [ebp - 0xc]
call fcn.00487e10
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4e1740
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]
push 0
push 0x6925a4
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x4e178f
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov esp, ebp
pop ebp
ret
push fcn.00421580
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 0x4e1c20
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [esi + 0x18], ecx
ja 0x4e1c72
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [esi + 8]
mov esi, dword [esi]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x4e1c8a
mov ecx, esi
jmp 0x4e1c8f
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x4e1cbc
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x4e1c9e
mov eax, dword [eax]
jmp 0x4e1c82
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
jne 0x4e1cae
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4e1cd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ebx, ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 8], ecx
push edi
mov edi, dword [eax + 0x10]
mov dword [ebp - 4], edi
cmp ecx, 0x10
jb 0x4e1cf3
mov esi, dword [eax]
jmp 0x4e1cf5
mov esi, eax
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x4e1d11
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4e1d00
mov ecx, dword [ebx + 0x14]
mov edi, ecx
and edi, edx
cmp dword [ebx + 0x18], edi
ja 0x4e1d26
shr ecx, 1
or eax, 0xffffffff
sub eax, ecx
add edi, eax
mov ecx, dword [ebx + 8]
lea eax, [edi + edi]
mov edx, dword [ebx]
lea eax, [eax + 1]
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov esi, dword [ecx + edi*8]
mov edi, dword [ecx + eax*4 - 4]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], eax
cmp edi, edx
jne 0x4e1d4f
mov eax, edx
jmp 0x4e1d53
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x4e1e73
cmp dword [ebp - 8], 0x10
lea ecx, [esi + 8]
jb 0x4e1d6b
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
jmp 0x4e1d6e
mov edi, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
mov dword [ebp - 4], eax
jb 0x4e1d7c
mov ecx, dword [ecx]
cmp eax, ebx
mov edx, ebx
cmovb edx, eax
test edx, edx
je 0x4e1de3
sub edx, 4
jb 0x4e1da1
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4e1da6
add ecx, 4
add edi, 4
sub edx, 4
jae 0x4e1d90
cmp edx, 0xfffffffc
je 0x4e1dda
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x4e1dd3
cmp edx, 0xfffffffd
je 0x4e1dda
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x4e1dd3
cmp edx, 0xfffffffe
je 0x4e1dda
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x4e1dd3
cmp edx, 0xffffffff
je 0x4e1dda
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x4e1dda
sbb eax, eax
or eax, 1
jmp 0x4e1ddc
xor eax, eax
test eax, eax
jne 0x4e1df3
mov eax, dword [ebp - 4]
cmp eax, ebx
jb 0x4e1df3
xor eax, eax
cmp dword [ebp - 4], ebx
setne al
test eax, eax
je 0x4e1e03
mov esi, dword [esi]
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
jmp 0x4e1d47
cmp dword [esi + 0x1c], 0x10
lea ecx, [esi + 8]
mov edi, dword [ecx + 0x10]
jb 0x4e1e11
mov ecx, dword [ecx]
cmp dword [ebp - 8], 0x10
jb 0x4e1e1f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
cmp ebx, edi
mov eax, edi
cmovb eax, ebx
push eax
push ecx
push dword [ebp + 0xc]
call fcn.004232c0
add esp, 0xc
test eax, eax
jne 0x4e1e5a
cmp ebx, edi
jb 0x4e1e5a
cmp ebx, edi
setne al
test eax, eax
jne 0x4e1e5a
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
pop edi
mov dword [ebp + 0xc], esi
mov ecx, dword [ecx]
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x4e8880
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x689300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jne 0x4e88be
push 0x2719
mov ecx, edi
call fcn.0048c2d0
pop edi
or eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8774
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x208], esi
mov dword [ebp - 0x20c], 1
push ebx
test ecx, ecx
js 0x4e8919
mov eax, 0x10624dd3
lea ebx, [ebp - 0x220]
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x220], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [ebp - 0x21c], eax
jmp 0x4e891b
xor ebx, ebx
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [0x6924b8]
mov esi, eax
pop ebx
test cl, 1
jne 0x4e8973
or ecx, 1
mov dword [0x6924b0], 0x25c5e09b
mov dword [0x6924b8], ecx
mov dword [0x6924b4], 0x8fafd21e
mov dword [0x6924a8], 0x614814
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x218], eax
mov ecx, 0x6924a8
push eax
mov eax, dword [0x6924a8]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x214], al
movq xmm0, qword [ebp - 0x218]
movq qword [edi], xmm0
mov dword [edi + 8], 0x6924a8
test esi, esi
js 0x4e89ff
mov eax, dword [0x6924b8]
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x214], 0
test al, 1
jne 0x4e89ec
or eax, 1
mov dword [0x6924b0], 0x25c5e09b
mov dword [0x6924b8], eax
mov dword [0x6924b4], 0x8fafd21e
mov dword [0x6924a8], 0x614814
movq xmm0, qword [ebp - 0x218]
movq qword [edi], xmm0
mov dword [edi + 8], 0x6924a8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.005b8774
mov esp, ebp
pop ebp
ret
Function at 0x4e8a20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x600aa0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x689300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x4e8ac2
mov ecx, edi
call fcn.004f21f0
mov eax, dword [0x6924b8]
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
test al, 1
jne 0x4e8a9a
or eax, 1
mov dword [0x6924b0], 0x25c5e09b
mov dword [0x6924b8], eax
mov dword [0x6924b4], 0x8fafd21e
mov dword [0x6924a8], 0x614814
mov eax, dword [ebp + 8]
movq xmm0, qword [ebp - 0x20]
movq qword [eax], xmm0
mov dword [eax + 8], 0x6924a8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
test edi, edi
je 0x4e8ae0
lea eax, [edi + 0x14]
jmp 0x4e8ae2
xor eax, eax
push dword [0x6924ec]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x6924ec]
call esi
push dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], 1
push 0
call fcn.004dc9d0
push dword [ebp - 0x18]
mov edi, eax
push dword [0x6924ec]
call esi
xor esi, esi
jmp 0x4e8b30
mov eax, dword [ebp + esi*4 - 0x14]
test eax, eax
je 0x4e8b41
push eax
call fcn.00470aa0
add esp, 4
inc esi
cmp esi, 2
jl 0x4e8b30
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 4
Function at 0x4eb3a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push edi
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]
push eax
call fcn.004a4dd0
mov ecx, dword [edi]
add esp, 8
mov ebx, eax
cmp ecx, 0x40
jne 0x4eb3fc
push 0x2746
mov ecx, edi
call fcn.0048c2d0
jmp 0x4eb43e
cmp ecx, 0x4d2
jne 0x4eb412
push 0x274d
mov ecx, edi
call fcn.0048c2d0
jmp 0x4eb43e
cmp ecx, 0x2738
je 0x4eb422
cmp ecx, 0xea
jne 0x4eb43e
push esi
mov esi, dword [edi + 8]
mov ecx, esi
mov dword [edi], 0
push 0
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
call eax
mov dword [edi + 8], esi
mov byte [edi + 4], al
pop esi
test ebx, ebx
je 0x4eb44b
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x6924b8]
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
test al, 1
jne 0x4eb485
or eax, 1
mov dword [0x6924b0], 0x25c5e09b
mov dword [0x6924b8], eax
mov dword [0x6924b4], 0x8fafd21e
mov dword [0x6924a8], 0x614814
movq xmm0, qword [ebp - 0x14]
mov eax, dword [ebp - 4]
movq qword [edi], xmm0
mov dword [edi + 8], 0x6924a8
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ecea0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x4ecee6
mov esi, dword [esi + 0x30]
test esi, esi
je 0x4ecedf
push ebx
or ebx, 0xffffffff
lea ecx, [esi + 4]
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x4ecede
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
cmp ebx, 1
jne 0x4ecede
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop ebx
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x4ecf2a
push dword [0x6924ec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ecf1a
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4ecf1a
cmp dword [ecx], 0
jne 0x4ecf1a
mov al, byte [esi + 0x44]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.00470aa0
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x4ecf30
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4ecf4a
add ecx, 0x30
call fcn.004c4570
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x4ecf91
push dword [0x6924ec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ecf81
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4ecf81
cmp dword [ecx], 0
jne 0x4ecf81
mov al, byte [esi + 0x80]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.00470aa0
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x4ecfa0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4ecfba
add ecx, 0x28
call fcn.004c3ee0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x4ed001
push dword [0x6924ec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ecff1
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4ecff1
cmp dword [ecx], 0
jne 0x4ecff1
mov al, byte [esi + 0xa0]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.00470aa0
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x4ef2a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6010a0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x689300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x4ef344
mov ecx, esi
call fcn.004f21f0
mov eax, dword [0x6924b8]
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
test al, 1
jne 0x4ef31b
or eax, 1
mov dword [0x6924b0], 0x25c5e09b
mov dword [0x6924b8], eax
mov dword [0x6924b4], 0x8fafd21e
mov dword [0x6924a8], 0x614814
mov eax, dword [ebp + 8]
movq xmm0, qword [ebp - 0x20]
movq qword [eax], xmm0
mov dword [eax + 8], 0x6924a8
xor eax, eax
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
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
test esi, esi
je 0x4ef362
lea eax, [esi + 0x14]
jmp 0x4ef364
xor eax, eax
push dword [0x6924ec]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x6924ec]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, esi
push ebx
push 0xffffffffffffffff
mov byte [ebp - 4], 1
xor edi, edi
call fcn.004dc9d0
test eax, eax
je 0x4ef3b7
cmp edi, 0xffffffff
je 0x4ef3a9
inc edi
push ebx
push 0xffffffffffffffff
mov ecx, esi
call fcn.004dc9d0
test eax, eax
jne 0x4ef3a3
push dword [ebp - 0x18]
push dword [0x6924ec]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
mov eax, dword [ebp + esi*4 - 0x14]
test eax, eax
je 0x4ef3d9
push eax
call fcn.00470aa0
add esp, 4
inc esi
cmp esi, 2
jl 0x4ef3c8
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