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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
cmp eax, 0x4cf
jg 0x559285
je 0x559278
cmp eax, 0x79
je 0x55926b
cmp eax, 0x4c9
jne 0x55929a
call fcn.00574eb0
mov dword [edi], 0x274d
jmp 0x559297
call fcn.00574eb0
mov dword [edi], 0x274c
jmp 0x559297
call fcn.00574eb0
mov dword [edi], 0x2743
jmp 0x559297
cmp eax, 0x4d0
jne 0x55929a
call fcn.00574eb0
mov dword [edi], 0x2751
mov dword [edi + 4], eax
cmp dword [edi], 0
jne 0x5592ea
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x5592b8
call fcn.00574eb0
mov dword [edi], 0x2719
mov dword [edi + 4], eax
pop edi
pop ebp
ret
push 0
push 0
push 0x7010
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x5592d6
mov dword [edi], eax
pop edi
pop ebp
ret
push esi
call fcn.00574eb0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 4], esi
mov dword [edi], eax
pop esi
pop edi
pop ebp
ret

Function at 0x5594b0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x5594d1
call fcn.00574eb0
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 4], eax
or eax, 0xffffffff
mov dword [ecx], 0x2719
pop ebp
ret
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
test edi, edi
jne 0x5594ed
mov ecx, dword [ebp + 0x14]
pop edi
mov dword [ecx], eax
pop ebp
ret
push esi
call fcn.00574eb0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 4], esi
mov dword [ecx], eax
mov eax, edi
pop esi
pop edi
pop ebp
ret

Function at 0x55aee0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x603f80]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x55aef9
mov esi, dword [eax + 4]
jmp 0x55aefb
xor esi, esi
mov eax, dword [ebp + 0xc]
lea eax, [eax + eax*8]
shl eax, 4
cmp eax, 0x3fc
ja 0x55af20
test esi, esi
je 0x55af20
mov edx, 4
cmp dword [esi + edx*4], 0
je 0x55af30
inc edx
cmp edx, 6
jl 0x55af14
push dword [ebp + 8]
call fcn.00535fce
add esp, 4
pop esi
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov al, byte [eax + ecx]
mov byte [ecx], al
mov dword [esi + edx*4], ecx
pop esi
pop ebp
ret 8

Function at 0x55af40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x603f80]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x55af59
mov esi, dword [eax + 4]
jmp 0x55af5b
xor esi, esi
mov eax, dword [ebp + 0xc]
lea eax, [eax + eax*4]
shl eax, 3
cmp eax, 0x3fc
ja 0x55af7d
test esi, esi
je 0x55af7d
xor edx, edx
cmp dword [esi + edx*4], 0
je 0x55af8d
inc edx
cmp edx, 2
jl 0x55af71
push dword [ebp + 8]
call fcn.00535fce
add esp, 4
pop esi
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov al, byte [eax + ecx]
mov byte [ecx], al
mov dword [esi + edx*4], ecx
pop esi
pop ebp
ret 8
Function at 0x55d960
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx + 0x18]
push dword [0x603f80]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x55d9b5
cmp dword [eax], esi
je 0x55da74
mov eax, dword [eax + 8]
test eax, eax
jne 0x55d9a6
xor esi, esi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
je 0x55da7c
mov eax, dword [edi]
cmp byte [eax + 0x38], 0
jne 0x55da7c
mov byte [eax + 0x38], 1
mov eax, dword [edi]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi]
push dword [0x603f98]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x603f98]
mov dword [ebp - 0x24], eax
call esi
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
call fcn.0053ac90
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0
push eax
mov eax, dword [ebp + 0xc]
push eax
push dword [ebx + 0x18]
mov eax, dword [eax + 0x18]
call eax
add esp, 0x10
lea ecx, [ebp - 0x1c]
call fcn.0054df40
push dword [ebp - 0x20]
push dword [0x603f98]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [eax + 4]
jmp 0x55d9b7
mov eax, dword [edi]
cmp byte [eax + 0x38], 0
je 0x55dae1
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x14], 0
mov edx, dword [eax + 0x40]
test edx, edx
je 0x55dabb
mov dword [edx + 0x14], ecx
mov dword [eax + 0x40], ecx
mov eax, dword [edi]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov eax, dword [edi]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov byte [eax + 0x38], 1
mov eax, dword [edi]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x14], 0
mov edx, dword [eax + 0x48]
test edx, edx
je 0x55db09
mov dword [edx + 0x14], ecx
jmp 0x55db0c
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov ecx, dword [ebx + 0x18]
push 0
push dword [edi]
call fcn.0056ae00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x561750
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x561764
cmp byte [esi], 0
jne 0x561766
xor esi, esi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x561772
cmp byte [edi], 0
jne 0x561774
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 - 8]
push eax
call fcn.00575c60
mov edx, dword [ebp + 0x1c]
mov esi, eax
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, dword [esi]
mov dword [edx], ecx
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [esi]
mov dword [eax], ecx
mov ecx, dword [esi + 4]
pop edi
mov dword [eax + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x566e10
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]
xor eax, eax
mov ecx, 0x603f84
lock xadd dword [ecx], eax
push 0
push dword [esi + 4]
test eax, eax
je 0x566e5d
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov esp, ebp
pop ebp
ret
push fcn.00457b90
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 0x568640
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585039
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5fad8c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], esi
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x70], 0x67452301
mov dword [ebp - 0x6c], 0xefcdab89
mov dword [ebp - 0x68], 0x98badcfe
mov dword [ebp - 0x64], 0x10325476
jb 0x5686ae
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00568420
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.005684f0
mov dword [esi + 0x10], 0
add esp, 0x14
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x5686ef
mov eax, dword [esi]
jmp 0x5686f1
mov eax, esi
mov byte [eax], 0
mov ecx, dword [esi + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 1
cmp ecx, 0x10
jb 0x568727
mov dword [esi + 0x10], 0x10
cmp dword [esi + 0x14], 0x10
jb 0x56871f
mov eax, dword [esi]
mov byte [eax + 0x10], 0
jmp 0x568738
mov eax, esi
mov byte [eax + 0x10], 0
jmp 0x568738
mov eax, 0x10
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00455f30
cmp dword [esi + 0x14], 0x10
jb 0x568742
mov eax, dword [esi]
jmp 0x568744
mov eax, esi
push 0x10
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.VCRUNTIME140.dll_memmove]
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053649e
mov esp, ebp
pop ebp
ret
Function at 0x569de0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5fad8c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
push edi
mov edi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x208], edi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x20c], 1
push eax
push 0
lea eax, [edi + 1]
mov dword [ebp - 0x104], edi
push eax
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x569e66
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053649e
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x210], 0
cmp edi, 0xffffffff
jne 0x569ea0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x603b78]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x603f70]
cmp eax, dword [ecx + 4]
jg 0x569f58
mov dword [esi], 0x2719
jmp 0x569f3f
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 4
push eax
lea eax, [ebp - 0x210]
push eax
push 0x1007
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x569f17
mov dword [esi], eax
cmp dword [ebp - 0x210], eax
je 0x569eff
mov eax, dword fs:[0x2c]
mov ecx, dword [0x603b78]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x603f70]
cmp eax, dword [ecx + 4]
jg 0x569fa2
mov eax, dword [ebp - 0x210]
jmp 0x569f3d
pop edi
mov dword [esi], 0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053649e
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x2c]
mov ecx, dword [0x603b78]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x603f70]
cmp eax, dword [ecx + 4]
jg 0x569fec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
mov dword [esi + 4], 0x603f68
xor ecx, ebp
pop esi
call fcn.0053649e
mov esp, ebp
pop ebp
ret
push 0x603f70
call fcn.0053639a
add esp, 4
cmp dword [0x603f70], 0xffffffff
jne 0x569e95
push 0x586c80
mov dword [0x603f6c], 0x603f68
mov dword [0x603f68], 0x5e0fec
call fcn.00536234
push 0x603f70
call fcn.0053635b
add esp, 8
jmp 0x569e95
push 0x603f70
call fcn.0053639a
add esp, 4
cmp dword [0x603f70], 0xffffffff
jne 0x569ef7
push 0x586c80
mov dword [0x603f6c], 0x603f68
mov dword [0x603f68], 0x5e0fec
call fcn.00536234
push 0x603f70
call fcn.0053635b
add esp, 8
jmp 0x569ef7
push 0x603f70
call fcn.0053639a
add esp, 4
cmp dword [0x603f70], 0xffffffff
jne 0x569f37
push 0x586c80
mov dword [0x603f6c], 0x603f68
mov dword [0x603f68], 0x5e0fec
call fcn.00536234
push 0x603f70
call fcn.0053635b
add esp, 8
jmp 0x569f37
Function at 0x56e430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp byte [ebx + 0xd], 0x80
jb 0x56e476
mov eax, dword [ebx + 0x48]
xor ecx, ecx
mov edx, dword [eax + 8]
mov dword [ebp + 0xc], edx
test esi, esi
je 0x56e464
mov edi, dword [ebp + 8]
mov eax, ecx
and eax, 3
mov al, byte [ebp + eax + 0xc]
xor byte [ecx + edi], al
inc ecx
cmp ecx, esi
jb 0x56e453
mov ecx, esi
and ecx, 3
je 0x56e470
shl ecx, 3
ror edx, cl
mov eax, dword [ebx + 0x48]
mov dword [eax + 8], edx
mov eax, dword [ebx + 0x48]
push esi
push dword [ebp + 8]
mov edi, dword [eax]
mov eax, dword [edi + 0x48]
add edi, 0x38
mov ecx, edi
mov dword [ebp + 0xc], eax
call fcn.00455fe0
mov eax, dword [ebx + 0x48]
mov eax, dword [eax]
cmp dword [eax + 0x50], 1
jne 0x56e4e6
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x56e4a6
mov edx, dword [edi]
jmp 0x56e4a8
mov edx, edi
mov eax, dword [edi + 0x10]
add eax, edx
cmp ecx, 0x10
jb 0x56e4b4
mov edi, dword [edi]
mov ecx, dword [ebp + 0xc]
add ecx, edi
push eax
push ecx
mov ecx, dword [ebx + 0x48]
add ecx, 0xc
call fcn.0053f580
test al, al
jne 0x56e4e6
call fcn.00560470
mov ecx, eax
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov dword [eax], 0x10
mov dword [eax + 4], ecx
xor eax, eax
pop ebp
ret 0xc
sub dword [ebx + 0x18], esi
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x570530
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x570541
mov dword [esi + 8], 0
mov edi, dword [esi + 4]
test edi, edi
je 0x57057d
push dword [0x603f80]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x57056d
mov edx, dword [eax + 4]
test edx, edx
je 0x57056d
xor ecx, ecx
cmp dword [edx + ecx*4], 0
je 0x570580
inc ecx
cmp ecx, 2
jl 0x570561
push edi
call fcn.00535fce
add esp, 4
mov dword [esi + 4], 0
pop edi
pop esi
ret
mov al, byte [edi + 0x2c]
mov byte [edi], al
mov dword [edx + ecx*4], edi
pop edi
mov dword [esi + 4], 0
pop esi
ret

Function at 0x5705a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x5705ba
add ecx, 8
call fcn.0054cd20
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x5705fc
push dword [0x603f80]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5705ec
mov edx, dword [eax + 4]
test edx, edx
je 0x5705ec
mov ecx, 4
nop dword [eax]
cmp dword [edx + ecx*4], 0
je 0x5705ff
inc ecx
cmp ecx, 6
jl 0x5705e0
push esi
call fcn.00535fce
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x98]
mov byte [esi], al
mov dword [edx + ecx*4], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x570620
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x57063a
add ecx, 0x18
call fcn.0054d580
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x57067c
push dword [0x603f80]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x57066c
mov edx, dword [eax + 4]
test edx, edx
je 0x57066c
mov ecx, 4
nop dword [eax]
cmp dword [edx + ecx*4], 0
je 0x57067f
inc ecx
cmp ecx, 6
jl 0x570660
push esi
call fcn.00535fce
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x68]
mov byte [esi], al
mov dword [edx + ecx*4], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x5706a0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x5706fa
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x5706d4
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x5706d4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x5706d4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebx + 0x64]
add ebx, 0x40
test ecx, ecx
je 0x5706f3
mov edx, dword [ecx]
cmp ecx, ebx
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebx + 0x24], 0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x57073c
push dword [0x603f80]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x57072c
mov edx, dword [eax + 4]
test edx, edx
je 0x57072c
mov ecx, 4
nop dword [eax]
cmp dword [edx + ecx*4], 0
je 0x570740
inc ecx
cmp ecx, 6
jl 0x570720
push esi
call fcn.00535fce
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret
mov al, byte [esi + 0x88]
mov byte [esi], al
mov dword [edx + ecx*4], esi
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret

Function at 0x570760
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x5707a3
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x570794
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x570794
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x570794
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebx + 0x18]
call fcn.0054d580
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x5707e2
push dword [0x603f80]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5707d2
mov edx, dword [eax + 4]
test edx, edx
je 0x5707d2
mov ecx, 4
cmp dword [edx + ecx*4], 0
je 0x5707e6
inc ecx
cmp ecx, 6
jl 0x5707c6
push esi
call fcn.00535fce
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret
mov al, byte [esi + 0x80]
mov byte [esi], al
mov dword [edx + ecx*4], esi
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret
Function at 0x570800
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x57081a
add ecx, 8
call fcn.0054d960
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x57085c
push dword [0x603f80]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x57084c
mov edx, dword [eax + 4]
test edx, edx
je 0x57084c
mov ecx, 4
nop dword [eax]
cmp dword [edx + ecx*4], 0
je 0x57085f
inc ecx
cmp ecx, 6
jl 0x570840
push esi
call fcn.00535fce
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x98]
mov byte [esi], al
mov dword [edx + ecx*4], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x571100
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585be0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edx, edx
lea eax, [esi + 0x18]
lock xadd dword [eax], edx
test edx, edx
jne 0x571163
call fcn.00574990
call fcn.0053ac90
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx], 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 4
lea ecx, [ebp - 0x4c]
call fcn.0054aa10
push dword [0x603f80]
mov ecx, esi
mov dword [ebp - 4], 0
neg ecx
lea eax, [esi + 0x14]
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push dword [0x603f80]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push ebx
push eax
push 0xffffffffffffffff
mov ecx, esi
mov byte [ebp - 4], 1
xor edi, edi
call fcn.0055dbf0
test eax, eax
je 0x5711dd
cmp edi, 0xffffffff
lea eax, [edi + 1]
push ebx
cmove eax, edi
mov ecx, esi
mov edi, eax
lea eax, [ebp - 0x4c]
push eax
push 0xffffffffffffffff
call fcn.0055dbf0
test eax, eax
jne 0x5711c0
push dword [ebp - 0x10]
push dword [0x603f80]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov eax, dword [ebp + esi*4 - 0x4c]
test eax, eax
je 0x571206
push eax
call fcn.00535fce
add esp, 4
inc esi
cmp esi, 0xa
jl 0x5711f5
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void__]
add esp, 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 4
Function at 0x571300
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push esi
push edi
test edx, edx
jne 0x571359
test ecx, ecx
jne 0x571359
test eax, eax
jne 0x571359
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x57137b
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 eax, dword [ebp + 0x1c]
pop edi
pop esi
mov dword [eax], 0
xor eax, eax
pop ebp
ret
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x57137b
cmp dword [esi], 0
jne 0x57137b
mov edi, dword [esi + 4]
test edi, edi
jle 0x57137b
cmp edi, 0x3e8
jge 0x57137b
mov dword [esi + 4], 0x3e8
push esi
push eax
push ecx
push edx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
test edi, edi
js 0x57139b
mov ecx, dword [ebp + 0x1c]
pop edi
pop esi
mov dword [ecx], 0
pop ebp
ret
call fcn.00574eb0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov eax, edi
pop edi
mov dword [ecx + 4], esi
pop esi
pop ebp
ret
Function at 0x5745a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [ebp + 0x18], 0
je 0x5745c9
mov ecx, dword [esi + 4]
push 0
push 0
push dword [ebp + 0x1c]
call fcn.0056a0b0
pop esi
pop ebp
ret 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
jne 0x5745ea
mov ecx, dword [esi + 4]
push 0
push 0x2719
push dword [ebp + 0x1c]
call fcn.0056a0b0
pop esi
pop ebp
ret 0x18
mov eax, dword [ebp + 0x14]
push ebx
push edi
mov edi, dword [ebp + 0x1c]
push 0
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 0x574628
mov eax, 0x2746
jmp 0x574635
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
je 0x574654
cmp eax, 0x3e5
je 0x574654
push dword [ebp + 0x18]
mov ecx, dword [esi + 4]
push eax
push edi
call fcn.0056a0b0
pop edi
pop ebx
pop esi
pop ebp
ret 0x18
mov ecx, dword [esi + 4]
push edi
call fcn.0056a130
pop edi
pop ebx
pop esi
pop ebp
ret 0x18

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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [ebp + 0x18], 0
je 0x574699
mov ecx, dword [edi + 4]
push 0
push 0
push dword [ebp + 0x1c]
call fcn.0056a0b0
pop edi
pop ebp
ret 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x5746ba
mov ecx, dword [edi + 4]
push 0
push 0x2719
push dword [ebp + 0x1c]
call fcn.0056a0b0
pop edi
pop ebp
ret 0x18
push ebx
mov ebx, dword [ebp + 0x1c]
lea ecx, [ebp + 0x18]
push esi
push 0
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 0x574711
cmp eax, 0x3e5
je 0x574711
push dword [ebp + 0x18]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.0056a0b0
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
mov ecx, dword [edi + 4]
push ebx
call fcn.0056a130
pop esi
pop ebx
pop edi
pop ebp
ret 0x18