joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002fe0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [rbp + 0x20], r14d
cmp qword [r8 + 0x18], 7
jbe 0x14000300f
mov r8, qword [r8]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor edx, edx
lea r9d, [rdx + 2]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140003040
mov dword [rbx], eax
mov byte [rbx + 0x20], r14b
jmp 0x1400030ee
mov r8d, dword [rbp + 0x20]
shr r8, 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], r14
mov edx, 0x20
lea rcx, [rbp - 0x28]
call fcn.140007a20
nop
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rax, qword [rbp - 0x28]
cmp qword [rdi + 0x18], 7
jbe 0x14000307d
mov rdi, qword [rdi]
lea rcx, [rbp + 0x20]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov r9d, 2
mov r8, rdi
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140003106
mov dword [rbx], eax
mov byte [rbx + 0x20], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x1400030ee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400030e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400031d4
call fcn.1400256e4
mov rax, rbx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, dword [rbp + 0x20]
shr rcx, 1
dec rcx
mov r8, qword [rbp - 0x18]
cmp rcx, r8
ja 0x140003131
mov qword [rbp - 0x18], rcx
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rax, qword [rbp - 0x28]
mov word [rax + rcx*2], r14w
jmp 0x140003181
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rbp - 0x10]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x140003175
mov qword [rbp - 0x18], rcx
lea r9, [rbp - 0x28]
cmp rdi, 7
cmova r9, qword [rbp - 0x28]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x14000316a
movzx eax, r14w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r14w
jmp 0x140003181
mov r9, rdx
lea rcx, [rbp - 0x28]
call fcn.140007cb0
lea rdx, [rbp - 0x28]
mov rcx, rbx
call fcn.1400021c0
mov byte [rbx + 0x20], 1
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x1400030ee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400030e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400030e9
call fcn.140036a34
int3
Function at 0x140014960
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x30
lea rsi, [rcx + 8]
mov rbx, rdx
mov edx, dword [rsi]
lea rax, [rsp + 0x50]
sub edx, dword [rcx]
mov r14, rcx
mov rcx, qword [rcx]
xor ebp, ebp
xor r9d, r9d
mov dword [rsp + 0x50], ebp
mov r8d, 0x40000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x140014ac8
mov r9, qword [rbx + 0x10]
mov edx, dword [rsp + 0x50]
mov qword [rsp + 0x58], rdi
lea rdi, [rbx + 0x10]
cmp rdx, r9
ja 0x1400149d9
mov qword [rdi], rdx
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400149d3
mov rax, qword [rbx]
lea rsi, [r14 + 8]
lea rdi, [rbx + 0x10]
mov word [rax + rdx*2], bp
jmp 0x140014a29
mov r10, qword [rbx + 0x18]
mov rcx, rdx
mov rax, r10
sub rcx, r9
sub rax, r9
cmp rcx, rax
ja 0x140014a1b
mov qword [rdi], rdx
mov r8, rbx
cmp r10, 7
jbe 0x1400149fd
mov r8, qword [rbx]
lea rdi, [r8 + r9*2]
test rcx, rcx
je 0x140014a0c
movzx eax, bp
rep stosw word [rdi], ax
mov word [r8 + rdx*2], bp
lea rsi, [r14 + 8]
lea rdi, [rbx + 0x10]
jmp 0x140014a29
mov r9, rcx
mov rdx, rcx
mov rcx, rbx
call fcn.140007cb0
cmp qword [rbx + 0x18], 7
mov r9, rbx
jbe 0x140014a36
mov r9, qword [rbx]
mov edx, dword [rsi]
lea rax, [rsp + 0x50]
sub edx, dword [r14]
mov r8d, 0x40000001
mov rcx, qword [r14]
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov esi, eax
test eax, eax
je 0x140014ac3
mov ecx, dword [rsp + 0x50]
mov r8, qword [rdi]
cmp rcx, r8
ja 0x140014a79
mov qword [rdi], rcx
cmp qword [rbx + 0x18], 7
jbe 0x140014a73
mov rbx, qword [rbx]
mov word [rbx + rcx*2], bp
jmp 0x140014ac1
mov r9, qword [rbx + 0x18]
mov rdx, rcx
mov rax, r9
sub rdx, r8
sub rax, r8
cmp rdx, rax
ja 0x140014ab6
mov qword [rdi], rcx
cmp r9, 7
jbe 0x140014a9a
mov rbx, qword [rbx]
lea rdi, [rbx + r8*2]
test rdx, rdx
je 0x140014aac
movzx eax, bp
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [rbx + rax*2], bp
jmp 0x140014ac1
mov r9, rdx
mov rcx, rbx
call fcn.140007cb0
mov eax, esi
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140014ae0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x40
mov rbp, qword [rcx]
lea rax, [rsp + 0x60]
xor r14d, r14d
mov rbx, rdx
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x60], r14d
lea r8d, [r14 + 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x140014c09
mov rdx, qword [rbx]
mov qword [rsp + 0x68], rsi
mov rsi, qword [rbx + 8]
mov rcx, rsi
mov qword [rsp + 0x70], rdi
mov edi, dword [rsp + 0x60]
sub rcx, rdx
cmp rdi, rcx
jae 0x140014b4b
lea rax, [rdx + rdi]
jmp 0x140014b7a
jbe 0x140014b7e
mov rax, qword [rbx + 0x10]
sub rax, rdx
cmp rdi, rax
jbe 0x140014b66
mov rdx, rdi
mov rcx, rbx
call fcn.140015790
jmp 0x140014b7e
sub rdi, rcx
xor edx, edx
mov r8, rdi
mov rcx, rsi
call fcn.140047b00
lea rax, [rdi + rsi]
mov qword [rbx + 8], rax
mov r9, qword [rbx]
lea rax, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov rcx, rbp
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov esi, eax
test eax, eax
je 0x140014bff
mov rbp, qword [rbx + 8]
mov rdx, qword [rbx]
mov rcx, rbp
mov edi, dword [rsp + 0x60]
sub rcx, rdx
cmp rdi, rcx
jae 0x140014bca
lea rcx, [rdx + rdi]
mov qword [rbx + 8], rcx
jmp 0x140014bfd
jbe 0x140014bfd
mov rax, qword [rbx + 0x10]
sub rax, rdx
cmp rdi, rax
jbe 0x140014be5
mov rdx, rdi
mov rcx, rbx
call fcn.140015790
jmp 0x140014bfd
sub rdi, rcx
xor edx, edx
mov r8, rdi
mov rcx, rbp
call fcn.140047b00
lea rax, [rdi + rbp]
mov qword [rbx + 8], rax
mov eax, esi
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rbp
pop rbx
ret
Function at 0x140015150
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbp, qword [rdx + 8]
xor ebx, ebx
sub rbp, qword [rdx]
mov r15, rdx
mov r12, qword [r8 + 8]
mov r13, r8
mov qword [rcx], rbx
mov r14, rcx
mov qword [rcx + 8], rbx
mov qword [rcx + 0x10], rbx
mov rdx, qword [rdx + 8]
sub rdx, qword [r15]
je 0x1400151d4
movabs rax, 0x7fffffffffffffff
cmp rdx, rax
ja 0x140015217
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
call fcn.140009a50
mov rdx, qword [r15]
mov rdi, qword [r15 + 8]
mov rsi, qword [r14]
sub rdi, rdx
mov r8, rdi
mov rcx, rsi
call fcn.140047460
lea rax, [rdi + rsi]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov qword [r14 + 8], rax
test rbp, rbp
je 0x140015201
mov r8, qword [r13]
nop dword [rax]
xor edx, edx
mov rax, rbx
div r12
mov rax, qword [r15]
movzx ecx, byte [rdx + r8]
xor cl, byte [rax + rbx]
mov rax, qword [r14]
mov byte [rbx + rax], cl
inc rbx
cmp rbx, rbp
jb 0x1400151e0
mov rbx, qword [rsp + 0x70]
mov rax, r14
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400062a0
int3
Function at 0x140015220
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi

Disassembly:
push rbx
push rdi
sub rsp, 0x78
mov rax, qword [rdx + 8]
mov rdi, rdx
sub rax, qword [rdx]
mov rbx, rcx
cmp rax, 0x10
jne 0x14001534c
lea r9d, [rax + 8]
mov dword [rsp + 0x20], 0xf0000040
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14001536f
mov rax, qword [rdi]
lea rdx, [rsp + 0x48]
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x90], rbp
xor ebp, ebp
mov dword [rsp + 0x48], 0x208
mov dword [rsp + 0x4c], 0x660e
mov dword [rsp + 0x50], 0x10
movups xmm0, xmmword [rax]
mov qword [rsp + 0x70], rsi
lea r8d, [rbp + 0x1c]
lea rsi, [rbx + 8]
mov qword [rsp + 0x28], rsi
movups xmmword [rsp + 0x54], xmm0
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140015392
mov rcx, qword [rsi]
lea r9, [rsp + 0x98]
lea r8, [rbx + 0x10]
mov dword [rsp + 0x98], 4
lea edx, [rbp + 8]
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
je 0x1400153b5
mov rcx, qword [rsi]
lea r8, [rsp + 0xa0]
shr dword [rbx + 0x10], 3
lea edx, [rbp + 4]
xor r9d, r9d
mov dword [rsp + 0xa0], 2
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140015329
mov rbp, qword [rsp + 0x90]
mov rax, rbx
mov rsi, qword [rsp + 0x70]
add rsp, 0x78
pop rdi
pop rbx
ret
lea rdx, str._Error_setting_the_chaining_mode
lea rcx, [rsp + 0x30]
call fcn.140001700
lea rdx, [0x140060de0]
lea rcx, [rsp + 0x30]
call fcn.1400274c8
int3
lea rdx, str.Bad_key_size.
lea rcx, [rsp + 0x30]
call fcn.140001700
lea rdx, [0x140060de0]
lea rcx, [rsp + 0x30]
call fcn.1400274c8
int3
lea rdx, str.Failed_to_acquire_cryptographic_context.
lea rcx, [rsp + 0x30]
call fcn.140001700
lea rdx, [0x140060de0]
lea rcx, [rsp + 0x30]
call fcn.1400274c8
int3
lea rdx, str.Failed_to_import_key.
lea rcx, [rsp + 0x30]
call fcn.140001700
lea rdx, [0x140060de0]
lea rcx, [rsp + 0x30]
call fcn.1400274c8
int3
lea rdx, str.Failed_to_get_block_size.
lea rcx, [rsp + 0x30]
call fcn.140001700
lea rdx, [0x140060de0]
lea rcx, [rsp + 0x30]
call fcn.1400274c8
int3
Function at 0x140015ce0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbp, rcx
mov dword [rsp + 0x78], 0x105
mov ecx, 0x20a
call fcn.140037b8c
mov rbx, rax
test rax, rax
je 0x140015d59
nop dword [rax]
lea r9, [rsp + 0x78]
mov r8d, dword [rsp + 0x78]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
mov esi, eax
test eax, eax
jne 0x140015d6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140015ec4
mov rcx, rbx
call fcn.140037b78
mov ecx, dword [rsp + 0x78]
add rcx, rcx
call fcn.140037b8c
mov rbx, rax
test rax, rax
jne 0x140015d10
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor r15d, r15d
mov edi, r15d
movabs r14, 0x5c003a0041
mov qword [rsp + 0x80], r14
lea eax, [rdi + 0x41]
mov word [rsp + 0x80], ax
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x140015ddf
mov rdx, rbp
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
mov esi, eax
test eax, eax
jne 0x140015deb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [rsp + 0x80]
mov rdx, rbp
lea rcx, str.____Not_mounted:__s_____s__error:_0x_X_n
call fcn.140001dd0
inc edi
cmp edi, 0x1a
jb 0x140015d82
jmp 0x140015ec4
lea r8, [rsp + 0x80]
mov rdx, rbp
lea rcx, str.___Mounted:__s_____s_n
call fcn.140001dd0
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea rax, [rsp + 0x80]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x140015e22
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x20]
call fcn.140001f70
nop
mov rdx, qword [0x140063d20]
cmp rdx, qword [0x140063d28]
je 0x140015e75
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rdx + 0x10], xmm1
mov edx, 7
mov word [rsp + 0x20], r15w
add qword [0x140063d20], 0x20
jmp 0x140015e8b
lea r8, [rsp + 0x20]
lea rcx, [0x140063d18]
call fcn.14000c1c0
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140015ec4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015ebf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015ee4
call fcn.1400256e4
test rbx, rbx
je 0x140015ed1
mov rcx, rbx
call fcn.140037b78
mov eax, esi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140036a34
int3
Function at 0x140015ef0
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push rdi
sub rsp, 0x440
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001601c
lea rax, [rsp + 0x20]
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140015f22
dec rcx
cmp word [rsp + 0x20], 0x5c
jne 0x140016013
mov qword [rsp + 0x458], rbp
mov qword [rsp + 0x460], rsi
xor esi, esi
mov qword [rsp + 0x450], rbx
nop word [rax + rax]
cmp word [rsp + 0x22], 0x5c
jne 0x140015ffb
cmp word [rsp + 0x24], 0x3f
jne 0x140015ffb
cmp word [rsp + 0x26], 0x5c
jne 0x140015ffb
lea rbx, [rsp + 0x20]
cmp word [rbx + rcx*2], 0x5c
lea rbx, [rbx + rcx*2]
jne 0x140015ffb
mov r8d, 0x104
mov word [rbx], si
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov word [rbx], 0x5c
test eax, eax
je 0x140015ffb
lea rcx, [rsp + 0x20]
call fcn.140015ce0
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x140015ffb
lea rax, [rsp + 0x20]
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], si
jne 0x140015fe3
dec rcx
cmp word [rsp + 0x20], 0x5c
je 0x140015f60
mov rbx, qword [rsp + 0x450]
mov rbp, qword [rsp + 0x458]
mov rsi, qword [rsp + 0x460]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
add rsp, 0x440
pop rdi
ret
Function at 0x140018340
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x40
cmp qword [rcx + 0x18], 7
mov rbx, rcx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], r14
jbe 0x14001836b
mov rcx, qword [rcx]
lea rsi, [rbx + 0x18]
jmp 0x14001836f
lea rsi, [rcx + 0x18]
xor r15d, r15d
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14001845a
cmp qword [0x140063db8], 0xf
lea rdx, [0x140063da0]
mov dword [rsp + 0x60], r15d
lea rdi, [rbx + 0x18]
jbe 0x1400183c9
mov rdx, qword [0x140063da0]
mov rdi, rsi
mov r8d, dword [0x140063db0]
lea r9, [rsp + 0x60]
mov rcx, r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x60]
mov rsi, qword [0x140063db0]
test eax, eax
je 0x14001841f
cmp rcx, rsi
jne 0x14001841f
cmp qword [rbx + 0x18], 7
mov rdx, rbx
jbe 0x140018408
mov rdx, qword [rbx]
lea rdi, [rbx + 0x18]
lea rcx, str.___Requirements__Created:__s_n
call fcn.140001dd0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001847e
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rdi], 7
mov rdx, rbx
jbe 0x140018438
mov rdx, qword [rbx]
lea rdi, [rbx + 0x18]
mov r9, rbp
mov qword [rsp + 0x20], rsi
mov r8d, eax
lea rcx, str.____Requirements__Can_t_write:__s__error:_0x_X___zu__zu_n
call fcn.140001dd0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001847e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rsi], 7
mov rdx, rbx
jbe 0x14001846c
mov rdx, qword [rbx]
mov r8d, eax
lea rcx, str.____Requirements__Can_t_open:__s__error:_0x_X_n
call fcn.140001dd0
mov rdi, rsi
mov r14, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rdx, qword [rdi]
cmp rdx, 7
jbe 0x1400184c7
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400184c2
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400184eb
mov rcx, r8
call fcn.1400256e4
mov edx, 0x20
mov qword [rbx + 0x10], r15
mov rcx, rbx
mov qword [rdi], 7
mov word [rbx], r15w
add rsp, 0x40
pop r15
pop rdi
pop rbx
jmp fcn.1400256e4
call fcn.140036a34
int3
Function at 0x1400194d0
Capabilities:
Encrypt or decrypt via wincrypt
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov r15, r8
mov rsi, rdx
mov r14, rcx
xor r12d, r12d
mov dword [rbp + 0x7f], r12d
mov dword [rbp + 0x67], r12d
mov rdx, qword [rcx]
lea rcx, [rbp - 9]
call fcn.140015220
nop
mov rax, qword [r14 + 8]
mov rbx, qword [rax]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov edi, r12d
mov qword [rbp - 0x11], r12
test rbx, rbx
je 0x140019560
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x1400196a0
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.140009a50
mov r8, rbx
xor edx, edx
mov rbx, qword [rbp - 0x21]
mov rcx, rbx
call fcn.140047b00
mov rdi, qword [rbp - 0x11]
jmp 0x140019564
mov rbx, qword [rbp - 0x21]
mov qword [rbp + 0xf], r12
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x27], r12
mov dword [rbp + 0x1f], esi
shr rsi, 0x20
mov dword [rbp + 0x23], esi
mov rax, qword [r14 + 0x10]
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x67]
mov r8d, r15d
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001962e
mov esi, dword [rbp + 0x67]
cmp rsi, r15
jne 0x14001962e
xorps xmm0, xmm0
cvtsi2sd xmm0, rsi
mulsd xmm0, qword [0x1400590b0]
call fcn.1400472dc
mulsd xmm0, qword [0x1400590b8]
cvttsd2si rax, xmm0
mov dword [rbp - 0x29], eax
test eax, eax
je 0x140019602
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x14001962e
mov esi, dword [rbp + 0x67]
mov rax, qword [r14 + 0x10]
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x7f]
mov r8d, esi
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001962e
mov esi, dword [rbp + 0x67]
cmp dword [rbp + 0x7f], esi
je 0x140019631
mov esi, r12d
test rbx, rbx
je 0x140019666
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x14001965a
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001969a
mov rdx, rdi
mov rcx, rbx
call fcn.1400256e4
nop
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor edx, edx
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140036a34
nop
call fcn.1400062a0
int3
mov rdx, rcx
add rcx, 0x18
mov r8, qword [rdx + 8]
mov rdx, qword [rdx + 0x10]
jmp 0x1400194d0
Function at 0x140020820
Capabilities:
Create restart manager session
Encrypt or decrypt via wincrypt
Enumerate processes that use resource
Move file
Read file on windows
Write file on windows

Disassembly:
mov rcx, qword [rcx + 8]
jmp fcn.140018500

Function at 0x140021680
Capabilities:
Encrypt or decrypt via wincrypt
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov r15, r8
mov rsi, rdx
mov r14, rcx
xor r12d, r12d
mov dword [rbp + 0x7f], r12d
mov dword [rbp + 0x67], r12d
mov rdx, qword [rcx]
lea rcx, [rbp - 9]
call fcn.140015220
nop
mov rax, qword [r14 + 8]
mov rbx, qword [rax]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov edi, r12d
mov qword [rbp - 0x11], r12
test rbx, rbx
je 0x140019560
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x1400196a0
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.140009a50
mov r8, rbx
xor edx, edx
mov rbx, qword [rbp - 0x21]
mov rcx, rbx
call fcn.140047b00
mov rdi, qword [rbp - 0x11]
jmp 0x140019564
mov rbx, qword [rbp - 0x21]
mov qword [rbp + 0xf], r12
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x27], r12
mov dword [rbp + 0x1f], esi
shr rsi, 0x20
mov dword [rbp + 0x23], esi
mov rax, qword [r14 + 0x10]
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x67]
mov r8d, r15d
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001962e
mov esi, dword [rbp + 0x67]
cmp rsi, r15
jne 0x14001962e
xorps xmm0, xmm0
cvtsi2sd xmm0, rsi
mulsd xmm0, qword [0x1400590b0]
call fcn.1400472dc
mulsd xmm0, qword [0x1400590b8]
cvttsd2si rax, xmm0
mov dword [rbp - 0x29], eax
test eax, eax
je 0x140019602
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x14001962e
mov esi, dword [rbp + 0x67]
mov rax, qword [r14 + 0x10]
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x7f]
mov r8d, esi
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001962e
mov esi, dword [rbp + 0x67]
cmp dword [rbp + 0x7f], esi
je 0x140019631
mov esi, r12d
test rbx, rbx
je 0x140019666
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x14001965a
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001969a
mov rdx, rdi
mov rcx, rbx
call fcn.1400256e4
nop
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor edx, edx
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140036a34
nop
call fcn.1400062a0
int3
mov rdx, rcx
add rcx, 0x18
mov r8, qword [rdx + 8]
mov rdx, qword [rdx + 0x10]
jmp 0x1400194d0