joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016fed4
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x14026e7d0]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x140265b7c]
test eax, eax
je 0x14016ff1f
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140265b7c]
test eax, eax
jne 0x14016ff28
call fcn.14000d040
test eax, eax
je 0x14016ff44
lea rdx, [rsp + 0x48]
mov rcx, qword [0x14025d4b8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14016ff4c
xor eax, eax
jmp 0x14016ffa9
test rbx, rbx
jne 0x14016ff6c
lea rcx, str.DestroyPropertySheetPage
call fcn.1401700b8
mov rbx, rax
test rax, rax
je 0x14016ff77
mov qword [0x14026e7d0], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x14016ff8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14016ff8e
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14016ffa7
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14016ffc0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
or rdi, 0xffffffffffffffff
mov qword [rax - 0x18], rdi
mov rbx, qword [0x14026e7d8]
and qword [rax + 0x10], 0
xor esi, esi
mov eax, dword [0x140265b7c]
test eax, eax
je 0x14017000f
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140265b7c]
test eax, eax
jne 0x140170018
call fcn.14000d040
test eax, eax
je 0x140170034
lea rdx, [rsp + 0x48]
mov rcx, qword [0x14025d4b8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14017003e
or rax, 0xffffffffffffffff
jmp 0x1401700a0
test rbx, rbx
jne 0x14017005e
lea rcx, str.PropertySheetW
call fcn.1401700b8
mov rbx, rax
test rax, rax
je 0x14017006b
mov qword [0x14026e7d8], rax
mov rcx, r14
call rbx
mov rdi, rax
mov qword [rsp + 0x20], rax
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
sete bl
test ebx, ebx
je 0x140170082
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140170084
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14017009d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
push rsi
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
push rax
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x14000f078
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400e30b0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov ebx, edx
mov qword [rsp + 0x30], rcx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x20a
call fcn.1400659b0
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
test eax, eax
js 0x14000f126
mov qword [rdi + 0x10], rcx
lea rax, [rsp + 0x40]
mov qword [rdi + 0x18], 7
or r8, 0xffffffffffffffff
mov word [rdi], cx
inc r8
cmp word [rax + r8*2], cx
jne 0x14000f0eb
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140004670
mov rax, rdi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140046b20
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
lfence
mov r8d, 0x14
lea rdx, str.C:dvsp4_build_sw_relgfclient_rel_03_20_backendClientCommon_srcClientPaths.cpp
mov ecx, eax
call fcn.14000eee4
int3

Function at 0x140011b88
Capabilities:
Query service status

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x70
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400e30b0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
xor edi, edi
test rax, rax
je 0x140011cad
mov qword [rsp + 0x30], r14
mov r8d, 5
lea rdx, str.NvContainerLocalSystem
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x140011c0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
sete dil
jmp 0x140011ca1
mov qword [rsp + 0x38], rsi
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140011c2e
mov eax, dword [rsp + 0x44]
add eax, 0xfffffffe
cmp eax, 5
jbe 0x140011c97
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x140011c97
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140011c97
mov ebx, dword [rsp + 0x20]
mov ecx, ebx
call fcn.1400474e0
mov rbp, rax
lea r9, [rsp + 0x20]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x140011c84
cmp dword [rbp + 4], 2
setne dil
jmp 0x140011c89
test rbp, rbp
je 0x140011c97
mov edx, 0x40
mov rcx, rbp
call fcn.140046b80
nop
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, dil
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140046b20
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14001bb90
Capabilities:
Get common file path

Disassembly:
push rbx
push rdi
push r12
push r14
push r15
sub rsp, 0x4f0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x1400e30b0]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rbx, rdx
mov r15, rcx
mov r12, qword [rsp + 0x540]
xor edi, edi
cmp qword [rdx + 0x10], rdi
je 0x14001be3a
mov qword [rsp + 0x40], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x58]
call fcn.14001e078
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140017584
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001bc3c
mov rdx, qword [rsp + 0x68]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14001bc36
lfence
add rdx, 0x27
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001be63
call fcn.140046b80
nop
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x2d0]
call fcn.1400659b0
lea rax, [rsp + 0x2d0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x28]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov r14d, eax
test eax, eax
jns 0x14001bd49
lfence
call fcn.14003ab84
mov r9d, 1
mov r8, qword [rax]
lea edx, [r9 + 1]
lea rcx, [rsp + 0x98]
call fcn.140003144
nop
lea rbx, [rax + 0x10]
lea rdx, str.GFE::Feedback::Builder::AddFile:_SHGetFolderPath_failed_with
mov rcx, rbx
call fcn.140007858
mov edx, r14d
mov rcx, rbx
call fcn.140012c38
nop
lea rcx, [rsp + 0x140]
call fcn.1400030e0
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x140]
call fcn.140043ee4
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001bd29
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14001bd24
lfence
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001be34
call fcn.140046b80
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.140046b20
add rsp, 0x4f0
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x2b8], xmm0
mov rdx, rbx
lea rcx, [rsp + 0x2a8]
call fcn.1400046dc
nop
lea rdx, [rsp + 0x2d0]
mov rcx, rbx
call fcn.14001e74c
test al, al
je 0x14001bdaf
lea rax, [rsp + 0x2d0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x14001bd86
mov qword [rsp + 0x20], ntohl
lea r9, str._USERPROFILE_
xor edx, edx
lea rcx, [rsp + 0x2a8]
call fcn.1400081c0
mov rax, qword [r15]
mov r9, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
sub r9, rbx
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], r12
mov r8, rbx
lea rdx, [rsp + 0x2a8]
mov rcx, r15
mov rax, qword [rax + 0x10]
call qword [case.0x14004721e.0]
nop
lea rcx, [rsp + 0x2a8]
call fcn.1400045e4
nop
test rbx, rbx
je 0x14001bd29
mov rdx, qword [rsp + 0x50]
sub rdx, rbx
cmp rdx, 0x1000
jb 0x14001be27
lfence
add rdx, 0x27
mov rax, qword [rsp + 0x40]
mov rbx, qword [rax - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001be34
mov rcx, rbx
jmp 0x14001bd24
call fcn.14006b7b8
int3
lea rdx, str.File_path_must_not_be_empty
lea rcx, [rsp + 0x80]
call fcn.14001a0ac
lea rdx, [0x1400e11f0]
lea rcx, [rsp + 0x80]
call fcn.140065b40
nop
call fcn.14006b7b8
int3
Function at 0x1400223c0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x2e8]
sub rsp, 0x3d0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400e30b0]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rbp + 0x50], rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xb0]
call fcn.1400659b0
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x24]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
mov dword [rbp + 0x50], eax
test eax, eax
js 0x1400224db
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x90]
call fcn.14003c910
mov rbx, rax
lea rdx, [0x1400c3eb0]
lea rcx, [rbp + 0x50]
call fcn.14003c910
nop
lea rdx, [rbp + 0x50]
mov rcx, rbx
call fcn.14003c9e4
mov rbx, rax
mov rdx, rsi
lea rcx, [rbp + 0x70]
call fcn.14003c8d8
nop
lea rdx, [rbp + 0x70]
mov rcx, rbx
call fcn.14003c9e4
mov rdx, rax
mov rcx, rdi
call fcn.14000350c
nop
lea rcx, [rbp + 0x70]
call fcn.140002460
nop
lea rcx, [rbp + 0x50]
call fcn.140002460
nop
lea rcx, [rbp + 0x90]
call fcn.140002460
mov rax, rdi
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.140046b20
mov rbx, qword [rsp + 0x400]
add rsp, 0x3d0
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x60]
call fcn.14000a0e8
nop
mov rcx, rax
call fcn.140025f54
lea rdx, [fcn.140012990]
mov rcx, rax
call fcn.14000b510
lea rdx, [rbp + 0x50]
mov rcx, rax
call fcn.140015724
lea rdx, [0x140008a90]
mov rcx, rax
call fcn.14000b510
lea rdx, str._at__
mov rcx, rax
call fcn.14000b4f8
mov rcx, rax
call fcn.140025f74
lea rdx, [0x1400bda68]
mov rcx, rax
call fcn.14000b4f8
mov dword [rbp + 0x50], 0x152
lea rdx, [rbp + 0x50]
mov rcx, rax
call fcn.14000b55c
lea rdx, [0x1400bda6c]
mov rcx, rax
call fcn.14000b4f8
lea rdx, [rbp + 0x90]
mov rcx, rax
call fcn.14000a0cc
nop
call fcn.1400087f0
mov r8, rax
mov edx, ebx
lea rcx, [rbp + 0x70]
call fcn.140001404
movups xmm0, xmmword [rax]
movdqu xmmword [rbp + 0x50], xmm0
lea r8, [rbp + 0x90]
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.140008608
lea rdx, [0x1400e0f98]
lea rcx, [rsp + 0x38]
call fcn.140065b40
int3
Function at 0x140024e70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140024e95
xor eax, eax
jmp 0x140024fa5
cmp qword [rcx + 0x68], 0
je 0x140024ea9
lfence
call fcn.14000a9e0
jmp 0x140024fa5
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov qword [rsp + 0x60], rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x140024ec5
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140024ec7
xor ecx, ecx
movsxd rax, ecx
mov rbx, rdi
test ecx, ecx
je 0x140024f01
cmp rax, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400655a0
mov rax, qword [rsi + 0x50]
sub rbp, rbx
add r14, rbx
mov qword [rsp + 0x60], rbp
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
mov rbx, rbp
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140024f9a
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140024f3c
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
cmp rbx, r15
jbe 0x140024f76
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.14006c7a4
sub rbp, rax
add r14, rax
mov qword [rsp + 0x60], rbp
mov rbx, rbp
cmp rax, r15
jne 0x140024f9a
cmp rbp, r15
ja 0x140024f47
test rbx, rbx
je 0x140024f9a
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.14006c7a4
sub rbx, rax
mov qword [rsp + 0x60], rbx
lfence
sub rdi, qword [rsp + 0x60]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140040118
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1400e30b0]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x78]
call fcn.14000350c
nop
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14003c8d8
nop
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x78]
call fcn.14003c9e4
nop
lea rcx, [rsp + 0x48]
call fcn.140002460
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x78]
call fcn.14003caf8
cmp qword [rax + 0x18], 8
jb 0x14004019e
mov rax, qword [rax]
lea rdx, [rbp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
lea rcx, [rbp - 0x38]
call fcn.1400045e4
cmp rsi, 0xffffffffffffffff
jne 0x1400401e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
add eax, 0xfffffffe
cmp eax, 1
ja 0x140040350
xor ebx, ebx
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
jmp 0x140040327
mov qword [rsp + 0x38], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor ebx, ebx
mov qword [rsp + 0x30], rbx
lea rdx, [0x1400c5884]
lea rcx, [rbp + 0x6c]
call fcn.14006f4c4
test eax, eax
je 0x1400402d0
lea rdx, [0x1400a3618]
lea rcx, [rbp + 0x6c]
call fcn.14006f4c4
test eax, eax
je 0x1400402d0
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.14000350c
nop
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], bx
lea rax, [rbp + 0x6c]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140040250
lea rdx, [rbp + 0x6c]
lea rcx, [rsp + 0x68]
call fcn.140004670
nop
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x58]
call fcn.14003c8d8
nop
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x48]
call fcn.14003c9e4
nop
lea rcx, [rbp - 0x58]
call fcn.140002460
nop
lea rcx, [rsp + 0x68]
call fcn.1400045e4
lea r8, [rbp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x10]
call fcn.14004050c
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140040050
nop
lea rcx, [rbp - 8]
call fcn.140002460
nop
lea rcx, [rsp + 0x48]
call fcn.140002460
lea rdx, [rbp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400401f8
mov rax, qword [rsp + 0x20]
mov qword [rdi], rax
mov rax, qword [rsp + 0x28]
mov qword [rdi + 8], rax
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x10], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x20]
call fcn.140019d2c
nop
test rsi, rsi
je 0x140040327
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rbp - 0x78]
call fcn.140002460
mov rax, rdi
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.140046b20
add rsp, 0x3a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
movzx ecx, dx
or ecx, 0x80070000
test edx, edx
cmovle ecx, edx
mov r8d, 0x22
lea rdx, str.C:dvsp4_build_sw_relgfclient_rel_03_20_backendcommonupdtlib_src_filesystem.cpp
call fcn.14000eee4
int3
Function at 0x1400405ac
Capabilities:
Delete directory
Delete file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400e30b0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rcx
xor r14d, r14d
cmp dword [rcx], r14d
setne cl
lea r9d, [r14 + 0x3e]
lea r8, str.C:dvsp4_build_sw_relgfclient_rel_03_20_backendcommonupdtlib_src_filesystem_object.cpp
lea rdx, str.Incorrect_state
call fcn.140038e50
mov ecx, dword [rdi]
sub ecx, 1
je 0x1400406da
cmp ecx, 1
jne 0x1400406a4
movdqa xmm0, xmmword [0x1400c6410]
movdqu xmmword [rbp + 7], xmm0
mov word [rbp - 9], r14w
mov r8d, ecx
lea rdx, [0x1400c3a20]
lea rcx, [rbp - 9]
call fcn.140004670
nop
lea r8, [rbp - 9]
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x29]
call fcn.140040118
nop
lea rcx, [rbp - 9]
call fcn.1400045e4
mov rbx, qword [rbp - 0x29]
jmp 0x140040666
mov rcx, rbx
call fcn.1400405ac
add rbx, 0x50
cmp rbx, qword [rbp - 0x21]
jne 0x14004065a
lea rdx, [rbp + 0x17]
lea rcx, [rdi + 8]
call fcn.14003caf8
cmp qword [rax + 0x18], 8
jb 0x140040683
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
lea rcx, [rbp + 0x17]
call fcn.1400045e4
test ebx, ebx
je 0x14004070b
lea rcx, [rbp - 0x29]
call fcn.140019d2c
mov dword [rdi], r14d
lea rcx, [rdi + 0x28]
xor edx, edx
lea r8d, [rdx + 0x24]
call fcn.1400659b0
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140046b20
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea rcx, [rdi + 8]
lea rdx, [rbp + 0x17]
call fcn.14003caf8
cmp qword [rax + 0x18], 8
jb 0x1400406f1
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
lea rcx, [rbp + 0x17]
call fcn.1400045e4
test ebx, ebx
je 0x140040733
jmp 0x1400406a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov r8d, 0x54
lea rdx, str.C:dvsp4_build_sw_relgfclient_rel_03_20_backendcommonupdtlib_src_filesystem_object.cpp
call fcn.14000eee4
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea r8d, [rbx + 0x46]
lea rdx, str.C:dvsp4_build_sw_relgfclient_rel_03_20_backendcommonupdtlib_src_filesystem_object.cpp
call fcn.14000eee4
int3

Function at 0x140040ae8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x140040af6
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140040b05
xor al, al
jmp 0x140040b0c
shr eax, 4
not al
and al, 1
add rsp, 0x28
ret
Function at 0x140040c30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov byte [r9], 1
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140040ec8
test al, al
je 0x140040ca4
mov rcx, rbx
call fcn.140040ed0
test al, al
je 0x140040ca4
mov eax, 0xffffffff
cmp rsi, rax
ja 0x140040ca4
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x58]
and dword [rsp + 0x58], 0
mov r8d, esi
and qword [rsp + 0x20], 0
mov rdx, rbp
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140040c9e
mov byte [rdi], 0
mov eax, dword [rsp + 0x58]
jmp 0x140040ca6
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140040dd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov byte [r9], 1
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140040ec8
test al, al
je 0x140040e44
mov rcx, rbx
call fcn.140040ed8
test al, al
je 0x140040e44
mov eax, 0xffffffff
cmp rsi, rax
ja 0x140040e44
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x58]
and dword [rsp + 0x58], 0
mov r8d, esi
and qword [rsp + 0x20], 0
mov rdx, rbp
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140040e3e
mov byte [rdi], 0
mov eax, dword [rsp + 0x58]
jmp 0x140040e46
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret