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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov edi, ecx
call fcn.005b20f1
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x5b1f51
mov edx, dword [eax]
mov esi, eax
xor ecx, ecx
add esi, 8
or edx, dword [eax + 4]
cmovne ecx, esi
jne 0x5b20e7
call fcn.005b20f1
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x5b20e5
mov esi, eax
test eax, eax
jne 0x5b1f94
push 0x18
pop ecx
push 8
pop edx
call fcn.004a3937
and dword [eax + 4], 0
and dword [eax], 0
mov esi, eax
mov dword [eax + 0x10], 0xa70828
call fcn.005b20f1
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test edi, edi
mov dword [esp], esi
je 0x5b1fcc
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
and dword [edi + 4], 0
and dword [edi], 0
or edx, ecx
je 0x5b1fcc
mov edx, dword [edi + 0xc]
mov esi, dword [esp]
and dword [esi + 4], 0
mov dword [esi], 1
lea ecx, [esi + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
jmp 0x5b20e7
lea edi, [esp + 0x30]
mov ecx, edi
call fcn.005fc239
lea ebx, [esp + 0x70]
mov edx, edi
mov ecx, ebx
call fcn.005b2106
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov ebx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edx
xor edx, 0x6c796765
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], esi
xor ebx, 0x736f6d65
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], ebx
mov ebx, ecx
xor ecx, 0x6e657261
xor ebx, 0x70736575
mov dword [esp + 8], ecx
mov dword [esp + 0x18], ebx
mov ebx, eax
xor eax, 0x74656462
xor ebx, 0x646f7261
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0x14], ebx
mov ebx, esi
xor esi, 0x79746573
xor ebx, 0x6e646f6d
mov dword [esp + 0x10], ebx
xor ebx, ebx
xor edx, edx
inc ebx
mov ecx, eax
or ecx, edx
jne 0x5b1fb1
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 8]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 4]
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
and dword [edi + 0x38], 0
and dword [edi + 0x30], 0
and dword [edi + 0x3c], 0
and dword [edi + 0x34], 0
mov ecx, edi
mov edx, ebx
call fcn.0057e792
mov ecx, edi
call fcn.0042d9cf
inc ebx
jmp 0x5b2059
xor ecx, ecx
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5b20f1
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0xa70828]
test eax, eax
je 0x5b20fc
dec eax
ret
mov ecx, 0xa70828
jmp fcn.00642bc0
Function at 0x5b6fc8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x4c]
cmp dword [edi], 2
jne 0x5b7157
lea eax, [edi + 4]
lea ecx, [edi + 0x10]
mov dword [esp + 0x24], eax
xor eax, eax
cmp dword [edi + 0x10], 0xffffffff
cmove ecx, eax
mov dword [esp + 0x14], ecx
mov edx, dword [edi + 0xc]
lea ecx, [esp + 8]
push 1
push ebx
call fcn.00600d39
pop eax
pop ecx
mov edx, dword [esp + 8]
cmp edx, 2
je 0x5b7170
mov esi, edi
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
test edx, edx
jne 0x5b7179
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov edx, 0xa0f668
mov ecx, edi
call fcn.00411f2d
mov eax, dword [edi]
and dword [esp + 8], 0
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
push dword [esp + 0x64]
push dword [esp + 0x64]
push eax
call sub.ws2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x5b708c
mov byte [esp + 0x18], 4
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0x18]
mov dword [esp + 4], edi
cmp bl, 4
mov dword [esp], ebx
je 0x5b7189
mov ebp, esp
jmp 0x5b712d
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
and dword [esp + 0x18], 0
lea ecx, [esp + 0x18]
mov edi, eax
mov dword [esp + 0x1c], eax
call fcn.004cee18
cmp al, 0xd
mov ebp, esp
jne 0x5b7123
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
test eax, eax
je 0x5b7116
mov ebx, dword [eax + 4]
mov edx, dword [eax]
lock inc dword [ebx]
jle 0x5b719b
add edx, 8
lea ecx, [esp + 8]
push dword [eax + 0xc]
push dword [eax + 8]
push ebx
call fcn.0056cf32
add esp, 0xc
push 4
pop ecx
call fcn.005db180
cmp byte [esp + 8], 4
mov ebp, esp
je 0x5b7123
mov ebx, dword [esp + 8]
cmp bl, 4
je 0x5b7123
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, edi
mov dword [esp], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 4], eax
call fcn.005db180
mov edi, dword [esp + 0x20]
jmp 0x5b7085
and dword [esp + 0xc], 0
mov dword [esp + 8], 4
and dword [esp], 0
xor ebx, ebx
mov dword [esp + 4], edi
mov ecx, ebp
call fcn.0044ed78
cmp al, 0xd
jne 0x5b7181
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x28]
call fcn.00600cd0
push ebp
call fcn.00626548
pop eax
mov ebx, dword [esp + 0x4c]
mov edi, esi
jmp 0x5b6ffb
mov ecx, esi
mov edx, edi
push dword [esp + 0x54]
push dword [esp + 0x54]
push ebx
call fcn.005b6b07
add esp, 0xc
mov eax, esi
jmp 0x5b7193
mov eax, dword [esp + 0x44]
mov byte [eax], 5
jmp 0x5b7193
mov eax, dword [esp + 0x44]
mov dword [eax], ecx
jmp 0x5b7190
mov eax, dword [esp + 0x44]
mov dword [eax], ebx
jmp 0x5b7190
mov eax, dword [esp + 0x44]
mov byte [eax], 4
mov dword [eax + 4], edi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
ud2

Function at 0x5b7c34
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [ecx], 9
jne fcn.0057ad9e
ret
Function at 0x5bf9f2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
cmp dword [ecx + 0x20], 9
jne 0x5bf9fb
pop esi
ret
lea esi, [ecx + 0x20]
call fcn.005bfa0b
mov ecx, esi
pop esi
jmp fcn.0057ad9e

Function at 0x5c0ce5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 4]
cmp dword [ecx], 0xa
jne fcn.005b7c34
ret
Function at 0x5c7ab9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov ebp, edx
mov edx, dword [esp + 0x38]
lea edi, [esp + 0x18]
mov dword [esp + 4], ecx
mov ecx, edi
push 0xb
call fcn.005c7baa
pop eax
mov eax, esp
mov ecx, 0x800
xor edx, edx
mov dword [eax], 0x800
lea eax, [esp + 8]
and dword [eax], 0
call fcn.00567657
lea esi, [esp + 0xc]
mov edi, dword [edi]
mov ebx, eax
mov dword [esi], eax
mov dword [esi + 4], edx
and dword [esi + 8], 0
mov eax, esp
push eax
push ebx
lea eax, [esp + 0x10]
push eax
push 0
push edi
push ebp
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x5c7b2d
mov edx, dword [esp]
mov ecx, esi
call fcn.0043bd97
mov ebx, dword [esp + 0xc]
jmp 0x5c7b04
test eax, eax
jne 0x5c7b4c
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
cmp eax, 0xb
jbe 0x5c7b68
mov eax, 0xde
jmp 0x5c7b50
mov edx, dword [esp + 4]
xor ecx, ecx
mov dword [edx], ecx
mov dword [edx + 4], eax
mov byte [edx + 0xc], 0xc
mov edx, dword [esp + 0x10]
mov ecx, ebx
call fcn.004bdbce
jmp 0x5c7b7c
mov ecx, dword [esp + 0x14]
movsd xmm0, qword [esp + 0xc]
mov dword [edx + 8], ecx
movsd qword [edx], xmm0
mov byte [edx + 0xc], al
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.005ae0c4
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5cf89e
Capabilities:
Hash data using sha512

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1e0
cmp dword [ebp + 8], 0x20
mov esi, ecx
jne 0x5cfa86
mov eax, edx
push 0x20
pop ebx
lea edi, [esp + 0xf0]
mov edx, 0xa06a08
mov ecx, edi
push ebx
push eax
call fcn.005cf6f0
pop eax
pop ecx
mov eax, dword [edi + 0x40]
push 0x40
pop edx
mov ecx, edi
push 0xa06938
push dword [eax + 0x48]
call fcn.00567e98
pop ecx
pop ecx
lea ebx, [esp + 0x30]
mov edi, edx
mov edx, eax
mov ecx, ebx
push 0xa06ad0
push 0x20
pop eax
push eax
push edi
call fcn.004f23d6
add esp, 0xc
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 8], eax
push 0x20
pop eax
cmp dword [ebx + 4], eax
mov al, 1
jne 0x5cf951
mov eax, dword [esp + 0x30]
movsd xmm0, qword [eax + 0x18]
movsd qword [esp + 0x49], xmm0
movsd xmm0, qword [eax + 0x10]
movsd qword [esp + 0x41], xmm0
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
xor eax, eax
movsd qword [esp + 0x39], xmm1
movsd qword [esp + 0x31], xmm0
lea ecx, [esi + 1]
lea edx, [esp + 0x30]
lea edi, [esp + 0x13c]
mov dword [esp + 0xc], ecx
mov byte [edx], al
mov ecx, edi
push 0xa06ae0
call fcn.005cf691
pop eax
push edi
call fcn.0062e280
pop eax
movsd xmm1, qword [edi + 0x10]
lea ebx, [esp + 0xd0]
movsd xmm0, qword [edi + 0x18]
movsd xmm2, qword [edi]
movsd qword [ebx + 0x10], xmm1
movsd xmm1, qword [edi + 8]
movsd qword [ebx + 0x18], xmm0
movsd qword [ebx], xmm2
movsd qword [ebx + 8], xmm1
push 0xa0
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
push edi
call fcn.0062deb0
pop eax
pop ecx
movsd xmm1, qword [ebx + 0x10]
movsd xmm0, qword [ebx + 0x18]
movsd xmm2, qword [ebx]
cmp dword [esp + 8], 0x20
mov al, 1
movsd qword [esp + 0x20], xmm1
movsd xmm1, qword [ebx + 8]
movsd qword [esp + 0x28], xmm0
movsd qword [esp + 0x10], xmm2
movsd qword [esp + 0x18], xmm1
jne 0x5cfa24
mov eax, dword [esp + 4]
movsd xmm0, qword [eax + 0x18]
movsd qword [esp + 0x49], xmm0
movsd xmm0, qword [eax + 0x10]
movsd qword [esp + 0x41], xmm0
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
xor eax, eax
movsd qword [esp + 0x39], xmm1
movsd qword [esp + 0x31], xmm0
lea ebx, [esp + 0x30]
lea ecx, [esi + 0x21]
mov byte [ebx], al
mov edx, ebx
push 0xa06af0
call fcn.005cf691
pop eax
push 0xa0
push edi
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [esi + 0x41]
mov edx, ebx
call fcn.005cf787
mov eax, dword [esp + 0xc]
movsd xmm1, qword [esp + 0x20]
movsd xmm0, qword [esp + 0x28]
movsd xmm2, qword [esp + 0x10]
movsd qword [eax + 0x10], xmm1
movsd xmm1, qword [esp + 0x18]
movsd qword [eax + 0x18], xmm0
movsd qword [eax], xmm2
movsd qword [eax + 8], xmm1
xor eax, eax
jmp 0x5cfa96
mov al, 1
mov dword [esi + 4], 0xa07842
mov dword [esi + 8], 0xf
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5cfcd7
Capabilities:
Hash data using sha512

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1d0
mov ebx, edx
mov dword [esp + 0xc], ecx
call fcn.005ce334
xorps xmm0, xmm0
lea eax, [esp + 0x90]
movaps xmmword [eax - 0x10], xmm0
movaps xmmword [eax - 0x20], xmm0
movaps xmmword [eax - 0x30], xmm0
movaps xmmword [eax - 0x40], xmm0
movaps xmmword [eax - 0x50], xmm0
movaps xmmword [eax - 0x60], xmm0
movaps xmmword [eax - 0x70], xmm0
movaps xmmword [eax - 0x80], xmm0
push 0x10
pop ecx
mov edi, eax
mov esi, 0xa06a08
rep movsd dword es:[edi], dword [esi]
and dword [eax + 0x44], 0
and dword [eax + 0x40], 0
mov dword [eax + 0x48], 0xa06a08
and dword [eax + 0x50], 0
push 0x20
pop edi
lea esi, [esp + 0x10]
mov edx, ebx
mov ecx, esi
push edi
call fcn.005cde89
pop eax
mov edx, dword [ebp + 8]
mov ecx, esi
push edi
call fcn.005cde89
pop eax
mov edx, dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 0x10]
call fcn.005cde89
pop eax
lea edi, [esp + 0xf0]
push 0xd8
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, edi
call fcn.005ce033
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5cffeb
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, edx
mov edi, ecx
xor ebx, ebx
mov ebp, ebx
cmp ebx, esi
jae 0x5d001c
mov ecx, edi
mov edx, esi
push 0xa07ae8
push ebp
call fcn.00472314
pop ecx
pop ecx
mov ebx, edx
push edx
push eax
call dword [sym.imp.advapi32.dll_SystemFunction036]
add ebx, ebp
test al, al
jne 0x5cfff5
cmp ebp, esi
setb al
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5d7cf6
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [edx + 0xc]
and dword [esp + 8], 0
and dword [esp + 0xc], 0
and dword [esp + 0x20], 0
and dword [esp + 0x1c], 0
and dword [esp + 0x28], 0
and dword [esp + 0x24], 0
and dword [esp + 0x30], 0
and dword [esp + 0x2c], 0
and dword [esp + 0x38], 0
and dword [esp + 0x34], 0
and dword [esp + 0x3c], 0
and dword [esp + 0x44], 0
mov dword [esp + 0x10], 4
mov dword [esp + 4], ecx
mov dword [esp + 0x40], 0x400010
test eax, eax
je 0x5d7d5f
mov ecx, dword [edx + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x18]
test eax, eax
je 0x5d7d81
mov esi, dword [edx + 0x20]
xor ecx, ecx
test esi, esi
je 0x5d7d7d
movzx edi, byte [eax]
inc eax
dec esi
or ecx, dword [edi*4 + 0xa3bc94]
jmp 0x5d7d6b
mov dword [esp + 0x30], ecx
mov ebp, dword [edx + 8]
mov esi, dword [edx]
lea edi, [ebp*4]
test ebp, ebp
je 0x5d7dc1
xor ecx, ecx
cmp ebp, 0x20000000
setb al
jae 0x5d7e5c
mov cl, al
mov edx, edi
shl ecx, 2
mov dword [esp], ecx
call fcn.0043bd7b
mov ebx, eax
test eax, eax
jne 0x5d7dc4
mov ecx, dword [esp]
mov edx, edi
jmp 0x5d7e69
push 4
pop ebx
xor eax, eax
mov ecx, edi
test ecx, ecx
je 0x5d7dd8
mov edx, dword [esi + eax*4]
add ecx, 0xfffffffc
mov dword [ebx + eax*4], edx
inc eax
jmp 0x5d7dc8
lea ecx, [esp + 0x10]
mov dword [ecx + 4], eax
lea eax, [esp + 8]
mov dword [ecx + 8], ebx
push 0
push eax
push 0
push 0
push ecx
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
push 0
call dword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x5d7e0f
mov ecx, dword [esp + 4]
and dword [ecx], 0
mov dword [ecx + 4], eax
jmp 0x5d7e44
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 8]
mov dword [esp], eax
push 4
pop ecx
push 0x10
pop edx
call fcn.0043bd7b
test eax, eax
je 0x5d7e63
xor ecx, ecx
mov edx, dword [esp + 4]
inc ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov esi, dword [esp]
mov dword [eax + 0xc], esi
mov dword [edx + 4], eax
mov byte [edx], 4
test ebp, ebp
je 0x5d7e54
push 4
pop edx
mov ecx, ebx
push edi
call fcn.00402161
pop eax
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0043aad0
ud2
push 4
pop ecx
push 0x10
pop edx
call fcn.0063c970
ud2

Function at 0x5d83c1
Capabilities:
Get remote cert context via schannel

Disassembly:
push esi
push eax
mov eax, esp
mov esi, ecx
and dword [eax], 0
push eax
push 0x53
push edx
call dword [sym.imp.secur32.dll_QueryContextAttributesW]
test eax, eax
je 0x5d83e0
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x5d83e9
mov eax, dword [esp]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 4
pop esi
ret
Function at 0x5da657
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
sub esp, 0xc
mov ecx, 0xa70838
call fcn.004b2dd8
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x5da67e
cmp dword [eax + 4], 0
mov esi, eax
je 0x5da67e
add esi, 8
jmp 0x5da6ef
mov ecx, 0xa70838
call fcn.004b2dd8
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x5da6ed
mov esi, eax
test eax, eax
jne 0x5da6c7
push 4
pop ecx
push 0x10
pop edx
call fcn.0043bd7b
test eax, eax
je 0x5da6f6
mov dword [eax], 0xa70838
and dword [eax + 4], 0
mov ecx, 0xa70838
mov esi, eax
call fcn.004b2dd8
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov ecx, esp
mov dword [ecx + 8], eax
movsd xmm0, qword [esi + 4]
movsd qword [ecx], xmm0
mov dword [esi + 4], 1
and dword [esi + 8], 0
add esi, 8
call fcn.005da470
jmp 0x5da6ef
xor esi, esi
mov eax, esi
add esp, 0xc
pop esi
ret
push 4
pop ecx
push 0x10
pop edx
call fcn.0063c970
ud2

Function at 0x5db001
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebp, dword [esp + 0x34]
mov esi, ecx
cmp dl, 4
jne 0x5db06d
mov eax, dword [0xa70d9c]
cmp eax, 3
jne 0x5db15f
cmp word [ebp], 0
push 2
pop eax
push 0x17
pop ebx
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push 2
push ebx
call sub.ws2_32.dll_WSASocketW
mov edi, eax
cmp eax, 0xffffffff
je 0x5db088
cmp word [ebp], 0
je 0x5db0dc
mov ecx, dword [ebp + 0x18]
movups xmm0, xmmword [ebp + 4]
lea eax, [ebp + 0x14]
add ebp, 0x1c
mov dword [esp], ecx
push 0x1c
pop ecx
mov bx, 0x17
jmp 0x5db0ec
mov eax, edx
shr eax, 8
mov word [esi + 1], ax
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov byte [esi], dl
mov dword [esi + 4], ebp
jmp 0x5db157
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x5db0a0
cmp eax, 0x2726
jne 0x5db148
push 1
push 0
push 0
push 0
push 2
push ebx
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x5db142
mov edi, eax
push 0
push 1
push eax
call sub.kernel32.dll_SetHandleInformation
test eax, eax
jne 0x5db049
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
mov eax, ebx
jmp 0x5db148
lea eax, [ebp + 2]
add ebp, 6
xorps xmm0, xmm0
push 0x10
pop ecx
mov bx, 2
movzx ebp, word [ebp]
mov eax, dword [eax]
lea edx, [esp + 4]
mov word [edx], bx
rol bp, 8
mov word [edx + 2], bp
mov dword [edx + 4], eax
mov eax, dword [esp]
movups xmmword [edx + 8], xmm0
mov dword [edx + 0x18], eax
push ecx
push edx
push edi
call dword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
je 0x5db124
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x5db157
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi], cl
and word [esi + 1], 0
mov byte [esi + 3], cl
mov dword [esi + 4], eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x5db157
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
and word [esi + 1], 0
xor ecx, ecx
mov byte [esi + 3], cl
mov byte [esi], cl
mov dword [esi + 4], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00643190
jmp 0x5db021
Function at 0x5db5a8
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, ecx
lea eax, [esp + 0xc]
push 4
push eax
push dword [esp + 0x10]
push 0xffff
push edx
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x5db5cb
mov byte [esi], 4
jmp 0x5db5d7
call dword [sym.imp.kernel32.dll_GetLastError]
and dword [esi], 0
mov dword [esi + 4], eax
pop esi
ret
Function at 0x5db620
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x62c100
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
cmp eax, 3
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
je 0x5db65e
test eax, eax
jne 0x5db7da
mov ebx, dword [0xa70db0]
test ebx, ebx
je 0x5db7da
mov dword [ebp - 0x20], 0
jmp 0x5db687
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x5db6b8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x5db82b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x5db680
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x5db680
test byte [ebp - 0x20], 1
je 0x5db7da
mov ebx, dword [0xa70db0]
test ebx, ebx
je 0x5db7da
mov dword [ebp - 0x20], 0
jmp 0x5db6e7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x5db718
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x5db82b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x5db6e0
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x5db6e0
test byte [ebp - 0x20], 1
je 0x5db7da
mov ebx, dword [0xa70db0]
test ebx, ebx
je 0x5db7da
mov dword [ebp - 0x20], 0
jmp 0x5db747
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x5db778
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x5db82b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x5db740
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x5db740
test byte [ebp - 0x20], 1
je 0x5db7da
mov ebx, dword [0xa70db0]
test ebx, ebx
je 0x5db7da
mov dword [ebp - 0x20], 0
jmp 0x5db7a7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x5db7d4
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x5db82b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x5db7a0
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x5db7a0
test byte [ebp - 0x20], 1
jne 0x5db7f4
movzx eax, byte [0xa6a1c0]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0xa70db0]
jmp 0x5db7ff
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x5db7da
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x5db82b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x5db7fc
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x5db7fc
mov dword [ebp - 0x10], 0
mov ecx, 0xa3a547
mov edx, 0x2b
push 0xa0ca2c
call fcn.0063cd70
add esp, 4
ud2
Function at 0x5dbfe0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0xa70890]
test eax, eax
je 0x5dc0a3
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x5dc00c
cmp dword [eax + 4], 0
mov edi, eax
je 0x5dc00c
add edi, 8
jmp 0x5dc09e
mov eax, dword [0xa70890]
test eax, eax
je 0x5dc0b2
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x5dc09c
mov esi, eax
test eax, eax
jne 0x5dc06b
movzx eax, byte [0xa71040]
mov ecx, 0x10
mov edx, 4
call fcn.004041e0
test eax, eax
je 0x5dc0cd
mov dword [eax], 0xa70890
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0xa70890]
test eax, eax
je 0x5dc0c1
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [esi + 0xc]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
je 0x5dc09e
test ecx, ecx
je 0x5dc09e
lock dec dword [ecx]
jne 0x5dc09e
call fcn.005dc0f0
jmp 0x5dc09e
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0xa70890
call fcn.00642bc0
jmp 0x5dbff0
mov ecx, 0xa70890
call fcn.00642bc0
jmp 0x5dc01a
mov ecx, 0xa70890
call fcn.00642bc0
jmp 0x5dc063
mov ecx, 4
mov edx, 0x10
call fcn.0063c970
ud2

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

Disassembly:
push esi
mov eax, dword [0xa708a0]
test eax, eax
je 0x5dcb44
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x5dcadf
cmp byte [eax + 4], 0
mov esi, eax
jne 0x5dcb39
mov eax, dword [0xa708a0]
test eax, eax
je 0x5dcb53
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x5dcb3e
mov esi, eax
test eax, eax
jne 0x5dcb33
movzx eax, byte [0xa71040]
mov ecx, 8
mov edx, 4
call fcn.004041e0
test eax, eax
je 0x5dcb6b
mov dword [eax], 0xa708a0
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0xa708a0]
test eax, eax
je 0x5dcb5f
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
jmp 0x5dcb40
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0xa708a0
call fcn.00642bc0
jmp 0x5dcacb
mov ecx, 0xa708a0
call fcn.00642bc0
jmp 0x5dcae9
mov ecx, 0xa708a0
call fcn.00642bc0
jmp 0x5dcb2b
mov ecx, 4
mov edx, 8
call fcn.0063c970
ud2