joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400532d8
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 [0x1400c5228]
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.14001e27c
mov rdi, rax
mov qword [rsp + 0x38], rax
mov rdx, rsi
lea rcx, [rbp - 8]
call fcn.14001e27c
mov rbx, rax
mov qword [rsp + 0x30], rax
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.14001e27c
nop
mov rdx, rdi
lea rcx, [rbp + 0x140]
call fcn.14001e27c
and dword [rbp + 0x1e0], 0
and qword [rbp + 0x1e8], 0
mov rcx, rbx
call fcn.14001222c
nop
mov rcx, rdi
call fcn.14001222c
nop
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r9, [rbp + 0xa0]
lea r8, [0x140053290]
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 0x1400533e2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400533db
movzx ebx, ax
or ebx, edi
mov rax, qword [rbp + 0x1e8]
test ebx, ebx
js 0x14005344b
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.14001fb5c
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 0x1400533e6
test eax, eax
jne 0x140053426
mov ebx, dword [rbp + 0x1e0]
jmp 0x140053437
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140053437
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 0x140053459
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rcx, [rbp + 0x140]
call fcn.14001222c
lea rcx, [rbp + 0xa0]
call fcn.14001222c
nop
mov rcx, rsi
call fcn.14001222c
nop
mov rcx, r14
call fcn.14001222c
mov eax, ebx
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14002c9c0
mov rbx, qword [rsp + 0x348]
add rsp, 0x300
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400537a4
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x458]
sub rsp, 0x530
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov r15, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rdx
lea rcx, [rbp + 0x130]
call fcn.14001e27c
nop
mov rdx, rsi
lea rcx, [rbp + 0x90]
call fcn.14001e27c
nop
mov rax, qword [rbp + 0x90]
mov r9d, dword [rbp + 0x144]
mov r8d, dword [rbp + 0xa4]
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 0x90]
mov rax, qword [rax + 0x20]
call qword [case.0x140002c98.0]
mov rax, qword [rbp + 0x90]
or r9d, 0xffffffff
mov r8d, dword [rbp + 0xa4]
lea rdx, [0x14009434c]
lea rcx, [rbp + 0x90]
mov rax, qword [rax + 0x20]
call qword [case.0x140002c98.0]
xor edi, edi
mov ebx, edi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rbp + 0x1d0]
xor edx, edx
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileExW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14005396a
test byte [rbp + 0x1d0], 0x10
je 0x140053927
cmp word [rbp + 0x1fc], 0x2e
je 0x14005392e
inc qword [rsi + 0xa8]
lea rdx, [rbp + 0x130]
lea rcx, [rbp - 0x10]
call fcn.14001e27c
nop
mov rax, qword [rbp - 0x10]
or r9d, 0xffffffff
mov r8d, dword [rbp + 4]
lea rdx, [0x140094464]
lea rcx, [rbp - 0x10]
mov rax, qword [rax + 0x20]
call qword [case.0x140002c98.0]
mov rax, qword [rbp - 0x10]
or r9d, 0xffffffff
mov r8d, dword [rbp + 4]
lea rdx, [rbp + 0x1fc]
lea rcx, [rbp - 0x10]
mov rax, qword [rax + 0x20]
call qword [case.0x140002c98.0]
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x48]
call fcn.14001e27c
mov rdx, rax
mov rcx, rsi
call fcn.1400537a4
mov ebx, eax
lea rcx, [rbp - 0x10]
call fcn.14001222c
jmp 0x14005392e
inc qword [rsi + 0xa0]
test ebx, ebx
js 0x14005395f
lea rdx, [rbp + 0x1d0]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
jne 0x14005388c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14005395f
movzx ebx, ax
or ebx, 0x80070000
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
jmp 0x14005397f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14005397f
movzx ebx, ax
or ebx, 0x80070000
cmp ebx, 0x80070012
cmovne edi, ebx
lea rcx, [rbp + 0x90]
call fcn.14001222c
nop
lea rcx, [rbp + 0x130]
call fcn.14001222c
nop
mov rcx, r15
call fcn.14001222c
mov eax, edi
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.14002c9c0
mov rbx, qword [rsp + 0x570]
add rsp, 0x530
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140055718
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 qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r13, r9
mov r12, r8
mov rbp, rdx
mov r15, rcx
mov ecx, dword [rsp + 0x2f0]
mov rax, qword [rsp + 0x2f8]
mov qword [rsp + 0x48], rax
mov ebx, 1
xor esi, esi
test rdx, rdx
jne 0x14005577c
test r8, r8
je 0x14005588c
mov r14d, 0x104
test ecx, ecx
cmovne r14d, ecx
mov eax, 2
mul r14
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
mov rax, qword [0x14008d250]
call qword [case.0x140002c98.0]
mov rdi, rax
test rax, rax
jne 0x1400557ba
mov ebx, esi
jmp 0x14005588c
xor eax, eax
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x44], 0x104
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8, rdi
mov edx, esi
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x14005585d
mov eax, dword [rsp + 0x300]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r13
mov r9, r12
mov r8, rbp
mov rdx, rdi
mov rcx, r15
call fcn.1400558b8
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x140055871
test rbp, rbp
je 0x140055871
cmp dword [rsp + 0x40], r14d
jae 0x140055859
mov r8, r13
mov rdx, rdi
mov rcx, r15
mov rax, rbp
call qword [case.0x140002c98.0]
xor eax, eax
jmp 0x140055871
mov ebx, eax
jmp 0x140055871
cmp eax, 0x103
je 0x14005587b
cmp eax, 0xea
mov eax, 0
cmovne ebx, eax
inc esi
test ebx, ebx
jne 0x1400557bc
mov rcx, rdi
mov rax, qword [0x14008d258]
call qword [case.0x140002c98.0]
nop
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14002c9c0
add rsp, 0x288
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140055978
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 [0x1400c5228]
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 0x140055a73
test r9d, r9d
mov eax, 0x1000
cmovne eax, r9d
mov esi, eax
mov ecx, eax
mov rax, qword [0x14008d250]
call qword [case.0x140002c98.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 0x140055a59
cmp dword [rsp + 0x40], 0x104
jae 0x140055a54
mov eax, dword [rsp + 0x44]
cmp eax, esi
ja 0x140055a54
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.0x140002c98.0]
jmp 0x140055a69
mov ebx, r13d
jmp 0x140055a69
cmp eax, 0x103
je 0x140055a73
cmp eax, 0xea
cmovne ebx, r13d
inc edi
test ebx, ebx
jne 0x1400559db
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14002c9c0
add rsp, 0x278
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400560a0
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 [0x1400c5228]
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 0x1400560e2
mov dword [rsp + 0x3c], r9d
mov dword [rsp + 0x38], r9d
mov qword [rsp + 0x30], rdi
lea rax, [0x14008bb40]
mov qword [rsp + 0x28], rax
lea r8d, [r9 - 1]
movsxd rdx, r8d
test r8d, r8d
js 0x140056129
movzx ecx, word [rdi + rdx*2]
call fcn.1400174d4
test eax, eax
jne 0x140056129
dec r8d
sub rdx, 1
jns 0x140056113
inc r8d
sub r9d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.14000b988
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x78]
mov edx, 0x21
lea rcx, [rsp + 0x60]
call fcn.14000aa1c
lea rax, [0x14008a278]
mov qword [rsp + 0x60], rax
mov r9d, 0xf003f
mov r8, qword [rsp + 0x68]
mov rdx, rsi
lea rcx, [rsp + 0xc0]
call fcn.140055e50
nop
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x180]
xor edx, edx
lea rcx, [rsp + 0xc0]
call fcn.1400562c0
test eax, eax
jne 0x140056203
lea rcx, [rsp + 0xc0]
call fcn.140011e24
nop
mov rcx, qword [rsi + 0xb0]
test rcx, rcx
jne 0x1400561ce
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
jmp 0x1400561f4
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 0x1400561e7
mov ecx, eax
jmp 0x1400561c6
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.140006328
nop
mov eax, ebx
jmp 0x140056256
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0xc0]
call fcn.1400560a0
test eax, eax
jne 0x14005617f
lea rcx, [rsp + 0xc0]
call fcn.140011e24
nop
lea rcx, [rsp + 0x60]
call fcn.140006328
nop
lea rax, fcn.1400275e0
mov qword [rsp + 0x28], rax
xor eax, eax
jmp 0x140056256
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.14002c9c0
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400562c0
Capabilities:
Query or enumerate registry key

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

Function at 0x1400566d4
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0xb0]
xor ebx, ebx
test rcx, rcx
jne 0x1400566f5
lea ecx, [rbx + 6]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x140056737
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], bx
jne 0x1400566f9
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 0x14005672a
mov ecx, eax
jmp 0x1400566eb
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 0x140056744
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
jne 0x140056763
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x14005679b
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 0x14005678e
mov ecx, eax
jmp 0x140056759
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 0x1400567a8
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 0x1400567d6
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x140056821
mov eax, dword [r8 + 0x14]
xor edx, edx
mov rcx, r8
lea ebx, [rax*2 + 2]
call fcn.14000a708
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 0x140056817
mov ecx, eax
jmp 0x1400567cc
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 0x140056838
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
jne 0x14005685c
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x14005688f
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 0x140056882
mov ecx, eax
jmp 0x140056852
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 0x140056b48
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x30
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rdi, rcx
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x140056c97
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 3
jne 0x140056c71
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.1400576a0
test al, al
je 0x140056c4c
mov rbx, qword [rsp + 0x48]
lea rbp, [rbx + 1]
mov eax, 2
mul rbp
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
lea rdx, [0x140095c74]
mov rcx, rax
call fcn.14002ce6c
mov rsi, rax
test rax, rax
jne 0x140056bec
mov rcx, qword [rsp + 0x38]
mov ebx, 0x8007000e
mov r9d, ebx
lea r8, str.internal_sdkincwilopensourcewil_filesystem.h
lea edx, [rax + 0x70]
call fcn.1400433e4
jmp 0x140056c2e
mov r9, rbx
mov r8, rdi
mov rdx, rbp
mov rcx, rsi
call fcn.140018a54
mov ebx, eax
test eax, eax
jns 0x140056c32
mov rcx, qword [rsp + 0x38]
mov r9d, eax
lea r8, str.internal_sdkincwilopensourcewil_filesystem.h
mov edx, 0x71
call fcn.1400433e4
nop
mov rcx, rsi
mov rax, qword [0x14008d258]
call qword [case.0x140002c98.0]
nop
mov eax, ebx
jmp 0x140056c99
mov rcx, rsi
call fcn.140056b48
nop
mov rcx, rsi
mov rax, qword [0x14008d258]
call qword [case.0x140002c98.0]
nop
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x140056c97
mov rcx, qword [rsp + 0x38]
lea r8, str.internal_sdkincwilopensourcewil_filesystem.h
lea edx, [rax + 0x74]
call fcn.1400433c4
jmp 0x140056c99
cmp eax, 0xb7
je 0x140056c97
test eax, eax
je 0x140056c97
mov rcx, qword [rsp + 0x38]
mov r9d, eax
lea r8, str.internal_sdkincwilopensourcewil_filesystem.h
mov edx, 0x78
call fcn.1400572c4
jmp 0x140056c99
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140056cb4
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x350
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov r14d, edx
mov rsi, rcx
mov edi, 1
test rcx, rcx
je 0x140056d02
lea rdx, [0x1400943f0]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
test eax, eax
jne 0x140056d04
xor edi, edi
test edi, edi
je 0x140056e67
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.14001e2f4
nop
lea rcx, [rsp + 0x50]
call fcn.14005536c
mov rax, qword [rsp + 0x50]
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x64]
lea rdx, [0x1400a3ca0]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140002c98.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]
mov rbx, rax
mov qword [rsp + 0x40], rax
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140056e35
lea rdx, [0x1400943f4]
lea rcx, [rsp + 0x11c]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
test eax, eax
je 0x140056e1c
lea rdx, [0x1400a3ca8]
lea rcx, [rsp + 0x11c]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
test eax, eax
je 0x140056e1c
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.0x140002c98.0]
lea rcx, [rsp + 0x50]
call fcn.14005536c
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.0x140002c98.0]
mov rcx, qword [rsp + 0x58]
test byte [rsp + 0xf0], 0x10
je 0x140056e16
xor r8d, r8d
mov edx, r14d
call fcn.140056cb4
jmp 0x140056e1c
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 0x140056d69
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140056e48
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
test r14d, r14d
je 0x140056e5c
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.14001222c
nop
jmp 0x140056e6d
mov eax, edi
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.14002c9c0
mov rbx, qword [rsp + 0x380]
add rsp, 0x350
pop r14
pop rdi
pop rsi
ret
Function at 0x140056fac
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 0x14005700e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbx], eax
cmp eax, 0x50
je 0x140056fe9
cmp eax, 0xb7
je 0x140056fe9
xor eax, eax
jmp 0x14005702e
test rsi, rsi
je 0x14005700e
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 0x14005700e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbx], eax
jmp 0x140056fe5
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
Function at 0x1400572f0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x258]
sub rsp, 0x340
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r14, rdx
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.14001e27c
nop
lea rcx, [rsp + 0x40]
call fcn.14005536c
mov rax, qword [rsp + 0x40]
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x54]
lea rdx, [0x1400a3ca0]
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x140002c98.0]
lea rdx, [rbp - 0x20]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
mov rbx, rax
mov qword [rsp + 0x38], rax
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140057461
lea rdx, [0x1400943f4]
lea rcx, [rbp + 0xc]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
test eax, eax
je 0x14005744c
lea rdx, [0x1400a3ca8]
lea rcx, [rbp + 0xc]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
test eax, eax
je 0x14005744c
mov rax, qword [rsp + 0x40]
or r9d, 0xffffffff
xor r8d, r8d
mov rdx, qword [r14 + 8]
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x140002c98.0]
lea rcx, [rsp + 0x40]
call fcn.14005536c
mov rax, qword [rsp + 0x40]
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x54]
lea rdx, [rbp + 0xc]
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x140002c98.0]
mov r8d, dword [rbp - 0x20]
mov rax, qword [rsi]
lea rdx, [rsp + 0x40]
mov rcx, rsi
test r8b, 0x10
je 0x14005743d
mov rax, qword [rax + 8]
call qword [case.0x140002c98.0]
mov edi, eax
test eax, eax
js 0x1400574a9
jne 0x14005744c
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400572f0
jmp 0x140057446
mov rax, qword [rax]
call qword [case.0x140002c98.0]
test eax, eax
mov edi, eax
js 0x1400574a9
lea rdx, [rbp - 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
jne 0x14005737d
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140057474
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
xor edi, edi
lea rcx, [rsp + 0x40]
call fcn.14001222c
mov eax, edi
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.14002c9c0
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140057476
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
jmp 0x140057476