joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400280d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
xor r9d, r9d
mov rbx, rcx
mov rcx, qword [rcx + 0x238]
mov esi, edx
mov byte [rax + 0x11], dl
lea r8d, [r9 + 3]
lea rdx, [rax + 0x10]
mov byte [rax + 0x10], 0xff
mov byte [rax + 0x12], dil
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14002812e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140015ff0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400279ec
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
cmp edx, 0x1f
jne 0x140028432
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov rdi, qword [rbp + 0x208]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400282d6
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400282e4
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400282f2
mov byte [rax], Ordinal_32
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx]
movzx r8d, ax
mov word [rsp + 0x50], ax
cmp rcx, rbx
jae 0x14002832c
mov byte [rcx], r15b
inc qword [rbx]
mov rdx, qword [rbx]
cmp rdx, rbx
jae 0x14002833d
mov cl, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14002834b
mov byte [rax], r8b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x14002835c
mov al, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14002836a
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140028378
mov byte [rax], 0xf0
inc qword [rbx]
mov rax, qword [rbx]
lea r8, [rdi + 0x1cba]
mov edx, 0x3e
mov r9, rax
mov rcx, rbp
mov qword [rbx], rsi
sub r9, rsi
mov qword [rdi + 0x1ec0], rax
sub r9, 2
call fcn.140027b00
mov rcx, qword [r14 + 0x238]
xor r9d, r9d
lea r8d, [r9 + 3]
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400283d6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140015ff0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140028158
mov rcx, qword [r14 + 0x238]
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rdi + 0x1cbf]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140028422
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140015ff0
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400293c4
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14009d810]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x7c0]
mov rdi, qword [rcx]
mov dword [rsp + 0x30], 0x80
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r14, rcx
mov rcx, qword [rbx + 0x18]
lea rax, [rsp + 0x40]
add r8d, 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140029465
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.1400430e0
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
cmp r8d, 4
jge 0x1400294b4
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140015ff0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140042af0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rcx, qword [rbx + 0x168]
movzx eax, byte [rcx]
shl ax, 8
movzx edx, ax
movzx eax, byte [rcx + 1]
or edx, eax
mov dword [rbx + 0xc], edx
sub edx, 3
je 0x140029547
dec edx
je 0x1400295c2
dec edx
je 0x14002951b
dec edx
je 0x1400294fe
lea r8, str.Internal_error:_Unexpected_packet
lea rdx, [0x1400937dc]
mov rcx, rdi
call fcn.140015ff0
jmp 0x1400295c2
lea rdx, [rcx + 2]
add r8d, 0xfffffffe
mov rcx, rbx
call fcn.14002914c
test eax, eax
je 0x1400295c2
jmp 0x14002948a
movzx eax, byte [rcx + 2]
mov rdx, rcx
shl ax, 8
lea r8, [rdx + 4]
movzx ecx, ax
movzx eax, byte [rdx + 3]
lea rdx, [0x140076ecc]
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rdi
call fcn.1400160e8
jmp 0x1400295c2
cmp r8d, 4
jle 0x1400295c2
movzx eax, byte [rcx + 2]
mov r10, rcx
mov edx, 1
shl ax, 8
movzx ecx, ax
movzx eax, byte [r10 + 3]
or ecx, eax
movzx eax, word [rbx + 0x48]
add eax, edx
movzx eax, ax
cmp eax, ecx
jne 0x1400295c2
lea eax, [r8 - 4]
lea r8, [r10 + 4]
mov rcx, r14
movsxd r9, eax
call fcn.140015ed8
mov esi, eax
test eax, eax
je 0x1400295a1
mov edx, 5
mov rcx, rbx
call fcn.140029e18
mov eax, esi
jmp 0x14002948a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14001fd9c
mov rcx, r14
call fcn.14002008c
test eax, eax
je 0x140029488
mov edx, 5
mov rcx, rbx
call fcn.140029e18
mov eax, Ordinal_45
jmp 0x14002948a
Function at 0x14002fb90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14009d810]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, qword [rcx + 0x240]
mov rsi, qword [rcx]
mov rbx, rcx
lea r8, [r11 - 0x28]
lea rdx, [r11 - 0x20]
mov rcx, rbp
or rdi, 0xffffffffffffffff
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14002fbff
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rbp
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
mov rdx, rbp
mov rcx, rbx
call fcn.1400168c4
mov rcx, rsi
cmp rdi, 0xffffffffffffffff
jne 0x14002fc24
lea rdx, str.Error_accept__ing_server_connect
call fcn.140015ff0
lea eax, [rdi + 0x1f]
jmp 0x14002fc81
lea rdx, str.Connection_accepted_from_server_n
call fcn.1400160e8
and dword [rbx + 0x3e0], 0
mov ebp, 1
mov edx, ebp
mov rcx, rdi
mov qword [rbx + 0x240], rdi
call fcn.140039d04
mov dword [rbx + 0x25c], ebp
mov rax, qword [rsi + 0x2d8]
test rax, rax
je 0x14002fc7f
mov rcx, qword [rsi + 0x2e0]
mov r8d, ebp
mov rdx, rdi
call rax
test eax, eax
je 0x14002fc7f
mov rcx, rbx
call fcn.1400300dc
lea eax, [rbp + 0x29]
jmp 0x14002fc81
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140042af0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x208]
cmp dword [rax + 0x18], 0
je 0x140031773
mov r8d, reloc.WS2_32.dll_listen
mov rcx, rbx
lea edx, [r8 - 0xc]
mov dword [rbx + 0x884], r8d
add rsp, 0x20
pop rbx
jmp fcn.140031854
cmp dword [rcx + 0x784], 0
je 0x14003178b
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140032340
cmp dword [rcx + 0x7d0], 0
je 0x14003180e
mov r8, qword [rbx + 0x848]
test r8, r8
jne 0x1400317ec
mov r8, qword [rcx + 0x840]
test r8, r8
jne 0x1400317c5
cmp dword [rcx + 0x780], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0x7c0]
lea rdx, str.PRET__s
call fcn.14003d5d4
test eax, eax
jne 0x140031816
mov dword [rbx + 0x884], 0x1d
add rsp, 0x20
pop rbx
ret
cmp dword [rcx + 0x7b0], 0
lea rcx, [rbx + 0x7c0]
je 0x140031805
lea rdx, str.PRET_STOR__s
jmp 0x1400317d3
lea rdx, str.PRET_RETR__s
jmp 0x1400317d3
mov rcx, rbx
call fcn.1400322ac
add rsp, 0x20
pop rbx
ret
Function at 0x140032020
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x51eb851f
mov edi, r8d
mov r8d, edx
xor ebx, ebx
mov rsi, rcx
mov rcx, qword [rcx]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x140032064
lea rdx, str.Couldnt_set_desired_mode
call fcn.140015ff0
lea eax, [rbx + 0x11]
jmp 0x1400320bc
cmp r8d, 0xc8
je 0x140032079
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.1400160e8
cmp edi, 0x13
jne 0x140032088
mov rcx, rsi
call fcn.140031e50
jmp 0x1400320b8
cmp edi, 0x14
jne 0x140032097
mov rcx, rsi
call fcn.140030da0
jmp 0x1400320b8
cmp edi, 0x15
jne 0x1400320a2
lea r8d, [rdi - 8]
jmp 0x1400320ab
cmp edi, 0x16
jne 0x1400320ba
lea r8d, [rdi - 8]
mov edx, 1
mov rcx, rsi
call fcn.140031854
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400363e4
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x14009d810]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.140048144
xor ebx, ebx
mov byte [rsp + 0x20], bl
test rax, rax
je 0x140036437
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], bl
je 0x140036437
lea rcx, [rsp + 0x20]
call qword [fcn.140060df4]
mov rbx, rax
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140042af0
add rsp, 0x140
pop rbx
ret

Function at 0x140039d04
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
xor eax, eax
test edx, edx
lea r8, [rsp + 0x38]
setne al
mov edx, 0x8004667e
mov dword [rsp + 0x38], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x28
ret

Function at 0x14003e508
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov byte [rcx], 0
mov edx, ebx
call qword [sym.imp.WS2_32.dll_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x14003e541
lea edx, [rax + 0x2e]
mov rcx, rdi
call fcn.140046cfc
test rax, rax
je 0x14003e53f
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14003f258
Capabilities:
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov r8, rcx
mov rdx, rdi
mov rcx, rsi
call fcn.14003f488
lea r8, [rbx + 7]
lea rdx, [rdi + 8]
mov rcx, rsi
call fcn.14003f488
lea r8, [rbx + 0xe]
lea rdx, [rdi + 0x10]
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14003f488
Function at 0x14003f36c
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rbp, rdx
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rbx + rdx], 0
jne 0x14003f38a
lea rcx, [rbx + rbx]
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x14003f3ad
lea eax, [rdi + 0x1b]
jmp 0x14003f472
xor ecx, ecx
test rbx, rbx
je 0x14003f3c7
mov al, byte [rcx + rbp]
mov byte [rdi + rcx*2 + 1], 0
mov byte [rdi + rcx*2], al
inc rcx
cmp rcx, rbx
jb 0x14003f3b4
lea rcx, [rsp + 0x38]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14003f45f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14003f452
mov rcx, qword [rsp + 0x30]
lea r8d, [rbx + rbx]
xor r9d, r9d
mov rdx, rdi
mov dword [rsp + 0x68], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
and dword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8, rsi
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, rdi
mov dword [rsi + 0x10], eax
mov byte [rsi + 0x14], al
call qword [fcn.140043a0c]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14003f488
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14009d810]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rcx
mov r14, r8
mov rdi, rdx
lea rcx, [rbp - 0x30]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rbp - 0x40], 8
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor ebx, ebx
test eax, eax
je 0x14003f5f7
mov dl, byte [r14 + 1]
mov cl, byte [r14]
mov r8b, byte [r14 + 5]
xor eax, eax
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], eax
mov qword [rbp - 0x28], rax
mov byte [rbp - 0x1c], cl
shl cl, 7
mov al, dl
shr al, 1
shl dl, 6
mov word [rbp - 0x28], 0x208
or al, cl
mov cl, byte [r14 + 2]
mov dword [rbp - 0x24], 0x6601
mov byte [rbp - 0x1b], al
mov al, cl
shl cl, 5
shr al, 2
mov dword [rbp - 0x20], 8
or al, dl
mov dl, byte [r14 + 3]
mov byte [rbp - 0x1a], al
mov al, dl
shl dl, 4
shr al, 3
or al, cl
mov cl, byte [r14 + 4]
mov byte [rbp - 0x19], al
mov al, cl
shl cl, 3
shr al, 4
or al, dl
mov edx, 8
mov byte [rbp - 0x18], al
mov al, r8b
shl r8b, 2
shr al, 5
or al, cl
mov cl, byte [r14 + 6]
mov byte [rbp - 0x17], al
mov al, cl
add cl, cl
shr al, 6
mov byte [rbp - 0x15], cl
lea rcx, [rbp - 0x1c]
or al, r8b
mov byte [rbp - 0x16], al
call fcn.140041a04
mov rcx, qword [rbp - 0x30]
xor r9d, r9d
lea rax, [rbp - 0x38]
lea rdx, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 0x14]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x14003f5e9
mov rax, qword [rsi]
mov rcx, qword [rbp - 0x38]
xor r9d, r9d
mov qword [rdi], rax
mov eax, dword [rbp - 0x40]
xor r8d, r8d
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x40]
xor edx, edx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ebx, 1
mov rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140042af0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140041ab4
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ecx, dword [rcx + 0x20]
lea r9d, [rax + rax]
add rcx, 0x18
mov ebp, r8d
add rcx, r9
mov r14, rdx
call qword [section..data]
xor esi, esi
mov rdi, rax
test rax, rax
je 0x140041bbc
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140041b32
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]
mov rdx, qword [rdi + 8]
add r14, qword [rdi + 0x10]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
test rbp, rbp
je 0x140041bb1
mov rsi, rbp
mov al, byte [r14]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
mov al, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
inc r14
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
dec rbp
jne 0x140041b46
jmp 0x140041bb1
mov rcx, qword [rdi + 8]
lea rdx, [0x14008291a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14008291b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
inc rsi
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jb 0x140041b86
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x14004fa24
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14004f88c
Function at 0x1400639b0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r8
call fcn.140063c00
test eax, eax
js 0x140063bee
mov eax, dword [rbx + 0xf0]
xor r10d, r10d
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x140063a39
lea r8, [rbx + 8]
lea rax, [rbx + 8]
lea r8, [r8 + r9*4]
nop word [rax + rax]
mov ecx, dword [r8 - 8]
mov edx, dword [rax - 8]
add r10, 4
mov dword [rax - 8], ecx
mov ecx, dword [r8 - 4]
mov dword [r8 - 8], edx
mov edx, dword [rax - 4]
mov dword [rax - 4], ecx
mov ecx, dword [r8]
mov dword [r8 - 4], edx
mov edx, dword [rax]
mov dword [rax], ecx
mov ecx, dword [r8 + 4]
mov dword [r8], edx
mov edx, dword [rax + 4]
mov dword [rax + 4], ecx
sub r9, 4
mov dword [r8 + 4], edx
lea r8, [r8 - 0x10]
lea rax, [rax + 0x10]
cmp r10, r9
jl 0x1400639f0
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x140063bec
mov qword [rsp + 0x30], rdi
lea r10, [rbx + 2]
lea rdi, [0x140000000]
nop dword [rax]
mov r8d, dword [r10 + 0xe]
lea r10, [r10 + 0x10]
inc r11d
mov eax, r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x8c990]
movzx eax, byte [r10 - 1]
movzx ecx, byte [rdi + rax*4 + 0x8c990]
mov r9d, dword [rdi + rdx*4 + 0x8c590]
movzx eax, r8b
xor r9d, dword [rdi + rcx*4 + 0x8bd90]
movzx ecx, byte [rdi + rax*4 + 0x8c990]
movzx eax, byte [r10]
xor r9d, dword [rdi + rcx*4 + 0x8b990]
movzx ecx, byte [rdi + rax*4 + 0x8c990]
movzx eax, byte [r10 + 3]
xor r9d, dword [rdi + rcx*4 + 0x8c190]
mov dword [r10 - 2], r9d
movzx edx, byte [rdi + rax*4 + 0x8c990]
mov r9d, dword [r10 + 2]
mov r8d, dword [rdi + rdx*4 + 0x8bd90]
movzx eax, byte [r10 + 4]
movzx ecx, byte [rdi + rax*4 + 0x8c990]
mov eax, r9d
xor r8d, dword [rdi + rcx*4 + 0x8c190]
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x8c990]
movzx eax, r9b
mov r9d, dword [r10 + 6]
xor r8d, dword [rdi + rcx*4 + 0x8c590]
movzx ecx, byte [rdi + rax*4 + 0x8c990]
movzx eax, byte [r10 + 7]
xor r8d, dword [rdi + rcx*4 + 0x8b990]
mov dword [r10 + 2], r8d
movzx edx, byte [rdi + rax*4 + 0x8c990]
movzx eax, byte [r10 + 8]
movzx ecx, byte [rdi + rax*4 + 0x8c990]
mov r8d, dword [rdi + rdx*4 + 0x8bd90]
mov eax, r9d
xor r8d, dword [rdi + rcx*4 + 0x8c190]
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x8c990]
movzx eax, r9b
mov r9d, dword [r10 + 0xa]
xor r8d, dword [rdi + rcx*4 + 0x8c590]
movzx ecx, byte [rdi + rax*4 + 0x8c990]
movzx eax, byte [r10 + 0xb]
xor r8d, dword [rdi + rcx*4 + 0x8b990]
mov dword [r10 + 6], r8d
movzx edx, byte [rdi + rax*4 + 0x8c990]
movzx eax, byte [r10 + 0xc]
movzx ecx, byte [rdi + rax*4 + 0x8c990]
mov r8d, dword [rdi + rdx*4 + 0x8bd90]
mov eax, r9d
xor r8d, dword [rdi + rcx*4 + 0x8c190]
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x8c990]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x8c590]
movzx ecx, byte [rdi + rax*4 + 0x8c990]
xor r8d, dword [rdi + rcx*4 + 0x8b990]
mov dword [r10 + 0xa], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x140063a60
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140064590
Capabilities:
Hash data with md5

Disassembly:
push rdi
sub rsp, 0x80
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x98], rbx
mov rax, qword [0x14009d810]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor edx, edx
lea r8d, [rdx + 0x5c]
add rcx, 4
call fcn.1400467a0
mov dword [rdi + 4], 0x67452301
mov dword [rdi + 8], 0xefcdab89
mov dword [rdi + 0xc], 0x98badcfe
mov dword [rdi + 0x10], 0x10325476
mov qword [rdi + 0xb8], reloc.WS2_32.dll_ntohs
xor ebx, ebx
mov qword [rdi + 0xb0], rbx
mov byte [rdi + 0xa0], bl
mov qword [rdi + 0xd8], reloc.WS2_32.dll_ntohs
mov qword [rdi + 0xd0], rbx
mov byte [rdi + 0xc0], bl
mov word [rdi], 0x101
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x60], rbx
mov byte [rsp + 0x50], bl
movzx eax, byte [0x140093560]
neg al
sbb r8, r8
and r8d, 3
lea rdx, [0x140093560]
lea rcx, [rsp + 0x50]
call fcn.1400043e0
nop
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x20], bl
xor r8d, r8d
lea rdx, [0x140093733]
lea rcx, [rsp + 0x20]
call fcn.1400043e0
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140064410
nop
cmp qword [rsp + 0x68], 0x10
jb 0x1400646a3
mov rcx, qword [rsp + 0x50]
call fcn.140042ad8
nop
mov rax, rdi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140042af0
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
Function at 0x140065d90
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x14009d810]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], 0
call qword [0x1400a0fa0]
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140065e30
lea r8, [rsp + 0x38]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x140065e25
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov r9d, reloc.WS2_32.dll_recv
xor edx, edx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140042af0
add rsp, 0x68
ret
Function at 0x140067c10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14009d810]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, 3
mov rsi, rdx
xor bpl, bpl
call fcn.140006ef0
call fcn.140006d50
mov r8, qword [rsi]
mov edx, 0x2712
mov rcx, rax
mov rdi, rax
call fcn.140006e74
lea r8, [0x140067d10]
mov edx, 0x4e2b
mov rcx, rdi
call fcn.140006e74
mov r8, rbx
mov edx, 0x2711
mov rcx, rdi
call fcn.140006e74
lea r8, [rsp + 0x20]
mov edx, 0x2722
mov rcx, rdi
mov dword [rsp + 0x2e], 0x302e31
mov dword [rsp + 0x24], 0x2d6c7275
mov dword [rsp + 0x20], 0x6362696c
mov dword [rsp + 0x28], 0x6e656761
mov word [rsp + 0x2c], 0x2f74
call fcn.140006e74
mov rcx, rdi
call fcn.140006d94
mov ecx, 1
movzx ebx, bpl
test eax, eax
cmove ebx, ecx
mov rcx, rdi
call fcn.140006d18
mov rdx, qword [rsi]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140067ce9
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
movzx eax, bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140042af0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret