joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f996
Capabilities:
Get session information

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x14017b750]
xor rax, rsp
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x14001fa6c
lea r9, [rsp + 0x50]
mov qword [r9], 0
lea rcx, [rsp + 0x4c]
mov dword [rcx], 0
mov qword [rsp + 0x20], rcx
xor ecx, ecx
mov r8d, 0x18
mov edx, eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x14001fa6c
mov rbx, qword [rsp + 0x50]
mov ecx, 0x30
call fcn.14011a524
mov rdi, rax
lea rdx, [0x140020ed0]
lea r8, [0x14000e5ba]
mov rcx, rax
call fcn.140027ae0
lea rax, [0x140143120]
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rbx
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rdi
call fcn.140027b40
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov rdx, rbx
call fcn.140027b00
mov rcx, rbx
call fcn.140027b50
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.14006a9c0
cmp dword [rsp + 0x4c], 0xd7
ja 0x14001fa75
mov qword [rsi], 0
jmp 0x14001fa89
mov qword [rsi], 0
jmp 0x14001fa93
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0xc8]
mov rcx, rsi
call fcn.14006ac70
lea rcx, [rsp + 0x40]
call fcn.14006a9f0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14011a890
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
Function at 0x140022229
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x280
movaps xmmword [rsp + 0x270], xmm6
mov rdi, rdx
mov rax, qword [0x14017b750]
xor rax, rsp
mov qword [rsp + 0x268], rax
add rcx, 8
lea rdx, str.chrome.exe
mov qword [rsp + 0xa0], rdx
cmp word [str.chrome.exe], 0
je 0x140022281
xor eax, eax
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140022273
jmp 0x140022283
xor eax, eax
lea r8, [rsp + 0xa0]
mov qword [r8 + 8], rax
lea rsi, [rsp + 0x248]
mov rdx, rsi
call fcn.1400307e0
lea r14, [rsp + 0x70]
mov rcx, r14
mov rdx, rsi
call fcn.140027c80
mov edx, dword [rdi + 0x28]
lea r15, [rsp + 0xb0]
mov rcx, r15
call fcn.14003fdc0
mov eax, 0xf
movq xmm0, rax
pslldq xmm0, 8
lea rdi, [rsp + 0x1e0]
movdqu xmmword [rdi + 0x10], xmm0
mov byte [rdi], 0
lea rbx, str.try_chrome_again
mov rcx, rbx
call fcn.140133270
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.140006940
mov rcx, r14
mov rdx, rdi
mov r8, r15
call fcn.140028e10
mov rcx, rdi
call fcn.1400068c6
mov rcx, r15
call fcn.140006a9a
xorps xmm6, xmm6
movaps xmmword [rdi], xmm6
xor eax, eax
mov qword [rdi + 0x60], rax
movaps xmmword [rdi + 0x50], xmm6
movaps xmmword [rdi + 0x40], xmm6
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
mov dword [rdi], 0x68
mov qword [rsp + 0x60], rax
movaps xmmword [rsp + 0x50], xmm6
lea rbx, [rsp + 0x1c0]
xor r8d, r8d
mov rcx, r14
mov rdx, rbx
call fcn.140029a90
mov eax, 7
cmp qword [rbx + 0x18], rax
jbe 0x140022375
mov rbx, qword [rsp + 0x1c0]
cmp qword [rsp + 0x260], rax
jbe 0x140022387
mov rsi, qword [rsp + 0x248]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
xor r8d, r8d
xor r9d, r9d
mov rcx, rsi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400223e0
lea rsi, [rsp + 0xb0]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14006cf40
mov rcx, rsi
call fcn.14006cf90
jmp 0x14002245b
mov ecx, 2
call fcn.140037700
test al, al
je 0x14002245b
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_installer_setup_user_experiment.cc
lea rsi, [rsp + 0xb0]
mov r8d, 0x222
mov r9d, 2
mov rcx, rsi
call fcn.140038c40
lea rcx, [rsp + 0xc0]
lea rdx, str.Failed_to_launch:
call fcn.140002c8d
cmp qword [rsp + 0x1d8], 7
jbe 0x140022443
mov rdx, qword [rsp + 0x1c0]
jmp 0x14002244b
lea rdx, [rsp + 0x1c0]
mov rcx, rax
call fcn.140038e50
mov rcx, rsi
call fcn.140038d80
lea rcx, [rsp + 0x1c0]
call fcn.140006a9a
lea rcx, [rsp + 0x70]
call fcn.1400280a0
lea rcx, [rsp + 0x248]
call fcn.14002ee30
mov rcx, qword [rsp + 0x268]
xor rcx, rsp
call fcn.14011a890
movaps xmm6, xmmword [rsp + 0x270]
add rsp, 0x280
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140028100
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
movdqa xmmword [rsp + 0x50], xmm6
mov rax, qword [0x14017b750]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [0x14017c798], 0
je 0x14002812d
xor esi, esi
jmp 0x14002824e
mov ecx, 0x30
call fcn.14011a524
mov rsi, rax
mov ecx, 0x20
call fcn.14011a524
mov qword [rsi], rax
lea rcx, [rax + 0x20]
mov qword [rsi + 0x10], rcx
mov edx, 7
movq xmm6, rdx
pslldq xmm6, 8
movdqu xmmword [rax + 0x10], xmm6
mov word [rax], 0
mov qword [rsi + 8], rcx
mov qword [rsi + 0x20], 0
mov ecx, 0x60
call fcn.14011a524
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x28], 1
mov qword [0x14017c798], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
movdqu xmmword [rsp + 0x38], xmm6
mov word [rsp + 0x28], 0
mov rcx, rax
call fcn.140133524
mov rbx, rax
cmp rax, 7
jbe 0x1400281db
lea rcx, [rsp + 0x28]
mov rdx, rbx
mov r9, rdi
call fcn.140006120
jmp 0x1400281fa
mov qword [rsp + 0x38], rbx
mov r8, rbx
add r8, rbx
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.14011ea70
mov word [rsp + rbx*2 + 0x28], 0
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140028280
mov rax, qword [rsp + 0x40]
cmp rax, 8
jb 0x14002824b
mov rcx, qword [rsp + 0x28]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140028246
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x14002826a
add rax, rax
add rax, 0x29
mov rdx, rax
call fcn.14011a568
mov sil, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14011a890
mov eax, esi
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
call fcn.140128920
ud2

Function at 0x140028280
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, rdx
mov rsi, rcx
mov rcx, qword [0x14017b750]
xor rcx, rsp
mov qword [rsp + 0x50], rcx
mov ecx, 7
movq xmm0, rcx
pslldq xmm0, 8
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], 0
lea rdi, [rsp + 0x30]
mov edx, 3
mov rcx, rax
mov r8, rdi
call fcn.140043240
cmp qword [rsp + 0x40], 0
je 0x140028312
mov dword [rsp + 0x2c], 0
cmp qword [rsp + 0x48], 7
jbe 0x1400282e9
mov rdi, qword [rsp + 0x30]
lea rdx, [rsp + 0x2c]
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
mov edx, dword [rsp + 0x2c]
mov rcx, rsi
mov r8, rax
call fcn.140027d40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x140028356
mov rcx, qword [rsp + 0x30]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140028351
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x14002836b
add rax, rax
add rax, 0x29
mov rdx, rax
call fcn.14011a568
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14011a890
nop
add rsp, 0x58
pop rdi
pop rsi
ret
call fcn.140128920
ud2
Function at 0x14002cba0
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x14017b750]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 0x18], 7
jbe 0x14002cbc7
mov rsi, qword [rsi]
lea rdx, [rsp + 0x28]
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test eax, eax
je 0x14002ccf3
mov r14d, ebx
cmp ebx, 0x1000
jb 0x14002cc00
lea rcx, [r14 + 0x27]
call fcn.14011a524
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14002cc0b
mov rcx, r14
call fcn.14011a524
mov rdi, rax
xor edx, edx
mov rcx, rdi
mov r8, r14
call fcn.14011eed0
mov edx, dword [rsp + 0x28]
mov rcx, rsi
mov r8d, ebx
mov r9, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14002ccc3
mov qword [rsp + 0x30], 0
lea rdx, str.VarFileInfoTranslation
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x2c]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002ccc3
mov r15, qword [rsp + 0x30]
test r15, r15
je 0x14002ccc3
add r14, rdi
mov ecx, 0x38
call fcn.14011a524
mov rsi, rax
mov eax, dword [r15]
lea rcx, [0x140149b90]
mov qword [rsi], rcx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r14
mov qword [rsi + 0x20], rdi
mov dword [rsi + 0x28], eax
mov qword [rsp + 0x30], 0
lea rdx, [0x1401450c0]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x2c]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002cd11
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x30], rax
jmp 0x14002ccf5
test rdi, rdi
je 0x14002ccf3
cmp ebx, 0x1000
jb 0x14002cce8
mov rax, qword [rdi - 8]
add rdi, 0xfffffffffffffff8
sub rdi, rax
cmp rdi, 0x20
jae 0x14002cd19
add r14, 0x27
mov rdi, rax
mov rcx, rdi
mov rdx, r14
call fcn.14011a568
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14011a890
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor eax, eax
mov qword [rsi + 0x30], rax
jmp 0x14002ccf5
call fcn.140128920
ud2
Function at 0x14002ddb0
Capabilities:
Identify system language via api

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x268
mov r15, r8
mov r13, rdx
mov rdi, rcx
mov rax, qword [0x14017b750]
xor rax, rsp
mov qword [rsp + 0x260], rax
movzx ebp, word [rcx + 0x28]
movzx r14d, word [rcx + 0x2a]
mov r12, qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call r12
mov esi, eax
movzx ebx, word [rdi + 0x2a]
movzx eax, word [rdi + 0x28]
mov dword [rsp + 0x40], eax
call r12
mov r12d, eax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], ebp
lea r9, str.StringFileInfo_04x_04x_ls
lea rbp, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rbp
call fcn.140023b36
mov qword [rsp + 0x48], 0
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rbp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002de63
mov rbp, qword [rsp + 0x48]
test rbp, rbp
jne 0x14002df85
movzx eax, si
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
lea r9, str.StringFileInfo_04x_04x_ls
lea rsi, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.140023b36
mov qword [rsp + 0x48], 0
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002dec3
mov rbp, qword [rsp + 0x48]
test rbp, rbp
jne 0x14002df85
mov qword [rsp + 0x30], r13
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
lea rsi, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.140023b36
mov qword [rsp + 0x48], 0
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002df24
mov rbp, qword [rsp + 0x48]
test rbp, rbp
jne 0x14002df85
movzx eax, r12w
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
lea rsi, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.140023b36
mov qword [rsp + 0x48], 0
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002dff9
mov rbp, qword [rsp + 0x48]
test rbp, rbp
je 0x14002dff9
mov rcx, rbp
call fcn.140133524
mov rsi, rax
mov rax, qword [r15 + 0x18]
cmp rax, rsi
jae 0x14002dfa9
mov rcx, r15
mov rdx, rsi
mov r9, rbp
call fcn.140006120
jmp 0x14002dfd0
mov rdi, r15
cmp rax, 8
jb 0x14002dfb5
mov rdi, qword [r15]
mov qword [r15 + 0x10], rsi
mov r8, rsi
add r8, rsi
mov rcx, rdi
mov rdx, rbp
call fcn.14011ea70
mov word [rdi + rsi*2], 0
mov sil, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14011a890
mov eax, esi
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
jmp 0x14002dfd3
Function at 0x1400324b0
Capabilities:
Check if file exists
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.140031e10
test al, al
jne 0x1400324d1
mov rcx, rsi
call fcn.140031e10
test al, al
je 0x1400324da
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x1400363d0
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp qword [rcx + 0x10], 0x103
ja 0x14003647a
cmp qword [rdi + 0x10], 0x103
ja 0x14003647a
cmp qword [rdi + 0x18], 7
mov rdx, rdi
jbe 0x140036407
mov rdx, qword [rdi]
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x140036414
mov rcx, qword [rsi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bpl, 1
test eax, eax
jne 0x14003647c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x14003643c
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140036472
and eax, 0x10
je 0x140036472
mov bpl, 1
mov r8b, 1
xor r9d, r9d
mov rcx, rsi
mov rdx, rdi
call fcn.140034b60
test al, al
je 0x140036472
mov dl, 1
mov rcx, rsi
call fcn.140034570
test al, al
jne 0x14003647c
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebp, ebp
mov eax, ebp
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140033df0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x14017b750]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov bl, 1
cmp qword [rcx + 0x68], 0
je 0x140033faa
cmp byte [rsi + 0x71], 0
je 0x140033faa
mov rax, qword [rsi]
mov edx, 0xffffffff
mov rcx, rsi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140033f62
movaps xmm0, xmmword [reloc.OLEAUT32.dll_VariantClear]
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x30], 0
mov byte [rsp + 0x38], 0
lea r14, [rsi + 0x74]
mov eax, 0xf
mov r9d, 8
xor r8d, r8d
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x28]
jmp 0x140033e8f
mov rax, qword [rsp + 0x48]
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x40]
cmp rax, 0xf
cmovbe r8, r15
mov rcx, qword [rsi + 0x68]
add r9, r8
mov rax, qword [rcx]
mov qword [rsp + 0x20], r12
mov rdx, r14
call qword [rax + 0x40]
mov bl, 1
test eax, eax
je 0x140033ec0
cmp eax, 1
je 0x140033ec4
jmp 0x140033f66
mov byte [rsi + 0x71], 0
mov rdi, qword [rsp + 0x28]
cmp qword [rsp + 0x48], 0xf
mov rcx, r15
jbe 0x140033ed9
mov rcx, qword [rsp + 0x30]
sub rdi, rcx
je 0x140033ef7
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8, rdi
call fcn.14012e988
cmp rdi, rax
jne 0x140033f6b
cmp byte [rsi + 0x71], 0
je 0x140033f6d
test rdi, rdi
jne 0x140033e80
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rdx, rcx
sub rdx, rax
cmp rdx, 8
jae 0x140033f39
mov byte [rsp + 0x20], 0
mov edx, 8
mov r9d, 8
mov rcx, r15
call fcn.140009560
jmp 0x140033e80
lea rdx, [rax + 8]
mov qword [rsp + 0x40], rdx
mov rdx, r15
cmp rcx, 0xf
jbe 0x140033f50
mov rdx, qword [rsp + 0x30]
mov qword [rdx + rax], 0
mov byte [rdx + rax + 8], 0
jmp 0x140033e80
xor ebx, ebx
jmp 0x140033faa
cmp eax, 3
je 0x140033f6d
xor ebx, ebx
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x140033faa
mov rcx, qword [rsp + 0x30]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140033fa5
mov rdi, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rdi
cmp rcx, 0x20
jae 0x140033fc7
add rax, 0x28
mov rdx, rax
mov rcx, rdi
call fcn.14011a568
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14011a890
mov eax, ebx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140128920
ud2
Function at 0x140034a60
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x10], 0x103
jbe 0x140034a72
xor eax, eax
jmp 0x140034a8f
cmp qword [rcx + 0x18], 7
jbe 0x140034a7c
mov rcx, qword [rcx]
xor edx, edx
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140034aa0
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rdx + 0x18], 7
jbe 0x140034abd
mov rdx, qword [rdi]
cmp qword [rbx + 0x18], 7
mov rcx, rbx
jbe 0x140034aca
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov bpl, 1
test eax, eax
jne 0x140034b3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140075710
mov r14d, eax
cmp qword [rbx + 0x18], 7
jbe 0x140034af1
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 7
jbe 0x140034afb
mov rdi, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x140034b3a
test rsi, rsi
je 0x140034b38
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140075710
cmp eax, 0xfffffffc
cmovne r14d, eax
mov dword [rsi], r14d
xor ebp, ebp
mov eax, ebp
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x1400350e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 7
jbe 0x1400350ee
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 7
jbe 0x14003510e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne cl
and eax, 0x10
shr eax, 4
and al, cl
add rsp, 0x28
ret

Function at 0x140035130
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x290
mov rsi, rcx
mov rax, qword [0x14017b750]
xor rax, rsp
mov qword [rsp + 0x288], rax
lea rdi, [rsp + 0x70]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x102
jbe 0x140035170
xor esi, esi
jmp 0x1400351d5
mov qword [rsp + 0x20], rdi
cmp word [rsp + 0x70], 0
je 0x14003518e
xor eax, eax
nop
cmp word [rsp + rax*2 + 0x72], 0
lea rax, [rax + 1]
jne 0x140035180
jmp 0x140035190
xor eax, eax
mov qword [rsp + 0x28], rax
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14002ed80
lea rbx, [rsp + 0x50]
mov rcx, rdi
mov rdx, rbx
call fcn.140031d30
mov rcx, rsi
mov rdx, rbx
call fcn.14002ef10
mov rcx, rbx
call fcn.14002ee30
mov rcx, rdi
call fcn.14002ee30
mov sil, 1
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.14011a890
mov eax, esi
add rsp, 0x290
pop rbx
pop rdi
pop rsi
ret

Function at 0x140035200
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x288
mov rsi, rcx
mov rax, qword [0x14017b750]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rdi, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140035270
movzx eax, word [rsp + 0x70]
test ax, ax
je 0x140035270
mov qword [rsp + 0x40], rdi
xor eax, eax
cmp word [rsp + rax*2 + 0x72], 0
lea rax, [rax + 1]
jne 0x140035250
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14002ed80
jmp 0x1400352c4
lea rdi, [rsp + 0x50]
mov rcx, rdi
call fcn.14002ec50
mov rcx, rdi
call fcn.140035130
test al, al
je 0x140035298
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14002ed40
jmp 0x1400352ba
lea rax, [0x140149f48]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 3
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14002ed80
lea rcx, [rsp + 0x50]
call fcn.14002ee30
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14011a890
mov rax, rsi
add rsp, 0x288
pop rdi
pop rsi
ret
Function at 0x140035e50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x14017b750]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x18], 7
mov r15, rcx
jbe 0x140035e7d
mov r15, qword [rdi]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140035ea8
mov bl, 1
test al, 0x10
jne 0x140035f7a
test r14, r14
je 0x140035ea1
mov dword [r14], 0xfffffff7
xor ebx, ebx
jmp 0x140035f7a
lea rsi, [rsp + 0x28]
mov rcx, rdi
mov rdx, rsi
call fcn.14002fcd0
mov rax, qword [rdi + 0x10]
cmp qword [rsp + 0x38], rax
jne 0x140035f11
test rax, rax
je 0x140035f03
cmp qword [rdi + 0x18], 7
mov rcx, rdi
jbe 0x140035ed5
mov rcx, qword [rdi]
cmp qword [rsp + 0x40], 7
jbe 0x140035ee2
mov rsi, qword [rsp + 0x28]
xor edx, edx
nop word cs:[rax + rax]
nop
movzx ebx, word [rsi + rdx*2]
cmp bx, word [rcx + rdx*2]
jne 0x140035f11
add rdx, 1
cmp rax, rdx
jne 0x140035ef0
test r14, r14
je 0x140035f6e
mov dword [r14], 0xfffffffc
jmp 0x140035f6e
lea rcx, [rsp + 0x28]
mov rdx, r14
call fcn.140035e50
test al, al
je 0x140035f6e
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x140035f70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0xb7
jne 0x140035f5f
cmp qword [rdi + 0x18], 7
jbe 0x140035f4c
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140035f5f
and eax, 0x10
jne 0x140035f70
test r14, r14
je 0x140035f6e
mov ecx, esi
call fcn.140075710
mov dword [r14], eax
xor ebx, ebx
lea rcx, [rsp + 0x28]
call fcn.14002ee30
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14011a890
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140036060
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov esi, r8d
mov rbx, rdx
mov rax, qword [0x14017b750]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x18], 7
jbe 0x140036086
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.1400100ce
mov rcx, qword [rsp + 0x40]
mov edi, 0xffffffff
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14003610c
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rdx, rbx
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb eax, eax
cmp dword [rsp + 0x3c], esi
mov edi, 0xffffffff
cmove edi, esi
or edi, eax
mov rcx, qword [rsp + 0x40]
add rcx, 1
cmp rcx, 2
jb 0x140036145
call fcn.140036ff0
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x40]
mov r9, rax
call fcn.14004b220
mov rcx, qword [rsp + 0x40]
call fcn.14004b1b0
mov qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14011a890
mov eax, edi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret