joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401760
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00407054]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40187a
mov rax, qword [0x00407058]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x4017ae
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x401860
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x401792
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4018b2
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00407058]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00407058]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401895
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401859
sub eax, 0x40
and eax, 0xffffffbf
je 0x401859
mov r9, rbp
add r9, qword [0x00407058]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401881
add dword [0x00407054], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x4017bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x00407058]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x402490
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x4024a0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x4024b0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4024f1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4024e8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4024f3
add rax, 0x28
cmp rax, r9
jne 0x4024d4
xor eax, eax
repz ret

Function at 0x4025a0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x00404300]
cmp word [rbx], 0x5a4d
je 0x4025c0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4025b4
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x402810
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004079c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004079a0]
test rbx, rbx
je 0x402864
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40285b
test rsi, rsi
je 0x40285b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402840
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004079c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x140002958
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov r14, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov r8, qword [r8 + 0x10]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jae 0x140031c12
movabs rbp, 0xcbf29ce484222325
xor ecx, ecx
add r8, r8
je 0x1400029bd
movzx eax, byte [rcx + rdx]
xor rbp, rax
movabs r9, 0x100000001b3
imul rbp, r9
inc rcx
cmp rcx, r8
jb 0x1400029a0
mov r9, rbp
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14001bbd0
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140031c1a
movabs rax, 0x492492492492492
cmp qword [rsi + 0x10], rax
je 0x140031c26
lea rdx, [rsi + 8]
mov r9, r14
mov r8, rbx
lea rcx, [rsp + 0x20]
call fcn.140002b0c
nop
mov rdx, qword [rsi + 0x10]
add rdx, 1
xorps xmm0, xmm0
js 0x140002a85
cvtsi2ss xmm0, rdx
mov rcx, qword [rsi + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x140002aa2
cvtsi2ss xmm1, rcx
divss xmm0, xmm1
comiss xmm0, dword [rsi]
ja 0x140031c3a
mov rbx, qword [rsp + 0x28]
and qword [rsp + 0x28], 0
mov r9, rbx
mov r8, qword [rsp + 0x30]
mov rdx, rbp
mov rcx, rsi
call fcn.140002ac4
mov qword [rdi], rax
mov byte [rdi + 8], 1
lea rcx, [rsp + 0x20]
call fcn.140002c00
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
mov rcx, rdx
shr rcx, 1
mov rax, rdx
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
jmp 0x140002a19
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
jmp 0x140002a2a
mov rdx, qword [rbx]
jmp 0x14000298f
mov qword [rdi], rax
mov byte [rdi + 8], 0
jmp 0x140002a66
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
nop dword [rax + rax]
nop
mov rcx, rsi
call fcn.140073b08
mov rdx, rax
mov rcx, rsi
call fcn.140073bac
mov rbx, qword [rsp + 0x28]
lea r8, [rbx + 0x10]
mov r9, rbp
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14001bbd0
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x30], xmm0
jmp 0x140002a3c
Function at 0x14000393c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x18], 8
mov rbx, rcx
mov r9, qword [rdx + 0x10]
mov r8, rdx
jae 0x140032122
xor ecx, ecx
movabs rdi, 0xcbf29ce484222325
add r9, r9
je 0x14000398a
movzx eax, byte [rcx + r8]
movabs r10, 0x100000001b3
xor rdi, rax
inc rcx
imul rdi, r10
cmp rcx, r9
jb 0x14000396c
mov r8, rdx
mov r9, rdi
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14001bbd0
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400039f2
mov rax, qword [rbx + 0x30]
mov r8, qword [rbx + 0x18]
and rax, rdi
add rax, rax
cmp qword [r8 + rax*8 + 8], rdx
jne 0x14003212a
cmp qword [r8 + rax*8], rdx
jne 0x1400039ec
mov rcx, qword [rbx + 8]
mov qword [r8 + rax*8], rcx
mov qword [r8 + rax*8 + 8], rcx
lea rcx, [rbx + 8]
call fcn.1400039fc
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rdx + 8]
jmp 0x1400039cd
xor eax, eax
jmp 0x1400039e0
mov r8, qword [rdx]
jmp 0x14000395b
cmp qword [r8 + rax*8], rdx
jne 0x1400039d2
mov rcx, qword [rdx]
mov qword [r8 + rax*8], rcx
jmp 0x1400039d2
Function at 0x14000588c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rsi, rcx
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 0x41
xor r15d, r15d
mov word [rbp - 0x30], r15w
lea rax, [0x1400ac888]
mov qword [rbp - 0x48], rax
lea rax, [0x1400ac7e8]
mov qword [rbp - 0x50], rax
mov dword [rbp + 0x58], r15d
mov qword [rbp + 0x60], r15
mov qword [rsp + 0x20], r15
mov r9d, 0x2001f
lea r8, str.SOFTWAREMicrosoftWindows_SearchCrawlScopeManager_
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x50]
call fcn.140010e54
lea r8, [rsp + 0x30]
lea rdx, str.SQMFullDriveIndexingSent
lea rcx, [rbp - 0x50]
call fcn.1400117c0
test eax, eax
jne 0x140005a0a
mov rcx, qword [rsi + 0xa8]
mov rdx, qword [rcx]
call fcn.14000bfa8
mov rdi, rax
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400b50a8]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
test eax, eax
js 0x140005a0a
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140013000
nop
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.140019a04
nop
mov r14d, r15d
jmp 0x1400059ce
cmp qword [rbx + 8], 2
jne 0x1400059ce
xor edx, edx
mov rcx, rbx
call fcn.14001c1e0
lea rdx, [0x1400b4488]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140034d32
test rdi, rdi
je 0x1400059f0
mov rbx, rdi
mov rdx, rdi
mov rcx, qword [rsi + 0xa8]
call fcn.14000b6c0
mov rdi, rax
cmp dword [rbx + 0x50], r15d
je 0x1400059ce
jmp 0x14000599f
lea rcx, [rsp + 0x40]
call fcn.1400159b0
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xffffffffffffffe8
call fcn.140016150
nop
lea rcx, [rbp - 0x50]
call fcn.140012244
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140024c10
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov edx, 1
mov rcx, rbx
call fcn.14001c1e0
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140019a04
nop
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140013610
mov ebx, eax
lea rcx, [rsp + 0x78]
call fcn.1400159b0
neg ebx
sbb eax, eax
add eax, 2
or eax, r14d
mov r14d, eax
mov r8d, eax
lea rdx, str.SQMFullDriveIndexingSent
lea rcx, [rbp - 0x50]
call fcn.1400065a4
nop
jmp 0x1400059ce
Function at 0x1400065a4
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
je 0x14003530c
mov r9d, 4
lea rax, [r11 + 0x18]
mov dword [r11 - 0x10], r9d
xor r8d, r8d
mov qword [r11 - 0x18], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140035313
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, 1
add rsp, 0x38
ret
mov ecx, 6
jmp 0x140035315
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x1400065fb

Function at 0x140006608
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0xb0]
xor ebx, ebx
test rcx, rcx
je 0x140035328
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], bx
jne 0x140006624
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14003532f
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, 1
add rsp, 0x30
pop rbx
ret
mov ecx, 6
jmp 0x140035331
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14000666e
Function at 0x140006e34
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rbp + 0x210], rax
xor esi, esi
mov qword [rsp + 0x68], 0x41
lea rax, [rsp + 0x70]
mov word [rsp + 0x70], si
mov qword [rsp + 0x60], rax
mov rdi, r8
lea rax, [0x1400ac888]
mov dword [rbp - 8], esi
mov r9, r8
mov qword [rsp + 0x58], rax
mov r8, qword [rdx]
lea rax, [0x1400ac7e8]
mov rdx, qword [rcx + 0xb0]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov qword [rbp], rsi
call fcn.140006f9c
mov ebx, eax
test eax, eax
jne 0x14003580a
xor ecx, ecx
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rbp]
test rcx, rcx
je 0x14003581e
lea rax, [rsp + 0x48]
xor edx, edx
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
lea r8, [rbp + 0x10]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140006f48
lea ebx, [rax + 1]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x103
je 0x140006f5a
test ebx, ebx
je 0x140006f8d
mov r8, rdi
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x50]
call fcn.140007574
test eax, eax
je 0x140006eb9
jmp 0x140035828
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov ebx, esi
jmp 0x140006f13
mov eax, esi
mov ebx, eax
lea rcx, [rsp + 0x50]
call fcn.140012244
mov eax, ebx
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140024c10
mov rbx, qword [rsp + 0x358]
add rsp, 0x320
pop rdi
pop rsi
pop rbp
ret
test eax, eax
jmp 0x140035828
jle 0x140006f5e
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140006f5e
mov ecx, 6
jmp 0x140006f4a
jle 0x140006f5c
movzx eax, ax
or eax, 0x80070000
jmp 0x140006f5c
Function at 0x140007574
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov rsi, r8
mov rdi, rdx
mov r14, rcx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x41
xor r15d, r15d
mov word [rbp - 0x80], r15w
lea r13, [0x1400ac888]
mov qword [rsp + 0x68], r13
mov dword [rbp + 8], r15d
mov qword [rbp + 0x10], r15
lea rax, [0x1400ac7e8]
mov qword [rsp + 0x60], rax
mov r9, r8
mov r8, rdx
mov rdx, qword [rcx + 0xb0]
lea rcx, [rsp + 0x60]
call fcn.140006f9c
test eax, eax
mov ebx, eax
jne 0x140036128
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x40], 0x100
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x20]
xor edx, edx
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140036138
mov rbx, qword [r14 + 0xb0]
cmp rsi, 0xffffffffffffffff
je 0x1400361a1
cmp rbx, 0xffffffff80000002
je 0x14003614f
mov al, r15b
lea rdx, [rbp + 0x220]
test al, al
cmove rdx, rdi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegDeleteKeyTransactedW]
nop dword [rax + rax]
mov ebx, eax
lea rax, [0x1400ac7e8]
mov qword [rsp + 0x60], rax
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x1400076bd
cmp dword [rbp + 8], r15d
je 0x1400076bd
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
lea rax, [0x1400ac838]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r13
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400076e5
lea rax, [rbp - 0x80]
cmp rcx, rax
jne 0x1400361b2
mov eax, ebx
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.140024c10
add rsp, 0x540
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [rsp + 0x60]
call fcn.140012244
nop
jmp 0x1400076e5
mov r8, rsi
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140007574
nop
jmp 0x1400075f9
test rdi, rdi
je 0x140007665
call qword [sym.imp.ntdll.dll_RtlIsStateSeparationEnabled]
nop dword [rax + rax]
test al, al
je 0x140007665
lea rdx, [rsp + 0x50]
call fcn.14006b500
test al, al
je 0x140007665
lea r8, [rbp + 0x220]
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call fcn.14006b650
test eax, eax
mov al, 1
jns 0x140007668
jmp 0x140007665
mov rdx, rdi
mov rcx, rbx
call fcn.14006b7f0
nop
jmp 0x140007694
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_free]
nop dword [rax + rax]
nop
jmp 0x1400076e5
Function at 0x14000963c
Capabilities:
Get common file path
Set environment variable

Disassembly:
sub rsp, 0x258
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp byte [0x1400df118], 0
je 0x140009679
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140024c10
add rsp, 0x258
ret
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x801c
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
nop dword [rax + rax]
test eax, eax
jne 0x140009660
lea rdx, [rsp + 0x30]
lea rcx, str.LOCALAPPDATA
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
je 0x14003b802
mov byte [0x1400df118], 1
jmp 0x14000965e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140009660
movzx eax, ax
or eax, 0x80070000
jmp 0x140009660
Function at 0x140010898
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x310]
sub rsp, 0x410
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov r15, rcx
lea rax, [rbp - 0x60]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], 0x41
xor edi, edi
mov word [rbp - 0x60], di
lea r13, [0x1400ac888]
mov qword [rbp - 0x78], r13
lea rax, [0x1400ac7e8]
mov qword [rbp - 0x80], rax
mov dword [rbp + 0x28], edi
mov qword [rbp + 0x30], rdi
mov qword [rsp + 0x20], rdi
mov r9d, 0xf003f
mov r8, qword [0x1400dfb48]
lea rcx, [rbp - 0x80]
call fcn.140010e54
test eax, eax
js 0x140034f20
mov esi, edi
mov dword [rsp + 0x30], 0x100
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x100]
mov edx, esi
lea rcx, [rbp - 0x80]
call fcn.140010f90
mov r14d, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x103
je 0x140010a2e
test r14d, r14d
je 0x140034f7d
lea rax, [rbp + 0x60]
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], 0x41
mov word [rbp + 0x60], di
mov qword [rbp + 0x48], r13
lea rax, [0x1400ac7e8]
mov qword [rbp + 0x40], rax
mov dword [rbp + 0xe8], edi
mov qword [rbp + 0xf0], rdi
mov qword [rsp + 0x20], rdi
mov r9d, 0xf003f
lea r8, [rbp + 0x100]
mov rdx, qword [rbp + 0x30]
lea rcx, [rbp + 0x40]
call fcn.140010e54
test eax, eax
js 0x140034f53
lea rcx, [rsp + 0x40]
call fcn.140019a6c
nop
lea rdx, [0x1400df9f8]
lea rcx, [rsp + 0x38]
call fcn.140019adc
nop
lea r8, [rsp + 0x38]
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140010a70
mov rbx, qword [rsp + 0x38]
test eax, eax
js 0x140010a09
lea r8, [rsp + 0x40]
mov rdx, rbx
mov rcx, r15
call fcn.1400194fc
inc esi
lea rcx, [rbx - 0x18]
call fcn.140016150
nop
lea rcx, [rsp + 0x40]
call fcn.14001595c
nop
lea rcx, [rbp + 0x40]
call fcn.140012244
jmp 0x140010925
mov ebx, edi
lea rcx, [rbp - 0x80]
call fcn.140012244
mov eax, ebx
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.140024c10
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
nop
cmp eax, 2
je 0x140034f43
test eax, eax
jg 0x140034f3a
mov edi, eax
jmp 0x140034f43
movzx edi, ax
or edi, 0x80070000
lea rcx, [rbp - 0x80]
call fcn.140012244
mov eax, edi
jmp 0x140010a3b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140034f6e
movzx ebx, ax
or ebx, 0x80070000
lea rcx, [rbp + 0x40]
call fcn.140012244
nop
jmp 0x140010a30
test eax, eax
jle 0x140010a30
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140010a30
Function at 0x140010d64
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x30
xor ebp, ebp
lea rax, [r11 + 0x10]
mov qword [r8], rbp
lea rdx, [0x1400b4558]
mov rsi, r8
mov qword [r11 - 0x10], rax
xor r8d, r8d
mov qword [r11 - 0x18], rbp
xor r9d, r9d
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400352ae
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1400352c1
shr eax, 1
lea ecx, [rax + 1]
lea eax, [rbp + 2]
mul rcx
lea rcx, [rbp - 1]
lea rdx, [0x1400b45f2]
cmovo rax, rcx
mov rcx, rax
call fcn.1400252fc
mov rdi, rax
test rax, rax
je 0x140010e45
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1400b4558]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x1400352cb
mov eax, dword [rsp + 0x48]
shr rax, 1
mov word [rdi + rax*2], bp
xor eax, eax
mov qword [rsi], rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov eax, 0x8007000e
jmp 0x140010e2f
jle 0x140010e2f
movzx eax, ax
or eax, 0x80070000
jmp 0x140010e2f
mov eax, 0x8000ffff
jmp 0x140010e2f
mov rcx, rdi
call fcn.14002532c
test ebx, ebx
jle 0x1400352e0
movzx ebx, bx
or ebx, 0x80070000
mov eax, ebx
jmp 0x140010e2f

Function at 0x140010f90
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rdi, r9
xor ecx, ecx
mov rsi, r8
mov ebp, edx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rbx + 0xb0]
xor ebx, ebx
test rcx, rcx
je 0x140011027
lea rax, [rsp + 0x50]
mov r9, rdi
mov qword [rsp + 0x38], rax
mov r8, rsi
mov qword [rsp + 0x30], rbx
mov edx, ebp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140011015
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140010fff
mov ecx, 6
jmp 0x140011017