joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140174130
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, Ordinal_46
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x1401741fb
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.140153520
cmp eax, 4
jne 0x1401741ac
cmp byte [0x1402f5290], r14b
jne 0x1401741b8
lea r9d, [rax - 2]
mov dword [rsp + 0x50], r14d
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov edx, eax
test eax, eax
jne 0x1401741fd
mov eax, dword [rsp + 0x50]
jmp 0x1401741d7
imul eax, dword [0x1402f528c], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1402f528c], eax
rol eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x1401741f2
sub rsi, rdi
nop
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x1401741e0
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x140174160
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140174210
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x1401742e0
xor ebp, ebp
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140153520
cmp eax, 4
je 0x140174262
test eax, eax
jne 0x1401742e5
jmp 0x1401742ac
cmp byte [0x1402f5290], bpl
jne 0x140174290
mov r9d, 2
mov dword [rsp + 0x50], ebp
lea rdx, [rsp + 0x50]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x1401742ac
mov eax, 2
jmp 0x1401742e5
imul eax, dword [0x1402f528c], 0x41c64e6d
add eax, 0x3039
mov dword [0x1402f528c], eax
rol eax, 0x10
mov dword [rsp + 0x50], eax
mov ecx, dword [rsp + 0x50]
cmp ecx, 0xfffffffc
jae 0x140174240
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x140174240
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140178060
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [case.0x140154eb0.0]
mov rdi, rax
test rax, rax
je 0x1401780dd
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140178108
cmp ebx, esi
je 0x140178108
cmp ebx, 0x8000
ja 0x140178108
cmp ebx, esi
jb 0x140178103
mov edx, ebx
mov rcx, rdi
call qword [case.0x140154eb0.0]
mov rdi, rax
test rax, rax
jne 0x1401780a0
mov rcx, rbp
call qword [fcn.1401a416a]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x1401780e8
mov rcx, rdi
jmp 0x1401780e0

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x20]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x220]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140179c1f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.140159df0
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.140179760
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140179dc0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140179f69
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x1b8]
mov rsi, rcx
mov r15, qword [rcx + 0x20]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbp
lea rbx, [rdi + 0x1ed8]
mov qword [rsp + 0x58], r14
lea r14, [rdi + 0x1cd8]
mov qword [rbx], r14
cmp r14, rbx
jae 0x140179e27
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140179e27
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140179e27
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx ebp, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x140179e5d
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x50]
cmp r9, rbx
jae 0x140179eb3
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140179eb3
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140179eb3
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140179eb3
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140179eb3
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ee0], r9
lea r8, [rdi + 0x1cda]
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rsi
call fcn.140179890
mov rcx, qword [r15 + 0x220]
xor r9d, r9d
mov rdx, r14
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140179f15
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.140159df0
lea rdx, [rdi + 0x1cdb]
mov r8d, 4
mov rcx, rsi
call fcn.140179c50
mov rcx, qword [r15 + 0x220]
lea rdx, [rdi + 0x1cdf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140179f61
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.140159df0
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x14017b600
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1401ec840]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x20]
mov rbp, rcx
xor r9d, r9d
xor esi, esi
mov rdi, qword [rax + 0x680]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
mov rdx, qword [rdi + 0x150]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rdi + 0x13c], eax
cmp dword [rdi + 0x138], esi
jne 0x14017b696
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r8d, dword [rdi + 0x13c]
mov qword [rsp + 0x100], r14
cmp r8d, 4
jge 0x14017b6e6
lea rdx, str.Received_too_short_packet
mov rcx, rbp
call fcn.140159df0
mov dword [rdi + 0xc], 7
mov eax, esi
mov r14, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401a2f30
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rdi + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x14017b71c.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0x17b824]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x14017b71c.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x14017b71c.4
lea eax, [r8 - 4]
mov rcx, rbp
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14015b270
mov esi, eax
test eax, eax
je case.0x14017b71c.4
mov edx, 5
mov rcx, rdi
call fcn.14017c210
jmp 0x14017b6c1
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
shl ecx, 8
lea r14, [rdx + 4]
mov qword [rsp + 0xf8], rbx
movsxd rbx, eax
movzx eax, byte [rdx + 3]
mov rdx, rbx
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, r14
call fcn.14017c280
cmp rax, rbx
mov rbx, qword [rsp + 0xf8]
jae case.0x14017b71c.4
mov r8, r14
lea rdx, str.TFTP_error:__s
mov rcx, rbp
call fcn.140159ee0
jmp case.0x14017b71c.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.14017b340
mov esi, eax
test eax, eax
je case.0x14017b71c.4
jmp 0x14017b6c3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rbp
lea rdx, [0x1401c45bc]
call fcn.140159df0
mov rcx, rbp
call fcn.14016f610
test eax, eax
je 0x14017b6c1
mov edx, 5
mov rcx, rdi
call fcn.14017c210
mov eax, Ordinal_46
jmp 0x14017b6c3
Function at 0x140183d30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1401ec840]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x20]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rbx, qword [rsi + 0x228]
mov rcx, rbx
mov qword [rsp + 0x28], 0xffffffffffffffff
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140183dac
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x28], rax
jmp 0x140183db1
mov rax, qword [rsp + 0x28]
mov rcx, rdi
cmp rax, 0xffffffffffffffff
jne 0x140183dd0
lea rdx, str.Error_accept__ing_server_connect
call fcn.140159df0
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x140183e6a
lea rdx, str.Connection_accepted_from_server
call fcn.140159ee0
mov byte [rsi + 0x3ad], 0
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.140195ec0
lea r9, [rsp + 0x28]
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.140162ee0
mov ebx, eax
test eax, eax
je 0x140183e1d
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebx
jmp 0x140183e6a
cmp qword [rdi + 0x280], 0
je 0x140183e68
mov dl, 1
mov rcx, rdi
call fcn.140145850
mov rdx, qword [rsp + 0x28]
mov r8d, 1
mov rcx, qword [rdi + 0x288]
call qword [rdi + 0x280]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.140145850
test ebx, ebx
je 0x140183e68
mov rcx, rdi
call fcn.140184560
mov eax, Ordinal_46
jmp 0x140183e6a
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401a2f30
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x1b8]
mov rbx, rcx
mov rdi, qword [rcx + 0x20]
cmp dword [rax + 0x10], 0
je 0x140185d93
movzx eax, byte [rdi + 0x78e]
cmp al, 0xd
je 0x140185d75
test rdi, rdi
je 0x140185d5b
lea r8, str.h_e_
mov r8, qword [r8 + rax*8]
jmp 0x140185d62
lea r8, [0x1401c45cc]
lea r9, str.RETR_PREQUOTE
lea rdx, str.__s_______s_
call fcn.14015a0a0
mov r8b, reloc.WS2_32.dll_listen
mov byte [rdi + 0x78e], 0xd
mov dl, 1
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140185ee0
cmp byte [rcx + 0xa4e], 0
je 0x140185dad
xor edx, edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140186bb0
cmp byte [rcx + 0xa51], 0
je 0x140185e30
mov r9, qword [rdi + 0x738]
lea rdx, [rdi + 0x680]
test r9, r9
jne 0x140185df7
mov r9, qword [rcx + 0x7f8]
test r9, r9
jne 0x140185dee
cmp byte [rcx + 0x12a9], 0
lea rax, str.NLST
lea r9, str.LIST
cmovne r9, rax
lea r8, str.PRET__s
jmp 0x140185e0e
cmp byte [rcx + 0x12ad], 0
lea r8, str.PRET_STOR__s
jne 0x140185e0e
lea r8, str.PRET_RETR__s
call fcn.14019e890
mov edi, eax
test eax, eax
jne 0x140185e23
mov dl, Ordinal_30
mov rcx, rbx
call fcn.140184500
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140186ad0
Function at 0x140186190
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b8]
add rdx, 0x680
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x1401861e8
cmp qword [rdx + 0xb8], 0
je 0x1401861e8
xor r9d, r9d
mov qword [rsp + 0x30], rdi
lea r8, str.REST__d
call fcn.14019e890
mov edi, eax
test eax, eax
jne 0x1401861dd
mov dl, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rbx
call fcn.140184500
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140185d20

Function at 0x1401866a0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x20]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x1401866e0
lea rdx, str.Couldnt_set_desired_mode
call fcn.140159df0
lea eax, [rdi + 0x11]
jmp 0x140186844
cmp edx, 0xc8
je 0x1401866f7
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140159ee0
cmp sil, 0x13
jne 0x14018670d
mov rdx, rbp
mov rcx, rbx
call fcn.1401863b0
jmp 0x140186840
cmp sil, 0x14
jne 0x140186822
cmp byte [rbx + 0x6f0], 2
mov rbp, qword [rbx + 0x20]
jne 0x14018678b
mov rax, qword [rbx + 0x1b8]
mov rcx, qword [rax]
test rcx, rcx
je 0x14018678b
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.140164c00
test eax, eax
jne 0x140186840
mov rcx, qword [rsp + 0x40]
lea edx, [rax + 0x2f]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x140186780
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x14018678b
mov rcx, qword [rsp + 0x40]
call qword [fcn.1401a416a]
mov rdx, qword [rbx + 0x7f8]
test rdx, rdx
jne 0x1401867b0
cmp byte [rbx + 0x12a9], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1401c4026]
test rdi, rdi
mov r9, r8
lea rax, [0x1401c47a8]
cmovne r9, rdi
lea rcx, [0x1401aacc4]
cmovne r8, rax
call fcn.140160510
mov rcx, rdi
mov rsi, rax
call qword [fcn.1401a416a]
test rsi, rsi
jne 0x1401867ee
lea edi, [rsi + 0x1b]
jmp 0x140186842
lea rdx, [rbp + 0x680]
mov r9, rsi
lea r8, [0x1401c45bc]
mov rcx, rbx
call fcn.14019e890
mov rcx, rsi
mov edi, eax
call qword [fcn.1401a416a]
test edi, edi
jne 0x140186842
mov dl, Ordinal_32
mov rcx, rbx
call fcn.140184500
jmp 0x140186842
cmp sil, 0x15
jne 0x14018682d
mov r8b, reloc.WS2_32.dll_listen
jmp 0x140186836
cmp sil, 0x16
jne 0x140186842
mov r8b, ntohs
mov dl, 1
mov rcx, rbx
call fcn.140185ee0
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1401a12c0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x1401a1302
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1401a1349
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1401a13a2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1401a1360
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1401a13e3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1401b78f9]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1401b78fa]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1401a13b0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1401a28cc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1401a2906
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1401a290b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1401a2954
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1401a2954
dec r8
sub rdx, 1
jne 0x1401a293a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1401a3ecc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401a3f16
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401a3f16
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401a3f16
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401a3f16
cmp dword [rcx + 0x84], 0xe
jbe 0x1401a3f16
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401a3f18
xor al, al
add rsp, 0x28
ret
Function at 0x140007560
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140053080]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000763e
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140007635
nop word [rax + rax]
lea rcx, [rsp + 0x4c]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400075d0
cmp qword [rbx + 0x18], 7
mov r8, rbx
mov rdx, qword [rbx + 0x10]
jbe 0x1400075eb
mov r8, qword [rbx]
cmp rdx, rax
jne 0x140007623
test rdx, rdx
je 0x140007616
lea rcx, [rsp + 0x4c]
sub r8, rcx
lea rax, [rsp + 0x4c]
movzx ecx, word [rax]
cmp word [r8 + rax], cx
jne 0x140007623
add rax, 2
sub rdx, 1
jne 0x140007602
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140007640
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400075c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14001beb0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x140008880
Capabilities:
Capture public ip
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x170
mov rax, qword [0x140053080]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.IPFetcher
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rsi, rax
xor r8d, r8d
test rax, rax
jne 0x140008902
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
lea rdx, [0x1400473bd]
mov rcx, rbx
call fcn.140006f50
mov rax, rbx
jmp 0x140008a0a
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x800000
xor r9d, r9d
lea rdx, str.https:__api.ipify.org_formattext
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rdi, rax
test rax, rax
jne 0x14000895b
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
xor r8d, r8d
lea rdx, [0x1400473bd]
mov rcx, rbx
call fcn.140006f50
mov rax, rbx
jmp 0x140008a0a
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x14004b280]
movdqu xmmword [rsp + 0x50], xmm1
mov byte [rsp + 0x40], 0
nop word [rax + rax]
lea r9, [rsp + 0x3c]
mov r8d, 0xff
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400089dd
mov eax, dword [rsp + 0x3c]
test eax, eax
je 0x1400089dd
cmp rax, 0x100
jae 0x140008a34
mov byte [rsp + rax + 0x60], 0
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400089c2
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140015720
jmp 0x140008980
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
jmp 0x140008a0a
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14001beb0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
call fcn.14001bfe0
int3
Function at 0x1400099f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x140053080]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, rcx
xor ebp, ebp
mov rbx, qword [0x140055ef8]
mov rsi, qword [0x140055f00]
cmp rbx, rsi
je 0x140009b8e
movabs r14, 0x7ffffffffffffffe
lea r15, [0x140049524]
nop word [rax + rax]
mov rcx, qword [rdi + 0x10]
mov rax, r14
sub rax, rcx
cmp rax, 1
jb 0x140009c00
mov r9, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140009a71
mov r9, qword [rdi]
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x48]
call fcn.140018f50
nop
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140009a9c
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x48]
call fcn.140014230
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rbp
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], 7
mov word [rax], bp
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140009b21
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009b1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009c06
call fcn.14001bed0
lea rcx, [rsp + 0x68]
cmp qword [rsp + 0x80], 7
cmova rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdx, qword [rsp + 0x80]
cmp eax, 0xffffffff
je 0x140009bbd
cmp rdx, 7
jbe 0x140009b81
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009b7c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009bfa
call fcn.14001bed0
add rbx, 0x20
cmp rbx, rsi
jne 0x140009a50
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14001beb0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
cmp rdx, 7
jbe 0x140009bf6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009bf1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009bfa
call fcn.14001bed0
xor al, al
jmp 0x140009b90
call fcn.140024fdc
int3
call fcn.1400047d0
int3
call fcn.140024fdc
int3