joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140051eb0
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rbx, rdx
mov rdi, rcx
xor r15d, r15d
mov qword [rcx], r15
lea r14, [rcx + 8]
mov dword [r14], r15d
mov rcx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x140051ef1
mov rcx, qword [rdx]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, dword [rdx + 0x10]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
js 0x140051fec
cmp qword [rbx + 0x10], 0
jbe 0x140051f29
cmp dword [r14], 0
je 0x14005200f
mov ebp, dword [r14]
mov ecx, ebp
call fcn.14005f8e4
mov rsi, rax
test rax, rax
je 0x140051f4a
mov r8d, ebp
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
jmp 0x140051f4d
mov rsi, r15
lea rax, [rsp + 0x98]
cmp rdi, rax
je 0x140051f67
mov rcx, qword [rdi]
mov qword [rdi], rsi
test rcx, rcx
je 0x140051f74
jmp 0x140051f6f
test rsi, rsi
je 0x140051f74
mov rcx, rsi
call fcn.14005f1b8
mov r9, qword [rdi]
test r9, r9
je 0x140052032
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140051f8e
mov rbx, qword [rbx]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov r8d, 1
mov edx, eax
mov rcx, rbx
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
js 0x140051fc9
mov rax, rdi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Failed_to_base64_decode_the_received_string.
lea rcx, [rsp + 0x48]
call fcn.140039400
lea rdx, [0x1401061c8]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Failed_to_determine_the_length_of_the_output_buffer_for_base64_decode.
lea rcx, [rsp + 0x48]
call fcn.140039400
lea rdx, [0x1401061c8]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Malformed_base64_encoding_detected.
lea rcx, [rsp + 0x48]
call fcn.140039400
lea rdx, [0x1401061c8]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x48]
call fcn.140052050
lea rdx, [0x140106320]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400527e0
Capabilities:
Hash data via bcrypt

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rbx, r8
mov r15, rdx
mov r14, rcx
xorps xmm0, xmm0
movdqu xmmword [rax - 0x80], xmm0
mov r8, qword [rcx + 0x18]
test r8, r8
je 0x140052847
mov eax, dword [r8 + 8]
test eax, eax
je 0x140052847
nop word [rax + rax]
lea ecx, [rax + 1]
lock cmpxchg dword [r8 + 8], ecx
je 0x1400528c1
mov eax, dword [r8 + 8]
test eax, eax
jne 0x140052830
mov rsi, qword [rsp + 0x30]
xor r12d, r12d
mov qword [rsp + 0x38], r12
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov rcx, rbx
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14005286d
mov rcx, qword [rbx]
mov rdi, qword [rbx + 0x10]
add rdi, rcx
cmp rdx, 0x10
jb 0x14005287d
mov rbx, qword [rbx]
sub rdi, rbx
je 0x1400528d8
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
ja 0x140052a09
mov rdx, rdi
test rdi, rdi
cmove rdx, r12
lea rcx, [rsp + 0x38]
call fcn.140052a40
mov r8, rdi
mov rdx, rbx
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
add rdi, rbx
jmp 0x1400528e8
mov rax, qword [r14 + 0x10]
mov qword [rsp + 0x28], rax
mov rsi, qword [r14 + 0x18]
mov qword [rsp + 0x30], rsi
jmp 0x14005284c
mov r8, rdi
mov rdx, rbx
xor ecx, ecx
call sub.VCRUNTIME140.dll_memmove
mov rbx, r12
mov qword [rsp + 0x40], rdi
sub rdi, rbx
mov rbp, qword [rsp + 0x28]
xor r9d, r9d
mov r8d, edi
mov rdx, rbx
mov rcx, qword [rbp + 0x10]
call sub.ncrypt.dll_BCryptHashData
test eax, eax
js 0x140052a0f
xor r9d, r9d
mov r8d, dword [r14 + 8]
mov rdx, qword [r14]
mov rcx, qword [rbp + 0x10]
call sub.ncrypt.dll_BCryptFinishHash
test eax, eax
js 0x1400529e6
mov rdx, qword [r14]
mov r8d, dword [r14 + 8]
add r8, rdx
mov qword [r15], r12
mov qword [r15 + 8], r12
mov qword [r15 + 0x10], r12
movzx r9d, byte [rsp + 0xb0]
mov rcx, r15
call fcn.140052630
nop
test rbx, rbx
je 0x140052988
mov rdx, qword [rsp + 0x48]
sub rdx, rbx
cmp rdx, 0x1000
jb 0x14005297f
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x1400529df
mov rbx, rcx
mov rcx, rbx
call fcn.14005f1b8
nop
test rsi, rsi
je 0x1400529c0
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1400529c0
mov rbx, qword [rsp + 0x30]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400529c0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, r15
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, str.Failed_to_extract_the_hash_data.
lea rcx, [rsp + 0x68]
call fcn.140039400
lea rdx, [0x1401061c8]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.140013f90
int3
lea rdx, str.Failed_to_hash_data.
lea rcx, [rsp + 0x50]
call fcn.140039400
lea rdx, [0x1401061c8]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140052c80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov dword [rsp + 0x58], 4
mov dword [r8], eax
lea r9, [rsp + 0x58]
mov rcx, qword [rcx]
mov rbx, r8
mov dword [rsp + 0x40], eax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140052cd9
mov eax, dword [rsp + 0x40]
mov dword [rbx], eax
mov al, 1
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x140052cf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rbp, r8
mov r15, rdx
mov r12, rcx
mov dword [r11 + 0x20], 1
mov dword [rsp + 0x70], 0
xor sil, sil
lea rax, [r11 + 8]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], 0
lea r9, [r11 + 0x20]
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140052e0f
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x140052e0f
mov ecx, eax
mov eax, 2
mul rcx
mov r14, rax
mov rbx, 0xffffffffffffffff
cmovo r14, rbx
mov rcx, r14
call fcn.14005f8e4
mov rdi, rax
test rax, rax
je 0x140052d96
mov r8, r14
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
jmp 0x140052d98
xor edi, edi
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x88]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140052ded
nop dword [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140052dd0
mov r8, rbx
mov rdx, rdi
mov rcx, rbp
call fcn.1400143b0
mov sil, 1
jmp 0x140052e00
xor r8d, r8d
lea rdx, [0x1400c70c0]
mov rcx, rbp
call fcn.1400143b0
nop
test rdi, rdi
je 0x140052e21
mov rcx, rdi
call fcn.14005f1b8
jmp 0x140052e21
xor r8d, r8d
lea rdx, [0x1400c70c0]
mov rcx, rbp
call fcn.1400143b0
movzx eax, sil
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x140052e80
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], 0
jne 0x140052e90
mov rcx, qword [rcx]
add eax, eax
mov dword [rsp + 0x28], eax
mov r9d, 1
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140052ecd
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov al, 1
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret
Function at 0x140052ee0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x28], 4
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140052f26
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov al, 1
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret
Function at 0x140062890
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x298
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, r9
mov rsi, rcx
mov dword [rsp + 0x38], r8d
xor ebp, ebp
mov qword [r9 + 0x10], rbp
mov rax, r9
cmp qword [r9 + 0x18], 8
jb 0x1400628d5
mov rax, qword [r9]
mov word [rax], bp
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, edx
xor r8d, r8d
mov rdx, qword [str.SOFTWARENitroPro13Settings]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x140062a1a
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140062a0f
movdqa xmm0, xmmword [0x1400c8c30]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], bp
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bp
jne 0x140062980
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400143b0
nop
lea rax, [rsp + 0x50]
cmp rbx, rax
je 0x1400629c9
mov rcx, rbx
call fcn.140013e20
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbx + 0x10], xmm1
mov edx, 7
mov word [rsp + 0x50], bp
jmp 0x1400629ce
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140062a0f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140062a09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140062a09
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005f1b8
nop
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14005f850
add rsp, 0x298
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140063f30
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, rdx
mov rbx, rcx
xor ecx, ecx
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x50], rcx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 7
mov word [rbx], cx
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140063fae
mov rdx, qword [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140063f90
mov rcx, rbx
call fcn.1400143b0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x140064660
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, r9
mov rsi, rcx
test r9, r9
jne 0x140064696
mov eax, r8d
jmp 0x140064721
mov ebx, dword [rsp + 0xc0]
cmp ebx, r8d
cmovae ebx, r8d
mov dword [rsp + 0x34], ebx
cmp rdi, rdx
je 0x1400646b8
mov r8d, ebx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
test ebx, ebx
je 0x14006471f
lea rax, [rsp + 0x34]
xor r9d, r9d
xor edx, edx
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
cmp dword [rsi + 0x10], 1
jne 0x1400646fc
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x14006471b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090005
setne byte [rsp + 0x30]
jne 0x14006476f
jmp 0x14006471b
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x14006471b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090005
setne byte [rsp + 0x30]
jne 0x140064739
mov ebx, dword [rsp + 0x34]
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005f850
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
lea r8, [rsp + 0x30]
lea rdx, str.Failed_to_decrypt_with_error_code:_
lea rcx, [rsp + 0x58]
call fcn.140064530
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14004d650
lea rdx, [0x1401061c8]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, [rsp + 0x30]
lea rdx, str.Failed_to_decrypt_with_error_code:_
lea rcx, [rsp + 0x58]
call fcn.140064530
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14004d650
lea rdx, [0x1401061c8]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400647f0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Generate random numbers via winapi

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, qword [rsp + 0xf0]
cmp edx, 0x6801
mov r14d, r9d
mov r15, r8
mov ebp, edx
mov dword [rcx + 0x14], edx
mov esi, 0x18
mov dword [rsp + 0x20], 0xf0000000
mov r13d, 1
mov rbx, rcx
cmove esi, r13d
xor r8d, r8d
mov r9d, esi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
xor r12d, r12d
test eax, eax
jne 0x1400648b1
mov r9d, esi
mov dword [rsp + 0x20], 8
xor r8d, r8d
lea rdx, str.Nitro5Container
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400648b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x8009000f
jne 0x1400649b1
mov r9d, esi
mov dword [rsp + 0x20], r12d
xor r8d, r8d
lea rdx, str.Nitro5Container
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400649b1
xorps xmm0, xmm0
mov dword [rsp + 0x38], 0x208
xorps xmm1, xmm1
mov dword [rsp + 0x3c], ebp
mov r8, r14
mov dword [rsp + 0x40], r14d
mov rdx, r15
lea rcx, [rsp + 0x44]
movdqu xmmword [rsp + 0x44], xmm0
movdqu xmmword [rsp + 0x54], xmm1
call fcn.1400bd846
mov rcx, qword [rbx]
lea rsi, [rbx + 8]
mov qword [rsp + 0x28], rsi
lea r8d, [r14 + 0xc]
xor r9d, r9d
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x1400649b1
lea eax, [rbp - 0x660e]
test eax, 0xfffffffd
je 0x14006492c
mov dword [rbx + 0x10], r12d
movzx eax, r13b
jmp 0x1400649b3
test rdi, rdi
je 0x14006497c
mov r8, qword [rdi]
test r8, r8
je 0x14006494c
mov rcx, qword [rsi]
xor r9d, r9d
mov edx, r13d
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x1400649b1
mov eax, dword [rdi + 8]
cmp eax, r13d
jbe 0x140064971
mov rcx, qword [rsi]
lea r8, [rsp + 0x30]
xor r9d, r9d
mov dword [rsp + 0x30], eax
lea edx, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x1400649b1
mov eax, dword [rdi + 0xc]
mov dword [rbx + 0x10], eax
cmp qword [rdi], r12
jne 0x1400649ab
mov rcx, qword [rbx]
lea r8, [rsp + 0x68]
mov edx, reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400649b1
mov rcx, qword [rsi]
lea r8, [rsp + 0x68]
xor r9d, r9d
mov edx, r13d
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x1400649b1
movzx eax, r13b
jmp 0x1400649b3
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005f850
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400649e0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
lea r14, [rcx + 8]
mov qword [rcx], 0
lea eax, [rdx - 0x8003]
mov qword [r14], 0
mov rbx, rcx
mov dword [rsp + 0x20], 0xf0000000
mov edi, 1
mov ecx, 0x18
cmp eax, edi
mov esi, edx
cmova edi, ecx
xor r8d, r8d
mov r9d, edi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140064a8f
mov r9d, edi
mov dword [rsp + 0x20], 8
xor r8d, r8d
lea rdx, str.Nitro5Container
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140064a8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x8009000f
jne 0x140064aa5
mov r9d, edi
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rdx, str.Nitro5Container
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140064aa5
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x140064ba0
Capabilities:
Hash data via wincrypt

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14006da50
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xe0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, rdx
mov rdi, rcx
cmp qword [rcx + 0x18], 8
jb 0x14006da8e
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14006dab2
test rbx, rbx
je 0x14006daae
mov dword [rbx], 0
call fcn.14006fe10
mov qword [rbx + 8], rax
mov al, 1
jmp 0x14006db07
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov dword [rsp + 0x20], 0
call fcn.14006fe10
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.14006e360
cmp dword [rax], 3
jne 0x14006daf5
test rbx, rbx
je 0x14006db05
mov dword [rbx], 0
call fcn.14006fe10
jmp 0x14006db01
test rbx, rbx
je 0x14006db2c
call fcn.14006fe10
mov dword [rbx], ebp
mov qword [rbx + 8], rax
xor al, al
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14005f850
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rdx, str.boost::filesystem::create_directory
lea rcx, [rsp + 0x48]
call fcn.1400382e0
nop
call fcn.14006e500
mov r8, rax
mov edx, ebp
lea rcx, [rsp + 0x38]
call fcn.14006aa30
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x20], xmm0
lea r9, [rsp + 0x20]
mov r8, rdi
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.14006d380
lea rdx, [0x140106e70]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14006e110
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rbp, rdx
mov dword [rsp + 0x20], esi
mov rdi, rcx
call fcn.14006fe10
cmp qword [rdi + 0x18], 8
mov rcx, rdi
mov qword [rsp + 0x28], rax
jb 0x14006e147
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14006e16e
lea r8, [rsp + 0x20]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14006dfe0
mov esi, dword [rsp + 0x20]
mov ebx, dword [rax]
jmp 0x14006e1a7
call fcn.14006fe10
bt ebx, 0xa
jae 0x14006e19e
mov rcx, rdi
call fcn.14006dd70
test al, al
je 0x14006e197
test bl, 0x10
mov eax, listen
mov ebx, 4
cmovne ebx, eax
jmp 0x14006e1a7
mov ebx, 9
jmp 0x14006e1ab
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
test ebx, ebx
je 0x14006e1ad
xor esi, esi
lea r9, str.boost::filesystem::remove
mov r8, rbp
mov rdx, rdi
mov ecx, esi
call fcn.14006dbe0
test al, al
je 0x14006e1c9
xor al, al
jmp 0x14006e1d6
mov r8, rbp
mov edx, ebx
mov rcx, rdi
call fcn.14006e1f0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14006e1f0
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
cmp edx, 1
jne 0x14006e229
test r8, r8
je 0x14006e2dd
xor eax, eax
mov dword [r8], eax
call fcn.14006fe10
mov qword [rdi + 8], rax
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea eax, [rdx - 3]
test eax, 0xfffffff7
je 0x14006e27b
cmp qword [rcx + 0x18], 8
jb 0x14006e23d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14006e2c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
ja 0x14006e262
movabs rdx, 0x2000000020800c
bt rdx, rax
jb 0x14006e2c3
cmp eax, 0x7b
je 0x14006e2c3
cmp eax, 0x57
je 0x14006e2c3
cmp eax, 0xa1
je 0x14006e2c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14006e2c5
cmp qword [rcx + 0x18], 8
jb 0x14006e285
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14006e2c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
ja 0x14006e2aa
movabs rdx, 0x2000000020800c
bt rdx, rax
jb 0x14006e2c3
cmp eax, 0x7b
je 0x14006e2c3
cmp eax, 0x57
je 0x14006e2c3
cmp eax, 0xa1
je 0x14006e2c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14006e2c5
xor eax, eax
lea r9, str.boost::filesystem::remove
mov r8, rdi
mov rdx, rbx
mov ecx, eax
call fcn.14006dbe0
test al, al
je 0x14006e2ea
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rdi
ret
Function at 0x14006e360
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x14006e3a0
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x14006e3c0
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.14006dfe0
jmp 0x14006e4d3
xor r12d, r12d
lea r15d, [r12 + 3]
bt ebp, 0xa
jae 0x14006e4a6
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14006e3df
mov rdx, qword [rdi]
movdqa xmm0, xmmword [0x1400c8c30]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r12w
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], r12w
jne 0x14006e400
lea rcx, [rsp + 0x50]
call fcn.1400143b0
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x50]
call fcn.140013e20
nop
cmp rbx, 0xffffffffffffffff
jne 0x14006e471
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.14006dfe0
nop
jmp 0x14006e4d3
mov rcx, rdi
call fcn.14006dd70
test al, al
jne 0x14006e49c
mov edx, ebp
mov rcx, rdi
call fcn.14006de80
mov dword [rsi], 9
mov dword [rsi + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x14006e4d3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test r14, r14
je 0x14006e4b7
mov dword [r14], r12d
call fcn.14006fe10
mov qword [r14 + 8], rax
mov edx, ebp
mov rcx, rdi
call fcn.14006de80
test bpl, 0x10
jne 0x14006e4cd
mov r15d, 2
mov dword [rsi], r15d
mov dword [rsi + 4], eax
mov rax, rsi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14005f850
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret