joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008b750
Capabilities:
Get socket status

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x470
mov rax, qword [0x140100a10]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rsi, rdx
xor ebp, ebp
lea rdx, [rsp + 0x30]
mov dword [rcx + 0x270], ebp
mov rbx, rcx
call fcn.1400b2d70
test eax, eax
jne 0x14008b8ee
mov eax, dword [rsp + 0x30]
mov edx, 0x3e8
mov r8d, dword [rbx + 0xb0]
imul ecx, eax, 0x3e8
mov qword [rsp + 0x4a0], rdi
mov edi, dword [rbx + 0x25c]
test edi, edi
cmove ecx, edx
test r8d, r8d
jle 0x14008b80f
test eax, eax
je 0x14008b7c4
cmp ecx, r8d
jle 0x14008b80f
xor ecx, ecx
call fcn.140088630
mov rdx, rsi
mov rcx, rax
call fcn.1400b2d40
mulsd xmm0, qword [0x1400d8a78]
mov ecx, dword [rbx + 0xb0]
cvttsd2si eax, xmm0
cmp eax, ecx
jle 0x14008b805
lea r8, str.API_timeout_expired
mov edx, 0xfffffff7
mov rcx, rbx
call fcn.1400b2ee0
jmp 0x14008b8e6
sub ecx, eax
mov r8d, 1
jmp 0x14008b818
test ecx, ecx
mov r8d, ebp
setg r8b
mov eax, 0x10624dd3
mov r10, rbp
imul ecx
mov r11, rbp
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3e8
mov dword [rsp + 0x38], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x3c], eax
test dil, 1
je 0x14008b864
mov rax, qword [rbx + 0x250]
lea r11, [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 1
test dil, 2
je 0x14008b88c
mov rax, qword [rbx + 0x250]
lea r10, [rsp + 0x250]
mov qword [rsp + 0x258], rax
mov dword [rsp + 0x250], 1
mov ecx, dword [rbx + 0x250]
lea rax, [rsp + 0x38]
test r8d, r8d
mov rdx, r11
mov r8, r10
cmove rax, rbp
inc ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x14008b8cc
lea r8, str.Timed_out_waiting_on_socket
mov rcx, rbx
lea edx, [rax - 9]
call fcn.1400b2ee0
jmp 0x14008b8e6
jns 0x14008b8e4
lea r8, str.Error_waiting_on_socket
mov edx, 0xfffffff7
mov rcx, rbx
call fcn.1400b2ee0
jmp 0x14008b8e6
xor eax, eax
mov rdi, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14003b8c0
add rsp, 0x470
pop rsi
pop rbp
pop rbx
ret
Function at 0x14008e700
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x50
mov rdi, rcx
lea rdx, [0x1400ddf20]
mov rcx, qword [rsp + 0xa8]
xor r15d, r15d
mov ebx, r15d
mov r12, r9
mov r13, r8
call fcn.140030ff0
mov rsi, rax
test rax, rax
jne 0x14008e758
lea r8, str.Unable_to_open_public_key_file
mov rcx, rdi
lea edx, [rax - 0x10]
call fcn.1400b2ee0
jmp 0x14008e97e
mov rcx, rsi
call fcn.1400ba424
test eax, eax
jne 0x14008e7a7
nop dword [rax]
nop dword [rax + rax]
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
mov r9, rsi
call fcn.14000ac98
cmp rax, 1
jne 0x14008e7a7
movzx eax, byte [rsp + 0x30]
cmp al, 0xd
je 0x14008e7a7
cmp al, 0xa
je 0x14008e7a7
mov rcx, rsi
inc rbx
call fcn.1400ba424
test eax, eax
je 0x14008e770
mov rcx, rsi
call fcn.1400ba450
cmp rbx, 1
ja 0x14008e7d6
mov rcx, rsi
call fcn.140026bc4
lea r8, str.Invalid_data_in_public_key_file
mov edx, 0xfffffff0
mov rcx, rdi
call fcn.1400b2ee0
jmp 0x14008e97e
mov rdx, rdi
mov qword [rsp + 0x80], rbp
mov rcx, rbx
call qword [rdi + reloc.WS2_32.dll_htonl]
mov rbp, rax
test rax, rax
jne 0x14008e80e
mov rcx, rsi
call fcn.140026bc4
lea r8, str.Unable_to_allocate_memory_for_public_key_data
mov rcx, rdi
lea edx, [rbp - 6]
call fcn.1400b2ee0
jmp 0x14008e976
mov r9, rsi
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.14000ac98
cmp rax, rbx
je 0x14008e850
mov rdx, rdi
mov rcx, rbp
call qword [rdi + 0x18]
mov rcx, rsi
call fcn.140026bc4
lea r8, str.Unable_to_read_public_key_from_file
mov edx, 0xfffffff0
mov rcx, rdi
call fcn.1400b2ee0
jmp 0x14008e976
mov rcx, rsi
call fcn.140026bc4
nop dword [rax + rax]
movzx ecx, byte [rbx + rbp - 1]
call fcn.1400ab6e0
test eax, eax
je 0x14008e894
sub rbx, 1
jne 0x14008e860
mov rdx, rdi
mov rcx, rbp
call qword [rdi + 0x18]
lea r8, str.Missing_public_key_data
mov rcx, rdi
lea edx, [rbx - 0x10]
call fcn.1400b2ee0
jmp 0x14008e976
mov r8, rbx
mov edx, 0x20
mov rcx, rbp
call fcn.1400ae4c0
mov rsi, rax
test rax, rax
jne 0x14008e8cc
mov rdx, rdi
mov rcx, rbp
call qword [rdi + 0x18]
lea r8, str.Invalid_public_key_data
mov rcx, rdi
lea edx, [rsi - 0x10]
call fcn.1400b2ee0
jmp 0x14008e976
inc rsi
mov qword [rsp + 0x90], r14
mov r14, rsi
mov r8, rbx
sub r14, rbp
mov edx, 0x20
cmp rsi, rbp
mov rcx, rsi
cmova r15, r14
sub r8, r15
call fcn.1400ae4c0
test rax, rax
jne 0x14008e900
lea rax, [rbx + rbp]
sub rax, rsi
lea r8, [rsp + 0x40]
mov r9, rsi
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1400b3020
test eax, eax
je 0x14008e940
mov rdx, rdi
mov rcx, rbp
call qword [rdi + 0x18]
lea r8, str.Invalid_key_data__not_base64_encoded
mov edx, 0xfffffff0
mov rcx, rdi
call fcn.1400b2ee0
jmp 0x14008e96e
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0xa0]
mov qword [rax], rbp
lea rax, [r14 - 1]
mov qword [r13], rax
mov rax, qword [rsp + 0x38]
mov qword [r12], rax
mov rax, qword [rsp + 0x40]
mov qword [rcx], rax
xor eax, eax
mov r14, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140094aa0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, r9
xor r15d, r15d
mov r9, qword [r9]
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmp r9, r8
jae 0x140094b3c
mov rax, r9
lea rbp, [rcx + 0x68]
nop word [rax + rax]
mov rcx, qword [rbx + 0x88]
cmp dword [rbx + 0x90], r15d
jne 0x140094b0c
mov r8d, esi
mov qword [rsp + 0x20], rbp
sub r8d, r9d
lea rdx, [rax + r14]
lea r9, [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x140094b1d
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, rbp
call qword [sym.imp.KERNEL32.DLL_GetOverlappedResult]
mov ecx, eax
mov eax, dword [rsp + 0x60]
add qword [rdi], rax
test ecx, ecx
je 0x140094b5b
mov dword [rbx + 0x90], r15d
mov rax, qword [rdi]
mov r9d, eax
cmp rax, rsi
jb 0x140094ae0
mov qword [rdi], r15
mov eax, r9d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [rbx + 0x90], r15d
jne 0x140094b78
cmp eax, 0x3e5
je 0x140094b7f
mov eax, 0xffffffff
jmp 0x140094b42
cmp eax, 0x3e4
jne 0x140094b71
mov dword [rbx + 0x90], 1
mov eax, 0xffffffdb
jmp 0x140094b42

Function at 0x140094b90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, r9
xor r15d, r15d
mov r9, qword [r9]
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmp r9, r8
jae 0x140094c2c
mov rax, r9
lea rbp, [rcx + 0x68]
nop word [rax + rax]
mov rcx, qword [rbx + 0x88]
cmp dword [rbx + 0x90], r15d
jne 0x140094bfc
mov r8d, esi
mov qword [rsp + 0x20], rbp
sub r8d, r9d
lea rdx, [rax + r14]
lea r9, [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
jmp 0x140094c0d
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, rbp
call qword [sym.imp.KERNEL32.DLL_GetOverlappedResult]
mov ecx, eax
mov eax, dword [rsp + 0x60]
add qword [rdi], rax
test ecx, ecx
je 0x140094c4b
mov dword [rbx + 0x90], r15d
mov rax, qword [rdi]
mov r9d, eax
cmp rax, rsi
jb 0x140094bd0
mov qword [rdi], r15
mov eax, r9d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [rbx + 0x90], r15d
jne 0x140094c68
cmp eax, 0x3e5
je 0x140094c6f
mov eax, 0xffffffff
jmp 0x140094c32
cmp eax, 0x3e4
jne 0x140094c61
mov dword [rbx + 0x90], 1
mov eax, 0xffffffdb
jmp 0x140094c32
Function at 0x1400a0890
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 + 0x1e0]
cmp dword [rax + 0x20], 0
je 0x1400a08c8
mov r8d, reloc.WS2_32.dll_listen
mov dword [rbx + 0x850], 0xd
mov dl, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400a0a10
cmp byte [rcx + 0xebe], 0
je 0x1400a08e0
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400a1b00
cmp byte [rcx + 0xec1], 0
je 0x1400a0981
mov r8, qword [rbx + 0x820]
test r8, r8
jne 0x1400a093b
mov r8, qword [rcx + 0xc00]
test r8, r8
jne 0x1400a091e
cmp byte [rcx + 0xebd], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0x798]
lea rdx, str.PRET__s
call fcn.1400bfee0
test eax, eax
je 0x1400a0971
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xecd], 0
lea rcx, [rbx + 0x798]
je 0x1400a0961
lea rdx, str.PRET_STOR__s
call fcn.1400bfee0
test eax, eax
je 0x1400a0971
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.1400bfee0
test eax, eax
jne 0x1400a098e
mov dword [rbx + 0x850], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400a2350
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x798
cmp byte [rax + 0xeb9], 0
jne 0x1400a09c5
cmp dword [rax + 0x9f0], 0
je 0x1400a09f1
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1400a09f1
lea rdx, str.MDTM__s
call fcn.1400bfee0
test eax, eax
jne 0x1400a09fe
mov dword [rbx + 0x850], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400a24a0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0xa0
mov rbp, qword [rcx + 0x260]
lea r8, [rax + 8]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x20]
mov rdi, rcx
mov dword [rax + 8], 0x80
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400a156c
lea r8, [rsp + 0xb0]
mov dword [rsp + 0xb0], 0x80
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.14006b020
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x1400a1591
lea rdx, str.Error_accept__ing_server_connect
call fcn.140069640
lea eax, [rbx + 0x1f]
jmp 0x1400a160a
lea rdx, str.Connection_accepted_from_server_n
call fcn.1400694e0
mov edx, 1
mov byte [rdi + 0x3f8], 0
mov rcx, rbx
mov qword [rdi + 0x260], rbx
call fcn.140085da0
mov byte [rdi + 0x279], 1
cmp qword [rsi + 0x728], 0
je 0x1400a1608
mov dl, 1
mov rcx, rsi
call fcn.140056300
mov rcx, qword [rsi + 0x730]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x728]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.140056300
test ebx, ebx
je 0x1400a1608
mov rcx, rdi
call fcn.1400a1410
mov eax, 0x2a
jmp 0x1400a160a
xor eax, eax
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400a23e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x20], 0
je 0x1400a242d
cmp qword [rcx + 0x820], 0
je 0x1400a242d
add rcx, 0x798
lea rdx, str.REST__d
xor r8d, r8d
call fcn.1400bfee0
test eax, eax
jne 0x1400a2437
mov dword [rbx + 0x850], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400a0890
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x798
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x20], 1
jne 0x1400a248c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1400a248c
lea rdx, str.SIZE__s
call fcn.1400bfee0
test eax, eax
jne 0x1400a2499
mov dword [rbx + 0x850], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400a23e0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xecc], 0
je 0x1400a24f8
cmp qword [rcx + 0x820], 0
je 0x1400a24f8
cmp byte [r9 + 0xebb], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x840]
cmp eax, edx
je 0x1400a24f8
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x20], 1
movzx edx, byte [r9 + 0xebb]
jmp fcn.1400a0cf0
jmp fcn.1400a2440
Function at 0x1400a2f00
Capabilities:
Check http status code

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rdi, rcx
mov rcx, qword [rcx]
mov esi, r8d
cmp eax, 0x64
jb 0x1400a2f35
lea rdx, str.Couldnt_set_desired_mode
call fcn.140069640
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x1400a2f4c
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.1400694e0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x1400a2f68
mov rcx, rdi
call fcn.1400a2440
jmp 0x1400a30a0
cmp esi, 0x14
jne 0x1400a3082
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xb98], 2
jne 0x1400a2fea
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x1400a2fea
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.14009d3c0
test eax, eax
jne 0x1400a30a0
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call fcn.140053980
test rax, rax
je 0x1400a2fdf
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x1400a2fea
mov rcx, qword [rsp + 0x50]
call qword [fcn.140015440]
mov rdx, qword [rsi + 0xc00]
test rdx, rdx
jne 0x1400a300e
cmp byte [rsi + 0xebd], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1400dde5c]
test rbp, rbp
mov r9, r8
lea rax, [0x1400de700]
cmovne r9, rbp
lea rcx, [0x1400ddfac]
cmovne r8, rax
call fcn.140086f30
mov rcx, rbp
mov r14, rax
call qword [fcn.140015440]
test r14, r14
jne 0x1400a304d
lea ebx, [r14 + 0x1b]
jmp 0x1400a30a2
lea rcx, [rdi + 0x798]
mov r8, r14
lea rdx, [0x1400de004]
call fcn.1400bfee0
mov rcx, r14
mov esi, eax
call qword [fcn.140015440]
test esi, esi
je 0x1400a3076
mov ebx, esi
jmp 0x1400a30a2
mov dword [rdi + 0x850], 0x1f
jmp 0x1400a30a2
cmp esi, 0x15
jne 0x1400a308d
lea r8d, [rsi - 8]
jmp 0x1400a3096
cmp esi, 0x16
jne 0x1400a30a2
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.1400a0a10
mov ebx, eax
mov r14, qword [rsp + 0x60]
mov eax, ebx
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400abaac
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140048e30
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140048e30
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400abbfc
cmp rax, 0xffffffffffffffff
je 0x1400abbfc
xor edi, edi
test rbp, rbp
jle 0x1400abba7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400276e4
mov rbx, rax
test rax, rax
jne 0x1400abb34
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400abb9d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400ab930
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14006e78c
cmp eax, 0xffffffff
je 0x1400abb7d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400abb44
mov edx, r15d
mov ecx, r14d
call fcn.1400ab930
jmp 0x1400abb9d
cmp byte [rsi + 0x38], dil
je 0x1400abb94
cmp dword [rsi + 0x34], 5
jne 0x1400abb94
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400abb9d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002775c
jmp 0x1400abc10
jns 0x1400abc10
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140048e30
cmp rax, 0xffffffffffffffff
jne 0x1400abbc8
cmp byte [rsi + 0x30], dil
je 0x1400abc10
mov edi, dword [rsi + 0x2c]
jmp 0x1400abc10
mov ecx, r14d
call fcn.1400500d0
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
jne 0x1400abc10
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400abc10
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400abc09
mov eax, dword [rsi + 0x2c]
jmp 0x1400abc0e
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140048e30
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400af630
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
mov eax, 0xffffffff
cmp rdx, rax
jbe 0x1400af648
mov eax, 0xffffffff
add rsp, 0x28
ret
mov r8d, edx
xor r9d, r9d
mov rdx, rcx
mov rcx, qword [0x1401038a0]
call sub.bcrypt.dll_BCryptGenRandom
xor ecx, ecx
test eax, eax
setns cl
lea eax, [rcx - 1]
add rsp, 0x28
ret

Function at 0x1400af7a0
Capabilities:
Hash data via bcrypt

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
xor r9d, r9d
call sub.bcrypt.dll_BCryptHashData
xor ecx, ecx
test eax, eax
setns cl
lea eax, [rcx - 1]
add rsp, 0x28
ret
Function at 0x1400b1000
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rdi
push r13
push r14
push r15
sub rsp, 0x50
mov ebp, dword [rdx + 0x10]
mov r14, r9
mov r13, qword [rsp + 0xa0]
mov eax, r8d
mov rdi, rcx
test ebp, ebp
je 0x1400b1034
mov r15, qword [rcx + 0x18]
jmp 0x1400b1037
mov r15, r14
mov qword [rsp + 0x88], r12
test eax, eax
jne 0x1400b1089
test ebp, ebp
jne 0x1400b1089
xor r12d, r12d
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rcx + 0x24]
mov rdx, r15
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov rax, qword [rcx + 0x10]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptDecrypt
jmp 0x1400b10c9
xor r12d, r12d
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rcx + 0x24]
mov rdx, r15
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov rax, qword [rcx + 0x10]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptEncrypt
mov ebx, eax
test eax, eax
js 0x1400b11ec
mov ecx, dword [rsp + 0xa0]
mov qword [rsp + 0x80], rsi
call fcn.14003bc54
mov rsi, rax
test rax, rax
je 0x1400b11df
cmp dword [rsp + 0x90], 0
jne 0x1400b1146
test ebp, ebp
jne 0x1400b1146
mov ecx, dword [rsp + 0xa0]
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rdi + 0x24]
mov rdx, r15
mov dword [rsp + 0x38], ecx
mov rcx, qword [rdi]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptDecrypt
jmp 0x1400b1189
mov rcx, qword [rdi]
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rsp + 0xa0]
mov rdx, r15
mov dword [rsp + 0x38], eax
mov eax, dword [rdi + 0x24]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptEncrypt
mov ebx, eax
test eax, eax
js 0x1400b11c2
mov rcx, r14
test ebp, ebp
je 0x1400b11b2
mov r9, r13
mov r8, rsi
mov rdx, r14
call fcn.1400b39f0
mov edx, dword [rdi + 0x2c]
mov rcx, qword [rdi + 0x18]
call fcn.1400b3ad0
jmp 0x1400b11c2
mov r8d, dword [rsp + 0xa0]
mov rdx, rsi
call fcn.14000af70
mov ecx, dword [rsp + 0xa0]
test rcx, rcx
je 0x1400b11d5
mov rdi, rsi
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rsi
call fcn.140015440
jmp 0x1400b11e4
mov ebx, 0xc0000017
mov rsi, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
sar ebx, 0x1f
mov eax, ebx
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x1400b2ae0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rbx, r9
mov r15, r8
mov rdi, rdx
mov r14, rcx
test rcx, rcx
je 0x1400b2d1f
test rdx, rdx
je 0x1400b2d1f
test r8, r8
je 0x1400b2d1f
test rbx, rbx
je 0x1400b2d1f
mov ecx, dword [r9 + 8]
mov ebp, dword [r8 + 8]
add ecx, 0x18
add ebp, ecx
mov dword [rsp + 0x50], 0x18
mov ecx, ebp
mov r12d, ebp
call fcn.14003bc54
mov rsi, rax
test rax, rax
je 0x1400b2d1f
mov dword [rax], 0x31415352
mov ecx, dword [rbx + 8]
shl ecx, 3
mov dword [rax + 4], ecx
mov ecx, dword [r15 + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 0xc], ecx
mov qword [rsp + 0x98], r13
xor r13d, r13d
mov qword [rax + 0x10], r13
mov ecx, dword [rsp + 0x50]
mov r8d, dword [r15 + 8]
add rcx, rax
mov rdx, qword [r15]
call fcn.14000af70
mov ecx, dword [r15 + 8]
add ecx, dword [rsp + 0x50]
mov r8d, dword [rbx + 8]
add rcx, rsi
mov rdx, qword [rbx]
call fcn.14000af70
mov rcx, qword [0x1401038f8]
lea r9, [rsp + 0x58]
mov dword [rsp + 0x30], r13d
lea r8, str.RSAPUBLICBLOB
mov dword [rsp + 0x28], ebp
xor edx, edx
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x50], r13d
call sub.bcrypt.dll_BCryptImportKeyPair
mov ebx, eax
test eax, eax
js 0x1400b2cf9
mov r8d, dword [rdi + 8]
lea rax, [rsp + 0x90]
mov rdx, qword [rdi]
xor r9d, r9d
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call sub.bcrypt.dll_BCryptEncrypt
mov ebx, eax
test eax, eax
js 0x1400b2cef
mov edx, dword [rsp + 0x90]
mov rcx, r14
call fcn.1400b2a60
test eax, eax
jne 0x1400b2cea
mov ecx, dword [rsp + 0x90]
cmp dword [rdi + 8], ecx
cmova ecx, dword [rdi + 8]
mov dword [rsp + 0x90], ecx
call fcn.14003bc54
mov rbp, rax
test rax, rax
je 0x1400b2cea
mov r9d, dword [rdi + 8]
mov rcx, rax
mov r8, qword [rdi]
mov edx, dword [rsp + 0x90]
call fcn.1400b1f90
mov ecx, dword [r14 + 8]
lea rax, [rsp + 0x50]
mov r8d, dword [rsp + 0x90]
xor r9d, r9d
mov dword [rsp + 0x48], 1
mov rdx, rbp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ecx
mov rcx, qword [r14]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call sub.bcrypt.dll_BCryptEncrypt
mov ecx, dword [rsp + 0x90]
mov ebx, eax
test rcx, rcx
je 0x1400b2cd0
mov rdi, rbp
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rbp
call fcn.140015440
test ebx, ebx
js 0x1400b2cef
mov edx, dword [rsp + 0x50]
mov rcx, r14
call fcn.1400b2a60
jmp 0x1400b2cef
mov ebx, 0xc0000017
mov rcx, qword [rsp + 0x58]
call sub.bcrypt.dll_BCryptDestroyKey
mov r13, qword [rsp + 0x98]
test r12, r12
je 0x1400b2d10
mov rdi, rsi
xor eax, eax
mov rcx, r12
rep stosb byte [rdi], al
mov rcx, rsi
call fcn.140015440
sar ebx, 0x1f
mov eax, ebx
jmp 0x1400b2d24
mov eax, 0xffffffff
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret