joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016bec0
Capabilities:
Hash data with md5

Disassembly:
lea rax, vtable._ckMd5.0
mov dword [rcx + 8], 0x67452301
mov qword [rcx], rax
xor eax, eax
mov qword [rcx + 0x18], rax
mov rax, rcx
mov dword [rcx + 0xc], 0xefcdab89
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
ret

Function at 0x14016c800
Capabilities:
Encrypt data using rc4 prga
Hash data with md5

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov dword [rcx + 8], 0x67452301
mov qword [rcx + 0x18], rbx
mov rbp, r8
mov dword [rcx + 0xc], 0xefcdab89
mov rdi, rdx
mov dword [rcx + 0x10], 0x98badcfe
mov rsi, rcx
mov dword [rcx + 0x14], 0x10325476
cmp dword [rdx + 0xc08], ebx
jbe 0x14016c86f
nop word [rax + rax]
mov r8d, dword [rdi + rbx*4 + 0x808]
mov rcx, rsi
mov rdx, qword [rdi + rbx*8 + 8]
call fcn.14016cd80
inc ebx
cmp ebx, dword [rdi + 0xc08]
jb 0x14016c850
mov rdx, rbp
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14016cc30

Function at 0x14016c890
Capabilities:
Encrypt data using rc4 prga
Hash data with md5

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor eax, eax
mov dword [rcx + 8], 0x67452301
mov qword [rcx + 0x18], rax
mov rdi, r9
mov rbx, rcx
mov dword [rcx + 0xc], 0xefcdab89
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
call fcn.14016cd80
mov rdx, rdi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14016cc30

Function at 0x14016c8e0
Capabilities:
Encrypt data using rc4 prga
Hash data with md5

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor eax, eax
mov dword [rcx + 8], 0x67452301
mov qword [rcx + 0x18], rax
mov rsi, rcx
mov dword [rcx + 0xc], 0xefcdab89
mov rbp, r8
mov dword [rcx + 0x10], 0x98badcfe
mov rdi, rdx
mov dword [rcx + 0x14], 0x10325476
mov rcx, rdx
call fcn.1400e6bc0
mov rcx, rdi
mov ebx, eax
call fcn.1400e6890
mov rdx, rax
mov r8d, ebx
mov rcx, rsi
call fcn.14016cd80
mov rdx, rbp
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14016cc30
Function at 0x14016c960
Capabilities:
Hash data with md5

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1403721e8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xd0]
mov rbp, rcx
mov rbx, qword [rsp + 0xd8]
xor edi, edi
mov qword [rcx + 0x18], rdi
mov r12, r9
mov dword [rcx + 8], 0x67452301
mov r15, r8
mov dword [rcx + 0xc], 0xefcdab89
mov r13, rdx
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
mov ecx, 0x4e28
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
call fcn.1400b71c0
mov rsi, rax
test rax, rax
je 0x14016cb90
mov rcx, r13
mov dword [rsp + 0x48], edi
mov byte [rsp + 0x30], 1
call fcn.14018b400
test al, al
jne 0x14016cb76
nop word [rax + rax]
mov qword [rsp + 0x28], r12
lea r9, [rsp + 0x48]
mov r8d, 0x4e20
mov qword [rsp + 0x20], r15
mov rdx, rsi
mov rcx, r13
call fcn.14018b650
test al, al
je 0x14016cb76
mov r9d, dword [rsp + 0x48]
test r9d, r9d
je 0x14016cb4e
test rbx, rbx
je 0x14016ca4e
mov r8d, r9d
mov rdx, rsi
mov rcx, rbx
call fcn.1400e2720
mov r9d, dword [rsp + 0x48]
mov edi, r9d
test r9d, r9d
je 0x14016cb37
mov eax, dword [rbp + 0x18]
mov r8d, eax
shr r8d, 3
and r8d, 0x3f
lea ecx, [rax + r9*8]
lea eax, [r9*8]
mov dword [rbp + 0x18], ecx
cmp ecx, eax
jae 0x14016ca7e
inc dword [rbp + 0x1c]
mov eax, edi
mov ebx, 0x40
shr eax, 0x1d
sub ebx, r8d
add dword [rbp + 0x1c], eax
cmp edi, ebx
jb 0x14016cb02
test ebx, ebx
je 0x14016cac2
sub r8, rsi
mov edx, ebx
add r8, rbp
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [r8 + rcx + 0x20], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x14016cab0
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 8]
call fcn.14016bf30
lea eax, [rbx + 0x3f]
cmp eax, edi
jae 0x14016caf8
nop word [rax + rax]
mov edx, ebx
lea rcx, [rbp + 8]
add rdx, rsi
call fcn.14016bf30
add ebx, 0x40
lea eax, [rbx + 0x3f]
cmp eax, edi
jb 0x14016cae0
mov r9d, dword [rsp + 0x48]
xor r8d, r8d
jmp 0x14016cb04
xor ebx, ebx
sub edi, ebx
je 0x14016cb32
mov eax, ebx
lea rdx, [rbx + rsi]
sub r8, rax
mov ecx, edi
sub r8, rsi
add r8, rbp
nop dword [rax]
movzx eax, byte [rdx]
mov byte [r8 + rdx + 0x20], al
lea rdx, [rdx + 1]
sub rcx, 1
jne 0x14016cb20
mov rbx, qword [rsp + 0x38]
test r15, r15
je 0x14016cb4e
mov edx, r9d
mov r8, r12
mov rcx, r15
call fcn.1401663c0
test al, al
jne 0x14016cb60
mov rcx, r13
call fcn.14018b400
test al, al
je 0x14016ca00
jmp 0x14016cb76
mov rax, qword [r12]
lea rdx, str.Digest_MD5_aborted_by_application
mov rcx, r12
call qword [rax + 0x28]
mov byte [rsp + 0x30], 0
mov rcx, rsi
call fcn.1402545d0
mov rdx, qword [rsp + 0x40]
mov rcx, rbp
call fcn.14016cc30
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1402545b0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14016cbb0
Capabilities:
Encrypt data using rc4 prga
Hash data with md5

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor eax, eax
mov dword [rcx + 8], 0x67452301
mov qword [rcx + 0x18], rax
mov rsi, rcx
mov dword [rcx + 0xc], 0xefcdab89
mov rbp, r8
mov dword [rcx + 0x10], 0x98badcfe
mov rdi, rdx
mov dword [rcx + 0x14], 0x10325476
mov rcx, rdx
call fcn.1400da410
mov rcx, rdi
mov ebx, eax
call fcn.1400da480
mov rdx, rax
mov r8d, ebx
mov rcx, rsi
call fcn.14016cd80
mov rdx, rbp
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14016cc30

Function at 0x14016cd50
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [rcx + 8], 0x67452301
mov qword [rcx + 0x18], rax
mov dword [rcx + 0xc], 0xefcdab89
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
ret

Function at 0x14016e6e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xcc], 0xc64d29ea
mov rdi, r8
movzx esi, dl
mov rbx, rcx
jne 0x14016e719
mov rax, qword [rcx + 0xed8]
test rax, rax
je 0x14016e74b
cmp dword [rax + 0x3c], 0xc64d29ea
je 0x14016e765
xor ecx, ecx
call fcn.1400b09c0
cmp dword [rbx + 0xee8], 2
mov rdx, rdi
jne 0x14016e839
lea rcx, [rbx + 0x220]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140219800
cmp dword [rcx + 0xee8], 2
jne 0x14016e720
add rcx, 0x220
call fcn.1402196c0
test rax, rax
je 0x14016e720
mov rdx, rdi
mov rcx, rax
call fcn.1402208e0
test al, al
je 0x14016e80e
test sil, sil
jne 0x14016e78f
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp byte [rdi + 0x161], 0
je 0x14016e7a8
mov rax, qword [rdi]
lea rdx, str.Checking_SSH_channel...
mov rcx, rdi
call qword [rax + 0x30]
cmp qword [rbx + 0xed8], 0
je 0x14016e7cd
mov eax, dword [rbx + 0xee0]
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp dword [rbx + 0xee8], 2
jne 0x14016e7f7
lea rcx, [rbx + 0x220]
call fcn.1402196b0
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp byte [rdi + 0x161], 0
je 0x14016e827
mov rax, qword [rdi]
lea rdx, str.SSH_tunnel_is_not_connected.
mov rcx, rdi
call qword [rax + 0x30]
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rcx, [rbx + 0xb48]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1401bb8e0
add rcx, 0x18
jmp fcn.140217da0

Function at 0x14016e930
Capabilities:
Get socket status

Disassembly:
mov rax, qword [rcx + 0xed8]
test rax, rax
je 0x14016e944
mov rcx, rax
jmp fcn.1402231f0
cmp dword [rcx + 0xee8], 2
jne 0x14016e959
add rcx, 0x220
jmp fcn.140219790
add rcx, 0xb48
jmp fcn.1401badd0
Function at 0x14016f140
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov r8, rdx
add rcx, 0xffffffffffffff78
mov dl, 1
jmp fcn.14016e6e0

Function at 0x14016f160
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
push rsi
push rdi
push r12
push r15
sub rsp, 0x30
mov rbx, qword [rsp + 0x80]
mov edi, r9d
mov rsi, qword [rsp + 0x88]
mov r12d, r8d
mov r15, rdx
mov byte [rbx], 0
cmp byte [rsi + 0x10], 0
jne 0x14016f1b5
mov rcx, qword [rsp + 0x90]
mov rdx, qword [str.Internal_error:_Socket_IO_params_not_valid.__Contact_support_chilkatsoft.com]
mov rax, qword [rcx]
call qword [rax + 0x28]
xor al, al
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x60], rbp
lea rbp, [rcx - 0x88]
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x78], r14
mov r14, qword [rsp + 0x90]
mov qword [rsp + 0x88], rbp
test r9d, r9d
jne 0x14016f22c
mov rax, qword [rcx + 0xe50]
mov r8, r14
mov rdx, rsi
test rax, rax
je 0x14016f1fc
mov rcx, rax
call fcn.1402231f0
jmp 0x14016f21f
cmp dword [rcx + 0xe60], 2
jne 0x14016f213
add rcx, 0x198
call fcn.140219790
jmp 0x14016f21f
add rcx, 0xac0
call fcn.1401badd0
test al, al
je 0x14016f301
mov edi, 0x7530
mov rcx, r15
call fcn.1400e6bc0
mov r9d, edi
mov qword [rsp + 0x28], r14
mov r8d, r12d
mov qword [rsp + 0x20], rsi
mov rdx, r15
mov rcx, rbp
mov r13d, eax
call fcn.14016ee70
movzx ebp, al
test al, al
je 0x14016f301
mov rcx, r15
call fcn.1400e6bc0
cmp eax, r13d
jbe 0x14016f27c
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + htons]
mov byte [rbx], al
mov al, 1
jmp 0x14016f303
call sub.KERNEL32.dll_GetTickCount
mov r12d, eax
xor ebx, ebx
mov rcx, r15
call fcn.1400e6bc0
cmp eax, r13d
jne 0x14016f2d4
cmp ebx, edi
jae 0x14016f2d4
mov r8d, dword [rsp + 0x70]
mov r9d, edi
mov rcx, qword [rsp + 0x88]
mov rdx, r15
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rsi
call fcn.14016ee70
movzx ebp, al
call sub.KERNEL32.dll_GetTickCount
mov ebx, eax
cmp eax, r12d
jb 0x14016f301
sub ebx, r12d
cmp ebx, edi
jae 0x14016f2ed
test bpl, bpl
jne 0x14016f286
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + htons]
mov rcx, qword [rsp + 0x80]
mov byte [rcx], al
movzx eax, bpl
jmp 0x14016f303
mov rax, qword [r14]
lea rdx, str.Timed_out......
mov rcx, r14
call qword [rax + 0x28]
mov byte [rsi + 0x28], 1
xor al, al
mov r13, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14017bcc0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1403721e8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, rdx
mov rax, qword [rcx + 0x10]
cmp rax, 0xffffffffffffffff
je 0x14017bd93
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x14017bd8f
test rdi, rdi
je 0x14017bd8f
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
lea rcx, [rsp + 0x20]
call fcn.1400d4580
nop
lea rcx, [rsp + 0x20]
call fcn.1400d5e90
mov rbx, qword [rdi]
lea rcx, [rsp + 0x20]
call fcn.1400da480
mov rdx, rax
mov rcx, rdi
call qword [rbx + 0x28]
mov rax, qword [rdi]
lea rdx, str.Failed_to_get_file_size__32_
mov rcx, rdi
call qword [rax + 0x28]
nop
lea rcx, [rsp + 0x20]
call fcn.1400d45d0
mov eax, esi
jmp 0x14017bdaf
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14017bdaa
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__filelength
jmp 0x14017bdaf
mov eax, 0xffffffff
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1402545b0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14017bde0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x1403721e8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x14017beff
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14017bef2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14017bef2
test rdi, rdi
je 0x14017beca
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
lea rcx, [rsp + 0x30]
call fcn.1400d4580
nop
lea rcx, [rsp + 0x30]
call fcn.1400d5e90
mov rbx, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.1400da480
mov rdx, rax
mov rcx, rdi
call qword [rbx + 0x28]
mov rax, qword [rdi]
lea rdx, str.Failed_to_get_file_size__64_
mov rcx, rdi
call qword [rax + 0x28]
nop
lea rcx, [rsp + 0x30]
call fcn.1400d45d0
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1402545b0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xd0
pop rdi
ret
mov edx, dword [rsp + 0x20]
mov ecx, ebx
call fcn.14010ebd0
jmp 0x14017bed1
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14017beca
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
mov rcx, qword [rbx + 8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__filelengthi64
jmp 0x14017bed1
Function at 0x14017c010
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1403721e8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, qword [rsp + 0xd0]
mov rax, rdx
mov r14, qword [rsp + 0xd8]
xor r15d, r15d
mov qword [rsp + 0x30], rcx
mov rdi, r9
mov ebx, r8d
mov rdx, rcx
mov byte [rsi], 0
mov dword [r9], r15d
test rax, rax
jne 0x14017c07f
test r14, r14
je 0x14017c1a0
mov rax, qword [r14]
lea rdx, str.NULL_buf_pointer.
mov rcx, r14
call qword [rax + 0x28]
xor al, al
jmp 0x14017c1a6
test ebx, ebx
je 0x14017c1a4
mov ecx, 0x10000
mov byte [rsi], r15b
cmp ebx, ecx
mov dword [rsp + 0x48], r15d
mov ebp, ebx
mov r13, rax
cmova ebp, ecx
mov r12, rax
test rax, rax
je 0x14017c183
mov rcx, qword [rdx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x14017c0ff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], r15
mov r8d, ebp
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14017c0f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x14017c13d
test r14, r14
je 0x14017c0e8
mov edx, eax
mov rcx, r14
call fcn.1400f7890
mov eax, dword [rsp + 0x48]
add dword [rdi], eax
xor al, al
jmp 0x14017c1a6
mov eax, dword [rsp + 0x48]
test eax, eax
jne 0x14017c144
jmp 0x14017c141
mov r9, qword [rdx + 8]
test r9, r9
je 0x14017c175
mov r8d, ebp
mov edx, 1
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov dword [rsp + 0x48], eax
cmp eax, ebp
jne 0x14017c12b
add dword [rdi], eax
sub ebx, eax
mov eax, eax
add rax, r13
jmp 0x14017c14b
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
jne 0x14017c15e
mov eax, dword [rsp + 0x48]
mov byte [rsi], 1
add dword [rdi], eax
sub ebx, eax
add rax, r12
cmp byte [rsi], r15b
jne 0x14017c1a4
test ebx, ebx
je 0x14017c1a4
mov rdx, qword [rsp + 0x30]
jmp 0x14017c087
test r14, r14
je 0x14017c0e8
mov rcx, r14
call fcn.1400f7690
mov eax, dword [rsp + 0x48]
add dword [rdi], eax
xor al, al
jmp 0x14017c1a6
test r14, r14
je 0x14017c19d
lea rdx, str.No_file_is_open.
jmp 0x14017c18f
test r14, r14
je 0x14017c19d
lea rdx, str.NULL_buf_or_bufSize
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x28]
mov r15d, dword [rsp + 0x48]
add dword [rdi], r15d
xor al, al
jmp 0x14017c1a6
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1402545b0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14017c670
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov rax, qword [0x1403721e8]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 0x10], 0xffffffffffffffff
mov r14, r9
mov rsi, qword [rsp + 0xb0]
mov rdi, r8
mov rbp, rdx
mov r15, rcx
jne 0x14017c6d2
cmp qword [rcx + 8], 0
jne 0x14017c6d2
test rsi, rsi
je 0x14017c7d0
mov rax, qword [rsi]
lea rdx, str.Failed_to_write_because_file_is_not_open.
mov rcx, rsi
call qword [rax + 0x28]
xor al, al
jmp 0x14017c79d
xor r13d, r13d
test r14, r14
je 0x14017c6dd
mov qword [r9], r13
test r8, r8
je 0x14017c79b
mov edx, dword [rsp + 0x30]
mov r12d, 0x989680
mov rcx, qword [r15 + 0x10]
cmp rdi, r12
mov ebx, edi
cmovg ebx, r12d
cmp rcx, 0xffffffffffffffff
je 0x14017c75b
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], r13d
mov r8d, ebx
mov qword [rsp + 0x20], r13
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14017c72a
mov edx, dword [rsp + 0x30]
cmp edx, ebx
je 0x14017c780
test rsi, rsi
je 0x14017c7d0
mov rax, qword [rsi]
lea rdx, str.WriteFileError
mov r8b, 1
mov rcx, rsi
call qword [rax + 0x48]
mov rcx, rsi
call fcn.1400f7690
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x50]
xor al, al
jmp 0x14017c79d
mov r9, qword [r15 + 8]
test r9, r9
je 0x14017c780
mov edx, ebx
mov r8d, 1
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp rax, 1
jne 0x14017c7bb
mov edx, ebx
mov dword [rsp + 0x30], ebx
mov eax, ebx
add rbp, rax
sub rdi, rax
test r14, r14
je 0x14017c792
mov eax, edx
add qword [r14], rax
test rdi, rdi
jne 0x14017c6f0
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1402545b0
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
test rsi, rsi
je 0x14017c7d0
mov rax, qword [rsi]
lea rdx, str.fwrite_failed.
mov rcx, rsi
call qword [rax + 0x28]
xor al, al
jmp 0x14017c79d
Function at 0x1401824f0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x14043c90d], 0
mov rbx, rcx
jne 0x14018270c
cmp qword [0x14043c9e0], 0
je 0x140182518
mov al, 1
add rsp, 0x20
pop rbx
ret
lea rcx, str.bcrypt.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14043c9e0], rax
test rax, rax
jne 0x140182558
mov rcx, rbx
mov byte [0x14043c90d], 1
call fcn.1400f7690
mov rax, qword [rbx]
lea rdx, str.Failed_to_load_bcrypt.dll
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
add rsp, 0x20
pop rbx
ret
lea rdx, str.BCryptGenerateKeyPair
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14043c9e0]
lea rdx, str.BCryptFinalizeKeyPair
mov qword [0x14043c988], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14043c9e0]
lea rdx, str.BCryptExportKey
mov qword [0x14043c990], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14043c9e0]
lea rdx, str.BCryptDestroyKey
mov qword [0x14043c998], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14043c9e0]
lea rdx, str.BCryptCloseAlgorithmProvider
mov qword [0x14043c9a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14043c9e0]
lea rdx, str.BCryptOpenAlgorithmProvider
mov qword [0x14043c9a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14043c9e0]
lea rdx, str.BCryptGetProperty
mov qword [0x14043c9b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14043c9e0]
lea rdx, str.BCryptCreateHash
mov qword [0x14043c9b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14043c9e0]
lea rdx, str.BCryptHashData
mov qword [0x14043c9c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14043c9e0]
lea rdx, str.BCryptDestroyHash
mov qword [0x14043c9c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14043c9e0]
lea rdx, str.BCryptFinishHash
mov qword [0x14043c9d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14043c9a8], 0
mov qword [0x14043c9d8], rax
je 0x1401826ea
cmp qword [0x14043c9b0], 0
je 0x1401826ea
cmp qword [0x14043c9b8], 0
je 0x1401826ea
cmp qword [0x14043c9c0], 0
je 0x1401826ea
cmp qword [0x14043c9c8], 0
je 0x1401826ea
cmp qword [0x14043c9d0], 0
je 0x1401826ea
cmp qword [0x14043c988], 0
je 0x1401826ea
cmp qword [0x14043c990], 0
je 0x1401826ea
cmp qword [0x14043c998], 0
je 0x1401826ea
cmp qword [0x14043c9a0], 0
je 0x1401826ea
test rax, rax
jne 0x140182510
mov rax, qword [rbx]
lea rdx, str.BCrypt_function_s__not_found.
mov rcx, rbx
call qword [rax + 0x28]
mov byte [0x14043c90d], 1
mov qword [0x14043c9e0], 0
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401871c0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1403721e8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
mov esi, ecx
test ecx, ecx
js 0x140187258
test rbx, rbx
je 0x140187258
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
lea r8, str.getEntropy
mov rdx, r9
lea rcx, [rsp + 0x20]
call fcn.1400f64d0
nop
xor bpl, bpl
call fcn.1400f5730
mov rdi, rax
test rax, rax
jne 0x140187221
xor bl, bl
jmp 0x140187249
mov r8, rbx
mov edx, esi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
movzx ebx, bpl
mov ecx, 1
test eax, eax
cmovne ebx, ecx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
lea rcx, [rsp + 0x20]
call fcn.1400f65e0
movzx eax, bl
jmp 0x14018725a
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1402545b0
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14019e840
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1a0
mov rax, qword [0x1403721e8]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rbx, rcx
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [rbx + 0x18]
cmp eax, ecx
jb 0x14019e8bc
cmp eax, dword [rbx + 0x28]
jb 0x14019e8bc
sub eax, ecx
mov ecx, eax
je 0x14019e93e
mov r8, qword [rbx + 8]
mov eax, 1
add r8, rcx
cmove r8, rax
mov r9, qword [rbx + 0x20]
add r9, qword [rbx + 0x10]
imul rax, r9, 0x3e8
cqo
idiv r8
mov ecx, 0xffffffff
cmp rax, rcx
jg 0x14019e93e
mov qword [rbx + 0x30], r9
mov qword [rbx + 0x38], rax
jmp 0x14019e93e
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call fcn.1400f7ec0
nop
cmp byte [0x14043b955], 0
je 0x14019e913
mov eax, dword [rbx + 0x44]
cmp eax, 1
jne 0x14019e8f3
lea rdx, str.resetSendPerfMon
jmp 0x14019e906
cmp eax, 2
lea rdx, str.resetReceivePerfMon
je 0x14019e906
lea rdx, str.resetPerformanceMon
mov rax, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
call qword [rax + 0x30]
xor edi, edi
mov dword [rbx + 0x28], edi
mov qword [rbx + 0x20], rdi
call sub.KERNEL32.dll_GetTickCount
mov dword [rbx + 0x18], eax
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x30], rdi
mov qword [rbx + 0x38], rdi
lea rcx, [rsp + 0x20]
call fcn.1400f7ef0
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1402545b0
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x1a0
pop rdi
ret