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

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [0x68f4ec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d2f69
mov eax, dword [eax + 4]
jmp 0x4d2f6b
xor eax, eax
push dword [ebp + 8]
mov byte [ebp - 4], 0
push eax
push dword [ebp - 4]
call fcn.004928d0
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x4d2f90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x68f4ec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d2fa8
mov edx, dword [eax + 4]
jmp 0x4d2faa
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0x3fc
ja 0x4d2fc9
test edx, edx
je 0x4d2fc9
cmp dword [edx], 0
jne 0x4d2fc9
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.005b7634
add esp, 4
pop ebp
ret

Function at 0x4d4b30
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 0x4d4c5e
cmp byte [ebp + 0x10], 0
je 0x4d4ba0
mov esi, dword [ebp + 0xc]
test byte [esi], 8
je 0x4d4ba0
xor eax, eax
lea ecx, [ebp - 0xc]
mov dword [ebp + 8], eax
call fcn.00487ec0
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.004a4ba0
add esp, 8
test eax, eax
jne 0x4d4ba0
lea ecx, [ebp - 0xc]
call fcn.00487ec0
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.004a4ba0
mov esi, eax
add esp, 8
test esi, esi
je 0x4d4c5e
push 0
push 0x2733
lea ecx, [ebp - 0xc]
call fcn.0048c240
mov ecx, dword [edi]
cmp ecx, dword [ebp - 0xc]
jne 0x4d4c02
mov edx, dword [ebp - 4]
mov ecx, dword [edi + 8]
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
jne 0x4d4bf2
cmp ecx, edx
sete al
test al, al
jne 0x4d4c22
jmp 0x4d4c02
mov eax, dword [edx + 8]
cmp dword [ecx + 8], eax
jne 0x4d4c02
mov eax, dword [edx + 0xc]
cmp dword [ecx + 0xc], eax
je 0x4d4c22
push 0
push 0x4d5
lea ecx, [ebp - 0xc]
call fcn.0048c240
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004c6d30
add esp, 8
test al, al
je 0x4d4c5a
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.004a4ba0
add esp, 8
mov esi, eax
test esi, esi
jne 0x4d4ca8
mov eax, dword [0x68f4b8]
mov dword [ebp - 0xc], 0
mov byte [ebp - 8], 0
test al, 1
jne 0x4d4c98
or eax, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], eax
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
movq xmm0, qword [ebp - 0xc]
movq qword [edi], xmm0
mov dword [edi + 8], 0x68f4a8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d50a0
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 0x4d50d6
je 0x4d50cf
cmp eax, 0x79
je 0x4d50c8
cmp eax, 0x4c9
jne 0x4d50e9
push 0x274d
jmp 0x4d50e2
push 0x274c
jmp 0x4d50e2
push 0x2743
jmp 0x4d50e2
cmp eax, 0x4d0
jne 0x4d50e9
push 0x2751
mov ecx, esi
call fcn.0048c390
cmp byte [esi + 4], 0
jne 0x4d5149
cmp dword [ebp + 8], 0xffffffff
jne 0x4d5106
push 0x2719
mov ecx, esi
call fcn.0048c390
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.004a4ba0
add esp, 8
test eax, eax
jne 0x4d5149
lea ecx, [ebp - 0xc]
call fcn.00487ec0
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 0x4d52e0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x4d5303
mov ecx, dword [ebp + 0x14]
push 0x2719
call fcn.0048c390
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.004a4ba0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4d5342
lea ecx, [ebp - 0xc]
call fcn.00487ec0
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 0x4d5920
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x68f5cc]
sub esp, 0x400
push esi
push edi
test al, 1
jne 0x4d5980
or eax, 1
mov dword [0x68f5cc], eax
mov eax, dword [0x68f9d0]
test al, 1
jne 0x4d5973
push 1
or eax, 1
push 0x4c11db7
mov dword [0x68f9d0], eax
lea eax, [ebp - 0x400]
push 0x20
push eax
call fcn.004ab230
mov ecx, 0x100
mov esi, eax
mov edi, 0x68f5d0
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
mov edi, 0x68f5d0
mov dword [0x68f5c8], edi
jmp 0x4d5986
mov edi, dword [0x68f5c8]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test edx, edx
je 0x4d59a6
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 0x4d5993
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4deda0
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 0x4dedb4
cmp byte [esi], 0
jne 0x4dedb6
xor esi, esi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4dedc2
cmp byte [edi], 0
jne 0x4dedc4
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.004f2d40
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 0x4deed0
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 0x4deef3
mov ecx, dword [ebp + 0x14]
push 0x2719
call fcn.0048c390
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.004a4ba0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4def40
lea ecx, [ebp - 0xc]
call fcn.00487ec0
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 0x4e0b80
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 0x68f5a4
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x4e0bcf
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 0x4e1060
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 0x4e10b2
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 0x4e10ca
mov ecx, esi
jmp 0x4e10cf
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x4e10fc
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x4e10de
mov eax, dword [eax]
jmp 0x4e10c2
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
jne 0x4e10ee
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 0x4e1110
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 0x4e1133
mov esi, dword [eax]
jmp 0x4e1135
mov esi, eax
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x4e1151
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4e1140
mov ecx, dword [ebx + 0x14]
mov edi, ecx
and edi, edx
cmp dword [ebx + 0x18], edi
ja 0x4e1166
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 0x4e118f
mov eax, edx
jmp 0x4e1193
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x4e12b3
cmp dword [ebp - 8], 0x10
lea ecx, [esi + 8]
jb 0x4e11ab
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
jmp 0x4e11ae
mov edi, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
mov dword [ebp - 4], eax
jb 0x4e11bc
mov ecx, dword [ecx]
cmp eax, ebx
mov edx, ebx
cmovb edx, eax
test edx, edx
je 0x4e1223
sub edx, 4
jb 0x4e11e1
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4e11e6
add ecx, 4
add edi, 4
sub edx, 4
jae 0x4e11d0
cmp edx, 0xfffffffc
je 0x4e121a
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x4e1213
cmp edx, 0xfffffffd
je 0x4e121a
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x4e1213
cmp edx, 0xfffffffe
je 0x4e121a
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x4e1213
cmp edx, 0xffffffff
je 0x4e121a
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x4e121a
sbb eax, eax
or eax, 1
jmp 0x4e121c
xor eax, eax
test eax, eax
jne 0x4e1233
mov eax, dword [ebp - 4]
cmp eax, ebx
jb 0x4e1233
xor eax, eax
cmp dword [ebp - 4], ebx
setne al
test eax, eax
je 0x4e1243
mov esi, dword [esi]
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
jmp 0x4e1187
cmp dword [esi + 0x1c], 0x10
lea ecx, [esi + 8]
mov edi, dword [ecx + 0x10]
jb 0x4e1251
mov ecx, dword [ecx]
cmp dword [ebp - 8], 0x10
jb 0x4e125f
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 0x4e129a
cmp ebx, edi
jb 0x4e129a
cmp ebx, edi
setne al
test eax, eax
jne 0x4e129a
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 0x4e7d80
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x686300]
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 0x4e7dbe
push 0x2719
mov ecx, edi
call fcn.0048c390
pop edi
or eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b7dc4
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 0x4e7e19
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 0x4e7e1b
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 [0x68f4b8]
mov esi, eax
pop ebx
test cl, 1
jne 0x4e7e73
or ecx, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], ecx
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x218], eax
mov ecx, 0x68f4a8
push eax
mov eax, dword [0x68f4a8]
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], 0x68f4a8
test esi, esi
js 0x4e7eff
mov eax, dword [0x68f4b8]
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x214], 0
test al, 1
jne 0x4e7eec
or eax, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], eax
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
movq xmm0, qword [ebp - 0x218]
movq qword [edi], xmm0
mov dword [edi + 8], 0x68f4a8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.005b7dc4
mov esp, ebp
pop ebp
ret
Function at 0x4e7f20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x600120
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x686300]
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 0x4e7fc2
mov ecx, edi
call fcn.004f17c0
mov eax, dword [0x68f4b8]
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
test al, 1
jne 0x4e7f9a
or eax, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], eax
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
mov eax, dword [ebp + 8]
movq xmm0, qword [ebp - 0x20]
movq qword [eax], xmm0
mov dword [eax + 8], 0x68f4a8
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 0x4e7fe0
lea eax, [edi + 0x14]
jmp 0x4e7fe2
xor eax, eax
push dword [0x68f4ec]
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 [0x68f4ec]
call esi
push dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], 1
push 0
call fcn.004dbe60
push dword [ebp - 0x18]
mov edi, eax
push dword [0x68f4ec]
call esi
xor esi, esi
jmp 0x4e8030
mov eax, dword [ebp + esi*4 - 0x14]
test eax, eax
je 0x4e8041
push eax
call fcn.005b7634
add esp, 4
inc esi
cmp esi, 2
jl 0x4e8030
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 0x4ea8f0
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.004a4ba0
mov ecx, dword [edi]
add esp, 8
mov ebx, eax
cmp ecx, 0x40
jne 0x4ea94c
push 0x2746
mov ecx, edi
call fcn.0048c390
jmp 0x4ea98e
cmp ecx, 0x4d2
jne 0x4ea962
push 0x274d
mov ecx, edi
call fcn.0048c390
jmp 0x4ea98e
cmp ecx, 0x2738
je 0x4ea972
cmp ecx, 0xea
jne 0x4ea98e
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 0x4ea99b
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x68f4b8]
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
test al, 1
jne 0x4ea9d5
or eax, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], eax
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
movq xmm0, qword [ebp - 0x14]
mov eax, dword [ebp - 4]
movq qword [edi], xmm0
mov dword [edi + 8], 0x68f4a8
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ec420
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x4ec466
mov esi, dword [esi + 0x30]
test esi, esi
je 0x4ec45f
push ebx
or ebx, 0xffffffff
lea ecx, [esi + 4]
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x4ec45e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
cmp ebx, 1
jne 0x4ec45e
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 0x4ec4aa
push dword [0x68f4ec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ec49a
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4ec49a
cmp dword [ecx], 0
jne 0x4ec49a
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.005b7634
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x4ec4b0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4ec4ca
add ecx, 0x30
call fcn.004c3970
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x4ec511
push dword [0x68f4ec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ec501
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4ec501
cmp dword [ecx], 0
jne 0x4ec501
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.005b7634
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x4ec520
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4ec53a
add ecx, 0x28
call fcn.004c3480
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x4ec581
push dword [0x68f4ec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ec571
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4ec571
cmp dword [ecx], 0
jne 0x4ec571
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.005b7634
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x4ee820
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x600720
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x686300]
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 0x4ee8c4
mov ecx, esi
call fcn.004f17c0
mov eax, dword [0x68f4b8]
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
test al, 1
jne 0x4ee89b
or eax, 1
mov dword [0x68f4b0], 0x25c5e09b
mov dword [0x68f4b8], eax
mov dword [0x68f4b4], 0x8fafd21e
mov dword [0x68f4a8], 0x612c44
mov eax, dword [ebp + 8]
movq xmm0, qword [ebp - 0x20]
movq qword [eax], xmm0
mov dword [eax + 8], 0x68f4a8
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 0x4ee8e2
lea eax, [esi + 0x14]
jmp 0x4ee8e4
xor eax, eax
push dword [0x68f4ec]
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 [0x68f4ec]
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.004dbe60
test eax, eax
je 0x4ee937
cmp edi, 0xffffffff
je 0x4ee929
inc edi
push ebx
push 0xffffffffffffffff
mov ecx, esi
call fcn.004dbe60
test eax, eax
jne 0x4ee923
push dword [ebp - 0x18]
push dword [0x68f4ec]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
mov eax, dword [ebp + esi*4 - 0x14]
test eax, eax
je 0x4ee959
push eax
call fcn.005b7634
add esp, 4
inc esi
cmp esi, 2
jl 0x4ee948
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