joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140041fd8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rdi, rcx
call fcn.14008d174
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.Enter_updtShimAPIClass::GetVerifierInfo
mov edx, 3
mov rax, qword [rax + 0x38]
call qword [case.0x14007ca24.0]
lea rbx, [rdi + 0x1f8]
xor r14d, r14d
mov dword [rbx], r14d
mov byte [rdi + 0x220], r14b
lea rsi, [rdi + 0x200]
lea r8d, [r14 + 7]
lea rdx, str.Unknown
mov rcx, rsi
call fcn.140005dd4
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlSession_ManagerMemory_Management
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400420e6
call fcn.14008d174
lea r9d, [r14 + 1]
mov r8, qword [rax]
lea edx, [r14 + 2]
lea rcx, [rsp + 0x50]
call fcn.14000499c
nop
lea rbx, [rax + 0x10]
lea rdx, str._GetVerifierInfo__Open_key:
mov rcx, rbx
call fcn.1400098d0
lea rdx, str.SYSTEMCurrentControlSetControlSession_ManagerMemory_Management
mov rcx, rbx
call fcn.1400098d0
lea rdx, str._failed
mov rcx, rbx
call fcn.1400098d0
nop
lea rcx, [rbp - 8]
call fcn.140004938
nop
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140002658
nop
xor al, al
jmp 0x140042233
mov dword [rbp + 0x98], 4
lea rax, [rbp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.VerifyDriverLevel
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140042145
call fcn.14008d174
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.Query_VerifyDriverLevel_failed
mov edx, 2
mov rax, qword [rax + 0x38]
call qword [case.0x14007ca24.0]
jmp 0x1400421f7
mov dword [rbp + 0x98], r14d
lea rax, [rbp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rdx, str.VerifyDrivers
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400421f7
mov word [rbp + 0x90], r14w
mov edx, dword [rbp + 0x98]
shr rdx, 1
inc rdx
lea r8, [rbp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.140044d64
nop
lea rax, [rbp + 0x98]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.VerifyDrivers
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rdx, qword [rsp + 0x30]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r14w
jne 0x1400421da
mov rcx, rsi
call fcn.140005dd4
nop
lea rcx, [rsp + 0x30]
call fcn.140044fc8
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbx], r14d
setne al
mov byte [rdi + 0x220], al
call fcn.14008d174
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.Exit_updtShimAPIClass::GetVerifierInfo
mov edx, 3
mov rax, qword [rax + 0x38]
call qword [case.0x14007ca24.0]
mov al, 1
add rsp, 0x160
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140043074
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x1401620b0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rdx
lea rax, [rsp + 0x38]
xor edi, edi
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalNvBackend
mov qword [rsp + 0x38], rdi
mov r9d, 0x20219
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140043134
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.Link
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0x4e
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140043134
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140043110
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x140043119
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140004c90
mov al, 1
jmp 0x140043136
xor al, al
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140097440
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
Function at 0x140047a8c
Capabilities:
Get memory capacity

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401620b0]
xor rax, rsp
mov qword [rsp + 0x90], rax
call fcn.140050c30
mov rdi, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rax
xor r15d, r15d
test rax, rax
jne 0x140047add
jmp 0x140047c32
mov rax, qword [rax + 0x17]
cmp qword [rdi + 0xf], rax
jne 0x140047aef
mov rcx, rdi
jmp 0x140047c2d
mov ecx, 0x58
call fcn.140097464
mov rbx, rax
mov qword [rsp + 0x38], rax
lea rsi, [rax + 8]
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r15
mov qword [rsi + 0x10], r15
mov eax, 7
mov qword [rsi + 0x18], rax
mov word [rsi], r15w
mov qword [rbx + 0x40], r15
mov qword [rbx + 0x48], r15
mov qword [rbx + 0x40], r15
mov qword [rbx + 0x48], rax
mov word [rbx + 0x30], r15w
mov qword [rsp + 0x40], rbx
mov dword [rbx + 0x28], r15d
mov qword [rbx], r15
mov rax, qword [rdi + 0x17]
sub rax, qword [rdi + 0xf]
sar rax, 3
mov dword [rbx + 0x50], eax
xor r8d, r8d
lea rdx, [0x14011dda0]
mov rcx, rsi
call fcn.140005dd4
mov r14, r15
mov rcx, qword [rdi + 0xf]
mov rax, qword [rdi + 0x17]
sub rax, rcx
sar rax, 3
test rax, rax
je 0x140047be8
mov rcx, qword [rcx + r14*8]
cmp word [rcx + 0xc], r15w
je 0x140047bd1
movzx eax, word [rcx + 0xc]
add dword [rbx], eax
movzx eax, word [rcx + 0x15]
cmp dword [rbx + 0x28], eax
jae 0x140047b94
mov dword [rbx + 0x28], eax
cmp qword [rsi + 0x10], r15
jne 0x140047bd1
cmp byte [rcx + 0x12], 0x1f
jae 0x140047bbf
movzx eax, byte [rcx + 0x12]
lea rdx, [0x140123a20]
mov rdx, qword [rdx + rax*8]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r15w
jne 0x140047bb3
jmp 0x140047bc9
xor r8d, r8d
lea rdx, [0x14011dda0]
mov rcx, rsi
call fcn.140005dd4
inc r14
mov rcx, qword [rdi + 0xf]
mov rax, qword [rdi + 0x17]
sub rax, rcx
sar rax, 3
cmp r14, rax
jb 0x140047b77
mov esi, 0x40
mov r8d, esi
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1400b6460
mov dword [rsp + 0x50], esi
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x140047c1b
mov rax, qword [rsp + 0x58]
shr rax, 0x14
mov dword [rbx + 4], eax
mov rcx, rdi
call fcn.140048668
mov rax, rbx
jmp 0x140047c34
call fcn.140048668
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140097440
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140058460
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x260
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r14, r9
mov r15, r8
mov rdi, rdx
mov esi, 1
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test eax, eax
je 0x14005864f
mov rdx, rbx
lea r8, [rbp + 0x180]
lea rcx, [rsp + 0x20]
call fcn.14003f27c
nop
mov r9, qword [rsp + 0x20]
mov r8d, ebx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x140058542
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.14008d174
mov r9d, esi
mov r8, qword [rax]
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.14000499c
nop
lea rbx, [rax + 0x10]
lea rdx, str.GetBasicFileVersion::GetFileVersionInfo_failedError_code_
mov rcx, rbx
call fcn.1400098d0
mov edx, edi
mov rcx, rbx
call fcn.14003fde0
nop
lea rcx, [rbp - 8]
call fcn.140004938
nop
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140002658
nop
jmp 0x1400585fd
lea r9, [rsp + 0x3c]
lea r8, [rsp + 0x40]
lea rdx, [0x14011b1f8]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140058595
mov rdx, qword [rsp + 0x40]
movzx eax, word [rdx + 0xa]
mov word [r15], ax
movzx eax, word [rdx + 8]
mov word [r14], ax
movzx ecx, word [rdx + 0xe]
mov rax, qword [rbp + 0x1a0]
mov word [rax], cx
movzx ecx, word [rdx + 0xc]
mov rax, qword [rbp + 0x1a8]
mov word [rax], cx
jmp 0x140058600
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.14008d174
mov r9d, esi
mov r8, qword [rax]
mov edx, 2
lea rcx, [rbp + 0x58]
call fcn.14000499c
nop
lea rbx, [rax + 0x10]
lea rdx, str.GetBasicFileVersion::VerQueryValue_failedError_code_
mov rcx, rbx
call fcn.1400098d0
mov edx, edi
mov rcx, rbx
call fcn.14003fde0
nop
lea rcx, [rbp + 0x100]
call fcn.140004938
nop
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x100], rax
lea rcx, [rbp + 0x100]
call fcn.140002658
nop
xor sil, sil
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14005864c
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140058638
lfence
add rdx, 0x27
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005866c
call fcn.1400974a0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
and qword [rsp + 0x30], 0
mov al, sil
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400bd1c0
int3
Function at 0x14006b6d4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x2f8]
sub rsp, 0x3e0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1401620b0]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
and dword [rsp + 0x34], 0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xc0]
call fcn.1400b6460
lea rax, [rbp + 0xc0]
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 [rsp + 0x30], eax
test eax, eax
js 0x14006b806
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0xa0]
call fcn.14008ef28
mov rbx, rax
lea rdx, [0x14012bba8]
lea rcx, [rbp + 0x60]
call fcn.14008ef28
nop
lea rdx, [rbp + 0x60]
mov rcx, rbx
call fcn.14008effc
mov rbx, rax
mov rdx, rsi
lea rcx, [rbp + 0x80]
call fcn.14008eef0
nop
lea rdx, [rbp + 0x80]
mov rcx, rbx
call fcn.14008effc
mov rdx, rax
mov rcx, rdi
call fcn.140004d88
mov dword [rsp + 0x34], 1
lea rcx, [rbp + 0x80]
call fcn.140002e10
nop
lea rcx, [rbp + 0x60]
call fcn.140002e10
nop
lea rcx, [rbp + 0xa0]
call fcn.140002e10
mov rax, rdi
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140097440
mov rbx, qword [rsp + 0x410]
add rsp, 0x3e0
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x70]
call fcn.14003a6a8
nop
mov rcx, rax
call fcn.14006ebe4
lea rdx, [fcn.140010ab0]
mov rcx, rax
call fcn.14003ae58
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140065264
lea rdx, [0x140010aa0]
mov rcx, rax
call fcn.14003ae58
lea rdx, str._at__
mov rcx, rax
call fcn.14003ae84
mov rcx, rax
call fcn.14006ec04
lea rdx, [0x14011b170]
mov rcx, rax
call fcn.14003ae84
mov dword [rsp + 0x30], 0x221
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14003aebc
lea rdx, [0x14011b174]
mov rcx, rax
call fcn.14003ae84
lea rdx, [rbp + 0xa0]
mov rcx, rax
call fcn.14003a660
nop
call fcn.140001cd0
mov r8, rax
mov edx, ebx
lea rcx, [rbp + 0x80]
call fcn.1400014d4
movups xmm0, xmmword [rax]
movdqu xmmword [rbp + 0x60], xmm0
lea r8, [rbp + 0xa0]
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14000192c
lea rdx, [0x1401600f0]
lea rcx, [rsp + 0x48]
call fcn.1400b6600
int3
Function at 0x14006de00
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 0x14006de25
xor eax, eax
jmp 0x14006df35
cmp qword [rcx + 0x68], 0
je 0x14006de39
lfence
call fcn.14002ee60
jmp 0x14006df35
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov qword [rsp + 0x60], rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x14006de55
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14006de57
xor ecx, ecx
movsxd rax, ecx
mov rbx, rdi
test ecx, ecx
je 0x14006de91
cmp rax, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400b6050
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 0x14006df2a
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14006decc
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 0x14006df06
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.1400be22c
sub rbp, rax
add r14, rax
mov qword [rsp + 0x60], rbp
mov rbx, rbp
cmp rax, r15
jne 0x14006df2a
cmp rbp, r15
ja 0x14006ded7
test rbx, rbx
je 0x14006df2a
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.1400be22c
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 0x140074e34
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x140074e8f
mov rax, qword [rcx + 8]
mov r10, qword [rcx]
mov r8, qword [rcx + 0x18]
mov r9, qword [rcx + 0x10]
mov r11d, edx
add r10, rax
add r9, r8
rol rax, 0xd
xor rax, r10
rol r8, 0x10
xor r8, r9
rol r10, 0x20
add r9, rax
add r10, r8
rol rax, 0x11
rol r8, 0x15
xor rax, r9
xor r8, r10
rol r9, 0x20
sub r11, 1
jne 0x140074e4a
mov qword [rcx + 8], rax
mov qword [rcx], r10
mov qword [rcx + 0x18], r8
mov qword [rcx + 0x10], r9
ret
Function at 0x14009167c
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 [0x1401620b0]
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.140004d88
nop
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14008eef0
nop
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x78]
call fcn.14008effc
nop
lea rcx, [rsp + 0x48]
call fcn.140002e10
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x78]
call fcn.14008f110
cmp qword [rax + 0x18], 8
jb 0x140091702
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.140005cfc
cmp rsi, 0xffffffffffffffff
jne 0x140091747
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
add eax, 0xfffffffe
cmp eax, 1
ja 0x1400918b4
xor ebx, ebx
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
jmp 0x14009188b
mov qword [rsp + 0x38], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor ebx, ebx
mov qword [rsp + 0x30], rbx
lea rdx, [0x14011d914]
lea rcx, [rbp + 0x6c]
call fcn.1400bf288
test eax, eax
je 0x140091834
lea rdx, [0x140100828]
lea rcx, [rbp + 0x6c]
call fcn.1400bf288
test eax, eax
je 0x140091834
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.140004d88
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 0x1400917b4
lea rdx, [rbp + 0x6c]
lea rcx, [rsp + 0x68]
call fcn.140005dd4
nop
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x58]
call fcn.14008eef0
nop
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x48]
call fcn.14008effc
nop
lea rcx, [rbp - 0x58]
call fcn.140002e10
nop
lea rcx, [rsp + 0x68]
call fcn.140005cfc
lea r8, [rbp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x10]
call fcn.140091a70
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400915b4
nop
lea rcx, [rbp - 8]
call fcn.140002e10
nop
lea rcx, [rsp + 0x48]
call fcn.140002e10
lea rdx, [rbp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14009175c
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.140065088
nop
test rsi, rsi
je 0x14009188b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rbp - 0x78]
call fcn.140002e10
mov rax, rdi
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.140097440
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_27_backendcommonupdtlib_src_filesystem.cpp
call fcn.14000b32c
int3
Function at 0x140091b10
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 [0x1401620b0]
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_27_backendcommonupdtlib_src_filesystem_object.cpp
lea rdx, str.Incorrect_state
call fcn.14008b8b8
mov ecx, dword [rdi]
sub ecx, 1
je 0x140091c3e
cmp ecx, 1
jne 0x140091c08
movdqa xmm0, xmmword [0x14012d4d0]
movdqu xmmword [rbp + 7], xmm0
mov word [rbp - 9], r14w
mov r8d, ecx
lea rdx, [0x14012b3e0]
lea rcx, [rbp - 9]
call fcn.140005dd4
nop
lea r8, [rbp - 9]
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x29]
call fcn.14009167c
nop
lea rcx, [rbp - 9]
call fcn.140005cfc
mov rbx, qword [rbp - 0x29]
jmp 0x140091bca
mov rcx, rbx
call fcn.140091b10
add rbx, 0x50
cmp rbx, qword [rbp - 0x21]
jne 0x140091bbe
lea rdx, [rbp + 0x17]
lea rcx, [rdi + 8]
call fcn.14008f110
cmp qword [rax + 0x18], 8
jb 0x140091be7
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
lea rcx, [rbp + 0x17]
call fcn.140005cfc
test ebx, ebx
je 0x140091c6f
lea rcx, [rbp - 0x29]
call fcn.140065088
mov dword [rdi], r14d
lea rcx, [rdi + 0x28]
xor edx, edx
lea r8d, [rdx + 0x24]
call fcn.1400b6460
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140097440
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.14008f110
cmp qword [rax + 0x18], 8
jb 0x140091c55
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
lea rcx, [rbp + 0x17]
call fcn.140005cfc
test ebx, ebx
je 0x140091c97
jmp 0x140091c08
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_27_backendcommonupdtlib_src_filesystem_object.cpp
call fcn.14000b32c
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_27_backendcommonupdtlib_src_filesystem_object.cpp
call fcn.14000b32c
int3

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

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x1400933e6
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400933f5
xor al, al
jmp 0x1400933fc
shr eax, 4
not al
and al, 1
add rsp, 0x28
ret
Function at 0x140093520
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.1400937b8
test al, al
je 0x140093594
mov rcx, rbx
call fcn.1400937c0
test al, al
je 0x140093594
mov eax, 0xffffffff
cmp rsi, rax
ja 0x140093594
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 0x14009358e
mov byte [rdi], 0
mov eax, dword [rsp + 0x58]
jmp 0x140093596
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 0x1400936c0
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.1400937b8
test al, al
je 0x140093734
mov rcx, rbx
call fcn.1400937c8
test al, al
je 0x140093734
mov eax, 0xffffffff
cmp rsi, rax
ja 0x140093734
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 0x14009372e
mov byte [rdi], 0
mov eax, dword [rsp + 0x58]
jmp 0x140093736
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 0x1400939d0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x30]
call fcn.1400b6460
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [rsp + 0x20]
cmp ecx, 5
ja 0x140093a49
je 0x140093a40
test ecx, ecx
je 0x140093a37
sub ecx, 1
je 0x140093a2e
sub ecx, 1
je 0x140093a25
sub ecx, 1
je 0x140093a1c
cmp ecx, 1
jne 0x140093a62
lea rax, [0x140100d88]
jmp 0x140093a96
lea rax, [0x140100d80]
jmp 0x140093a96
lea rax, str.ALPHA
jmp 0x140093a96
lea rax, str.MIPS
jmp 0x140093a96
lea rax, [0x140100d58]
jmp 0x140093a96
lea rax, [0x140100d90]
jmp 0x140093a96
sub ecx, 6
je 0x140093a8f
sub ecx, 1
je 0x140093a86
sub ecx, 1
je 0x140093a7d
sub ecx, 1
je 0x140093a74
cmp ecx, 1
je 0x140093a6b
lea rax, [0x140100df8]
jmp 0x140093a96
lea rax, str.IA32_ON_WIN64
jmp 0x140093a96
lea rax, str.AMD64
jmp 0x140093a96
lea rax, str.MSIL
jmp 0x140093a96
lea rax, str.ALPHA64
jmp 0x140093a96
lea rax, str.IA64
add rsp, 0x58
ret