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

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x470
mov rax, qword [0x14015a4a0]
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.1400d2030
test eax, eax
jne 0x1400ab03e
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 0x1400aaf5f
test eax, eax
je 0x1400aaf14
cmp ecx, r8d
jle 0x1400aaf5f
xor ecx, ecx
call fcn.1400a87a0
mov rdx, rsi
mov rcx, rax
call fcn.1400d2000
mulsd xmm0, qword [0x1400f6608]
mov ecx, dword [rbx + 0xb0]
cvttsd2si eax, xmm0
cmp eax, ecx
jle 0x1400aaf55
lea r8, str.API_timeout_expired
mov edx, 0xfffffff7
mov rcx, rbx
call fcn.1400d2150
jmp 0x1400ab036
sub ecx, eax
mov r8d, 1
jmp 0x1400aaf68
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 0x1400aafb4
mov rax, qword [rbx + 0x250]
lea r11, [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 1
test dil, 2
je 0x1400aafdc
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 0x1400ab01c
lea r8, str.Timed_out_waiting_on_socket
mov rcx, rbx
lea edx, [rax - 9]
call fcn.1400d2150
jmp 0x1400ab036
jns 0x1400ab034
lea r8, str.Error_waiting_on_socket
mov edx, 0xfffffff7
mov rcx, rbx
call fcn.1400d2150
jmp 0x1400ab036
xor eax, eax
mov rdi, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140049820
add rsp, 0x470
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400ade50
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, [0x1400fba2c]
mov rcx, qword [rsp + 0xa8]
xor r15d, r15d
mov ebx, r15d
mov r12, r9
mov r13, r8
call fcn.1400364bc
mov rsi, rax
test rax, rax
jne 0x1400adea8
lea r8, str.Unable_to_open_public_key_file
mov rcx, rdi
lea edx, [rax - 0x10]
call fcn.1400d2150
jmp 0x1400ae0ce
mov rcx, rsi
call fcn.1400d9674
test eax, eax
jne 0x1400adef7
nop dword [rax]
nop dword [rax + rax]
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
mov r9, rsi
call fcn.14002b850
cmp rax, 1
jne 0x1400adef7
movzx eax, byte [rsp + 0x30]
cmp al, 0xd
je 0x1400adef7
cmp al, 0xa
je 0x1400adef7
mov rcx, rsi
inc rbx
call fcn.1400d9674
test eax, eax
je 0x1400adec0
mov rcx, rsi
call fcn.1400d96a0
cmp rbx, 1
ja 0x1400adf26
mov rcx, rsi
call fcn.140036650
lea r8, str.Invalid_data_in_public_key_file
mov edx, 0xfffffff0
mov rcx, rdi
call fcn.1400d2150
jmp 0x1400ae0ce
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 0x1400adf5e
mov rcx, rsi
call fcn.140036650
lea r8, str.Unable_to_allocate_memory_for_public_key_data
mov rcx, rdi
lea edx, [rbp - 6]
call fcn.1400d2150
jmp 0x1400ae0c6
mov r9, rsi
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.14002b850
cmp rax, rbx
je 0x1400adfa0
mov rdx, rdi
mov rcx, rbp
call qword [rdi + 0x18]
mov rcx, rsi
call fcn.140036650
lea r8, str.Unable_to_read_public_key_from_file
mov edx, 0xfffffff0
mov rcx, rdi
call fcn.1400d2150
jmp 0x1400ae0c6
mov rcx, rsi
call fcn.140036650
nop dword [rax + rax]
movzx ecx, byte [rbx + rbp - 1]
call fcn.1400476d0
test eax, eax
je 0x1400adfe4
sub rbx, 1
jne 0x1400adfb0
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.1400d2150
jmp 0x1400ae0c6
mov r8, rbx
mov edx, 0x20
mov rcx, rbp
call fcn.1400cda10
mov rsi, rax
test rax, rax
jne 0x1400ae01c
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.1400d2150
jmp 0x1400ae0c6
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.1400cda10
test rax, rax
jne 0x1400ae050
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.1400d2290
test eax, eax
je 0x1400ae090
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.1400d2150
jmp 0x1400ae0be
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 0x1400b41f0
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 0x1400b428c
mov rax, r9
lea rbp, [rcx + 0x68]
nop word [rax + rax]
mov rcx, qword [rbx + 0x88]
cmp dword [rbx + 0x90], r15d
jne 0x1400b425c
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 0x1400b426d
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 0x1400b42ab
mov dword [rbx + 0x90], r15d
mov rax, qword [rdi]
mov r9d, eax
cmp rax, rsi
jb 0x1400b4230
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 0x1400b42c8
cmp eax, 0x3e5
je 0x1400b42cf
mov eax, 0xffffffff
jmp 0x1400b4292
cmp eax, 0x3e4
jne 0x1400b42c1
mov dword [rbx + 0x90], 1
mov eax, 0xffffffdb
jmp 0x1400b4292

Function at 0x1400b42e0
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 0x1400b437c
mov rax, r9
lea rbp, [rcx + 0x68]
nop word [rax + rax]
mov rcx, qword [rbx + 0x88]
cmp dword [rbx + 0x90], r15d
jne 0x1400b434c
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 0x1400b435d
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 0x1400b439b
mov dword [rbx + 0x90], r15d
mov rax, qword [rdi]
mov r9d, eax
cmp rax, rsi
jb 0x1400b4320
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 0x1400b43b8
cmp eax, 0x3e5
je 0x1400b43bf
mov eax, 0xffffffff
jmp 0x1400b4382
cmp eax, 0x3e4
jne 0x1400b43b1
mov dword [rbx + 0x90], 1
mov eax, 0xffffffdb
jmp 0x1400b4382
Function at 0x1400bfdc0
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 0x1400bfdf8
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.1400bff40
cmp byte [rcx + 0xebe], 0
je 0x1400bfe10
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400c1030
cmp byte [rcx + 0xec1], 0
je 0x1400bfeb1
mov r8, qword [rbx + 0x820]
test r8, r8
jne 0x1400bfe6b
mov r8, qword [rcx + 0xc00]
test r8, r8
jne 0x1400bfe4e
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.1400df0b0
test eax, eax
je 0x1400bfea1
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xecd], 0
lea rcx, [rbx + 0x798]
je 0x1400bfe91
lea rdx, str.PRET_STOR__s
call fcn.1400df0b0
test eax, eax
je 0x1400bfea1
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.1400df0b0
test eax, eax
jne 0x1400bfebe
mov dword [rbx + 0x850], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400c1880
add rsp, 0x20
pop rbx
ret

Function at 0x1400bfed0
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 0x1400bfef5
cmp dword [rax + 0x9f0], 0
je 0x1400bff21
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1400bff21
lea rdx, str.MDTM__s
call fcn.1400df0b0
test eax, eax
jne 0x1400bff2e
mov dword [rbx + 0x850], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400c19d0
add rsp, 0x20
pop rbx
ret

Function at 0x1400c0a30
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 0x1400c0a9c
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.14009a810
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x1400c0ac1
lea rdx, str.Error_accept__ing_server_connect
call fcn.140098fd0
lea eax, [rbx + 0x1f]
jmp 0x1400c0b3a
lea rdx, str.Connection_accepted_from_server_n
call fcn.140098e70
mov edx, 1
mov byte [rdi + 0x3f8], 0
mov rcx, rbx
mov qword [rdi + 0x260], rbx
call fcn.1400a61b0
mov byte [rdi + 0x279], 1
cmp qword [rsi + 0x728], 0
je 0x1400c0b38
mov dl, 1
mov rcx, rsi
call fcn.14008ca20
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.14008ca20
test ebx, ebx
je 0x1400c0b38
mov rcx, rdi
call fcn.1400c0940
mov eax, 0x2a
jmp 0x1400c0b3a
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 0x1400c1910
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 0x1400c195d
cmp qword [rcx + 0x820], 0
je 0x1400c195d
add rcx, 0x798
lea rdx, str.REST__d
xor r8d, r8d
call fcn.1400df0b0
test eax, eax
jne 0x1400c1967
mov dword [rbx + 0x850], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400bfdc0
add rsp, 0x20
pop rbx
ret

Function at 0x1400c1970
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 0x1400c19bc
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1400c19bc
lea rdx, str.SIZE__s
call fcn.1400df0b0
test eax, eax
jne 0x1400c19c9
mov dword [rbx + 0x850], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400c1910
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xecc], 0
je 0x1400c1a28
cmp qword [rcx + 0x820], 0
je 0x1400c1a28
cmp byte [r9 + 0xebb], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x840]
cmp eax, edx
je 0x1400c1a28
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x20], 1
movzx edx, byte [r9 + 0xebb]
jmp fcn.1400c0220
jmp fcn.1400c1970
Function at 0x1400c2430
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 0x1400c2465
lea rdx, str.Couldnt_set_desired_mode
call fcn.140098fd0
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x1400c247c
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.140098e70
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x1400c2498
mov rcx, rdi
call fcn.1400c1970
jmp 0x1400c25d0
cmp esi, 0x14
jne 0x1400c25b2
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xb98], 2
jne 0x1400c251a
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x1400c251a
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.1400bcb20
test eax, eax
jne 0x1400c25d0
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call fcn.14007689c
test rax, rax
je 0x1400c250f
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x1400c251a
mov rcx, qword [rsp + 0x50]
call qword [fcn.14002c3a8]
mov rdx, qword [rsi + 0xc00]
test rdx, rdx
jne 0x1400c253e
cmp byte [rsi + 0xebd], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1400fb97c]
test rbp, rbp
mov r9, r8
lea rax, [0x1400fc194]
cmovne r9, rbp
lea rcx, [0x1400fbaa8]
cmovne r8, rax
call fcn.1400a70a0
mov rcx, rbp
mov r14, rax
call qword [fcn.14002c3a8]
test r14, r14
jne 0x1400c257d
lea ebx, [r14 + 0x1b]
jmp 0x1400c25d2
lea rcx, [rdi + 0x798]
mov r8, r14
lea rdx, [0x1400fbaf0]
call fcn.1400df0b0
mov rcx, r14
mov esi, eax
call qword [fcn.14002c3a8]
test esi, esi
je 0x1400c25a6
mov ebx, esi
jmp 0x1400c25d2
mov dword [rdi + 0x850], 0x1f
jmp 0x1400c25d2
cmp esi, 0x15
jne 0x1400c25bd
lea r8d, [rsi - 8]
jmp 0x1400c25c6
cmp esi, 0x16
jne 0x1400c25d2
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.1400bff40
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 0x1400cabb0
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400cabe0
xor eax, eax
jmp 0x1400caca3
mov rbp, rbx
cmp word [rax], si
je 0x1400cac05
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400cabec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400cabe8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140071300
movsxd r14, eax
test eax, eax
jne 0x1400cac43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400cabd9
mov rcx, r14
call fcn.1400439a8
mov rdi, rax
test rax, rax
jne 0x1400cac5c
xor ecx, ecx
call fcn.14004396c
jmp 0x1400cac38
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140071300
test eax, eax
jne 0x1400cac8d
mov rcx, rdi
call fcn.14004396c
jmp 0x1400cac97
xor ecx, ecx
call fcn.14004396c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400cacc0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400cad47
mov rsi, rbx
cmp word [rax], bp
je 0x1400cad06
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400cacf0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400cacec
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400439a8
mov rdi, rax
test rax, rax
je 0x1400cad34
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140019020
mov rbp, rdi
xor ecx, ecx
call fcn.14004396c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ce8f0
Capabilities:
Generate random numbers via winapi

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

Function at 0x1400cea60
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 0x1400d02c0
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 0x1400d02f4
mov r15, qword [rcx + 0x18]
jmp 0x1400d02f7
mov r15, r14
mov qword [rsp + 0x88], r12
test eax, eax
jne 0x1400d0349
test ebp, ebp
jne 0x1400d0349
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 0x1400d0389
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 0x1400d04ac
mov ecx, dword [rsp + 0xa0]
mov qword [rsp + 0x80], rsi
call fcn.14002c3bc
mov rsi, rax
test rax, rax
je 0x1400d049f
cmp dword [rsp + 0x90], 0
jne 0x1400d0406
test ebp, ebp
jne 0x1400d0406
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 0x1400d0449
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 0x1400d0482
mov rcx, r14
test ebp, ebp
je 0x1400d0472
mov r9, r13
mov r8, rsi
mov rdx, r14
call fcn.1400d2c40
mov edx, dword [rdi + 0x2c]
mov rcx, qword [rdi + 0x18]
call fcn.1400d2d20
jmp 0x1400d0482
mov r8d, dword [rsp + 0xa0]
mov rdx, rsi
call fcn.140019020
mov ecx, dword [rsp + 0xa0]
test rcx, rcx
je 0x1400d0495
mov rdi, rsi
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rsi
call fcn.14002c3a8
jmp 0x1400d04a4
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 0x1400d1da0
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 0x1400d1fdf
test rdx, rdx
je 0x1400d1fdf
test r8, r8
je 0x1400d1fdf
test rbx, rbx
je 0x1400d1fdf
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.14002c3bc
mov rsi, rax
test rax, rax
je 0x1400d1fdf
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.140019020
mov ecx, dword [r15 + 8]
add ecx, dword [rsp + 0x50]
mov r8d, dword [rbx + 8]
add rcx, rsi
mov rdx, qword [rbx]
call fcn.140019020
mov rcx, qword [0x14015ff18]
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 0x1400d1fb9
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 0x1400d1faf
mov edx, dword [rsp + 0x90]
mov rcx, r14
call fcn.1400d1d20
test eax, eax
jne 0x1400d1faa
mov ecx, dword [rsp + 0x90]
cmp dword [rdi + 8], ecx
cmova ecx, dword [rdi + 8]
mov dword [rsp + 0x90], ecx
call fcn.14002c3bc
mov rbp, rax
test rax, rax
je 0x1400d1faa
mov r9d, dword [rdi + 8]
mov rcx, rax
mov r8, qword [rdi]
mov edx, dword [rsp + 0x90]
call fcn.1400d1250
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 0x1400d1f90
mov rdi, rbp
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rbp
call fcn.14002c3a8
test ebx, ebx
js 0x1400d1faf
mov edx, dword [rsp + 0x50]
mov rcx, r14
call fcn.1400d1d20
jmp 0x1400d1faf
mov ebx, 0xc0000017
mov rcx, qword [rsp + 0x58]
call sub.bcrypt.dll_BCryptDestroyKey
mov r13, qword [rsp + 0x98]
test r12, r12
je 0x1400d1fd0
mov rdi, rsi
xor eax, eax
mov rcx, r12
rep stosb byte [rdi], al
mov rcx, rsi
call fcn.14002c3a8
sar ebx, 0x1f
mov eax, ebx
jmp 0x1400d1fe4
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