joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140081b84
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1400f4640]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400e5c30]
mov rbp, rcx
call fcn.140048980
xor edi, edi
test rax, rax
je 0x140081c6a
mov ebx, edi
call fcn.1400263a4
mov r14d, dword [rax]
call fcn.1400263a4
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400a6058
mov rsi, rax
test rax, rax
je 0x140081bfb
call fcn.1400263a4
mov dword [rax], r14d
jmp 0x140081c25
call fcn.1400263a4
cmp dword [rax], 0x22
jne 0x140081c62
call fcn.1400263a4
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400a6058
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140081c62
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140081c29
cmp rax, 3
je 0x140081c44
mov rcx, rsi
call fcn.140081ae0
test al, al
je 0x140081c55
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140081c55
mov dil, 1
mov rcx, rbx
call fcn.140011c70
mov al, dil
jmp 0x140081c6c
mov rcx, rbx
call fcn.140011c70
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140035d80
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140082590
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1028
call fcn.140043fa0
sub rsp, rax
call fcn.1400a6748
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400825da
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400825da
lea rcx, [rsp + 0x20]
call qword [case.0x140054b39.0]
add rsp, 0x1028
ret
xor eax, eax
add rsp, 0x1028
ret
Function at 0x140082f80
Capabilities:
Get socket status

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x470
mov rax, qword [0x1400f4640]
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.1400aa5a0
test eax, eax
jne 0x14008311e
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 0x14008303f
test eax, eax
je 0x140082ff4
cmp ecx, r8d
jle 0x14008303f
xor ecx, ecx
call fcn.14007ff1c
mov rdx, rsi
mov rcx, rax
call fcn.1400aa570
mulsd xmm0, qword [0x1400cf928]
mov ecx, dword [rbx + 0xb0]
cvttsd2si eax, xmm0
cmp eax, ecx
jle 0x140083035
lea r8, str.API_timeout_expired
mov edx, 0xfffffff7
mov rcx, rbx
call fcn.1400aa710
jmp 0x140083116
sub ecx, eax
mov r8d, 1
jmp 0x140083048
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 0x140083094
mov rax, qword [rbx + 0x250]
lea r11, [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 1
test dil, 2
je 0x1400830bc
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 0x1400830fc
lea r8, str.Timed_out_waiting_on_socket
mov rcx, rbx
lea edx, [rax - 9]
call fcn.1400aa710
jmp 0x140083116
jns 0x140083114
lea r8, str.Error_waiting_on_socket
mov edx, 0xfffffff7
mov rcx, rbx
call fcn.1400aa710
jmp 0x140083116
xor eax, eax
mov rdi, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140035d80
add rsp, 0x470
pop rsi
pop rbp
pop rbx
ret
Function at 0x140085f30
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, [0x1400d4e80]
mov rcx, qword [rsp + 0xa8]
xor r15d, r15d
mov ebx, r15d
mov r12, r9
mov r13, r8
call fcn.14002b4e0
mov rsi, rax
test rax, rax
jne 0x140085f88
lea r8, str.Unable_to_open_public_key_file
mov rcx, rdi
lea edx, [rax - 0x10]
call fcn.1400aa710
jmp 0x1400861ae
mov rcx, rsi
call fcn.1400b1c54
test eax, eax
jne 0x140085fd7
nop dword [rax]
nop dword [rax + rax]
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
mov r9, rsi
call fcn.1400074d4
cmp rax, 1
jne 0x140085fd7
movzx eax, byte [rsp + 0x30]
cmp al, 0xd
je 0x140085fd7
cmp al, 0xa
je 0x140085fd7
mov rcx, rsi
inc rbx
call fcn.1400b1c54
test eax, eax
je 0x140085fa0
mov rcx, rsi
call fcn.1400b1c80
cmp rbx, 1
ja 0x140086006
mov rcx, rsi
call fcn.140021fe4
lea r8, str.Invalid_data_in_public_key_file
mov edx, 0xfffffff0
mov rcx, rdi
call fcn.1400aa710
jmp 0x1400861ae
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 0x14008603e
mov rcx, rsi
call fcn.140021fe4
lea r8, str.Unable_to_allocate_memory_for_public_key_data
mov rcx, rdi
lea edx, [rbp - 6]
call fcn.1400aa710
jmp 0x1400861a6
mov r9, rsi
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.1400074d4
cmp rax, rbx
je 0x140086080
mov rdx, rdi
mov rcx, rbp
call qword [rdi + 0x18]
mov rcx, rsi
call fcn.140021fe4
lea r8, str.Unable_to_read_public_key_from_file
mov edx, 0xfffffff0
mov rcx, rdi
call fcn.1400aa710
jmp 0x1400861a6
mov rcx, rsi
call fcn.140021fe4
nop dword [rax + rax]
movzx ecx, byte [rbx + rbp - 1]
call fcn.1400a5ce0
test eax, eax
je 0x1400860c4
sub rbx, 1
jne 0x140086090
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.1400aa710
jmp 0x1400861a6
mov r8, rbx
mov edx, 0x20
mov rcx, rbp
call fcn.1400a5b50
mov rsi, rax
test rax, rax
jne 0x1400860fc
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.1400aa710
jmp 0x1400861a6
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.1400a5b50
test rax, rax
jne 0x140086130
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.1400aa850
test eax, eax
je 0x140086170
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.1400aa710
jmp 0x14008619e
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 0x14008c2d0
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 0x14008c36c
mov rax, r9
lea rbp, [rcx + 0x68]
nop word [rax + rax]
mov rcx, qword [rbx + 0x88]
cmp dword [rbx + 0x90], r15d
jne 0x14008c33c
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 0x14008c34d
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 0x14008c38b
mov dword [rbx + 0x90], r15d
mov rax, qword [rdi]
mov r9d, eax
cmp rax, rsi
jb 0x14008c310
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 0x14008c3a8
cmp eax, 0x3e5
je 0x14008c3af
mov eax, 0xffffffff
jmp 0x14008c372
cmp eax, 0x3e4
jne 0x14008c3a1
mov dword [rbx + 0x90], 1
mov eax, 0xffffffdb
jmp 0x14008c372

Function at 0x14008c3c0
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 0x14008c45c
mov rax, r9
lea rbp, [rcx + 0x68]
nop word [rax + rax]
mov rcx, qword [rbx + 0x88]
cmp dword [rbx + 0x90], r15d
jne 0x14008c42c
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 0x14008c43d
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 0x14008c47b
mov dword [rbx + 0x90], r15d
mov rax, qword [rdi]
mov r9d, eax
cmp rax, rsi
jb 0x14008c400
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 0x14008c498
cmp eax, 0x3e5
je 0x14008c49f
mov eax, 0xffffffff
jmp 0x14008c462
cmp eax, 0x3e4
jne 0x14008c491
mov dword [rbx + 0x90], 1
mov eax, 0xffffffdb
jmp 0x14008c462
Function at 0x1400980c0
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 0x1400980f8
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.140098240
cmp byte [rcx + 0xebe], 0
je 0x140098110
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140099330
cmp byte [rcx + 0xec1], 0
je 0x1400981b1
mov r8, qword [rbx + 0x820]
test r8, r8
jne 0x14009816b
mov r8, qword [rcx + 0xc00]
test r8, r8
jne 0x14009814e
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.1400b7710
test eax, eax
je 0x1400981a1
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xecd], 0
lea rcx, [rbx + 0x798]
je 0x140098191
lea rdx, str.PRET_STOR__s
call fcn.1400b7710
test eax, eax
je 0x1400981a1
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.1400b7710
test eax, eax
jne 0x1400981be
mov dword [rbx + 0x850], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140099b80
add rsp, 0x20
pop rbx
ret

Function at 0x1400981d0
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 0x1400981f5
cmp dword [rax + 0x9f0], 0
je 0x140098221
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x140098221
lea rdx, str.MDTM__s
call fcn.1400b7710
test eax, eax
jne 0x14009822e
mov dword [rbx + 0x850], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140099cd0
add rsp, 0x20
pop rbx
ret

Function at 0x140098d30
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 0x140098d9c
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.140065410
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x140098dc1
lea rdx, str.Error_accept__ing_server_connect
call fcn.140063a30
lea eax, [rbx + 0x1f]
jmp 0x140098e3a
lea rdx, str.Connection_accepted_from_server_n
call fcn.1400638d0
mov edx, 1
mov byte [rdi + 0x3f8], 0
mov rcx, rbx
mov qword [rdi + 0x260], rbx
call fcn.14007ae00
mov byte [rdi + 0x279], 1
cmp qword [rsi + 0x728], 0
je 0x140098e38
mov dl, 1
mov rcx, rsi
call fcn.1400506e0
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.1400506e0
test ebx, ebx
je 0x140098e38
mov rcx, rdi
call fcn.140098c40
mov eax, 0x2a
jmp 0x140098e3a
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 0x140099c10
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 0x140099c5d
cmp qword [rcx + 0x820], 0
je 0x140099c5d
add rcx, 0x798
lea rdx, str.REST__d
xor r8d, r8d
call fcn.1400b7710
test eax, eax
jne 0x140099c67
mov dword [rbx + 0x850], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400980c0
add rsp, 0x20
pop rbx
ret

Function at 0x140099c70
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 0x140099cbc
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x140099cbc
lea rdx, str.SIZE__s
call fcn.1400b7710
test eax, eax
jne 0x140099cc9
mov dword [rbx + 0x850], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140099c10
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xecc], 0
je 0x140099d28
cmp qword [rcx + 0x820], 0
je 0x140099d28
cmp byte [r9 + 0xebb], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x840]
cmp eax, edx
je 0x140099d28
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x20], 1
movzx edx, byte [r9 + 0xebb]
jmp fcn.140098520
jmp fcn.140099c70
Function at 0x14009a730
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 0x14009a765
lea rdx, str.Couldnt_set_desired_mode
call fcn.140063a30
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x14009a77c
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.1400638d0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x14009a798
mov rcx, rdi
call fcn.140099c70
jmp 0x14009a8d0
cmp esi, 0x14
jne 0x14009a8b2
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xb98], 2
jne 0x14009a81a
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x14009a81a
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.140094bf0
test eax, eax
jne 0x14009a8d0
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call fcn.14004dd64
test rax, rax
je 0x14009a80f
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x14009a81a
mov rcx, qword [rsp + 0x50]
call qword [fcn.140011c70]
mov rdx, qword [rsi + 0xc00]
test rdx, rdx
jne 0x14009a83e
cmp byte [rsi + 0xebd], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1400d4dbc]
test rbp, rbp
mov r9, r8
lea rax, [0x1400d5660]
cmovne r9, rbp
lea rcx, [0x1400d4f0c]
cmovne r8, rax
call fcn.14007bf90
mov rcx, rbp
mov r14, rax
call qword [fcn.140011c70]
test r14, r14
jne 0x14009a87d
lea ebx, [r14 + 0x1b]
jmp 0x14009a8d2
lea rcx, [rdi + 0x798]
mov r8, r14
lea rdx, [0x1400d4f64]
call fcn.1400b7710
mov rcx, r14
mov esi, eax
call qword [fcn.140011c70]
test esi, esi
je 0x14009a8a6
mov ebx, esi
jmp 0x14009a8d2
mov dword [rdi + 0x850], 0x1f
jmp 0x14009a8d2
cmp esi, 0x15
jne 0x14009a8bd
lea r8d, [rsi - 8]
jmp 0x14009a8c6
cmp esi, 0x16
jne 0x14009a8d2
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.140098240
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 0x1400a3138
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.1400436b0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400436b0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a3288
cmp rax, 0xffffffffffffffff
je 0x1400a3288
xor edi, edi
test rbp, rbp
jle 0x1400a3233
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400229f4
mov rbx, rax
test rax, rax
jne 0x1400a31c0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a3229
mov edx, 0x8000
mov ecx, r14d
call fcn.1400a2fbc
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.140068b7c
cmp eax, 0xffffffff
je 0x1400a3209
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a31d0
mov edx, r15d
mov ecx, r14d
call fcn.1400a2fbc
jmp 0x1400a3229
cmp byte [rsi + 0x38], dil
je 0x1400a3220
cmp dword [rsi + 0x34], 5
jne 0x1400a3220
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400a3229
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140022a6c
jmp 0x1400a329c
jns 0x1400a329c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400436b0
cmp rax, 0xffffffffffffffff
jne 0x1400a3254
cmp byte [rsi + 0x30], dil
je 0x1400a329c
mov edi, dword [rsi + 0x2c]
jmp 0x1400a329c
mov ecx, r14d
call fcn.14004a33c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a329c
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 0x1400a329c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a3295
mov eax, dword [rsi + 0x2c]
jmp 0x1400a329a
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400436b0
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 0x1400a6e60
Capabilities:
Generate random numbers via winapi

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

Function at 0x1400a6fd0
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 0x1400a8830
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 0x1400a8864
mov r15, qword [rcx + 0x18]
jmp 0x1400a8867
mov r15, r14
mov qword [rsp + 0x88], r12
test eax, eax
jne 0x1400a88b9
test ebp, ebp
jne 0x1400a88b9
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 0x1400a88f9
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 0x1400a8a1c
mov ecx, dword [rsp + 0xa0]
mov qword [rsp + 0x80], rsi
call fcn.140036114
mov rsi, rax
test rax, rax
je 0x1400a8a0f
cmp dword [rsp + 0x90], 0
jne 0x1400a8976
test ebp, ebp
jne 0x1400a8976
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 0x1400a89b9
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 0x1400a89f2
mov rcx, r14
test ebp, ebp
je 0x1400a89e2
mov r9, r13
mov r8, rsi
mov rdx, r14
call fcn.1400ab220
mov edx, dword [rdi + 0x2c]
mov rcx, qword [rdi + 0x18]
call fcn.1400ab300
jmp 0x1400a89f2
mov r8d, dword [rsp + 0xa0]
mov rdx, rsi
call fcn.1400077a0
mov ecx, dword [rsp + 0xa0]
test rcx, rcx
je 0x1400a8a05
mov rdi, rsi
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rsi
call fcn.140011c70
jmp 0x1400a8a14
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