joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ab390
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, esp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], esp
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0x5e6df0
lea eax, [esi + 0x38]
mov ecx, dword fs:[0]
mov dword [esi + 0x38], ecx
mov dword fs:[0], eax
lea eax, [esi + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x5ab4fb
mov ebx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
movq xmm0, qword [0x7f5070]
movd edx, xmm0
pshufd xmm0, xmm0, 0x55
mov dword [esi + 4], ecx
movd edi, xmm0
mov eax, edx
or eax, edi
jne 0x5ab449
lea eax, [esi + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x5ab533
movq xmm0, qword [esi + 8]
mov edx, dword [esi + 8]
mov edi, dword [esi + 0xc]
movq qword [0x7f5070], xmm0
mov eax, edx
mov ecx, dword [esi + 4]
or eax, edi
je 0x5ab4e7
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], ebx
push edi
push edx
push ecx
push ebx
mov edi, edx
mov dword [esi + 0x28], edx
call fcn.006154e0
mov dword [esi + 0x1c], eax
mov ebx, edx
mov ecx, edi
mov dword [esi + 0x2c], edx
mul edi
mov edi, dword [esi + 0x20]
imul ecx, ebx
mov ebx, dword [esi + 0x1c]
add ecx, edx
mov edx, edi
imul edx, ebx
add ecx, edx
mov edx, dword [esi + 0x24]
sub edx, eax
mov eax, dword [esi + 4]
sbb eax, ecx
imul ecx, eax, 0x3b9aca00
mov eax, edx
mov edx, 0x3b9aca00
mul edx
add edx, ecx
push edi
push dword [esi + 0x28]
push edx
push eax
call fcn.006154e0
mov ecx, eax
mov dword [esi + 4], edx
mov eax, ebx
mov edx, 0x3b9aca00
mul edx
mov edi, eax
imul eax, dword [esi + 0x2c], 0x3b9aca00
add eax, edx
add edi, ecx
adc eax, dword [esi + 4]
push 0
push 0x3b9aca00
push eax
push edi
call fcn.006154e0
imul ecx, eax, 0xc4653600
add ecx, edi
mov edi, dword [esi + 0x38]
mov dword fs:[0], edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.attempt_to_divide_by_zero
mov edx, 0x19
push 0x7859e8
call fcn.0062d4b0
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x40], 0
lea eax, [esi + 0x14]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x7869b8
push 0x7846d4
push eax
call fcn.0062d770
add esp, 0xc
jmp 0x5ab569
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x40], 1
lea eax, [esi + 0x14]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x7869a8
push 0x7846d4
push eax
call fcn.0062d770
add esp, 0xc
ud2
Function at 0x5b1590
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 0x5b15dd
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0xc0000011
jne 0x5b15ed
mov dword [esi + 4], 0
jmp 0x5b15ff
cmp eax, 0x103
je 0x5b1617
test eax, eax
js 0x5b1608
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 0x5b1602
mov eax, esp
mov dword [esp + 0x1c], 0x786118
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.005a87f0
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.005a8920
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push edi
push esi
mov eax, dword [0x7f31ac]
test eax, eax
je 0x5b3e95
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x5b3e0c
cmp dword [eax + 4], 0
mov edi, eax
je 0x5b3e0c
add edi, 8
jmp 0x5b3e90
mov eax, dword [0x7f31ac]
test eax, eax
je 0x5b3ea4
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x5b3e8e
mov esi, eax
test eax, eax
jne 0x5b3e64
movzx eax, byte [0x7f50e0]
xor ecx, ecx
mov edx, 0xc
call fcn.005bfb70
test eax, eax
je 0x5b3ebf
mov dword [eax], 0x7f31ac
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x7f31ac]
test eax, eax
je 0x5b3eb3
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 0x5b3e90
test ecx, ecx
je 0x5b3e90
lock dec dword [ecx]
jne 0x5b3e90
call fcn.005b3ed0
jmp 0x5b3e90
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x7f31ac
call fcn.006334f0
jmp 0x5b3df0
mov ecx, 0x7f31ac
call fcn.006334f0
jmp 0x5b3e1a
mov ecx, 0x7f31ac
call fcn.006334f0
jmp 0x5b3e5c
mov ecx, 4
mov edx, 0xc
call fcn.0062d0a0
int3
Function at 0x5b4730
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 [0x7f5054]
mov esi, ecx
cmp eax, 3
jne 0x5b48bb
cmp ebp, 0x17f
ja 0x5b48cc
lea eax, [esp + 0x28]
push ebp
push edi
mov edi, eax
push eax
call fcn.00616830
add esp, 0xc
lea eax, [ebp + 1]
cmp ebp, 6
mov byte [esp + ebp + 0x28], 0
ja 0x5b4795
xor edx, edx
nop
cmp byte [esp + edx + 0x28], 0
je 0x5b482f
inc edx
cmp eax, edx
jne 0x5b4780
jmp 0x5b4885
lea ecx, [esp + 0x2b]
and ecx, 0xfffffffc
sub ecx, edi
je 0x5b47c8
je 0x5b47c8
xor edx, edx
nop word cs:[eax + eax]
nop
cmp byte [esp + edx + 0x28], 0
je 0x5b482f
inc edx
cmp ecx, edx
jne 0x5b47b0
lea edx, [ebp - 7]
mov dword [esp], ebx
cmp ecx, edx
jbe 0x5b47d0
jmp 0x5b480e
mov dword [esp], ebx
lea edx, [ebp - 7]
xor ecx, ecx
movdqa xmm0, xmmword [0x636190]
movdqa xmm1, xmmword [0x6360c0]
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 0x5b480e
add ecx, 8
cmp ecx, edx
jbe 0x5b47e0
mov ebx, dword [esp]
sub eax, ecx
je 0x5b4885
lea edi, [esp + ecx + 0x28]
xor edx, edx
nop dword [eax + eax]
cmp byte [edi + edx], 0
je 0x5b482d
inc edx
cmp eax, edx
jne 0x5b4820
jmp 0x5b4885
add edx, ecx
cmp edx, ebp
jne 0x5b4885
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 0x5b489e
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
jmp 0x5b48ae
mov eax, dword [0x785728]
mov ecx, dword [0x78572c]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x5b48b0
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.00633a80
cmp ebp, 0x17f
jbe 0x5b475f
mov ecx, esi
mov edx, edi
push ebx
push ebp
call fcn.00633ad0
add esp, 0x1b0
jmp 0x5b48b6
Function at 0x5b4e70
Capabilities:
Create udp socket

Disassembly:
push ebx
push edi
push esi
mov edi, dword [esp + 0x10]
test dx, dx
mov eax, 2
mov ebx, 0x17
mov esi, ecx
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x5b4eab
mov dword [esi + 4], eax
mov byte [esi], 4
pop esi
pop edi
pop ebx
ret
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x5b4ebf
cmp eax, 0x2739
jne 0x5b4eea
push 1
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x5b4ef2
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x5b4f03
mov dword [esi + 4], edi
jmp 0x5b4ea4
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x5b4ea7
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x5b4ea7
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [esi], 0
shr ecx, 8
shl edx, 0x18
mov byte [esi + 7], al
mov dword [esi + 1], edx
mov word [esi + 5], cx
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x5b4ea7

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

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0xa0
xorps xmm0, xmm0
mov esi, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0xc], pe_nt_image_headers32
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
push eax
push ecx
push edx
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x5b4ffe
movzx ecx, word [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp ecx, 2
je 0x5b5017
cmp ecx, 0x17
jne 0x5b5037
cmp eax, 0x1b
jbe 0x5b504d
movzx eax, word [esp + 0x12]
movups xmm0, xmmword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov word [esi], 1
rol ax, 8
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edx
mov word [esi + 0x1c], ax
jmp 0x5b5047
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi + 4], 0
mov byte [esi + 7], 0
mov word [esi + 5], 0
mov dword [esi + 8], eax
jmp 0x5b5042
cmp eax, 0xf
jbe 0x5b5061
movzx ecx, word [esp + 0x12]
mov eax, dword [esp + 0x14]
mov word [esi], 0
rol cx, 8
mov dword [esi + 2], eax
mov word [esi + 6], cx
jmp 0x5b5047
mov byte [esi + 4], 2
mov dword [esi + 8], 0x786da4
mov word [esi], 2
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, 0x786d40
mov edx, 0x43
push 0x786d84
call fcn.0062d4b0
mov ecx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
mov edx, 0x42
push 0x786d30
call fcn.0062d4b0
int3
Function at 0x5b5390
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov eax, dword [esp + 0xc]
mov esi, ecx
mov ecx, 0x7fffffff
cmp eax, 0x7fffffff
cmovb ecx, eax
push 0
push ecx
push dword [esp + 0x10]
push edx
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x5b53bf
mov dword [esi + 4], eax
mov byte [esi], 4
pop esi
ret
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
pop esi
ret

Function at 0x5b53e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov eax, dword [esp + 0xc]
mov esi, ecx
mov ecx, 0x7fffffff
cmp eax, 0x7fffffff
cmovb ecx, eax
push 0
push ecx
push dword [esp + 0x10]
push edx
call dword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x5b5419
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 0x274a
jne 0x5b5421
mov dword [esi + 4], eax
mov byte [esi], 4
pop esi
ret
mov byte [esi], 0
mov dword [esi + 4], ecx
pop esi
ret
Function at 0x5bb780
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.005aabd0
add esp, 4
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp edx, 0x80000000
jne 0x5bb7be
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], 0x80000000
jmp 0x5bb7e0
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov ecx, esp
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.005bb6b0
mov ebx, dword [esp]
cmp ebx, 0x80000000
jne 0x5bb7f5
mov ecx, esp
call fcn.005aad80
mov dword [esi], 0x80000000
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [esp + 4]
mov ebp, dword [esp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5bb813
mov dword [esi], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], ebp
jmp 0x5bb7ed
test ebx, ebx
mov dword [esi], 0x80000000
je 0x5bb7ed
mov ecx, edi
mov edx, 2
call fcn.004533f0
jmp 0x5bb7ed
Function at 0x5bd4d0
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], 0x5e70b0
mov esi, edx
mov edi, ecx
xor ecx, ecx
mov edx, 8
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
movzx eax, byte [0x7f50e0]
call fcn.005bfb70
test eax, eax
je 0x5bd5a8
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 0x5bd640
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x5bd54a
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x5bd597
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 - 0x24], eax
push eax
mov dword [ebp - 0x20], ecx
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
je 0x5bd57f
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x24]
call fcn.004533f0
mov ecx, dword [ebp - 0x28]
mov edx, 4
call fcn.004533f0
call sub.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.0062d0a0
ud2
Function at 0x5bda30
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.00615550
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x5e70e0
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.00616db0
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 0x5b5830
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x5bdb84
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 0x5bdaba
cmp dword [ebp - 0x2c], 0
jne 0x5bdb93
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x5bdb93
cmp esi, 0x1000
ja 0x5bdbcf
xor edi, edi
nop dword [eax]
mov eax, esi
sub eax, edi
jb 0x5bdbb5
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 0x5b5830
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 0x5bdb8b
nop dword [eax]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x5bdb30
cmp dword [ebp - 0x2c], 0
jne 0x5bdb90
add edi, dword [ebp - 0x28]
cmp edi, esi
jne 0x5bdaf0
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x5b5830
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 0x5bdaba
call sub.KERNEL32.dll_GetLastError
jmp 0x5bdb93
call sub.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 0x7863d0
call fcn.0062d670
add esp, 4
jmp 0x5bdbea
mov dword [ebp - 0x10], 0
mov ecx, esi
mov edx, 0x1000
push 0x7863d0
call fcn.0062d450
add esp, 4
ud2
Function at 0x5bdcc0
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], 0x5e7100
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 0x5bdd3e
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 sub.KERNEL32.dll_GetLastError
lea edx, [esi + 8]
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], 0x7864f8
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, 0x786528
mov dword [esi + 0x2c], fcn.005b02f0
mov dword [esi + 0x3c], 1
call fcn.0062d360
ud2

Function at 0x5bf410
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [edx], 0
mov edi, edx
jne 0x5bf4d5
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx]
test edx, edx
jne 0x5bf43d
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x5bf4c0
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x5bf4ad
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx + 4]
mov dword [esp], 0
mov ebx, esp
push ecx
push ebx
push edx
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5bf474
mov eax, dword [esp]
mov ecx, 2
test eax, eax
jne 0x5bf491
jmp 0x5bf485
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
je 0x5bf48c
cmp eax, 0x6d
jne 0x5bf4a2
mov word [esi], 4
jmp 0x5bf49b
mov ecx, 1
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
add esp, 0x18
pop esi
pop edi
pop ebx
ret
mov dword [esi], 0
mov dword [esi + 4], eax
jmp 0x5bf49b
mov ecx, ebx
push 1
call fcn.00633810
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
jmp 0x5bf444
mov edx, eax
mov ecx, ebx
push 0x10
call fcn.00633810
add esp, 4
mov edx, dword [ebx]
jmp 0x5bf43d
mov edx, esp
mov ecx, edi
mov dword [esp], 0
call fcn.00633ba0
int3
Function at 0x5bf660
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x7f318c]
test eax, eax
je 0x5bf6e1
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x5bf67f
cmp byte [eax + 4], 0
mov esi, eax
jne 0x5bf6d6
mov eax, dword [0x7f318c]
test eax, eax
je 0x5bf6f0
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x5bf6db
mov esi, eax
test eax, eax
jne 0x5bf6d0
movzx eax, byte [0x7f50e0]
xor ecx, ecx
mov edx, 8
call fcn.005bfb70
test eax, eax
je 0x5bf708
mov dword [eax], 0x7f318c
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x7f318c]
test eax, eax
je 0x5bf6fc
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
jmp 0x5bf6dd
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0x7f318c
call fcn.006334f0
jmp 0x5bf66b
mov ecx, 0x7f318c
call fcn.006334f0
jmp 0x5bf689
mov ecx, 0x7f318c
call fcn.006334f0
jmp 0x5bf6c8
mov ecx, 4
mov edx, 8
call fcn.0062d0a0
int3
Function at 0x5c2500
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x5e7210
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov esi, edx
mov ecx, dword fs:[0]
mov edx, ebx
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
xor ecx, ecx
movzx eax, byte [0x7f50e0]
call fcn.005bfb70
test eax, eax
je 0x5c25af
push ebx
push esi
mov dword [ebp - 0x20], eax
push eax
call fcn.00616830
add esp, 0xc
mov edx, dword [edi + 0x30]
cmp edx, dword [edi + 0x28]
jne 0x5c2579
lea ecx, [edi + 0x28]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], edi
call fcn.005c25e0
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp + 8]
mov edx, dword [edi + 0x30]
mov eax, dword [edi + 0x2c]
mov esi, dword [ebp - 0x20]
lea ecx, [edx + edx*4]
inc edx
mov dword [eax + ecx*4], 0
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], ebx
mov byte [eax + ecx*4 + 0x10], 0
mov dword [edi + 0x30], edx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 1
mov edx, ebx
call fcn.0062d0a0
nop dword [eax + eax]
push ebp
sub esp, 0xc
add ebp, 0xc
mov edx, 1
mov ecx, dword [ebp - 0x20]
call fcn.004533f0
add esp, 0xc
pop ebp
ret

Function at 0x5c2820
Capabilities:
Connect socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [esp + 0x30]
mov esi, ecx
movzx ecx, byte [eax]
cmp cl, 4
jne 0x5c2856
mov eax, dword [eax + 4]
cmp word [eax], 0
je 0x5c286f
movups xmm0, xmmword [eax + 4]
mov ebx, dword [eax + 0x18]
lea edi, [eax + 0x14]
add eax, 0x1c
mov ecx, 0x1c
mov bp, 0x17
jmp 0x5c2881
movzx edx, byte [eax + 3]
movzx edi, word [eax + 1]
mov eax, dword [eax + 4]
mov byte [esi + 3], dl
mov word [esi + 1], di
mov byte [esi], cl
mov dword [esi + 4], eax
jmp 0x5c28c4
lea edi, [eax + 2]
add eax, 6
mov ecx, 0x10
mov bp, 2
xorps xmm0, xmm0
movzx eax, word [eax]
mov edi, dword [edi]
mov word [esp], bp
rol ax, 8
mov word [esp + 2], ax
mov dword [esp + 4], edi
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x18], ebx
mov eax, esp
push ecx
push eax
push edx
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
je 0x5c28b5
mov byte [esi], 4
jmp 0x5c28c4
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret