joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140066190
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, 0x288
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rax, qword [rsp + 0x2f8]
mov rbp, rdx
mov edx, dword [rsp + 0x2f0]
mov r15, r8
mov qword [rsp + 0x48], r9
mov r12, rcx
mov qword [rsp + 0x50], rax
mov ebx, 1
test rbp, rbp
jne 0x1400661eb
test r8, r8
je 0x14006630a
test edx, edx
mov r14d, 0x104
mov rcx, 0xffffffffffffffff
mov eax, 2
cmovne r14d, edx
mul r14
lea rdx, [0x1400b35f2]
cmovo rax, rcx
mov rcx, rax
call fcn.1400252bc
mov rsi, rax
test rax, rax
jne 0x140066228
xor ebx, ebx
jmp 0x14006630a
mov r13d, dword [rsp + 0x300]
xor edi, edi
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x28], rax
mov r8, rsi
and qword [rsp + 0x20], 0
mov edx, edi
mov rcx, r12
mov dword [rsp + 0x44], 0x104
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400662e6
mov rax, qword [rsp + 0x50]
mov r9, r15
mov dword [rsp + 0x38], r13d
mov r8, rbp
mov qword [rsp + 0x30], rax
mov rdx, rsi
mov rax, qword [rsp + 0x48]
mov rcx, r12
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call fcn.140066338
mov ebx, eax
test eax, eax
je 0x1400662f4
test rbp, rbp
je 0x1400662f4
cmp dword [rsp + 0x40], r14d
jae 0x1400662e2
movabs r10, 0xbb4017917ad95b70
mov r8, qword [rsp + 0x48]
mov rdx, rsi
mov rcx, r12
mov rax, rbp
call qword [case.0x140001f80.0]
inc edi
jmp 0x140066232
xor ebx, ebx
jmp 0x1400662f4
cmp eax, 0x103
je 0x140066302
cmp eax, 0xea
jne 0x140066300
inc edi
test ebx, ebx
jne 0x140066232
jmp 0x140066302
xor ebx, ebx
mov rcx, rsi
call fcn.1400252ec
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140024bd0
add rsp, 0x288
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140066408
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r12, r8
mov r15, rdx
mov r14, rcx
mov ebx, 1
test rdx, rdx
je 0x140066507
test r9d, r9d
mov eax, 0x1000
cmovne eax, r9d
mov ecx, eax
mov esi, eax
call fcn.1400255e8
mov rbp, rax
xor edi, edi
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], rbp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
and qword [rsp + 0x20], 0
mov edx, edi
mov rcx, r14
mov dword [rsp + 0x44], esi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
nop dword [rax + rax]
test eax, eax
jne 0x1400664eb
cmp dword [rsp + 0x40], 0x104
jae 0x1400664e7
mov eax, dword [rsp + 0x44]
cmp eax, esi
ja 0x1400664e7
movabs r10, 0x87b02e797c5d2170
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], r12
mov r9, rbp
mov dword [rsp + 0x20], eax
mov rcx, r14
mov rax, r15
call qword [case.0x140001f80.0]
jmp 0x1400664f9
xor ebx, ebx
jmp 0x1400664f9
cmp eax, 0x103
je 0x140066507
cmp eax, 0xea
jne 0x140066505
inc edi
test ebx, ebx
jne 0x14006645d
jmp 0x140066507
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140024bd0
add rsp, 0x270
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140067b60
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x390
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov rdi, rdx
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
or r9, 0xffffffffffffffff
xor ebx, ebx
inc r9
cmp word [rdi + r9*2], bx
jne 0x140067b9e
mov dword [rsp + 0x3c], r9d
mov dword [rsp + 0x38], r9d
mov qword [rsp + 0x30], rdi
lea rax, [0x1400ad018]
mov qword [rsp + 0x28], rax
lea r8d, [r9 - 1]
movsxd rdx, r8d
test r8d, r8d
js 0x140067be5
movzx ecx, word [rdi + rdx*2]
call fcn.140017680
test eax, eax
jne 0x140067be5
dec r8d
sub rdx, 1
jns 0x140067bcf
inc r8d
sub r9d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.1400114d0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x68]
mov edx, 0x21
lea rcx, [rsp + 0x50]
call fcn.14006261c
lea rax, [0x1400ae440]
mov qword [rsp + 0x50], rax
mov r9d, 0xf003f
mov r8, qword [rsp + 0x58]
mov rdx, rsi
lea rcx, [rsp + 0xb0]
call fcn.1400678f0
nop
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x170]
xor edx, edx
lea rcx, [rsp + 0xb0]
call fcn.140010f90
test eax, eax
jne 0x140067cd1
lea rcx, [rsp + 0xb0]
call fcn.140012244
nop
mov rcx, qword [rsi + 0xb0]
test rcx, rcx
jne 0x140067c90
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140067cc2
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140067caf
mov ecx, eax
jmp 0x140067c82
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov ebx, 1
lea rcx, [rsp + 0x50]
call fcn.140060ab4
nop
mov eax, ebx
jmp 0x140067d24
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0xb0]
call fcn.140067b60
test eax, eax
jne 0x140067c3b
lea rcx, [rsp + 0xb0]
call fcn.140012244
nop
lea rcx, [rsp + 0x50]
call fcn.140060ab4
nop
lea rax, [0x1400ab968]
mov qword [rsp + 0x28], rax
xor eax, eax
jmp 0x140067d24
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.140024bd0
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140067da0
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
jne 0x140067dc5
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140067dec
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
je 0x140067dd9
mov ecx, eax
jmp 0x140067db5
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, 0x28
ret
Function at 0x140067e00
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, r8
mov esi, edx
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
cmp qword [rdi + 0xb0], 0
jne 0x140067e44
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140067ebd
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8, qword [rbx + 8]
mov edx, esi
mov rcx, qword [rdi + 0xb0]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x140067ea4
mov eax, dword [rsp + 0x50]
lea edx, [rax + rax]
mov dword [rsp + 0x50], edx
mov rcx, rbx
call fcn.14001d2a4
nop
jmp 0x140067e4b
test eax, eax
je 0x140067eac
mov ecx, eax
jmp 0x140067e34
mov edx, dword [rsp + 0x50]
mov rcx, rbx
call fcn.14001d5c8
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140068114
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, r9
xor ecx, ecx
mov rsi, r8
mov rbp, rdx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rbx + 0xb0]
test rcx, rcx
jne 0x140068163
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14006819d
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x140068190
lea ecx, [rax - 0x70]
jmp 0x140068153
test eax, eax
je 0x140068198
mov ecx, eax
jmp 0x140068153
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140068274
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
jne 0x140068299
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x1400682dd
mov dword [rsp + 0x28], 8
lea rdx, [0x1400b49f8]
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]
nop dword [rax + rax]
test eax, eax
je 0x1400682ca
mov ecx, eax
jmp 0x140068289
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
Function at 0x1400682ec
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 0x140068320
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140068377
mov eax, dword [r8 + 0x14]
xor edx, edx
mov rcx, r8
lea ebx, [rax*2 + 2]
call fcn.14001d2a4
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]
nop dword [rax + rax]
test eax, eax
je 0x140068367
mov ecx, eax
jmp 0x140068310
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140068390
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
jne 0x1400683b5
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x1400683ef
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, r8d
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x1400683dc
mov ecx, eax
jmp 0x1400683a5
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
Function at 0x140068468
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 rdi, rcx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x1400685c7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 3
jne 0x1400685b5
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140069398
test al, al
je 0x14006856e
mov rsi, qword [rsp + 0x38]
mov rcx, 0xffffffffffffffff
mov eax, 2
lea rbp, [rsi + 1]
mul rbp
lea rdx, [0x1400b35f2]
cmovo rax, rcx
mov rcx, rax
call fcn.1400252bc
mov rbx, rax
test rax, rax
jne 0x140068515
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreinternal_sdkincwilopensourcewil_filesystem.h
mov ebx, 0x8007000e
lea edx, [rax + 0x7b]
mov r9d, ebx
call fcn.1400205f4
mov eax, ebx
jmp 0x1400685c9
mov r9, rsi
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.14000811c
mov esi, eax
test eax, eax
jns 0x140068533
mov edx, 0x7c
jmp 0x140068546
mov rcx, rbx
call fcn.140068468
mov esi, eax
test eax, eax
jns 0x140068566
mov edx, 0x7d
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreinternal_sdkincwilopensourcewil_filesystem.h
mov r9d, eax
call fcn.1400205f4
mov rcx, rbx
call fcn.1400252ec
mov eax, esi
jmp 0x1400685c9
mov rcx, rbx
call fcn.1400252ec
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x1400685c7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x1400685c7
test eax, eax
je 0x1400685c7
mov edx, 0x84
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreinternal_sdkincwilopensourcewil_filesystem.h
mov r9d, eax
call fcn.140051fbc
jmp 0x1400685c9
cmp eax, 0xb7
je 0x1400685c7
test eax, eax
je 0x1400685c7
mov edx, 0x8a
jmp 0x14006859f
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 0x1400685e8
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x350
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov r14d, edx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov esi, 1
test rcx, rcx
je 0x140068636
lea rdx, [0x1400b3ad4]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
jne 0x140068638
xor esi, esi
test esi, esi
je 0x140068812
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14000e5c8
nop
lea rcx, [rsp + 0x50]
call fcn.140065d40
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x64]
lea rdx, [0x1400bd7e0]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x40], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400687a8
lea rdx, [0x1400b35f4]
lea rcx, [rsp + 0x11c]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
je 0x140068789
lea rdx, [0x1400bd7d8]
lea rcx, [rsp + 0x11c]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
je 0x140068789
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
lea rcx, [rsp + 0x50]
call fcn.140065d40
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x64]
lea rdx, [rsp + 0x11c]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rcx, qword [rsp + 0x58]
test byte [rsp + 0xf0], 0x10
je 0x14006877d
xor r8d, r8d
mov edx, r14d
call fcn.1400685e8
jmp 0x140068789
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
lea rdx, [rsp + 0xf0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400686ba
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400687c1
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
test r14d, r14d
je 0x140068807
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140068807
xor esi, esi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, str._UtilFileSystem__Error_delnoding__ls._0x_08x
mov edx, 0xe6
lea rcx, [0x1400bd760]
call fcn.140065348
nop
lea rcx, [rsp + 0x50]
call fcn.14000e3c0
nop
jmp 0x140068818
mov eax, esi
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.140024bd0
mov rbx, qword [rsp + 0x380]
add rsp, 0x350
pop r14
pop rdi
pop rsi
ret
Function at 0x1400688ac
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
nop dword [rax + rax]
mov r9d, 0x7cf
lea r12, [0x1400ddff0]
mov r8, rax
mov rcx, r12
lea r13d, [r9 + 1]
mov edx, r13d
call fcn.14000811c
xor r15d, r15d
test eax, eax
js 0x140068aed
mov rbx, r12
mov dword [rdi], r15d
lea edx, [r15 + 0x22]
cmp word [rbx], r15w
je 0x1400689c9
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jae 0x140068952
movzx ecx, word [rbx]
test cx, cx
je 0x14006894d
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswspace]
nop dword [rax + rax]
test eax, eax
je 0x14006894d
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x140068923
mov edx, 0x22
mov rax, rbx
sub rax, r12
and rax, 0xfffffffffffffffe
cmp rax, 0xfa0
je 0x1400689c9
movzx ecx, word [rbx]
test cx, cx
je 0x1400689c9
cmp cx, dx
jne 0x1400689b5
lea rcx, [rbx + 2]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400689c7
add rbx, 2
inc dword [rdi]
mov rcx, rbx
sub rcx, r12
mov edx, 0x22
sar rcx, 1
cmp rcx, r13
jb 0x14006890b
jmp 0x1400689c9
cmp word [rbx], r15w
je 0x14006898d
add rbx, 2
movzx ecx, word [rbx]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswspace]
nop dword [rax + rax]
test eax, eax
je 0x1400689a8
jmp 0x14006898d
inc dword [rdi]
cmp dword [rdi], r15d
je 0x140068aed
movsxd rcx, dword [rdi]
mov eax, 8
mul rcx
mov rcx, 0xffffffffffffffff
lea rdx, [0x1400b35f2]
cmovo rax, rcx
mov rcx, rax
call fcn.1400252bc
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140068aed
mov rbx, r12
mov ebp, r15d
mov r14, rax
mov esi, 0x22
cmp word [rbx], r15w
je 0x140068ab9
cmp ebp, dword [rdi]
jge 0x140068ab9
jmp 0x140068a43
movzx ecx, word [rbx]
test cx, cx
je 0x140068a51
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswspace]
nop dword [rax + rax]
test eax, eax
je 0x140068a51
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x140068a27
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
je 0x140068ab9
cmp word [rbx], r15w
je 0x140068ab9
lea rcx, [rbx + 2]
cmp word [rbx], si
je 0x140068a71
mov rcx, rbx
mov qword [r14], rcx
inc ebp
add r14, 8
cmp word [rbx], si
jne 0x140068ae6
mov edx, esi
lea rcx, [rbx + 2]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140068ab9
cmp word [rbx], r15w
je 0x140068aa7
mov word [rbx], r15w
add rbx, 2
mov rcx, rbx
sub rcx, r12
sar rcx, 1
cmp rcx, r13
jb 0x140068a13
mov rax, qword [rsp + 0x58]
jmp 0x140068aef
movzx ecx, word [rbx]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswspace]
nop dword [rax + rax]
test eax, eax
jne 0x140068a99
cmp word [rbx], r15w
je 0x140068aa7
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x140068ac0
jmp 0x140068a99
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140068bf4
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, r8
mov rdx, r8
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140068c99
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rdi], eax
cmp eax, 0x50
je 0x140068c5c
cmp eax, 0xb7
je 0x140068c5c
lea r8, str._UtilFileSystem__CreateDirectory__ls_failed._0x_08x
mov edx, 0x5f
mov r9, rbx
mov dword [rsp + 0x20], eax
lea rcx, [0x1400bd760]
call fcn.14004de6c
xor eax, eax
jmp 0x140068cc5
test rsi, rsi
je 0x140068c99
mov r8, qword [rsi + 8]
mov edx, 4
mov rcx, rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetFileSecurityW]
nop dword [rax + rax]
test eax, eax
jne 0x140068c99
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rdi], eax
lea r8, str._UtilFileSystem__SetFileSecurity__ls_failed._0x_08x
mov edx, 0x69
jmp 0x140068c45
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
bts eax, 0xd
mov rcx, rbx
mov edx, eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
nop dword [rax + rax]
and dword [rdi], 0
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140068f8c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [0x1400dc7a8]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r14, rdx
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.140049130
nop
lea rcx, [rsp + 0x40]
call fcn.140065d40
mov rax, qword [rsp + 0x40]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x54]
lea rdx, [0x1400bd7e0]
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
lea rdx, [rbp - 0x20]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x30], rax
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140069158
lea rdx, [0x1400b35f4]
lea rcx, [rbp + 0xc]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
je 0x14006913d
lea rdx, [0x1400bd7d8]
lea rcx, [rbp + 0xc]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
je 0x14006913d
mov rax, qword [rsp + 0x40]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
xor r8d, r8d
mov rdx, qword [r14 + 8]
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
lea rcx, [rsp + 0x40]
call fcn.140065d40
mov rax, qword [rsp + 0x40]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x54]
lea rdx, [rbp + 0xc]
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rax, qword [rsi]
mov r8d, dword [rbp - 0x20]
test r8b, 0x10
je 0x14006911c
movabs r10, 0xdffc268f7adceb70
lea rdx, [rsp + 0x40]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [case.0x140001f80.0]
mov edi, eax
test eax, eax
js 0x140069110
test eax, eax
jne 0x14006913d
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140068f8c
mov edi, eax
test eax, eax
jns 0x14006913d
lea rcx, [rsp + 0x30]
call fcn.14006842c
jmp 0x140069173
movabs r10, 0xe4341ff178580a70
lea rdx, [rsp + 0x40]
mov rcx, rsi
mov rax, qword [rax]
call qword [case.0x140001f80.0]
mov edi, eax
test eax, eax
js 0x1400691a7
lea rdx, [rbp - 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140069020
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140069171
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
xor edi, edi
lea rcx, [rsp + 0x40]
call fcn.14000e3c0
mov eax, edi
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140024bd0
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
jmp 0x140069173