joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400525fc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rbp + 0xb0], rax
lea rax, [rsp + 0x40]
xor edi, edi
mov r9d, 0xf003f
mov qword [rsp + 0x40], rdi
lea rdx, str.SOFTWAREMicrosoftWindows_Search
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call fcn.14001e414
mov ebx, eax
test eax, eax
jle 0x140052660
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14005275b
lea r8, [rsp + 0x48]
mov dword [rsp + 0x48], 0x20
lea rdx, str._x_sys_default_locale
mov ecx, 1
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetNLSVersionEx]
test eax, eax
je 0x14005273b
mov r8d, 0x32
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromGUID2]
mov ebx, eax
test eax, eax
js 0x140052750
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0xc8
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov r9d, 6
mov qword [rsp + 0x30], rax
lea r8, str._d._x._x._s
mov eax, dword [rsp + 0x50]
lea rcx, [rbp - 0x20]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x4c]
lea edx, [r9 + 0x5e]
mov dword [rsp + 0x20], eax
call fcn.140009728
mov ebx, eax
test eax, eax
js 0x140052750
lea rcx, [rbp - 0x20]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140052702
mov rcx, qword [rsp + 0x40]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea r8, str.IndexerCatalogVersion
lea rax, [rbp - 0x20]
mov r9d, 1
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHSetValueW]
jmp 0x140052741
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140052750
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14002dd40
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140056740
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor eax, eax
mov rsi, rdx
mov r8, rdx
mov qword [rsp + 0x48], rax
mov rdx, qword [rcx]
mov rdi, rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov r9d, 0x2001f
mov qword [rsp + 0x58], rax
call fcn.14002afe4
jmp 0x1400567a1
lea rdx, [rsp + 0x70]
call fcn.140056740
xor ecx, ecx
mov ebx, eax
test eax, eax
jne 0x1400567fc
lea rax, [rsp + 0x60]
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
xor edx, edx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
lea rcx, [rsp + 0x48]
test eax, eax
je 0x140056797
call fcn.14002b034
mov rdx, rsi
mov rcx, rdi
call fcn.14002b05c
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.14002b034
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14002dd40
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret

Function at 0x140056bd8
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r10, rdx
mov r11, rcx
test r8, r8
jne 0x140056bf6
mov ecx, 0x80004005
call fcn.14004a0f0
int3
mov r9d, ebx
mov rdx, r8
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], bx
jne 0x140056c00
inc ecx
lea rdx, [rdx + rcx*2]
lea r9d, [r9 + rcx*2]
cmp ecx, 1
jne 0x140056bfc
mov dword [rsp + 0x28], r9d
mov rdx, r10
mov qword [rsp + 0x20], r8
lea r9d, [rcx + 6]
mov rcx, qword [r11]
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
add rsp, 0x30
pop rbx
ret
Function at 0x1400584f0
Capabilities:
Create thread
Print debug messages

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x228]
sub rsp, 0x300
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov r14, r8
mov rsi, rdx
mov r15, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov rdx, r8
lea rcx, [rsp + 0x58]
call fcn.140021744
mov rdi, rax
mov qword [rsp + 0x38], rax
mov rdx, rsi
lea rcx, [rbp - 8]
call fcn.140021744
mov rbx, rax
mov qword [rsp + 0x30], rax
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.140021744
nop
mov rdx, rdi
lea rcx, [rbp + 0x140]
call fcn.140021744
and dword [rbp + 0x1e0], 0
and qword [rbp + 0x1e8], 0
mov rcx, rbx
call fcn.140029258
nop
mov rcx, rdi
call fcn.140029258
nop
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r9, [rbp + 0xa0]
lea r8, [0x1400584b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbp + 0x1e8], rax
xor ebx, ebx
mov edi, 0x80070000
test rax, rax
jne 0x1400585fa
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400585f3
movzx ebx, ax
or ebx, edi
mov rax, qword [rbp + 0x1e8]
test ebx, ebx
js 0x140058663
lea rcx, str.CSM____Ping__n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
mov edx, 2
mov rcx, qword [r15 + 8]
call fcn.140029be4
mov edx, 0x7d0
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1400585fe
test eax, eax
jne 0x14005863e
mov ebx, dword [rbp + 0x1e0]
jmp 0x14005864f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14005864f
movzx ebx, ax
or ebx, edi
lea rcx, str.Catalog_move:_end_copy__acknowledged_from_main_thread__n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
mov rax, qword [rbp + 0x1e8]
test rax, rax
je 0x140058671
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rcx, [rbp + 0x140]
call fcn.140029258
lea rcx, [rbp + 0xa0]
call fcn.140029258
nop
mov rcx, rsi
call fcn.140029258
nop
mov rcx, r14
call fcn.140029258
mov eax, ebx
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14002dd40
mov rbx, qword [rsp + 0x348]
add rsp, 0x300
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140058964
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x458]
sub rsp, 0x540
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov qword [rsp + 0x38], rdx
mov rsi, rcx
mov qword [rsp + 0x48], rdx
lea rcx, [rbp + 0x140]
call fcn.140021744
nop
mov rdx, rsi
lea rcx, [rbp + 0xa0]
call fcn.140021744
nop
mov rax, qword [rbp + 0xa0]
mov r9d, dword [rbp + 0x154]
mov r8d, dword [rbp + 0xb4]
mov rdx, qword [rbp + 0x148]
lea rcx, [rbp + 0xa0]
mov rax, qword [rax + 0x20]
call qword [case.0x14000702c.0]
mov rax, qword [rbp + 0xa0]
or r9d, 0xffffffff
mov r8d, dword [rbp + 0xb4]
lea rdx, [0x140095b54]
lea rcx, [rbp + 0xa0]
mov rax, qword [rax + 0x20]
call qword [case.0x14000702c.0]
xor edi, edi
mov ebx, edi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rbp + 0x1e0]
xor edx, edx
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileExW]
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x140058b37
test byte [rbp + 0x1e0], 0x10
je 0x140058aed
cmp word [rbp + 0x20c], 0x2e
je 0x140058af4
inc qword [rsi + 0xa8]
lea rdx, [rbp + 0x140]
lea rcx, [rbp]
call fcn.140021744
nop
mov rax, qword [rbp]
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rbp + 0x14]
lea rdx, [0x140095aa4]
lea rcx, [rbp]
mov rax, qword [rax + 0x20]
call qword [case.0x14000702c.0]
mov rax, qword [rbp]
mov r9d, ebx
mov r8d, dword [rbp + 0x14]
lea rdx, [rbp + 0x20c]
lea rcx, [rbp]
mov rax, qword [rax + 0x20]
call qword [case.0x14000702c.0]
lea rdx, [rbp]
lea rcx, [rsp + 0x58]
call fcn.140021744
mov rdx, rax
mov rcx, rsi
call fcn.140058964
mov ebx, eax
lea rcx, [rbp]
call fcn.140029258
mov rax, qword [rsp + 0x30]
jmp 0x140058af4
inc qword [rsi + 0xa0]
test ebx, ebx
js 0x140058b2a
lea rdx, [rbp + 0x1e0]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
mov rax, qword [rsp + 0x30]
jne 0x140058a4c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140058b2a
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
jmp 0x140058b4c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140058b4c
movzx ebx, ax
or ebx, 0x80070000
cmp ebx, 0x80070012
cmovne edi, ebx
lea rcx, [rbp + 0xa0]
call fcn.140029258
nop
lea rcx, [rbp + 0x140]
call fcn.140029258
nop
mov rcx, qword [rsp + 0x38]
call fcn.140029258
mov eax, edi
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.14002dd40
mov rbx, qword [rsp + 0x570]
add rsp, 0x540
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005a870
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x278
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rax, qword [rsp + 0x2e8]
xor esi, esi
mov qword [rsp + 0x48], rax
mov r15, rcx
mov ecx, dword [rsp + 0x2e0]
mov r13, r9
mov r12, r8
mov rbp, rdx
mov ebx, 1
test rdx, rdx
jne 0x14005a8cb
test r8, r8
je 0x14005a9d2
test ecx, ecx
mov r14d, 0x104
mov eax, 2
cmovne r14d, ecx
mov rcx, 0xffffffffffffffff
mul r14
cmovo rax, rcx
mov rcx, rax
mov rax, qword [0x14008e1f8]
call qword [case.0x14000702c.0]
mov rdi, rax
test rax, rax
jne 0x14005a909
mov ebx, esi
jmp 0x14005a9d2
xor eax, eax
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x30], rax
mov r8, rdi
lea rax, [rsp + 0x50]
mov dword [rsp + 0x44], 0x104
mov qword [rsp + 0x28], rax
mov edx, esi
and qword [rsp + 0x20], 0
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x14005a9ac
mov eax, dword [rsp + 0x2f0]
mov r9, r12
mov dword [rsp + 0x38], eax
mov r8, rbp
mov rax, qword [rsp + 0x48]
mov rdx, rdi
mov qword [rsp + 0x30], rax
mov rcx, r15
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r13
call fcn.14005a9f8
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x14005a9c0
test rbp, rbp
je 0x14005a9c0
cmp dword [rsp + 0x40], r14d
jae 0x14005a9a8
mov r8, r13
mov rdx, rdi
mov rcx, r15
mov rax, rbp
call qword [case.0x14000702c.0]
xor eax, eax
jmp 0x14005a9c0
mov ebx, eax
jmp 0x14005a9c0
cmp eax, 0x103
je 0x14005a9ca
cmp eax, 0xea
mov eax, 0
cmovne ebx, eax
inc esi
test ebx, ebx
jne 0x14005a90b
mov rcx, rdi
call fcn.14000e5b8
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14002dd40
add rsp, 0x278
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14005aab4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x278
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor r13d, r13d
mov r12, r8
mov r14, rdx
mov rbp, rcx
mov ebx, 1
test rdx, rdx
je 0x14005abaf
test r9d, r9d
mov eax, 0x1000
cmovne eax, r9d
mov esi, eax
mov ecx, eax
mov rax, qword [0x14008e1f8]
call qword [case.0x14000702c.0]
mov r15, rax
mov edi, r13d
lea rax, [rsp + 0x44]
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
mov edx, edi
mov qword [rsp + 0x20], r13
mov rcx, rbp
mov dword [rsp + 0x44], esi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
test eax, eax
jne 0x14005ab95
cmp dword [rsp + 0x40], 0x104
jae 0x14005ab90
mov eax, dword [rsp + 0x44]
cmp eax, esi
ja 0x14005ab90
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], r12
mov r9, r15
mov dword [rsp + 0x20], eax
mov rcx, rbp
mov rax, r14
call qword [case.0x14000702c.0]
jmp 0x14005aba5
mov ebx, r13d
jmp 0x14005aba5
cmp eax, 0x103
je 0x14005abaf
cmp eax, 0xea
cmovne ebx, r13d
inc edi
test ebx, ebx
jne 0x14005ab17
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14002dd40
add rsp, 0x278
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14005b1c0
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x3a0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x390], rax
mov rdi, rdx
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
or r9, 0xffffffffffffffff
xor ebx, ebx
inc r9
cmp word [rdi + r9*2], bx
jne 0x14005b202
mov dword [rsp + 0x3c], r9d
mov dword [rsp + 0x38], r9d
mov qword [rsp + 0x30], rdi
lea rax, [0x14008bbc0]
mov qword [rsp + 0x28], rax
lea r8d, [r9 - 1]
movsxd rdx, r8d
test r8d, r8d
js 0x14005b249
movzx ecx, word [rdi + rdx*2]
call fcn.1400257b4
test eax, eax
jne 0x14005b249
dec r8d
sub rdx, 1
jns 0x14005b233
inc r8d
sub r9d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140021908
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x78]
mov edx, 0x21
lea rcx, [rsp + 0x60]
call fcn.140021878
lea rax, fcn.1400086d0
mov qword [rsp + 0x60], rax
mov r9d, 0xf003f
mov r8, qword [rsp + 0x68]
mov rdx, rsi
lea rcx, [rsp + 0xc0]
call fcn.14005af7c
nop
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x180]
xor edx, edx
lea rcx, [rsp + 0xc0]
call fcn.140044b2c
test eax, eax
jne 0x14005b323
lea rcx, [rsp + 0xc0]
call fcn.140017740
nop
mov rcx, qword [rsi + 0xb0]
test rcx, rcx
jne 0x14005b2ee
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
jmp 0x14005b314
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
test eax, eax
je 0x14005b307
mov ecx, eax
jmp 0x14005b2e6
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov ebx, 1
lea rcx, [rsp + 0x60]
call fcn.14002b3e8
nop
mov eax, ebx
jmp 0x14005b376
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0xc0]
call fcn.14005b1c0
test eax, eax
jne 0x14005b29f
lea rcx, [rsp + 0xc0]
call fcn.140017740
nop
lea rcx, [rsp + 0x60]
call fcn.14002b3e8
nop
lea rax, fcn.14001b680
mov qword [rsp + 0x28], rax
xor eax, eax
jmp 0x14005b376
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.14002dd40
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14005b72c
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0xb0]
xor ebx, ebx
test rcx, rcx
jne 0x14005b74d
lea ecx, [rbx + 6]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x14005b78f
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], bx
jne 0x14005b751
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]
test eax, eax
je 0x14005b782
mov ecx, eax
jmp 0x14005b743
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x14005b798
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
jne 0x14005b7b7
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x14005b7ef
mov dword [rsp + 0x28], 8
lea rdx, str.SchemaCacheTimestamp
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x14005b7e2
mov ecx, eax
jmp 0x14005b7ad
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, 1
add rsp, 0x38
ret

Function at 0x14005b7f4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0xb0], 0
mov rsi, rdx
mov rdi, rcx
jne 0x14005b822
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x14005b86d
mov eax, dword [r8 + 0x14]
xor edx, edx
mov rcx, r8
lea ebx, [rax*2 + 2]
call fcn.140017eac
mov rcx, qword [rdi + 0xb0]
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov rdx, rsi
mov ebx, 1
mov qword [rsp + 0x20], rax
mov r9d, ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x14005b863
mov ecx, eax
jmp 0x14005b818
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14005b880
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
jne 0x14005b8a4
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x14005b8d7
mov r9d, 4
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x14005b8ca
mov ecx, eax
jmp 0x14005b89a
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, 1
add rsp, 0x38
ret
Function at 0x14005bb40
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor edx, edx
mov rsi, rcx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x14005bc64
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 3
jne 0x14005bc3e
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.14005c520
test al, al
je 0x14005bc17
mov rdi, qword [rsp + 0x38]
mov rcx, 0xffffffffffffffff
mov eax, 2
lea rbp, [rdi + 1]
mul rbp
lea rdx, [0x140096784]
cmovo rax, rcx
mov rcx, rax
call fcn.14002e1ac
mov rbx, rax
test rax, rax
jne 0x14005bbcb
mov edi, 0x8007000e
lea edx, [rax + 0x7d]
mov r9d, edi
jmp 0x14005bbea
mov r9, rdi
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.140025868
mov edi, eax
test eax, eax
jns 0x14005bc07
mov r9d, eax
mov edx, 0x7e
mov rcx, qword [rsp + 0x28]
lea r8, str.internal_sdkincwil_filesystem.h
call fcn.1400025a0
mov rcx, rbx
call fcn.14000e5b8
mov eax, edi
jmp 0x14005bc66
mov rcx, rbx
call fcn.14005bb40
mov rcx, rbx
call fcn.14000e5b8
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x14005bc64
mov rcx, qword [rsp + 0x28]
lea r8, str.internal_sdkincwil_filesystem.h
mov edx, 0x81
call fcn.140048770
jmp 0x14005bc66
cmp eax, 0xb7
je 0x14005bc64
test eax, eax
je 0x14005bc64
mov rcx, qword [rsp + 0x28]
lea r8, str.internal_sdkincwil_filesystem.h
mov r9d, eax
mov edx, 0x85
call fcn.14005c310
jmp 0x14005bc66
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14005bc7c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x350
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov ebx, r8d
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x30], edx
mov rsi, rcx
mov edi, 1
test rcx, rcx
je 0x14005bccb
lea rdx, [0x140095aa0]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
test eax, eax
jne 0x14005bccd
xor edi, edi
test edi, edi
je 0x14005be77
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140021704
nop
lea rcx, [rsp + 0x50]
call fcn.14005a4e8
mov rax, qword [rsp + 0x50]
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x64]
lea rdx, [0x1400a2c20]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14000702c.0]
and qword [rsp + 0x38], 0
test ebx, ebx
je 0x14005bd32
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
imul rax, rbx, 0x989680
sub qword [rsp + 0x38], rax
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
mov rbx, rax
mov qword [rsp + 0x48], rax
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14005be43
lea rdx, [0x140095a04]
lea rcx, [rsp + 0x11c]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
test eax, eax
je 0x14005be2a
lea rdx, [0x1400a2c4c]
lea rcx, [rsp + 0x11c]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
test eax, eax
je 0x14005be2a
mov rax, qword [rsp + 0x50]
or r9d, 0xffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14000702c.0]
lea rcx, [rsp + 0x50]
call fcn.14005a4e8
mov rax, qword [rsp + 0x50]
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x64]
lea rdx, [rsp + 0x11c]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14000702c.0]
test byte [rsp + 0xf0], 0x10
je 0x14005be01
mov r8d, dword [rsp + 0x34]
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
call fcn.14005bc7c
jmp 0x14005be2a
cmp dword [rsp + 0x34], 0
je 0x14005be1f
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xfc]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CompareFileTime]
test eax, eax
jg 0x14005be2a
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
lea rdx, [rsp + 0xf0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
jne 0x14005bd4d
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14005be56
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
cmp dword [rsp + 0x30], 0
je 0x14005be6c
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
neg eax
sbb ecx, ecx
and edi, ecx
lea rcx, [rsp + 0x50]
call fcn.140029258
nop
jmp 0x14005be7d
mov eax, edi
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.14002dd40
add rsp, 0x350
pop rdi
pop rsi
pop rbx
ret
Function at 0x14005c01c
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
mov rdx, r8
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x14005c07e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbx], eax
cmp eax, 0x50
je 0x14005c059
cmp eax, 0xb7
je 0x14005c059
xor eax, eax
jmp 0x14005c09e
test rsi, rsi
je 0x14005c07e
mov r8, qword [rsi + 8]
mov edx, 4
mov rcx, rdi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetFileSecurityW]
test eax, eax
jne 0x14005c07e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbx], eax
jmp 0x14005c055
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
bts eax, 0xd
mov rcx, rdi
mov edx, eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
and dword [rbx], 0
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret