joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400666f8
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x768]
sub rsp, 0x860
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rbp + 0x750], rax
mov rdi, rcx
xor esi, esi
test rcx, rcx
je 0x140066877
cmp word [rcx], si
je 0x140066877
xor r8d, r8d
xor edx, edx
lea rcx, str.PATH
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdi + rcx*2], si
jne 0x14006675a
lea ebx, [rcx + rax]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0x401
mov word [rsp + 0x48], si
lea rax, [0x1400aea90]
mov qword [rsp + 0x30], rax
lea edx, [rbx + 0x104]
lea rcx, [rsp + 0x30]
call fcn.14001d2a4
mov rdx, rax
lea r8d, [rbx + 0x104]
lea rcx, str.PATH
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call fcn.14001c114
mov rax, qword [rsp + 0x30]
movabs r10, 0x8cc4973714525370
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x44]
lea rdx, [0x1400be0dc]
lea rcx, [rsp + 0x30]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rax, qword [rsp + 0x30]
movabs r10, 0x8cc4973714525370
mov r9d, ebx
mov r8d, dword [rsp + 0x44]
mov rdx, rdi
lea rcx, [rsp + 0x30]
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
mov rdx, qword [rsp + 0x38]
lea rcx, str.PATH
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
jne 0x14006686d
lea r8, [0x1400be0e0]
mov edx, 0x8c
lea rcx, str.onecoreuap_base_appmodel_searchcommonpkmutill_ssfsutil.cxx
call fcn.14004eb3c
mov rcx, qword [rbp + 0x768]
mov r9d, 0x8000ffff
lea r8, [0x1400be090]
mov edx, 0x8d
call fcn.1400665c4
nop
lea rcx, [rsp + 0x30]
call fcn.14004a464
xor eax, eax
mov rcx, qword [rbp + 0x750]
xor rcx, rsp
call fcn.140024c10
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140066f50
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 [0x1400de7a8]
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 0x140066fab
test r8, r8
je 0x1400670ca
test edx, edx
mov r14d, 0x104
mov rcx, 0xffffffffffffffff
mov eax, 2
cmovne r14d, edx
mul r14
lea rdx, [0x1400b45f2]
cmovo rax, rcx
mov rcx, rax
call fcn.1400252fc
mov rsi, rax
test rax, rax
jne 0x140066fe8
xor ebx, ebx
jmp 0x1400670ca
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 0x1400670a6
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.1400670f8
mov ebx, eax
test eax, eax
je 0x1400670b4
test rbp, rbp
je 0x1400670b4
cmp dword [rsp + 0x40], r14d
jae 0x1400670a2
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 0x140066ff2
xor ebx, ebx
jmp 0x1400670b4
cmp eax, 0x103
je 0x1400670c2
cmp eax, 0xea
jne 0x1400670c0
inc edi
test ebx, ebx
jne 0x140066ff2
jmp 0x1400670c2
xor ebx, ebx
mov rcx, rsi
call fcn.14002532c
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140024c10
add rsp, 0x288
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400671c8
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 [0x1400de7a8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r12, r8
mov r15, rdx
mov r14, rcx
mov ebx, 1
test rdx, rdx
je 0x1400672c7
test r9d, r9d
mov eax, 0x1000
cmovne eax, r9d
mov ecx, eax
mov esi, eax
call fcn.140025628
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 0x1400672ab
cmp dword [rsp + 0x40], 0x104
jae 0x1400672a7
mov eax, dword [rsp + 0x44]
cmp eax, esi
ja 0x1400672a7
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 0x1400672b9
xor ebx, ebx
jmp 0x1400672b9
cmp eax, 0x103
je 0x1400672c7
cmp eax, 0xea
jne 0x1400672c5
inc edi
test ebx, ebx
jne 0x14006721d
jmp 0x1400672c7
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140024c10
add rsp, 0x270
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140068980
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x390
mov rax, qword [0x1400de7a8]
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 0x1400689be
mov dword [rsp + 0x3c], r9d
mov dword [rsp + 0x38], r9d
mov qword [rsp + 0x30], rdi
lea rax, [0x1400ae018]
mov qword [rsp + 0x28], rax
lea r8d, [r9 - 1]
movsxd rdx, r8d
test r8d, r8d
js 0x140068a05
movzx ecx, word [rdi + rdx*2]
call fcn.140017680
test eax, eax
jne 0x140068a05
dec r8d
sub rdx, 1
jns 0x1400689ef
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.1400633dc
lea rax, [0x1400af440]
mov qword [rsp + 0x50], rax
mov r9d, 0xf003f
mov r8, qword [rsp + 0x58]
mov rdx, rsi
lea rcx, [rsp + 0xb0]
call fcn.140068710
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 0x140068af1
lea rcx, [rsp + 0xb0]
call fcn.140012244
nop
mov rcx, qword [rsi + 0xb0]
test rcx, rcx
jne 0x140068ab0
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140068ae2
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 0x140068acf
mov ecx, eax
jmp 0x140068aa2
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.140061874
nop
mov eax, ebx
jmp 0x140068b44
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0xb0]
call fcn.140068980
test eax, eax
jne 0x140068a5b
lea rcx, [rsp + 0xb0]
call fcn.140012244
nop
lea rcx, [rsp + 0x50]
call fcn.140061874
nop
lea rax, [0x1400ac968]
mov qword [rsp + 0x28], rax
xor eax, eax
jmp 0x140068b44
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.140024c10
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140068bc0
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
jne 0x140068be5
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 0x140068c0c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
je 0x140068bf9
mov ecx, eax
jmp 0x140068bd5
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 0x140068c20
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 0x140068c64
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 0x140068cdd
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 0x140068cc4
mov eax, dword [rsp + 0x50]
lea edx, [rax + rax]
mov dword [rsp + 0x50], edx
mov rcx, rbx
call fcn.14001d2a4
nop
jmp 0x140068c6b
test eax, eax
je 0x140068ccc
mov ecx, eax
jmp 0x140068c54
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 0x140068f34
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 0x140068f83
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 0x140068fbd
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 0x140068fb0
lea ecx, [rax - 0x70]
jmp 0x140068f73
test eax, eax
je 0x140068fb8
mov ecx, eax
jmp 0x140068f73
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 0x140069094
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
jne 0x1400690b9
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 0x1400690fd
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]
nop dword [rax + rax]
test eax, eax
je 0x1400690ea
mov ecx, eax
jmp 0x1400690a9
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 0x14006910c
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 0x140069140
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 0x140069197
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 0x140069187
mov ecx, eax
jmp 0x140069130
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 0x1400691b0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
jne 0x1400691d5
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 0x14006920f
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 0x1400691fc
mov ecx, eax
jmp 0x1400691c5
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 0x140069288
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 0x1400693e7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 3
jne 0x1400693d5
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14006a1b8
test al, al
je 0x14006938e
mov rsi, qword [rsp + 0x38]
mov rcx, 0xffffffffffffffff
mov eax, 2
lea rbp, [rsi + 1]
mul rbp
lea rdx, [0x1400b45f2]
cmovo rax, rcx
mov rcx, rax
call fcn.1400252fc
mov rbx, rax
test rax, rax
jne 0x140069335
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 0x1400693e9
mov r9, rsi
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.14000811c
mov esi, eax
test eax, eax
jns 0x140069353
mov edx, 0x7c
jmp 0x140069366
mov rcx, rbx
call fcn.140069288
mov esi, eax
test eax, eax
jns 0x140069386
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.14002532c
mov eax, esi
jmp 0x1400693e9
mov rcx, rbx
call fcn.14002532c
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 0x1400693e7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x1400693e7
test eax, eax
je 0x1400693e7
mov edx, 0x84
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreinternal_sdkincwilopensourcewil_filesystem.h
mov r9d, eax
call fcn.140052d34
jmp 0x1400693e9
cmp eax, 0xb7
je 0x1400693e7
test eax, eax
je 0x1400693e7
mov edx, 0x8a
jmp 0x1400693bf
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 0x140069408
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 [0x1400de7a8]
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 0x140069456
lea rdx, [0x1400b4ad4]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
jne 0x140069458
xor esi, esi
test esi, esi
je 0x140069632
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14000e5c8
nop
lea rcx, [rsp + 0x50]
call fcn.140066b00
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x64]
lea rdx, [0x1400be8f0]
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 0x1400695c8
lea rdx, [0x1400b45f4]
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 0x1400695a9
lea rdx, [0x1400be8e8]
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 0x1400695a9
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.140066b00
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 0x14006959d
xor r8d, r8d
mov edx, r14d
call fcn.140069408
jmp 0x1400695a9
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 0x1400694da
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400695e1
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 0x140069627
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 0x140069627
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, [0x1400be870]
call fcn.140066108
nop
lea rcx, [rsp + 0x50]
call fcn.14000e3c0
nop
jmp 0x140069638
mov eax, esi
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.140024c10
mov rbx, qword [rsp + 0x380]
add rsp, 0x350
pop r14
pop rdi
pop rsi
ret
Function at 0x1400696cc
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, [0x1400e0030]
mov r8, rax
mov rcx, r12
lea r13d, [r9 + 1]
mov edx, r13d
call fcn.14000811c
xor r15d, r15d
test eax, eax
js 0x14006990d
mov rbx, r12
mov dword [rdi], r15d
lea edx, [r15 + 0x22]
cmp word [rbx], r15w
je 0x1400697e9
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jae 0x140069772
movzx ecx, word [rbx]
test cx, cx
je 0x14006976d
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswspace]
nop dword [rax + rax]
test eax, eax
je 0x14006976d
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x140069743
mov edx, 0x22
mov rax, rbx
sub rax, r12
and rax, 0xfffffffffffffffe
cmp rax, 0xfa0
je 0x1400697e9
movzx ecx, word [rbx]
test cx, cx
je 0x1400697e9
cmp cx, dx
jne 0x1400697d5
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 0x1400697e7
add rbx, 2
inc dword [rdi]
mov rcx, rbx
sub rcx, r12
mov edx, 0x22
sar rcx, 1
cmp rcx, r13
jb 0x14006972b
jmp 0x1400697e9
cmp word [rbx], r15w
je 0x1400697ad
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 0x1400697c8
jmp 0x1400697ad
inc dword [rdi]
cmp dword [rdi], r15d
je 0x14006990d
movsxd rcx, dword [rdi]
mov eax, 8
mul rcx
mov rcx, 0xffffffffffffffff
lea rdx, [0x1400b45f2]
cmovo rax, rcx
mov rcx, rax
call fcn.1400252fc
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14006990d
mov rbx, r12
mov ebp, r15d
mov r14, rax
mov esi, 0x22
cmp word [rbx], r15w
je 0x1400698d9
cmp ebp, dword [rdi]
jge 0x1400698d9
jmp 0x140069863
movzx ecx, word [rbx]
test cx, cx
je 0x140069871
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswspace]
nop dword [rax + rax]
test eax, eax
je 0x140069871
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x140069847
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
je 0x1400698d9
cmp word [rbx], r15w
je 0x1400698d9
lea rcx, [rbx + 2]
cmp word [rbx], si
je 0x140069891
mov rcx, rbx
mov qword [r14], rcx
inc ebp
add r14, 8
cmp word [rbx], si
jne 0x140069906
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 0x1400698d9
cmp word [rbx], r15w
je 0x1400698c7
mov word [rbx], r15w
add rbx, 2
mov rcx, rbx
sub rcx, r12
sar rcx, 1
cmp rcx, r13
jb 0x140069833
mov rax, qword [rsp + 0x58]
jmp 0x14006990f
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 0x1400698b9
cmp word [rbx], r15w
je 0x1400698c7
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x1400698e0
jmp 0x1400698b9
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 0x140069a14
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 0x140069ab9
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 0x140069a7c
cmp eax, 0xb7
je 0x140069a7c
lea r8, str._UtilFileSystem__CreateDirectory__ls_failed._0x_08x
mov edx, 0x5f
mov r9, rbx
mov dword [rsp + 0x20], eax
lea rcx, [0x1400be870]
call fcn.14004eb3c
xor eax, eax
jmp 0x140069ae5
test rsi, rsi
je 0x140069ab9
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 0x140069ab9
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 0x140069a65
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