joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401df390
Capabilities:
Reference google public dns server

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push r14
sub rsp, 0x20
mov esi, ecx
mov r14, r8
mov rcx, rdx
mov rbx, rdx
call fcn.14013bd70
mov byte [r14], 0
cmp byte [0x140549a49], 0
jne 0x1401df468
call fcn.1401de730
mov rcx, qword [0x140549a50]
test rcx, rcx
je 0x1401df468
cmp qword [0x140549a78], 0
je 0x1401df468
mov qword [rsp + 0x30], rdi
call fcn.140173c10
mov rcx, qword [0x140549a78]
mov edx, esi
xor dil, dil
call fcn.140172670
mov rsi, rax
test rax, rax
je 0x1401df442
lea rdx, [rax + 0x10]
mov rcx, rbx
call fcn.140139100
lea rdx, str.0.0.0.0
mov rcx, rbx
call fcn.14013e140
test al, al
je 0x1401df435
lea rdx, str.8.8.8.8
mov rcx, rbx
call fcn.140142930
movzx eax, byte [rsi + 0xa0]
mov dil, 1
mov byte [r14], al
mov rcx, qword [0x140549a50]
call fcn.140173c50
movzx eax, dil
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov rbx, qword [rsp + 0x38]
xor al, al
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x1401df890
Capabilities:
Reference google public dns server

Disassembly:
test rcx, rcx
je 0x1401dfa26
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
movzx r14d, dl
mov rbp, rcx
cmp byte [0x140549a49], 0
jne 0x1401dfa14
call fcn.1401de730
cmp byte [0x140549a48], 0
je 0x1401dfa14
mov rcx, qword [0x140549a50]
test rcx, rcx
je 0x1401dfa14
cmp qword [0x140549a78], 0
je 0x1401dfa14
call fcn.140173c10
mov ecx, 0xb8
call fcn.1401088d8
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1401df947
xor edx, edx
mov r8d, 0xb8
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
call fcn.140119e30
nop
lea rax, vtable._ckNameserver.0
mov qword [rdi], rax
lea rcx, [rdi + 0x10]
call fcn.140138d70
xor ebx, ebx
mov dword [rdi + 0xa4], ebx
mov dword [rdi + 0xb4], ebx
jmp 0x1401df94b
xor ebx, ebx
mov edi, ebx
test rdi, rdi
je 0x1401dfa08
mov rdx, rbp
lea rcx, [rdi + 0x10]
call fcn.1401394a0
lea rcx, [rdi + 0x10]
call fcn.140145850
lea rdx, str.0.0.0.0
lea rcx, [rdi + 0x10]
call fcn.14013e140
test al, al
je 0x1401df98d
lea rdx, str.8.8.8.8
lea rcx, [rdi + 0x10]
call fcn.140142930
lea rcx, [rdi + 0x10]
call fcn.14013ebe0
test eax, eax
je 0x1401df9fb
mov byte [rdi + 0xa0], r14b
mov rcx, qword [0x140549a78]
call fcn.140172830
mov ebp, eax
test eax, eax
jle 0x1401df9ea
nop dword [rax]
nop word [rax + rax]
mov edx, ebx
mov rcx, qword [0x140549a78]
call fcn.140172670
test rax, rax
je 0x1401df9e4
lea rcx, [rax + 0x10]
lea rdx, [rdi + 0x10]
call fcn.14013e100
test al, al
jne 0x1401df9fb
inc ebx
cmp ebx, ebp
jl 0x1401df9c0
mov rdx, rdi
mov rcx, qword [0x140549a78]
call fcn.1401722d0
jmp 0x1401dfa08
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rcx, qword [0x140549a50]
call fcn.140173c50
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1401ea0f0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x14040f040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, rdx
mov rax, qword [rcx + 0x10]
cmp rax, 0xffffffffffffffff
je 0x1401ea1c3
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x1401ea1bf
test rdi, rdi
je 0x1401ea1bf
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.140138d70
nop
lea rcx, [rsp + 0x20]
call fcn.14013a660
mov rbx, qword [rdi]
lea rcx, [rsp + 0x20]
call fcn.14013ec50
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.140138dc0
mov eax, esi
jmp 0x1401ea1df
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1401ea1da
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 0x1401ea1df
mov eax, 0xffffffff
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140109210
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1401ea210
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x14040f040]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x1401ea32f
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1401ea322
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1401ea322
test rdi, rdi
je 0x1401ea2fa
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.140138d70
nop
lea rcx, [rsp + 0x30]
call fcn.14013a660
mov rbx, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.14013ec50
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.140138dc0
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140109210
mov rbx, qword [rsp + 0xf0]
add rsp, 0xd0
pop rdi
ret
mov edx, dword [rsp + 0x20]
mov ecx, ebx
call fcn.1401760f0
jmp 0x1401ea301
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1401ea2fa
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 0x1401ea301
Function at 0x1401ea440
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 [0x14040f040]
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 0x1401ea4af
test r14, r14
je 0x1401ea5d0
mov rax, qword [r14]
lea rdx, str.NULL_buf_pointer.
mov rcx, r14
call qword [rax + 0x28]
xor al, al
jmp 0x1401ea5d6
test ebx, ebx
je 0x1401ea5d4
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 0x1401ea5b3
mov rcx, qword [rdx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x1401ea52f
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 0x1401ea525
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x1401ea56d
test r14, r14
je 0x1401ea518
mov edx, eax
mov rcx, r14
call fcn.14015d610
mov eax, dword [rsp + 0x48]
add dword [rdi], eax
xor al, al
jmp 0x1401ea5d6
mov eax, dword [rsp + 0x48]
test eax, eax
jne 0x1401ea574
jmp 0x1401ea571
mov r9, qword [rdx + 8]
test r9, r9
je 0x1401ea5a5
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 0x1401ea55b
add dword [rdi], eax
sub ebx, eax
mov eax, eax
add rax, r13
jmp 0x1401ea57b
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 0x1401ea58e
mov eax, dword [rsp + 0x48]
mov byte [rsi], 1
add dword [rdi], eax
sub ebx, eax
add rax, r12
cmp byte [rsi], r15b
jne 0x1401ea5d4
test ebx, ebx
je 0x1401ea5d4
mov rdx, qword [rsp + 0x30]
jmp 0x1401ea4b7
test r14, r14
je 0x1401ea518
mov rcx, r14
call fcn.14015d120
mov eax, dword [rsp + 0x48]
add dword [rdi], eax
xor al, al
jmp 0x1401ea5d6
test r14, r14
je 0x1401ea5cd
lea rdx, str.No_file_is_open.
jmp 0x1401ea5bf
test r14, r14
je 0x1401ea5cd
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 0x1401ea5d6
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140109210
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401eaaa0
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 [0x14040f040]
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 0x1401eab02
cmp qword [rcx + 8], 0
jne 0x1401eab02
test rsi, rsi
je 0x1401eac00
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 0x1401eabcd
xor r13d, r13d
test r14, r14
je 0x1401eab0d
mov qword [r9], r13
test r8, r8
je 0x1401eabcb
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 0x1401eab8b
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 0x1401eab5a
mov edx, dword [rsp + 0x30]
cmp edx, ebx
je 0x1401eabb0
test rsi, rsi
je 0x1401eac00
mov rax, qword [rsi]
lea rdx, str.WriteFileError
mov r8b, 1
mov rcx, rsi
call qword [rax + 0x48]
mov rcx, rsi
call fcn.14015d120
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x50]
xor al, al
jmp 0x1401eabcd
mov r9, qword [r15 + 8]
test r9, r9
je 0x1401eabb0
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 0x1401eabeb
mov edx, ebx
mov dword [rsp + 0x30], ebx
mov eax, ebx
add rbp, rax
sub rdi, rax
test r14, r14
je 0x1401eabc2
mov eax, edx
add qword [r14], rax
test rdi, rdi
jne 0x1401eab20
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140109210
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
test rsi, rsi
je 0x1401eac00
mov rax, qword [rsi]
lea rdx, str.fwrite_failed.
mov rcx, rsi
call qword [rax + 0x28]
xor al, al
jmp 0x1401eabcd
Function at 0x1401f0140
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x14040f040]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov dword [rsp + 0x48], r9d
mov dword [rsp + 0x4c], r8d
mov rbx, rdx
mov rax, qword [rbp + 0x1d0]
mov qword [rsp + 0x58], rax
mov eax, dword [rbp + 0x1d8]
mov dword [rsp + 0x44], eax
mov eax, dword [rbp + 0x1e0]
mov dword [rsp + 0x40], eax
mov rax, qword [rbp + 0x1e8]
mov qword [rsp + 0x50], rax
mov r15, qword [rbp + 0x1f0]
mov r13, qword [rbp + 0x1f8]
xor r12d, r12d
mov dword [r15], r12d
xor edx, edx
mov r8d, 0x170
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x10]
call fcn.14010a510
nop
mov rdx, rbx
lea rcx, [rbp - 0x10]
call fcn.14010b1f0
mov r8b, 0x5c
mov dl, 0x2f
lea rcx, [rbp - 0x10]
call fcn.14010eb70
lea rcx, [rbp - 0x10]
call fcn.14010e1c0
mov r14, rax
call fcn.1401ea0a0
mov rbx, rax
test rax, rax
je 0x1401f035f
mov edi, r12d
xor sil, sil
nop word [rax + rax]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x4c]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x10], rax
cmp edi, 3
jge 0x1401f027a
cmp rax, 0xffffffffffffffff
jne 0x1401f027a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
cmp eax, 0x20
jne 0x1401f027a
inc edi
lea ecx, [rax + 0x12]
call sub.KERNEL32.dll_Sleep
jmp 0x1401f0220
cmp qword [rbx + 0x10], 0xffffffffffffffff
jne 0x1401f035c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
cmp eax, 2
jne 0x1401f02c2
test sil, sil
jne 0x1401f02c2
lea rcx, [rbp - 0x10]
call fcn.14014ffd0
test al, al
je 0x1401f02c2
mov sil, 1
lea rcx, [rbp - 0x10]
call fcn.1401506c0
lea rcx, [rbp - 0x10]
call fcn.14010e1c0
mov r14, rax
jmp 0x1401f0220
test r13, r13
je 0x1401f034c
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rsp + 0x60]
call fcn.140138d70
nop
lea rcx, [rsp + 0x60]
call fcn.14013a660
mov rax, qword [r13]
lea rdx, str.Failed_to_open_file__3_
mov rcx, r13
call qword [rax + 0x28]
lea r8, [rbp - 0x10]
lea rdx, str.filePath
mov rcx, r13
call fcn.14015cc90
lea r8, [rsp + 0x60]
lea rdx, str.osErrorInfo
mov rcx, r13
call fcn.14015ca70
nop
lea rcx, [rsp + 0x60]
call fcn.140138dc0
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rbx, r12
mov r12, rbx
lea rcx, [rbp - 0x10]
call fcn.14010a570
mov rax, r12
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140109210
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401f2920
Capabilities:
Hash data using crc32b

Disassembly:
push rbx
sub rsp, 0x20
movzx ecx, byte [0x140549ad0]
movzx eax, byte [0x140549ad1]
test cl, cl
jne 0x1401f2afa
test al, al
jne 0x1401f2b02
cmp qword [0x140549ad8], 0
jne 0x1401f2af4
mov ecx, 0x100
mov qword [rsp + 0x30], rdi
mov byte [0x140549ad1], 1
call fcn.14011a7b0
mov rdi, rax
test rax, rax
je 0x1401f2aef
xor ebx, ebx
mov r11, rax
mov r10d, ebx
nop dword [rax]
mov ecx, r10d
mov r8d, r10d
and ecx, 1
shr r8d, 1
shl ecx, 7
mov r9d, ebx
mov edx, ecx
or edx, 0x40
test r8b, 1
cmove edx, ecx
shr r8d, 1
mov ecx, edx
or ecx, 0x20
test r8b, 1
cmove ecx, edx
shr r8d, 1
mov edx, ecx
or edx, 0x10
test r8b, 1
cmove edx, ecx
shr r8d, 1
mov ecx, edx
or ecx, 8
test r8b, 1
cmove ecx, edx
shr r8d, 1
mov edx, ecx
or edx, 4
test r8b, 1
cmove edx, ecx
shr r8d, 1
mov ecx, edx
or ecx, 2
test r8b, 1
cmove ecx, edx
mov eax, ecx
or eax, 1
test r8b, 2
mov r8d, 0x1e
cmove eax, ecx
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [rcx + rcx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [rdx + rdx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [rcx + rcx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [rdx + rdx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [rcx + rcx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [rdx + rdx]
xor ecx, eax
mov eax, ecx
add ecx, ecx
sar eax, 0x1f
and eax, 0x4c11db7
xor eax, ecx
nop dword [rax + rax]
test al, 1
je 0x1401f2a92
lea ecx, [r8 + 1]
mov edx, 1
shl edx, cl
or r9d, edx
shr eax, 1
test al, 1
je 0x1401f2aa5
mov ecx, r8d
mov edx, 1
shl edx, cl
or r9d, edx
shr eax, 1
sub r8d, 2
cmp r8d, 0xfffffffe
jg 0x1401f2a80
mov dword [r11], r9d
inc r10d
add r11, 4
cmp r10d, 0xff
jbe 0x1401f2980
cmp qword [0x140549ad8], rbx
jne 0x1401f2ada
mov qword [0x140549ad8], rdi
jmp 0x1401f2ae2
mov rcx, rdi
call fcn.140108b5c
mov byte [0x140549ad0], 1
mov byte [0x140549ad1], bl
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
test al, al
je 0x1401f2af4
test cl, cl
jne 0x1401f2af4
xor ebx, ebx
test al, al
je 0x1401f2af4
nop dword [rax + rax]
mov ecx, 2
call sub.KERNEL32.dll_Sleep
inc ebx
cmp ebx, 0xc8
ja 0x1401f2af4
cmp byte [0x140549ad1], 0
jne 0x1401f2b10
add rsp, 0x20
pop rbx
ret
Function at 0x1401f2b40
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test rdx, rdx
je 0x1401f2d8b
test r8d, r8d
je 0x1401f2d8b
lea r11, [rcx + 8]
cmp r8d, 0x10
jb 0x1401f2d50
mov r9d, r8d
mov qword [rsp], rbx
mov ebx, dword [r11]
shr r9, 4
nop word [rax + rax]
movzx eax, byte [r10]
mov ecx, ebx
shr ecx, 8
movzx edx, bl
xor rdx, rax
mov rax, qword [0x140549ad8]
xor ecx, dword [rax + rdx*4]
mov edx, ecx
mov dword [r11], edx
movzx ecx, byte [r10 + 1]
movzx eax, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x140549ad8]
xor edx, dword [rax + rcx*4]
mov dword [r11], edx
movzx ecx, byte [r10 + 2]
movzx eax, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x140549ad8]
xor edx, dword [rax + rcx*4]
mov dword [r11], edx
movzx ecx, byte [r10 + 3]
movzx eax, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x140549ad8]
xor edx, dword [rax + rcx*4]
mov dword [r11], edx
movzx eax, byte [r10 + 4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x140549ad8]
xor edx, dword [rax + rcx*4]
mov dword [r11], edx
movzx eax, byte [r10 + 5]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x140549ad8]
xor edx, dword [rax + rcx*4]
mov dword [r11], edx
movzx eax, byte [r10 + 6]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x140549ad8]
xor edx, dword [rax + rcx*4]
mov dword [r11], edx
movzx eax, byte [r10 + 7]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x140549ad8]
xor edx, dword [rax + rcx*4]
mov dword [r11], edx
movzx eax, byte [r10 + 8]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x140549ad8]
xor edx, dword [rax + rcx*4]
mov dword [r11], edx
movzx eax, byte [r10 + 9]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x140549ad8]
xor edx, dword [rax + rcx*4]
mov dword [r11], edx
movzx eax, byte [r10 + 0xa]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x140549ad8]
xor edx, dword [rax + rcx*4]
mov dword [r11], edx
movzx eax, byte [r10 + 0xb]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x140549ad8]
add r8d, 0xfffffff0
xor edx, dword [rax + rcx*4]
mov dword [r11], edx
movzx eax, byte [r10 + 0xc]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x140549ad8]
xor edx, dword [rax + rcx*4]
mov dword [r11], edx
movzx eax, byte [r10 + 0xd]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x140549ad8]
xor edx, dword [rax + rcx*4]
mov dword [r11], edx
movzx eax, byte [r10 + 0xe]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x140549ad8]
xor edx, dword [rax + rcx*4]
mov dword [r11], edx
movzx eax, byte [r10 + 0xf]
add r10, 0x10
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x140549ad8]
xor edx, dword [rax + rcx*4]
mov dword [r11], edx
mov ebx, edx
sub r9, 1
jne 0x1401f2b80
mov rbx, qword [rsp]
test r8d, r8d
je 0x1401f2d8b
mov r9d, dword [r11]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r10]
lea r10, [r10 + 1]
movzx edx, r9b
mov ecx, r9d
xor rdx, rax
shr ecx, 8
mov rax, qword [0x140549ad8]
xor ecx, dword [rax + rdx*4]
mov dword [r11], ecx
mov r9d, ecx
add r8d, 0xffffffff
jne 0x1401f2d60
add rsp, 8
ret
Function at 0x1401f2d90
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x140549ae5], 0
mov rbx, rcx
jne 0x1401f2fac
cmp qword [0x140549bb8], 0
je 0x1401f2db8
mov al, 1
add rsp, 0x20
pop rbx
ret
lea rcx, str.bcrypt.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140549bb8], rax
test rax, rax
jne 0x1401f2df8
mov rcx, rbx
mov byte [0x140549ae5], 1
call fcn.14015d120
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 [0x140549bb8]
lea rdx, str.BCryptFinalizeKeyPair
mov qword [0x140549b60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140549bb8]
lea rdx, str.BCryptExportKey
mov qword [0x140549b68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140549bb8]
lea rdx, str.BCryptDestroyKey
mov qword [0x140549b70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140549bb8]
lea rdx, str.BCryptCloseAlgorithmProvider
mov qword [0x140549b78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140549bb8]
lea rdx, str.BCryptOpenAlgorithmProvider
mov qword [0x140549b80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140549bb8]
lea rdx, str.BCryptGetProperty
mov qword [0x140549b88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140549bb8]
lea rdx, str.BCryptCreateHash
mov qword [0x140549b90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140549bb8]
lea rdx, str.BCryptHashData
mov qword [0x140549b98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140549bb8]
lea rdx, str.BCryptDestroyHash
mov qword [0x140549ba0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140549bb8]
lea rdx, str.BCryptFinishHash
mov qword [0x140549ba8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140549b80], 0
mov qword [0x140549bb0], rax
je 0x1401f2f8a
cmp qword [0x140549b88], 0
je 0x1401f2f8a
cmp qword [0x140549b90], 0
je 0x1401f2f8a
cmp qword [0x140549b98], 0
je 0x1401f2f8a
cmp qword [0x140549ba0], 0
je 0x1401f2f8a
cmp qword [0x140549ba8], 0
je 0x1401f2f8a
cmp qword [0x140549b60], 0
je 0x1401f2f8a
cmp qword [0x140549b68], 0
je 0x1401f2f8a
cmp qword [0x140549b70], 0
je 0x1401f2f8a
cmp qword [0x140549b78], 0
je 0x1401f2f8a
test rax, rax
jne 0x1401f2db0
mov rax, qword [rbx]
lea rdx, str.BCrypt_function_s__not_found.
mov rcx, rbx
call qword [rax + 0x28]
mov byte [0x140549ae5], 1
mov qword [0x140549bb8], 0
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401f8ac0
Capabilities:
Hash data using sha512

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
mov ebp, edx
mov qword [rcx + 0xd8], r12
mov rsi, r8
mov qword [rcx + 0xe0], r12
mov rbx, rcx
add rcx, 8
mov edi, r9d
xor edx, edx
mov r8d, 0x80
call fcn.14011a700
xor edx, edx
lea r8d, [r12 + 0x40]
lea rcx, [rbx + 0x88]
call fcn.14011a700
xor edx, edx
lea r8d, [r12 + 0x10]
lea rcx, [rbx + 0xc8]
call fcn.14011a700
lea eax, [rbp - 1]
cmp eax, 0x3f
ja 0x1401f8c3e
cmp edi, 0x40
ja 0x1401f8c3e
mov qword [rbx + 0xe0], rbp
movabs rax, 0xbb67ae8584caa73b
mov qword [rbx + 0x90], rax
mov ecx, edi
xor ecx, 0x10100
movabs rax, 0x3c6ef372fe94f82b
mov qword [rbx + 0x98], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rbx + 0xa0], rax
movabs rax, 0x510e527fade682d1
mov qword [rbx + 0xa8], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rbx + 0xb0], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rbx + 0xb8], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rbx + 0xc0], rax
movabs rax, 0x6a09e667f3bcc908
shl ecx, 8
xor rcx, rbp
xor rcx, rax
mov eax, edi
mov qword [rbx + 0x88], rcx
mov qword [rbx + 0xc8], r12
mov qword [rbx + 0xd0], r12
mov qword [rbx + 0xd8], r12
cmp rdi, 0x80
jae 0x1401f8c1d
lea rcx, [rbx + 8]
mov r8d, 0x80
add rcx, rax
sub r8, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
test edi, edi
je 0x1401f8c3a
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call fcn.1401f9c30
mov qword [rbx + 0xd8], 0x80
mov al, 1
jmp 0x1401f8c40
xor al, al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1401f8c60
Capabilities:
Hash data using sha1

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