joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140066728
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 0x1400668a7
cmp word [rcx], si
je 0x1400668a7
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 0x14006678a
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 0x14006689d
lea r8, [0x1400be0e0]
mov edx, 0x8c
lea rcx, str.onecoreuap_base_appmodel_searchcommonpkmutill_ssfsutil.cxx
call fcn.14004eb6c
mov rcx, qword [rbp + 0x768]
mov r9d, 0x8000ffff
lea r8, [0x1400be090]
mov edx, 0x8d
call fcn.1400665f4
nop
lea rcx, [rsp + 0x30]
call fcn.14004a494
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 0x140066f80
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 0x140066fdb
test r8, r8
je 0x1400670fa
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 0x140067018
xor ebx, ebx
jmp 0x1400670fa
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 0x1400670d6
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.140067128
mov ebx, eax
test eax, eax
je 0x1400670e4
test rbp, rbp
je 0x1400670e4
cmp dword [rsp + 0x40], r14d
jae 0x1400670d2
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 0x140067022
xor ebx, ebx
jmp 0x1400670e4
cmp eax, 0x103
je 0x1400670f2
cmp eax, 0xea
jne 0x1400670f0
inc edi
test ebx, ebx
jne 0x140067022
jmp 0x1400670f2
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 0x1400671f8
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 0x1400672f7
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 0x1400672db
cmp dword [rsp + 0x40], 0x104
jae 0x1400672d7
mov eax, dword [rsp + 0x44]
cmp eax, esi
ja 0x1400672d7
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 0x1400672e9
xor ebx, ebx
jmp 0x1400672e9
cmp eax, 0x103
je 0x1400672f7
cmp eax, 0xea
jne 0x1400672f5
inc edi
test ebx, ebx
jne 0x14006724d
jmp 0x1400672f7
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 0x1400689b0
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 0x1400689ee
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 0x140068a35
movzx ecx, word [rdi + rdx*2]
call fcn.140017680
test eax, eax
jne 0x140068a35
dec r8d
sub rdx, 1
jns 0x140068a1f
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.14006340c
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.140068740
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 0x140068b21
lea rcx, [rsp + 0xb0]
call fcn.140012244
nop
mov rcx, qword [rsi + 0xb0]
test rcx, rcx
jne 0x140068ae0
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140068b12
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 0x140068aff
mov ecx, eax
jmp 0x140068ad2
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.1400618a4
nop
mov eax, ebx
jmp 0x140068b74
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0xb0]
call fcn.1400689b0
test eax, eax
jne 0x140068a8b
lea rcx, [rsp + 0xb0]
call fcn.140012244
nop
lea rcx, [rsp + 0x50]
call fcn.1400618a4
nop
lea rax, [0x1400ac968]
mov qword [rsp + 0x28], rax
xor eax, eax
jmp 0x140068b74
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 0x140068bf0
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
jne 0x140068c15
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 0x140068c3c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
je 0x140068c29
mov ecx, eax
jmp 0x140068c05
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 0x140068c50
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 0x140068c94
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 0x140068d0d
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 0x140068cf4
mov eax, dword [rsp + 0x50]
lea edx, [rax + rax]
mov dword [rsp + 0x50], edx
mov rcx, rbx
call fcn.14001d2a4
nop
jmp 0x140068c9b
test eax, eax
je 0x140068cfc
mov ecx, eax
jmp 0x140068c84
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 0x140068f64
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 0x140068fb3
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 0x140068fed
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 0x140068fe0
lea ecx, [rax - 0x70]
jmp 0x140068fa3
test eax, eax
je 0x140068fe8
mov ecx, eax
jmp 0x140068fa3
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 0x1400690c4
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
jne 0x1400690e9
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 0x14006912d
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 0x14006911a
mov ecx, eax
jmp 0x1400690d9
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 0x14006913c
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 0x140069170
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 0x1400691c7
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 0x1400691b7
mov ecx, eax
jmp 0x140069160
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 0x1400691e0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
jne 0x140069205
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 0x14006923f
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 0x14006922c
mov ecx, eax
jmp 0x1400691f5
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 0x1400692b8
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 0x140069417
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 3
jne 0x140069405
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14006a1e8
test al, al
je 0x1400693be
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 0x140069365
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 0x140069419
mov r9, rsi
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.14000811c
mov esi, eax
test eax, eax
jns 0x140069383
mov edx, 0x7c
jmp 0x140069396
mov rcx, rbx
call fcn.1400692b8
mov esi, eax
test eax, eax
jns 0x1400693b6
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 0x140069419
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 0x140069417
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x140069417
test eax, eax
je 0x140069417
mov edx, 0x84
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreinternal_sdkincwilopensourcewil_filesystem.h
mov r9d, eax
call fcn.140052d64
jmp 0x140069419
cmp eax, 0xb7
je 0x140069417
test eax, eax
je 0x140069417
mov edx, 0x8a
jmp 0x1400693ef
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 0x140069438
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 0x140069486
lea rdx, [0x1400b4ae4]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
jne 0x140069488
xor esi, esi
test esi, esi
je 0x140069662
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14000e5c8
nop
lea rcx, [rsp + 0x50]
call fcn.140066b30
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 0x1400695f8
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 0x1400695d9
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 0x1400695d9
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.140066b30
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 0x1400695cd
xor r8d, r8d
mov edx, r14d
call fcn.140069438
jmp 0x1400695d9
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 0x14006950a
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140069611
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 0x140069657
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 0x140069657
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.140066138
nop
lea rcx, [rsp + 0x50]
call fcn.14000e3c0
nop
jmp 0x140069668
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 0x1400696fc
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 0x14006993d
mov rbx, r12
mov dword [rdi], r15d
lea edx, [r15 + 0x22]
cmp word [rbx], r15w
je 0x140069819
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jae 0x1400697a2
movzx ecx, word [rbx]
test cx, cx
je 0x14006979d
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswspace]
nop dword [rax + rax]
test eax, eax
je 0x14006979d
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x140069773
mov edx, 0x22
mov rax, rbx
sub rax, r12
and rax, 0xfffffffffffffffe
cmp rax, 0xfa0
je 0x140069819
movzx ecx, word [rbx]
test cx, cx
je 0x140069819
cmp cx, dx
jne 0x140069805
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 0x140069817
add rbx, 2
inc dword [rdi]
mov rcx, rbx
sub rcx, r12
mov edx, 0x22
sar rcx, 1
cmp rcx, r13
jb 0x14006975b
jmp 0x140069819
cmp word [rbx], r15w
je 0x1400697dd
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 0x1400697f8
jmp 0x1400697dd
inc dword [rdi]
cmp dword [rdi], r15d
je 0x14006993d
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 0x14006993d
mov rbx, r12
mov ebp, r15d
mov r14, rax
mov esi, 0x22
cmp word [rbx], r15w
je 0x140069909
cmp ebp, dword [rdi]
jge 0x140069909
jmp 0x140069893
movzx ecx, word [rbx]
test cx, cx
je 0x1400698a1
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswspace]
nop dword [rax + rax]
test eax, eax
je 0x1400698a1
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x140069877
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
je 0x140069909
cmp word [rbx], r15w
je 0x140069909
lea rcx, [rbx + 2]
cmp word [rbx], si
je 0x1400698c1
mov rcx, rbx
mov qword [r14], rcx
inc ebp
add r14, 8
cmp word [rbx], si
jne 0x140069936
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 0x140069909
cmp word [rbx], r15w
je 0x1400698f7
mov word [rbx], r15w
add rbx, 2
mov rcx, rbx
sub rcx, r12
sar rcx, 1
cmp rcx, r13
jb 0x140069863
mov rax, qword [rsp + 0x58]
jmp 0x14006993f
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 0x1400698e9
cmp word [rbx], r15w
je 0x1400698f7
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x140069910
jmp 0x1400698e9
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 0x140069a44
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 0x140069ae9
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 0x140069aac
cmp eax, 0xb7
je 0x140069aac
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.14004eb6c
xor eax, eax
jmp 0x140069b15
test rsi, rsi
je 0x140069ae9
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 0x140069ae9
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 0x140069a95
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