joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ad120
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
sub esp, 0x34
mov eax, dword [esp + 0x40]
mov esi, ecx
mov ecx, dword [esp + 0x44]
mov edi, edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x103
lea edx, [esp + 4]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x5ad16d
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0xc0000011
jne 0x5ad17d
mov dword [esi + 4], 0
jmp 0x5ad18f
cmp eax, 0x103
je 0x5ad1a7
test eax, eax
js 0x5ad198
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x34
pop esi
pop edi
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x5ad192
mov eax, esp
mov dword [esp + 0x1c], 0x7c0dc4
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
push ecx
push edx
call fcn.005a3390
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.005a34f0
mov ecx, 7
int 0x29
ud2
Function at 0x5af2e0
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov ecx, esp
push dword [esp + 0x28]
call fcn.005a5a80
add esp, 4
mov ecx, dword [esp]
mov edi, dword [esp + 4]
mov eax, dword [esp + 8]
test ecx, ecx
je 0x5af346
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
lea ecx, [esp + 0xc]
mov edx, esp
push 1
call fcn.005ad210
add esp, 4
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x5af342
push 0
push ebx
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x5af34d
mov byte [esi], 4
test edi, edi
jne 0x5af35d
jmp 0x5af36c
mov eax, dword [esp + 0x14]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x5af36c
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x5af36c
push ebx
push 0
push dword [0x8032a8]
call dword [sym.imp.kernel32.dll_HeapFree]
add esp, 0x18
pop esi
pop edi
pop ebx
ret

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

Disassembly:
push edi
push esi
mov eax, dword [0x802210]
test eax, eax
je 0x5b10a8
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x5b101c
cmp dword [eax + 4], 0
mov edi, eax
je 0x5b101c
add edi, 8
jmp 0x5b10a3
mov eax, dword [0x802210]
test eax, eax
je 0x5b10b7
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x5b10a1
mov esi, eax
test eax, eax
jne 0x5b1077
movzx eax, byte [0x803894]
mov ecx, 0xc
mov edx, 4
call fcn.004889b0
test eax, eax
je 0x5b10d2
mov dword [eax], 0x802210
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x802210]
test eax, eax
je 0x5b10c6
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x5b10a3
test ecx, ecx
je 0x5b10a3
lock dec dword [ecx]
jne 0x5b10a3
call fcn.005b10f0
jmp 0x5b10a3
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x802210
call fcn.00659cf0
jmp 0x5b1000
mov ecx, 0x802210
call fcn.00659cf0
jmp 0x5b102a
mov ecx, 0x802210
call fcn.00659cf0
jmp 0x5b106f
mov ecx, 4
mov edx, 0xc
call fcn.00651860
ud2
Function at 0x5b18d0
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1a8
mov edi, dword [edx]
mov ebp, dword [edx + 4]
movzx ebx, word [edx + 8]
mov eax, dword [0x8032ac]
mov esi, ecx
cmp eax, 3
jne 0x5b1a5b
cmp ebp, 0x17f
ja 0x5b1a6c
lea eax, [esp + 0x28]
push ebp
push edi
mov edi, eax
push eax
call fcn.0064a810
add esp, 0xc
lea eax, [ebp + 1]
cmp ebp, 6
mov byte [esp + ebp + 0x28], 0
ja 0x5b1935
xor edx, edx
nop
cmp byte [esp + edx + 0x28], 0
je 0x5b19cf
inc edx
cmp eax, edx
jne 0x5b1920
jmp 0x5b1a25
lea ecx, [esp + 0x2b]
and ecx, 0xfffffffc
sub ecx, edi
je 0x5b1968
je 0x5b1968
xor edx, edx
nop word cs:[eax + eax]
nop
cmp byte [esp + edx + 0x28], 0
je 0x5b19cf
inc edx
cmp ecx, edx
jne 0x5b1950
lea edx, [ebp - 7]
mov dword [esp], ebx
cmp ecx, edx
jbe 0x5b1970
jmp 0x5b19ae
mov dword [esp], ebx
lea edx, [ebp - 7]
xor ecx, ecx
movdqa xmm0, xmmword [0x6619d0]
movdqa xmm1, xmmword [0x661760]
movq xmm2, qword [esp + ecx + 0x28]
movdqa xmm3, xmm2
paddd xmm3, xmm0
pandn xmm2, xmm3
pand xmm2, xmm1
movd edi, xmm2
pshufd xmm2, xmm2, 0x55
movd ebx, xmm2
or ebx, edi
jne 0x5b19ae
add ecx, 8
cmp ecx, edx
jbe 0x5b1980
mov ebx, dword [esp]
sub eax, ecx
je 0x5b1a25
lea edi, [esp + ecx + 0x28]
xor edx, edx
nop dword [eax + eax]
cmp byte [edi + edx], 0
je 0x5b19cd
inc edx
cmp eax, edx
jne 0x5b19c0
jmp 0x5b1a25
add edx, ecx
cmp edx, ebp
jne 0x5b1a25
pxor xmm0, xmm0
lea eax, [esp + 4]
mov dword [esp + 4], 0
lea ecx, [esp + 8]
movdqu xmmword [esp + 8], xmm0
movdqu xmmword [esp + 0x18], xmm0
mov dword [esp + 0x10], 1
push eax
push ecx
push 0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x5b1a3e
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
jmp 0x5b1a4e
mov eax, dword [0x7c0408]
mov ecx, dword [0x7c040c]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x5b1a50
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], bx
mov dword [esi], eax
add esp, 0x1a8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0065a1b0
cmp ebp, 0x17f
jbe 0x5b18ff
mov ecx, esi
mov edx, edi
push ebx
push ebp
call fcn.0065a200
add esp, 0x1b0
jmp 0x5b1a56
Function at 0x5b8a70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [esp + 0xc]
push dword [esp + 0x38]
call fcn.005a5a80
add esp, 4
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test edx, edx
je 0x5b8ad5
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov ecx, esp
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.005b89b0
mov edi, dword [esp]
test edi, edi
je 0x5b8ae4
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5b8af9
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
jmp 0x5b8af1
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], 0
mov ecx, esp
call fcn.005a5c50
mov dword [esi], 0
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
mov dword [esi], 0
je 0x5b8af1
push edi
push 0
push dword [0x8032a8]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x5b8af1
Function at 0x5ba920
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x627670
mov esi, edx
mov edi, ecx
mov ecx, 8
mov edx, 4
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
movzx eax, byte [0x803894]
call fcn.004889b0
test eax, eax
je 0x5baa16
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
push 0
push 0x10000
push ebx
push 0x5baaa0
push esi
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x5ba99d
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x5baa05
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x20], eax
push eax
mov dword [ebp - 0x24], ecx
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
cmp dword [eax + 4], 0
je 0x5ba9ea
cmp dword [eax + 8], 9
jae 0x5ba9d5
mov eax, dword [ebp - 0x20]
jmp 0x5ba9db
mov eax, dword [ebp - 0x20]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x8032a8]
call dword [sym.imp.kernel32.dll_HeapFree]
push edi
push 0
push dword [0x8032a8]
call dword [sym.imp.kernel32.dll_HeapFree]
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 4
mov edx, 8
mov dword [ebp - 0x10], 0
call fcn.00651860
ud2
Function at 0x5baf40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1038
call fcn.00649b30
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x6276a0
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edx
lea esi, [ebp - 0x1044]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push esi
call fcn.0064ad90
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x5b2690
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x5bb094
mov ebx, dword [sym.imp.kernel32.dll_SleepEx]
mov dword [ebp - 0x20], edi
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x5bafca
cmp dword [ebp - 0x2c], 0
jne 0x5bb0a5
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x5bb0a5
cmp esi, 0x1000
ja 0x5bb0e1
xor edi, edi
nop dword [eax]
mov eax, esi
sub eax, edi
jb 0x5bb0c7
xorps xmm0, xmm0
lea edx, [ebp - 0x30]
lea ecx, [ebp + edi - 0x1044]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x5b2690
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_WriteFileEx]
test eax, eax
je 0x5bb09c
nop dword [eax]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x5bb040
cmp dword [ebp - 0x2c], 0
jne 0x5bb0a2
add edi, dword [ebp - 0x28]
cmp edi, esi
jne 0x5bb000
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x5b2690
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1044]
push eax
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x5bafca
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x5bb0a5
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, dword [ebp - 0x20]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1038
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, edi
mov edx, esi
push 0x7c1040
call fcn.006524b0
add esp, 4
jmp 0x5bb0fc
mov dword [ebp - 0x10], 0
mov ecx, esi
mov edx, 0x1000
push 0x7c1040
call fcn.00652260
add esp, 4
ud2
Function at 0x5bb1f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x6276c0
mov edi, ecx
lea eax, [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x5bb26e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
lea edx, [esi + 8]
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], 0x7c1154
mov dword [esi + 0x34], 1
mov dword [esi + 0x40], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], edx
mov dword [esi + 0x38], ecx
lea ecx, [esi + 0x30]
mov edx, 0x7c1180
mov dword [esi + 0x2c], fcn.005aafa0
mov dword [esi + 0x3c], 1
call fcn.00652150
ud2

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

Disassembly:
push esi
mov eax, dword [0x8021f0]
test eax, eax
je 0x5bcc34
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x5bcbcf
cmp byte [eax + 4], 0
mov esi, eax
jne 0x5bcc29
mov eax, dword [0x8021f0]
test eax, eax
je 0x5bcc43
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x5bcc2e
mov esi, eax
test eax, eax
jne 0x5bcc23
movzx eax, byte [0x803894]
mov ecx, 8
mov edx, 4
call fcn.004889b0
test eax, eax
je 0x5bcc5b
mov dword [eax], 0x8021f0
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x8021f0]
test eax, eax
je 0x5bcc4f
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
jmp 0x5bcc30
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0x8021f0
call fcn.00659cf0
jmp 0x5bcbbb
mov ecx, 0x8021f0
call fcn.00659cf0
jmp 0x5bcbd9
mov ecx, 0x8021f0
call fcn.00659cf0
jmp 0x5bcc1b
mov ecx, 4
mov edx, 8
call fcn.00651860
ud2
Function at 0x5c0ba0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0x627800
mov ebx, dword [ebp + 8]
mov edi, ecx
lea ecx, [esi + 0x30]
mov eax, dword fs:[0]
mov dword [esi + 0x30], eax
mov dword fs:[0], ecx
mov ecx, esi
push ebx
call fcn.005a5a80
add esp, 4
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
test ecx, ecx
je 0x5c0cac
mov dword [esi], ecx
mov dword [esi + 4], edx
mov edx, esi
mov dword [esi + 8], eax
lea ecx, [esi + 0x1c]
push 1
call fcn.005ad210
add esp, 4
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
test eax, eax
je 0x5c0ca9
mov dword [esi + 0x14], edi
mov edi, dword [ebp + 0x10]
mov dword [esi + 0x18], edx
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov dword [esi + 0x38], 0
mov ecx, esi
push edi
call fcn.005a5a80
add esp, 4
mov ecx, dword [esi]
mov edi, dword [esi + 4]
mov eax, dword [esi + 8]
test ecx, ecx
je 0x5c0cbd
mov dword [esi], ecx
mov dword [esi + 4], edi
mov dword [esi + 8], eax
lea ecx, [esi + 0x1c]
mov edx, esi
push 1
call fcn.005ad210
add esp, 4
mov ebx, dword [esi + 0x1c]
mov edi, dword [esi + 0x20]
test ebx, ebx
je 0x5c0cba
mov dword [esi + 4], 0
mov dword [esi], 0
push 0
push 0
mov eax, esi
push eax
push 0x5c0d50
push ebx
push dword [esi + 0x10]
call dword [sym.imp.kernel32.dll_CopyFileExW]
test eax, eax
je 0x5c0cce
mov eax, dword [esi]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 4]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov dword [edx], 0
test edi, edi
jne 0x5c0ce8
jmp 0x5c0cf7
mov eax, dword [esi + 0x24]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [edi], 1
jmp 0x5c0d0e
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x14]
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov dword [ecx], 1
jmp 0x5c0cf7
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [esi + 0x14]
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 1
test edi, edi
je 0x5c0cf7
push ebx
push 0
push dword [0x8032a8]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x18], 0
je 0x5c0d0e
push dword [esi + 0x10]
push 0
push dword [0x8032a8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x30]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5c0fc0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
movzx eax, byte [edx]
mov esi, ecx
cmp al, 4
jne 0x5c1034
mov ebp, dword [edx + 4]
mov eax, dword [0x8032ac]
cmp eax, 3
jne 0x5c1131
cmp word [ebp], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
mov edi, eax
cmp eax, 0xffffffff
je 0x5c1050
cmp word [ebp], 0
je 0x5c10aa
movups xmm0, xmmword [ebp + 4]
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x14]
add ebp, 0x1c
mov eax, 0x1c
mov bx, 0x17
jmp 0x5c10bc
movzx ecx, byte [edx + 3]
movzx edi, word [edx + 1]
mov edx, dword [edx + 4]
mov byte [esi + 3], cl
mov word [esi + 1], di
mov byte [esi], al
mov dword [esi + 4], edx
jmp 0x5c1129
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x5c1068
cmp eax, 0x2726
jne 0x5c1119
push 1
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x5c1113
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x5c100e
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
mov eax, ebx
jmp 0x5c1119
lea ecx, [ebp + 2]
add ebp, 6
mov eax, 0x10
mov bx, 2
xorps xmm0, xmm0
movzx ebp, word [ebp]
mov ecx, dword [ecx]
mov word [esp], bx
rol bp, 8
mov word [esp + 2], bp
mov dword [esp + 4], ecx
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x18], edx
mov ecx, esp
push eax
push ecx
push edi
call dword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
je 0x5c10f4
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x5c1129
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi], 0
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x5c1129
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov byte [esi], 0
mov dword [esi + 4], eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0065a1b0
jmp 0x5c0fe1
Function at 0x5c1160
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
sub esp, 8
mov eax, dword [0x802200]
test eax, eax
je 0x5c11f2
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x5c118b
cmp dword [eax + 4], 0
mov esi, eax
je 0x5c118b
add esi, 8
jmp 0x5c11a3
mov eax, dword [0x802200]
test eax, eax
je 0x5c1201
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
xor esi, esi
cmp eax, 1
jne 0x5c11aa
mov eax, esi
add esp, 8
pop esi
ret
test eax, eax
mov esi, eax
jne 0x5c1216
movzx eax, byte [0x803894]
mov ecx, 0xc
mov edx, 4
call fcn.004889b0
test eax, eax
je 0x5c1259
mov dword [eax], 0x802200
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x802200]
test eax, eax
jne 0x5c120d
mov ecx, 0x802200
call fcn.00659cf0
jmp 0x5c120e
mov ecx, 0x802200
call fcn.00659cf0
jmp 0x5c1172
mov ecx, 0x802200
call fcn.00659cf0
jmp 0x5c1195
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
call fcn.0065a2d0
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
test edx, edx
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esi + 4], 1
mov dword [esi + 8], eax
je 0x5c1186
test ecx, ecx
je 0x5c1186
lock dec dword [ecx]
jne 0x5c1186
lea ecx, [esp + 4]
call fcn.005c1270
jmp 0x5c1186
mov ecx, 4
mov edx, 0xc
call fcn.00651860
ud2

Function at 0x5c1420
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x802220]
test eax, eax
je 0x5c1505
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x5c1451
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x5c14fa
mov eax, dword [0x802220]
test eax, eax
je 0x5c1514
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x5c14d7
mov esi, eax
test eax, eax
jne 0x5c14b7
movzx eax, byte [0x803894]
mov ecx, 0x20
mov edx, 8
call fcn.004889b0
test eax, eax
je 0x5c152f
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x802220
mov esi, eax
mov eax, dword [0x802220]
test eax, eax
je 0x5c1523
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x5c14db
movaps xmm0, xmmword [esp]
jmp 0x5c14e9
xor esi, esi
jmp 0x5c14fd
lea ecx, [esp + 0x10]
call fcn.005bb1f0
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, 0x802220
call fcn.00659cf0
jmp 0x5c1438
mov ecx, 0x802220
call fcn.00659cf0
jmp 0x5c145f
mov ecx, 0x802220
call fcn.00659cf0
jmp 0x5c14af
mov ecx, 8
mov edx, 0x20
call fcn.00651860
ud2
Function at 0x5c8f1d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push edi
push esi
mov eax, dword [0x802254]
mov esi, ecx
test eax, eax
je 0x5c8ff4
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x5c8f4c
cmp dword [eax + 4], 0
mov ebx, eax
je 0x5c8f4c
add ebx, 8
jmp 0x5c8fee
mov eax, dword [0x802254]
test eax, eax
je 0x5c9003
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x5c8fc3
mov edi, eax
test eax, eax
jne 0x5c8fa9
mov al, byte [0x803894]
mov ecx, 0x10
mov edx, 4
call fcn.004889b0
test eax, eax
je 0x5c901e
mov dword [eax], 0x802254
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x802254]
test eax, eax
je 0x5c9012
dec eax
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test esi, esi
je 0x5c8fc7
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
mov ecx, eax
je 0x5c8fcb
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
jmp 0x5c8fcb
xor ebx, ebx
jmp 0x5c8fee
xor eax, eax
xor ecx, ecx
mov edx, dword [edi + 0xc]
cmp dword [edi + 4], 0
lea ebx, [edi + 8]
mov dword [edi + 4], 1
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
je 0x5c8fee
test edx, edx
je 0x5c8fee
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov eax, ebx
pop esi
pop edi
pop ebx
ret
mov ecx, 0x802254
call fcn.00659cf0
jmp 0x5c8f30
mov ecx, 0x802254
call fcn.00659cf0
jmp 0x5c8f5a
mov ecx, 0x802254
call fcn.00659cf0
jmp 0x5c8fa1
mov ecx, 4
mov edx, 0x10
call fcn.00651860
ud2

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

Disassembly:
push edi
push esi
mov eax, dword [0x802244]
mov esi, ecx
test eax, eax
je 0x5c90f3
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x5c9055
cmp byte [eax + 4], 2
mov edi, eax
jne 0x5c90d0
mov eax, dword [0x802244]
test eax, eax
je 0x5c9102
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x5c90d5
mov edi, eax
test eax, eax
jne 0x5c90af
mov al, byte [0x803894]
mov ecx, 8
mov edx, 4
call fcn.004889b0
test eax, eax
je 0x5c911d
mov dword [eax], 0x802244
mov byte [eax + 4], 2
mov edi, eax
mov eax, dword [0x802244]
test eax, eax
je 0x5c9111
dec eax
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
add edi, 4
test esi, esi
je 0x5c90bf
mov al, byte [esi]
mov byte [esi], 2
cmp al, 2
jne 0x5c90d9
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
setns al
jmp 0x5c90de
add edi, 4
jmp 0x5c90ee
xor edi, edi
jmp 0x5c90ee
test al, al
setne al
movzx ecx, byte [edi]
mov byte [edi], al
test cl, 1
je 0x5c90ee
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x802244
call fcn.00659cf0
jmp 0x5c9041
mov ecx, 0x802244
call fcn.00659cf0
jmp 0x5c9063
mov ecx, 0x802244
call fcn.00659cf0
jmp 0x5c90a7
mov ecx, 4
mov edx, 8
call fcn.00651860
ud2