joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff6c5ce55c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x3138], 0
lea rbx, [rcx + 0x3140]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x7ff6c5ce5667
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x7ff6c5ce561a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.7ff6c5cf19e0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.7ff6c5cf1510
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x3138]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x3148]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x7ff6c5e1ab60]
cmovne rcx, rax
call qword [sym.imp.ucrtbase.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x7ff6c5ce566f
mov rcx, rbx
call fcn.7ff6c5cf1510
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x7ff6c5ced940
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x7ff6c5e1ab58]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x30d4], ecx
test rbx, rbx
je 0x7ff6c5ced9af
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.7ff6c5ced9c0
lea rdx, [0x7ff6c5da2ce8]
mov rcx, rbx
mov rdi, rax
call fcn.7ff6c5ce37e0
mov rbx, rax
test rax, rax
je 0x7ff6c5ced9aa
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ucrtbase.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x7ff6c5cf0090
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x7ff6c5e1ab58]
cmp byte [rbx + 0x30d1], 0
jne 0x7ff6c5cf01e3
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x7ff6c5cf01dc
lea rdx, [0x7ff6c5da2ce4]
mov qword [rsp + 0x40], rdi
call fcn.7ff6c5ce37e0
mov rdi, rax
test rax, rax
je 0x7ff6c5cf01d7
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x38], rsi
call qword [sym.imp.ucrtbase.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x7ff6c5cf01c4
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call qword [sym.imp.ucrtbase.dll_fseek]
test eax, eax
jne 0x7ff6c5cf01c4
mov rcx, rdi
call qword [sym.imp.ucrtbase.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x7ff6c5cf01c4
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.ucrtbase.dll_fseek]
test eax, eax
jne 0x7ff6c5cf01c4
mov rbp, rsi
cmp rsi, 0xffffffffffffffff
je 0x7ff6c5cf01c4
mov rax, qword [0x7ff6c5e1ab58]
test rax, rax
je 0x7ff6c5cf0153
inc dword [rax + 0x3b0]
mov rdx, qword [0x7ff6c5e1ab68]
mov rcx, rbp
call qword [0x7ff6c5dd7010]
mov rsi, rax
test rax, rax
je 0x7ff6c5cf01c4
mov r9, rdi
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.ucrtbase.dll_fread]
mov rcx, rdi
cmp rax, rbp
je 0x7ff6c5cf018f
call qword [sym.imp.ucrtbase.dll_fclose]
jmp 0x7ff6c5cf01a0
call qword [sym.imp.ucrtbase.dll_fclose]
mov rdx, rbp
mov rcx, rsi
call fcn.7ff6c5ce5000
mov rax, qword [0x7ff6c5e1ab58]
test rax, rax
je 0x7ff6c5cf01b2
dec dword [rax + 0x3b0]
mov rdx, qword [0x7ff6c5e1ab68]
mov rcx, rsi
call qword [0x7ff6c5dd7018]
jmp 0x7ff6c5cf01cd
mov rcx, rdi
call qword [sym.imp.ucrtbase.dll_fclose]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov byte [rbx + 0x30d1], 1
movss xmm0, dword [rbx + 0x30d4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x7ff6c5cf0234
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x30d4], xmm0
jb 0x7ff6c5cf0234
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x7ff6c5cf0223
call fcn.7ff6c5ced940
mov dword [rbx + 0x30d4], 0
add rsp, 0x20
pop rbx
ret
mov byte [rbx + 0x398], 1
mov dword [rbx + 0x30d4], 0
add rsp, 0x20
pop rbx
ret
Function at 0x7ff6c5d04c20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x7ff6c5e1ab58]
mov rcx, qword [rax + 0x2070]
mov r10, qword [rax + 0x1c20]
movsxd rax, dword [rcx + 0x7c]
movups xmm0, xmmword [rcx + 0x174]
movss xmm4, dword [rcx + 0x174]
movss xmm3, dword [rcx + 0x178]
movss xmm2, dword [rcx + 0x17c]
movss xmm1, dword [rcx + 0x180]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x68
mov rax, qword [r10 + 0x270]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x210], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x270]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [r9 + 0x57]
mov rdx, qword [r10 + 0x270]
mov rcx, qword [rcx + 0x1a8]
add rsp, 0x38
jmp 0x7ff6c5cf9960

Function at 0x7ff6c5d04cf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x7ff6c5e1ab58]
mov rcx, qword [rax + 0x2070]
mov r9, qword [rax + 0x1c20]
movups xmm0, xmmword [r9 + 0x210]
movups xmmword [rcx + 0x174], xmm0
mov rax, qword [r9 + 0x270]
movups xmm0, xmmword [rcx + 0x154]
movss xmm4, dword [rcx + 0x154]
movss xmm3, dword [rcx + 0x158]
movss xmm2, dword [rcx + 0x15c]
movss xmm1, dword [rcx + 0x160]
movups xmmword [r9 + 0x210], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x270]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [rcx + 0x1f7]
mov rcx, qword [rcx + 0x1a8]
mov rdx, qword [r9 + 0x270]
add rsp, 0x38
jmp 0x7ff6c5cf9960
Function at 0x7ff6c5d1a410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
mov rbx, rcx
mov r11d, eax
mov r9d, eax
and r11d, 7
je 0x7ff6c5d1a444
cmp eax, r11d
jge 0x7ff6c5d1a435
call fcn.7ff6c5d13a60
mov eax, dword [rbx + 0x10]
mov ecx, r11d
shr dword [rbx + 0x14], cl
sub eax, r11d
mov dword [rbx + 0x10], eax
mov r9d, eax
xor r8d, r8d
test eax, eax
jle 0x7ff6c5d1a474
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx eax, byte [rbx + 0x14]
inc r8d
mov byte [rdx], al
lea rdx, [rdx + 1]
lea eax, [r9 - 8]
shr ecx, 8
mov dword [rbx + 0x14], ecx
mov r9d, eax
test eax, eax
jg 0x7ff6c5d1a453
mov dword [rbx + 0x10], eax
jns 0x7ff6c5d1a4a1
mov edx, dword [0x7ff6c5e1afd8]
mov rax, qword gs:[0x58]
mov ecx, 0x20
mov rax, qword [rax + rdx*8]
lea rdx, [0x7ff6c5da7e38]
mov qword [rcx + rax], rdx
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x7ff6c5d1a4d0
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x7ff6c5d1a4ba
xor dl, dl
jmp 0x7ff6c5d1a4c3
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x7ff6c5d1a4b1
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x7ff6c5d1a476
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x7ff6c5d1a545
mov edx, dword [0x7ff6c5e1afd8]
mov rax, qword gs:[0x58]
mov ecx, 0x20
mov rax, qword [rax + rdx*8]
lea rdx, [0x7ff6c5da7e48]
mov qword [rcx + rax], rdx
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x7ff6c5d1a55f
mov rcx, rbx
call fcn.7ff6c5d1fb80
test eax, eax
je 0x7ff6c5d1a538
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x7ff6c5d1fd80
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x78
mov rax, rdx
mov dword [rsp + 0x80], 1
mov rdx, qword [rcx]
cmp qword [rdx + 0x18], 0x10
jb 0x7ff6c5d1fd9f
mov rdx, qword [rdx]
mov dword [rsp + 0x28], 4
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
mov r9d, 4
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.advapi32.dll_RegSetValueExA]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0xf
lea r8d, [rax + 0x3d]
lea rdx, [0x7ff6c5da8618]
lea rcx, [rsp + 0x50]
call fcn.7ff6c5cd55f0
nop
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], 0xe
movsd xmm0, qword [0x7ff6c5da8658]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x7ff6c5da8660]
mov dword [rsp + 0x38], eax
movzx eax, word [0x7ff6c5da8664]
mov word [rsp + 0x3c], ax
mov byte [rsp + 0x3e], 0
xor r9d, r9d
mov r8b, 1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.7ff6c5cd4570
add rsp, 0x78
ret
Function at 0x7ff6c5d207f0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov rbx, rdx
test rcx, rcx
je 0x7ff6c5d2083b
movzx r10d, word [rcx + 6]
test r10d, r10d
je 0x7ff6c5d2083b
movzx eax, word [rcx + 0x14]
lea r11, [rcx + 0x18]
add r11, rax
xor r9d, r9d
test r10d, r10d
je 0x7ff6c5d2083b
lea rdx, [r11 + 0x10]
nop
mov ecx, dword [rdx - 4]
cmp r8d, ecx
jb 0x7ff6c5d2082f
add ecx, dword [rdx]
cmp r8d, ecx
jb 0x7ff6c5d20843
inc r9d
add rdx, 0x28
cmp r9d, r10d
jb 0x7ff6c5d20820
xor eax, eax
mov rbx, qword [rsp + 8]
ret
lea rcx, [r9 + r9*4]
lea rax, [r11 + rcx*8]
test rax, rax
je 0x7ff6c5d2083b
sub r8d, dword [rax + 0xc]
mov eax, dword [rax + 0x14]
mov ecx, r8d
add rcx, rbx
mov rbx, qword [rsp + 8]
add rax, rcx
ret

Function at 0x7ff6c5d20890
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rbp, rdx
mov rdi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.7ff6c5cd3380
mov rbx, rax
mov dword [rsp + 0x98], 1
mov dword [rsp + 0x90], 0xff
lea rdx, [0x7ff6c5e1aee8]
cmp qword [0x7ff6c5e1af00], 0x10
cmovae rdx, qword [0x7ff6c5e1aee8]
mov rcx, 0xffffffff80000001
call fcn.7ff6c5d209f0
mov rsi, rax
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x7ff6c5d20900
mov r8, qword [rbx]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbp
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor edx, edx
lea r9d, [rdx + 2]
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegGetValueA]
mov ebp, eax
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x7ff6c5d2096f
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x7ff6c5d2096a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff6c5d209d7
mov rcx, r8
call fcn.7ff6c5d5e4b0
mov byte [rbx], 0
xor esi, esi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x7ff6c5d209b6
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x7ff6c5d209b1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff6c5d209de
mov rcx, r8
call fcn.7ff6c5d5e4b0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov eax, ebp
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x7ff6c5d20a70
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [0x7ff6c5e1af00], 0x10
mov rbx, rdx
mov rdi, rcx
lea rdx, [0x7ff6c5e1aee8]
cmovae rdx, qword [0x7ff6c5e1aee8]
mov rcx, 0xffffffff80000001
call fcn.7ff6c5d209f0
cmp qword [rbx + 0x18], 0x10
mov rsi, rax
mov eax, dword [rbx + 0x10]
mov rcx, rbx
jb 0x7ff6c5d20ac0
mov rcx, qword [rbx]
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
jb 0x7ff6c5d20acd
mov rdx, qword [rdi]
mov dword [rsp + 0x28], eax
mov r9d, 1
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.advapi32.dll_RegSetValueExA]
mov rcx, rsi
mov ebp, eax
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x7ff6c5d20b29
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x7ff6c5d20b24
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff6c5d20b96
mov rcx, r8
call fcn.7ff6c5d5e4b0
xor esi, esi
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], rsi
mov byte [rdi], sil
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x7ff6c5d20b70
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x7ff6c5d20b6b
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff6c5d20b96
mov rcx, r8
call fcn.7ff6c5d5e4b0
mov qword [rbx + 0x10], rsi
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov qword [rbx + 0x18], 0xf
mov byte [rbx], sil
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x7ff6c5d20ba0
Capabilities:
Get uefi variable
Query environment variable

Disassembly:
push rbx
sub rsp, 0x430
mov r8d, 0x400
lea rdx, [rsp + 0x30]
lea rcx, [0x7ff6c5da8700]
call qword [sym.imp.kernel32.dll_ExpandEnvironmentStringsA]
lea rcx, [rsp + 0x30]
call qword [sym.imp.kernel32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x7ff6c5d20bf4
mov r8b, 1
lea rdx, [0x7ff6c5da8730]
mov rcx, rax
call fcn.7ff6c5d20210
test rax, rax
jne 0x7ff6c5d20c56
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeLibrary]
lea rcx, [rsp + 0x440]
call qword [sym.imp.kernel32.dll_GetFirmwareType]
cmp dword [rsp + 0x440], 2
jne 0x7ff6c5d20c4b
lea rcx, [0x7ff6c5da8790]
call fcn.7ff6c5cd4140
test eax, eax
je 0x7ff6c5d20c4b
xor r9d, r9d
lea rdx, [0x7ff6c5da87b0]
xor r8d, r8d
lea rcx, [0x7ff6c5da2188]
call qword [sym.imp.kernel32.dll_GetFirmwareEnvironmentVariableA]
test eax, eax
jne 0x7ff6c5d20c4b
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 1
je 0x7ff6c5d20c7c
call qword [sym.imp.kernel32.dll_GetLastError]
mov al, 1
add rsp, 0x430
pop rbx
ret
lea rcx, [rsp + 0x440]
call rax
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeLibrary]
cmp dword [rsp + 0x440], 0
je 0x7ff6c5d20bf4
lea rdx, [0x7ff6c5da8740]
jmp 0x7ff6c5d20c83
lea rdx, [0x7ff6c5da87d8]
xor eax, eax
mov dword [rsp + 0x28], 0x4e20
mov r9d, 0x1010
mov word [rsp + 0x20], ax
lea r8, [0x7ff6c5da86b4]
xor ecx, ecx
call fcn.7ff6c5cd50a0
xor al, al
add rsp, 0x430
pop rbx
ret
Function at 0x7ff6c5d7cd50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rsi, r9
mov r15, r8
mov r14, rdx
mov rbp, rcx
mov ecx, 0x30
call fcn.7ff6c5d5e474
mov rbx, rax
mov qword [rsp + 0xb0], rax
xor edi, edi
test rax, rax
je 0x7ff6c5d7cdac
mov qword [rax + 0x20], r14
lea rax, [0x7ff6c5d7bb60]
mov qword [rbx + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
jmp 0x7ff6c5d7cdaf
mov rbx, rdi
mov qword [rsp + 0xb0], rbx
mov rax, qword [rsp + 0xd0]
mov dword [rbx + 0x10], eax
shr rax, 0x20
mov dword [rbx + 0x14], eax
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.kernel32.dll_StartThreadpoolIo]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8d, esi
mov rdx, r15
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.kernel32.dll_ReadFile]
mov r12d, eax
call qword [sym.imp.kernel32.dll_GetLastError]
mov r15d, eax
test r12d, r12d
jne 0x7ff6c5d7ce0b
cmp eax, 0x3e5
jne 0x7ff6c5d7ce0b
mov rbx, rdi
jmp 0x7ff6c5d7ceda
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.kernel32.dll_CancelThreadpoolIo]
mov rsi, 0xffffffffffffffff
test r12d, r12d
je 0x7ff6c5d7ce50
mov dword [rsp + 0xd0], edi
xor r9d, r9d
lea r8, [rsp + 0xd0]
mov rdx, rbx
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
je 0x7ff6c5d7ce63
mov esi, dword [rsp + 0xd0]
jmp 0x7ff6c5d7ced7
cmp r15d, 0x26
jne 0x7ff6c5d7ce63
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax + 0x18]
jmp 0x7ff6c5d7ceda
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.7ff6c5d7d0d0
mov rdi, rax
lea rcx, [rsp + 0x30]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea r8, [0x7ff6c5dd2c08]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrCopyException_void____ptr64__void_const____ptr64__void_const____ptr64_
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_
lea rcx, [rsp + 0x30]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
lea rax, [0x7ff6c5da20d8]
mov qword [rdi], rax
lea rcx, [rdi + 8]
call sub.VCRUNTIME140.dll___std_exception_destroy
nop
mov rax, qword [r14]
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x40]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
mov rdi, rsi
test rbx, rbx
je 0x7ff6c5d7ceec
mov edx, 0x30
mov rcx, rbx
call fcn.7ff6c5d5e4b0
mov rax, rdi
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
Function at 0x7ff6c5d7cf10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rsi, r9
mov r15, r8
mov r14, rdx
mov rbp, rcx
mov ecx, 0x30
call fcn.7ff6c5d5e474
mov rbx, rax
mov qword [rsp + 0xb0], rax
xor edi, edi
test rax, rax
je 0x7ff6c5d7cf6c
mov qword [rax + 0x20], r14
lea rax, [0x7ff6c5d7bb60]
mov qword [rbx + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
jmp 0x7ff6c5d7cf6f
mov rbx, rdi
mov qword [rsp + 0xb0], rbx
mov rcx, qword [rsp + 0xd0]
cmp rcx, 0xffffffffffffffff
jne 0x7ff6c5d7cf8e
mov eax, 0xffffffff
mov ecx, eax
jmp 0x7ff6c5d7cf95
mov rax, rcx
shr rax, 0x20
mov dword [rbx + 0x10], ecx
mov dword [rbx + 0x14], eax
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.kernel32.dll_StartThreadpoolIo]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8d, esi
mov rdx, r15
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.kernel32.dll_WriteFile]
mov r12d, eax
call qword [sym.imp.kernel32.dll_GetLastError]
mov r15d, eax
test r12d, r12d
jne 0x7ff6c5d7cfdd
cmp eax, 0x3e5
jne 0x7ff6c5d7cfdd
mov rbx, rdi
jmp 0x7ff6c5d7d096
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.kernel32.dll_CancelThreadpoolIo]
mov rsi, 0xffffffffffffffff
test r12d, r12d
je 0x7ff6c5d7d01f
mov dword [rsp + 0xd0], edi
xor r9d, r9d
lea r8, [rsp + 0xd0]
mov rdx, rbx
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
je 0x7ff6c5d7d01f
mov esi, dword [rsp + 0xd0]
jmp 0x7ff6c5d7d093
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.7ff6c5d7d0d0
mov rdi, rax
lea rcx, [rsp + 0x30]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea r8, [0x7ff6c5dd2c08]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrCopyException_void____ptr64__void_const____ptr64__void_const____ptr64_
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_
lea rcx, [rsp + 0x30]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
lea rax, [0x7ff6c5da20d8]
mov qword [rdi], rax
lea rcx, [rdi + 8]
call sub.VCRUNTIME140.dll___std_exception_destroy
nop
mov rax, qword [r14]
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x40]
call sub.msvcp140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
mov rdi, rsi
test rbx, rbx
je 0x7ff6c5d7d0a8
mov edx, 0x30
mov rcx, rbx
call fcn.7ff6c5d5e4b0
mov rax, rdi
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
Function at 0x7ff6c5d7dd40
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rdi, rcx
add rcx, 0x48
call qword [sym.imp.concrt140.dll_public:_void___cdecl_Concurrency::details::_NonReentrantBlockingLock::_Acquire_void____ptr64]
mov rcx, qword [rdi + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x7ff6c5d7ddbe
mov rax, qword [rdi + 0x20]
xor ebp, ebp
test rax, rax
je 0x7ff6c5d7dd98
lea edx, [rbp + 1]
mov rcx, rax
call fcn.7ff6c5d5e4b0
mov qword [rdi + 0x20], rbp
mov qword [rdi + 0x30], rbp
mov qword [rdi + 0x38], rbp
mov qword [rdi + 0x28], rbp
mov rcx, qword [rdi + 0x70]
mov qword [rsp + 0x30], rbp
lea rdx, [rsp + 0x30]
call qword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
je 0x7ff6c5d7ddbe
xor edx, edx
mov rax, qword [rsp + 0x30]
div rsi
mov rsi, rax
mov qword [rdi], rax
jmp 0x7ff6c5d7ddc5
mov rsi, 0xffffffffffffffff
lea rcx, [rdi + 0x48]
call qword [sym.imp.concrt140.dll_public:_void___cdecl_Concurrency::details::_NonReentrantBlockingLock::_Release_void____ptr64]
nop
mov rax, rsi
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x7ff6c5d80560
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x50
mov r14, rdx
mov rsi, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
lea ecx, [rbp + 0x20]
call fcn.7ff6c5d5e474
mov rbx, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x7ff6c5d805c4
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
mov qword [rax], rbp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], 7
mov word [rax], bp
shr r8, 1
mov rcx, rax
call fcn.7ff6c5cd5750
jmp 0x7ff6c5d805c7
mov rbx, rbp
mov qword [r14], rbx
mov dword [rsp + 0x20], 1
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
cmp rcx, rax
je 0x7ff6c5d80639
sub rax, rcx
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff6c5d805ee
mov rcx, qword [rbx]
xor r8d, r8d
mov edx, eax
call qword [sym.imp.crypt32.dll_CryptUnprotectMemory]
test eax, eax
je 0x7ff6c5d80658
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff6c5d8060a
mov rdx, qword [rbx]
mov rax, qword [rsi + 0x18]
mov rcx, qword [rbx + 0x10]
sub rcx, rax
lea rdi, [rdx + rax*2]
xor eax, eax
rep stosb byte [rdi], al
mov rax, qword [rsi + 0x18]
cmp qword [rbx + 0x10], rax
jb 0x7ff6c5d80652
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x18], 8
jb 0x7ff6c5d80635
mov rbx, qword [rbx]
mov word [rbx + rax*2], bp
mov rax, r14
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
call fcn.7ff6c5cd5500
int3
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.7ff6c5d7d0d0
lea rdx, [0x7ff6c5dd2c08]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3