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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, qword [rsp + 0x98]
mov rdi, r9
movzx r9d, byte [rsp + 0x90]
mov rax, r8
shl r9d, 8
mov r10, rdx
add r9d, 0x20019
cmp qword [r8 + 0x18], 8
jb 0x14002eea6
mov rax, qword [r8]
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rax
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
mov dword [rsp + 0x38], 4
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14002ef40
cmp qword [rdi + 0x18], 8
jb 0x14002eee3
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14002ef35
cmp dword [rsp + 0x3c], 4
jne 0x14002ef30
mov eax, dword [rsp + 0x40]
xor ebx, ebx
mov dword [rsi], eax
jmp 0x14002ef35
mov ebx, 0x8007065d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140038910
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x14002ef60
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
mov rax, qword [rsp + 0x38]
mov r10, r9
mov r9b, byte [rsp + 0x30]
mov r11, r8
mov rcx, rdx
mov qword [rsp + 0x30], rax
mov r8, r10
mov rdx, r11
pop rbx
jmp fcn.140113b34

Function at 0x14002ef90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rsi, qword [rbp + 0x1b8]
mov rdi, r9
movzx r9d, byte [rbp + 0x1b0]
mov rax, r8
shl r9d, 8
mov r10, rdx
add r9d, 0x20019
cmp qword [r8 + 0x18], 8
jb 0x14002efe4
mov rax, qword [r8]
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rax
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r14d, r14d
mov dword [rsp + 0x3c], SHFlushSFCache
movzx ebx, ax
or ebx, 0x80070000
mov dword [rsp + 0x38], r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14002f0a5
cmp qword [rdi + 0x18], 8
jb 0x14002f02d
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14002f09a
cmp dword [rsp + 0x38], 1
jne 0x14002f095
mov ebx, r14d
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x14002f07c
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14001b664
jmp 0x14002f09a
mov ebx, 0x8007065d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140038910
add rsp, 0x260
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14002f0d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, qword [rbp + 0x48]
mov rdi, r9
movzx r9d, byte [rbp + 0x40]
mov rax, r8
shl r9d, 8
mov r10, rdx
add r9d, 0x20019
cmp qword [r8 + 0x18], 8
jb 0x14002f114
mov rax, qword [r8]
lea rcx, [rbp - 0x18]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rax
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
and dword [rbp - 0xc], 0
test ebx, ebx
js 0x14002f1eb
and dword [rbp - 0x10], 0
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002f157
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x18]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0xc]
and qword [rsp + 0x20], 0
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14002f1e1
cmp dword [rbp - 0xc], 3
je 0x14002f196
mov ebx, 0x8007065d
jmp 0x14002f1e1
mov edx, dword [rbp - 0x10]
lea r8, [rbp - 0x20]
mov rcx, rsi
call fcn.14002ff48
cmp qword [rdi + 0x18], 8
mov rax, qword [rsi]
jb 0x14002f1b2
mov rdi, qword [rdi]
lea rcx, [rbp - 0x10]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, qword [rbp - 0x18]
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140038910
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x14002f210
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0x58], rax
neg byte [rsp + 0x98]
mov r10, rdx
mov rbx, r9
mov rax, r8
sbb edx, edx
and edx, 0xfffe00fc
add edx, 0x20006
cmp qword [r8 + 0x18], 8
jb 0x14002f251
mov rax, qword [r8]
and qword [rsp + 0x40], 0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], edx
mov rcx, r10
and dword [rsp + 0x20], 0
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x14002f2d3
cmp qword [rbx + 0x10], 0
jne 0x14002f293
xor ebx, ebx
jmp 0x14002f29d
cmp qword [rbx + 0x18], 8
jb 0x14002f29d
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x90]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], r9d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140038910
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14002f300
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x28
cmp qword [rdx + 0x18], 8
jb 0x14002f30e
mov rdx, qword [rdx]
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14002f330
Capabilities:
Get file version info

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x14002f345
mov rax, qword [rdx]
mov r9, qword [r9]
xor edx, edx
mov rcx, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x14002f36b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r9d, ebx
lea r8, str.StandaloneUpdaterShellAbstraction::GetFileVersionInformation
mov edx, 0x10e
call fcn.14002eb5c
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x14002f510
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x2a0
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, rdx
mov rsi, qword [rdx + 8]
mov rbx, qword [rdx]
cmp rbx, rsi
je 0x14002f566
mov rcx, rbx
call fcn.14001b814
add rbx, 0x28
cmp rbx, rsi
jne 0x14002f552
mov rbx, qword [rdi]
mov qword [rdi + 8], rbx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002f69d
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x54]
call fcn.14003a220
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor r15d, r15d
jmp 0x14002f68c
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14002f67e
mov r14d, dword [rsp + 0x58]
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r15w
lea rax, [rsp + 0x7c]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x14002f5f7
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x20]
call fcn.14001b664
mov dword [rsp + 0x40], r14d
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x14002f65d
mov qword [rdx], r15
mov qword [rdx + 0x10], r15
mov qword [rdx + 0x18], r15
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r15w
mov eax, dword [rsp + 0x40]
mov dword [rdx + 0x20], eax
add qword [rdi + 8], 0x28
jmp 0x14002f66b
lea r8, [rsp + 0x20]
mov rcx, rdi
call fcn.14002fc98
nop
lea rcx, [rsp + 0x20]
call fcn.14001b814
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14002f5b2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140038910
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14002fb50
Capabilities:
Set registry value

Disassembly:
push rbx
mov al, byte [rsp + 0x38]
mov r10, r9
mov r9, qword [rsp + 0x30]
mov r11, r8
mov rcx, rdx
mov byte [rsp + 0x30], al
mov r8, r10
mov rdx, r11
pop rbx
jmp fcn.14011ca28

Function at 0x14002fb80
Capabilities:
Delete registry value

Disassembly:
mov rax, r9
mov r10, r8
mov r9b, byte [rsp + 0x28]
mov rcx, rdx
mov r8, rax
mov rdx, r10
jmp fcn.14010f8c0
Function at 0x140033880
Capabilities:
Check if file exists

Disassembly:
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x14003388a
int3
jmp fcn.140107398
Function at 0x140046f64
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140046d54
Function at 0x140052e7c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140052f03
mov rsi, rbx
cmp word [rax], bp
je 0x140052ec2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140052eac
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140052ea8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140054e78
mov rdi, rax
test rax, rax
je 0x140052ef0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003a540
mov rbp, rdi
xor ecx, ecx
call fcn.140050ef0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140061734
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1403e1400]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140061792
cmp word [rdx], r12w
jne 0x140061792
or byte [rax + r8*8 + 0x38], cl
jmp 0x140061798
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400618f3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400618ce
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400617d1
mov rcx, r9
jmp 0x1400617f4
cmp r9, rdx
jae 0x14006180b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400617b5
jmp 0x1400618f3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400618c8
cmp dword [rsp + 0x80], edi
je 0x1400618c8
mov rdx, r14
lea r11, [0x1403e1400]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400618a1
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140061874
mov word [rbx], r12w
jmp 0x1400618ef
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14006187d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400618ef
cmp word [rsp + 0x70], r12w
jne 0x1400618ae
cmp rbx, rsi
je 0x14006186e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140061654
cmp word [rsp + 0x70], r12w
je 0x1400618f3
mov word [rbx], r13w
jmp 0x1400618ef
lea r11, [0x1403e1400]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400618eb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400618f3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140064d00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
lea r15, [0x1403e5238]
mov qword [rsp + 0x30], r15
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x38], 1
xor r14d, r14d
cmp qword [0x1403cd1d8], r14
jne 0x140064eb4
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea r12, vtable.ClassPtr_struct_IFSManager_.0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r14
lea rcx, [rsp + 0x48]
call fcn.140064b5c
mov ebx, eax
call fcn.140109458
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax + 0x118]
call qword [str.0B__]
mov sil, al
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.14003a220
test ebx, ebx
js 0x140064e92
cmp byte [0x1403e5228], r14b
je 0x140064dd0
test sil, sil
lea edx, [r14 + 0x26]
jne 0x140064dd5
mov edx, 0x1c
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140064e92
mov qword [rsp + 0x50], r14
movdqa xmm0, xmmword [0x140364f60]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r14w
cmp byte [0x1403e5228], r14b
je 0x140064e23
test sil, sil
lea rdx, str.Microsoft_OneDrive_setuplogs
jne 0x140064e2a
lea rdx, str.MicrosoftOneDrive_setuplogs
mov r8d, 0x1d
lea rcx, [rsp + 0x50]
call fcn.14001b664
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
xor r9d, r9d
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.140020d40
mov ebx, eax
lea rcx, [rsp + 0x50]
call fcn.14001b814
test ebx, ebx
js 0x140064e92
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x140064e76
lea rdx, [rsp + 0x70]
lea rcx, [0x1403cd1c8]
call fcn.14001b664
nop
mov qword [rsp + 0x40], r12
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x48], r14
test rcx, rcx
je 0x140064eb4
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.0B__]
nop
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
lea rdx, [0x1403cd1c8]
mov rcx, rdi
call fcn.140019c78
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rdi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140038910
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140065c08
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x140065ca6
mov edx, 0x2000
mov rax, rbx
mov ecx, edx
cmp word [rax], di
je 0x140065c44
add rax, 2
sub rcx, 1
jne 0x140065c35
sub rdx, rcx
mov rax, rcx
neg rax
sbb r8, r8
and r8, rdx
test rcx, rcx
je 0x140065c8e
mov rcx, qword [0x1403e5268]
lea r9, [rsp + 0x30]
add r8d, r8d
mov dword [rsp + 0x30], edi
mov rdx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [0x1403e5230]
test rax, rax
je 0x140065c8e
mov rcx, rbx
call qword [str.0B__]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140038910
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov ecx, 0x80004005
call fcn.14001b7b0
int3
Function at 0x140070130
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r15, r8
mov r12b, dl
mov r14, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x20]
call fcn.14003a220
xor edx, edx
lea r8d, [rdx + 0x4e]
lea rcx, [rbp - 0x30]
call fcn.14003a220
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
lea rcx, [rbp - 0x70]
call qword [sym.imp.ole32.dll_CoCreateGuid]
mov ebx, eax
xor r13d, r13d
test eax, eax
js 0x14007034d
movzx eax, byte [rbp - 0x61]
movzx ecx, byte [rbp - 0x62]
movzx edx, byte [rbp - 0x63]
movzx r8d, byte [rbp - 0x64]
movzx r9d, byte [rbp - 0x65]
movzx r10d, byte [rbp - 0x66]
movzx r11d, byte [rbp - 0x67]
movzx ebx, byte [rbp - 0x68]
movzx edi, word [rbp - 0x6a]
movzx esi, word [rbp - 0x6c]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x58], edx
mov dword [rsp + 0x50], r8d
mov dword [rsp + 0x48], r9d
mov dword [rsp + 0x40], r10d
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], esi
mov r9d, dword [rbp - 0x70]
lea r8, str._08X_04X_04X_02X_02X_02X_02X_02X_02X_02X_02X
lea edx, [r13 + 0x27]
lea rcx, [rbp - 0x30]
call fcn.14001b704
mov ebx, eax
test eax, eax
js 0x14007034d
lea rdx, [rbp + 0x20]
mov edi, 0x104
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140070252
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14007034d
xor r9d, r9d
lea r8, [rbp - 0x30]
mov rdx, rdi
lea rcx, [rbp + 0x20]
call fcn.140020d40
mov ebx, eax
test eax, eax
js 0x14007034d
mov rax, qword [r14]
lea rdx, [rbp + 0x20]
mov rcx, r14
mov rax, qword [rax + 0x90]
call qword [str.0B__]
mov ebx, eax
test eax, eax
js 0x14007034d
or rdi, 0xffffffffffffffff
test r12b, r12b
je 0x14007032b
mov qword [rsp + 0x70], r13
movdqa xmm0, xmmword [0x140364f60]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], r13w
lea rax, [rbp + 0x20]
mov r8, rdi
inc r8
cmp word [rax + r8*2], r13w
jne 0x1400702bc
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.14001b664
nop
mov qword [rbp - 0x60], r13
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x60]
call fcn.140019c78
mov qword [rbp - 0x40], 0xffffffff80000001
mov byte [rbp - 0x38], r13b
lea rcx, [rsp + 0x70]
call fcn.14001b814
mov rax, qword [r14]
lea rdx, [rbp - 0x60]
mov rcx, r14
mov rax, qword [rax + 0xd0]
call qword [str.0B__]
mov ebx, eax
lea rcx, [rbp - 0x60]
call fcn.14001b814
test ebx, ebx
js 0x14007034d
test r15, r15
je 0x14007034d
lea rax, [rbp + 0x20]
inc rdi
cmp word [rax + rdi*2], r13w
jne 0x140070334
mov r8, rdi
lea rdx, [rbp + 0x20]
mov rcx, r15
call fcn.14001b664
mov eax, ebx
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140038910
mov rbx, qword [rsp + 0x388]
add rsp, 0x340
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400703a0
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov sil, r8b
mov rdi, rdx
mov r14, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call fcn.14003a220
xor ebp, ebp
mov ebx, ebp
test rdi, rdi
je 0x140070559
mov byte [rsp + 0x20], bpl
test sil, sil
jne 0x140070429
mov rax, qword [r14]
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, r14
mov rax, qword [rax + 0xa0]
call qword [str.0B__]
test eax, eax
js 0x140070429
cmp byte [rsp + 0x20], bpl
je 0x140070429
mov ebx, 0x80040c91
jmp 0x14007052f
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14007052f
lea rax, [rsp + 0x30]
mov r8, rdi
sub r8, rax
lea rcx, [rsp + 0x30]
mov edx, 0x104
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140070472
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140070472
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14007044f
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bp
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
test rdx, rdx
jne 0x1400704ae
mov r8d, 0x2a7
mov ecx, ebx
lea rdx, str.D:dbs_shodct0417_084611_0cmduclientonedriveSetup_standalone_fsmanager_fsmanagerimpl.cpp
call fcn.140064438
jmp 0x14007052f
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x1400704c4
mov eax, 0x80040b04
jmp 0x140070531
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400704fb
mov rax, qword [r14]
lea rdx, [rsp + 0x30]
mov rcx, r14
mov rax, qword [rax + 0x90]
call qword [str.0B__]
mov ebx, eax
test eax, eax
jns 0x1400704fb
mov r8d, 0x2b0
mov ecx, eax
jmp 0x14007049d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14007052f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14007051b
mov ebx, ebp
jmp 0x14007052f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140038910
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.14001b7b0
int3
Function at 0x140071ad0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x1ec
lea rcx, [rsp + 0x40]
call fcn.14003a220
lea rdx, [rsp + 0x40]
mov ecx, 0xf6
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ebp, ebp
test eax, eax
jne 0x140071b37
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140071b9c
mov rax, qword [rdi]
mov rbx, qword [rax + 0xb0]
mov qword [rsp + 0x20], rbp
movdqa xmm0, xmmword [0x140364f60]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], bp
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bp
jne 0x140071b62
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14001b664
nop
mov r8, rsi
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov rax, rbx
call qword [str.0B__]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.14001b814
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140038910
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret

Function at 0x140071bd0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, r8
lea rcx, [rsp + 0x20]
mov rdi, rdx
mov r8d, 0x208
xor edx, edx
call fcn.14003a220
xor ebp, ebp
cmp qword [rdi + 0x18], 8
mov ebx, ebp
jb 0x140071c17
mov rdi, qword [rdi]
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [0x1402fcb58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x140071c4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140071c6b
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bp
jne 0x140071c54
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14001b664
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140038910
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret