joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002dd00
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x50]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1400f69f0]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.CreateFileVersionInfoWin
lea r8, str..._.._base_file_version_info_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x4c
call fcn.14006bdc0
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
call fcn.14006bdf0
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rbx + 0x17], 0
jns 0x14002dd94
mov rbx, qword [rbx]
lea rdx, [rsp + 0x24]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x14002ded6
mov ebp, eax
mov esi, eax
mov rcx, rsi
call fcn.140081638
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.140084d10
mov edx, dword [rsp + 0x24]
mov rcx, rbx
mov r8d, ebp
mov r9, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14002dedf
lea r8, [rsp + 0x28]
mov qword [r8], 0
lea r9, [rsp + 0x4c]
mov dword [r9], 0xaaaaaaaa
lea rdx, str.VarFileInfoTranslation
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002dedf
mov rbp, qword [rsp + 0x28]
test rbp, rbp
je 0x14002dedf
add rsi, rdi
mov ecx, 0x38
call fcn.140081638
mov rbx, rax
movzx r15d, word [rbp]
movzx ebp, word [rbp + 2]
lea rax, fcn.14002e2d0
mov qword [rbx], rax
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
movabs rax, 0xfffffffe00000000
and rax, rdi
cmp rax, qword [0x140115308]
je 0x14002def5
mov qword [rbx + 0x20], rdi
mov word [rbx + 0x28], r15w
mov word [rbx + 0x2a], bp
lea r8, [rsp + 0x28]
mov qword [r8], 0
lea r9, [rsp + 0x4c]
mov dword [r9], 0xaaaaaaaa
lea rdx, [0x1400fc4c2]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002df02
mov rax, qword [rsp + 0x28]
mov qword [rbx + 0x30], rax
mov qword [r14], rbx
lea rcx, [rsp + 0x50]
call fcn.14006be50
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140081fe0
mov rax, r14
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov qword [r14], 0
jmp 0x14002dea9
mov qword [r14], 0
test rdi, rdi
je 0x14002dea9
mov rcx, rdi
call fcn.140081674
jmp 0x14002dea9
mov rcx, rdi
call fcn.1400caee0
jmp 0x14002de65
int3
Function at 0x14002dfa0
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 [0x140113018]
xor rax, rsp
mov qword [rsp + 0x260], rax
movzx r14d, word [rcx + 0x28]
movzx r12d, word [rcx + 0x2a]
mov rsi, qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call rsi
mov ebp, eax
movzx ebx, word [rdi + 0x2a]
movzx eax, word [rdi + 0x28]
mov dword [rsp + 0x40], eax
call rsi
mov word [rsp + 0x3e], ax
lea rsi, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140084d10
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r14d
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.14002e240
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea r9, [rsp + 0x44]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002e0a4
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14002e0a4
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x14002e0a4
dec r8d
mov rcx, r15
call fcn.140064290
mov sil, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140081fe0
mov eax, esi
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rsi, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140084d10
movzx eax, bp
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.14002e240
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea r9, [rsp + 0x44]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002e123
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14002e123
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x14002e070
lea rsi, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140084d10
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
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.14002e240
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea r9, [rsp + 0x44]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002e1a7
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14002e1a7
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x14002e070
lea rsi, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140084d10
movzx eax, word [rsp + 0x3e]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.14002e240
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea r9, [rsp + 0x44]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002e22c
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14002e22c
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x14002e070
xor esi, esi
jmp 0x14002e07e
Function at 0x14002e6f0
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4b0
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x4a8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x450]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1400f69f0]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, [0x1400fc4fd]
lea r8, str..._.._base_files_file_util_win.cc
lea rbp, [rsp + 0x240]
mov rcx, rbp
mov r9d, 0x17c
call fcn.14006bdc0
mov rcx, rsi
mov rdx, rbp
xor r8d, r8d
call fcn.14006bdf0
lea rsi, [rsp + 0x240]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140084d10
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14002e79e
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, rsi
call fcn.140065a80
mov rcx, rsi
call fcn.140058180
lea rsi, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140084d10
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x14002e7d5
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, rsi
call fcn.140065a80
mov rcx, rsi
call fcn.140058180
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14002e7f7
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x14002e803
mov rcx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov sil, 1
test eax, eax
jne 0x14002e85b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003a860
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x14002e839
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x14002e842
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne sil
jne 0x14002e85b
test r14, r14
jne 0x14002e888
lea rcx, [rsp + 0x450]
call fcn.14006be50
mov rcx, qword [rsp + 0x4a8]
xor rcx, rsp
call fcn.140081fe0
mov eax, esi
add rsp, 0x4b0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
cmp ebp, 0xfffffffc
jne 0x14002e894
call fcn.1400d0190
mov ebp, eax
mov dword [r14], ebp
xor esi, esi
jmp 0x14002e85b

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1400f69f0]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1af
call fcn.14006bdc0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14006bdf0
cmp byte [rdi + 0x17], 0
jns 0x14002e924
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14006be50
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140081fe0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x14002e960
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1400f69f0]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1d7
call fcn.14006bdc0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14006bdf0
cmp byte [rdi + 0x17], 0
jns 0x14002e9e4
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
setne al
and edi, 0x10
shr edi, 4
and dil, al
mov rcx, rsi
call fcn.14006be50
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140081fe0
mov eax, edi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x14002ea30
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140084d10
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
add edi, 0xfffffefc
cmp edi, 0xfffffefd
jb 0x14002ead3
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.14009afb0
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1400600f0
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.14002c280
mov rcx, r14
mov rdx, rsi
call fcn.140060240
mov rcx, rsi
call fcn.1400601d0
mov rcx, rbx
call fcn.1400601d0
cmp edi, 0xfffffefd
setae bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140081fe0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14002eb00
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140084d10
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 0x14002eb95
cmp word [rsp + 0x70], 0
je 0x14002eb95
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.14009afb0
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.1400600f0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140081fe0
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400f69f0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140060070
mov rcx, rdi
call fcn.14002ea30
test al, al
je 0x14002ebd5
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400600d0
jmp 0x14002ebf4
lea rax, [0x1400fc526]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.1400600f0
lea rcx, [rsp + 0x40]
call fcn.1400601d0
jmp 0x14002eb77
Function at 0x14002f3b0
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x568
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rbx, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.140084d10
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.14003b650
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400f69f0]
movaps xmmword [rdi], xmm0
mov rcx, rbx
mov rdx, rdi
call fcn.14003b830
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x14002f446
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14002f517
lea rbx, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r12d, r12d
mov r8d, 0x250
mov rcx, rbx
mov dl, 0xaa
call fcn.140084d10
mov rcx, r15
mov rdx, rbx
call fcn.14003b7a0
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x14002f5aa
mov rcx, rbx
call fcn.14003b620
test al, al
jne 0x14002f554
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14002f4ad
mov rcx, qword [rsp + 0x30]
call r13
test eax, eax
jne 0x14002f513
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r12d, r12d
cmovne ebp, r12d
mov rcx, rbx
call fcn.140019a90
mov rcx, r15
mov rdx, rbx
call fcn.14003b830
mov rcx, rdi
mov rdx, rbx
call fcn.140060240
mov rcx, rbx
call fcn.1400601d0
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x14002f505
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
jne 0x14002f466
jmp 0x14002f517
xor ebp, ebp
jmp 0x14002f4ca
lea rcx, [rsp + 0x30]
call fcn.1400601d0
lea rcx, [rsp + 0x298]
call fcn.14003b730
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140081fe0
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
test r14b, r14b
je 0x14002f4ca
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.14002f3b0
test eax, eax
jne 0x14002f5fb
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14002f584
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14002f4ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x14002f4ca
test r14b, r14b
je 0x14002f5c0
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x14002f5e5
mov rcx, qword [rsp + 0x30]
jmp 0x14002f5ea
lea rcx, [rsp + 0x48]
call fcn.14003b620
test al, al
je 0x14002f5f5
lea rcx, [rsp + 0x48]
call fcn.14003b620
test al, al
je 0x14002f49e
jmp 0x14002f513
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14002f48e
mov edx, dword [rsp + 0x48]
jmp 0x14002f5af
mov ebp, eax
jmp 0x14002f4ca
Function at 0x140030850
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov r15, rdx
mov r14, rcx
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400308b3
mov ebx, eax
mov r12d, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [0x1400f69f0]
movaps xmmword [rsp + 0x20], xmm0
cmp ebx, 0xa
ja 0x1400308c7
lea rsi, [rsp + 0x20]
mov byte [rsi + 0x17], bl
jmp 0x1400308f0
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
jmp 0x140030982
lea rdi, [r12 + 8]
and rdi, 0xfffffffffffffff8
lea rcx, [rdi + rdi]
call fcn.140081638
mov rsi, rax
mov qword [rsp + 0x20], rax
bts rdi, 0x3f
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r12
lea r8, [r12 + r12]
mov rcx, rsi
xor edx, edx
call fcn.140084d10
mov word [rsi + r12*2], 0
cmp byte [rsp + 0x37], 0
jns 0x140030913
mov rdx, qword [rsp + 0x20]
jmp 0x140030918
lea rdx, [rsp + 0x20]
mov rcx, r15
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140030961
mov edx, eax
movzx eax, byte [rsp + 0x37]
mov rcx, rax
test al, al
jns 0x14003093b
mov rcx, qword [rsp + 0x28]
cmp rcx, rdx
jbe 0x140030965
lea rsi, [rsp + 0x20]
mov rcx, rsi
xor r8d, r8d
call fcn.14005f040
mov rax, qword [rsi + 0x10]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [rsi]
movups xmmword [r14], xmm0
jmp 0x140030982
mov al, byte [rsp + 0x37]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
test al, al
jns 0x140030982
mov rcx, qword [rsp + 0x20]
call fcn.140081674
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140081fe0
mov rax, r14
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140031150
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
lea rdi, [rsp + 0x68]
mov qword [rdi], rdx
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r9
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.1400599a0
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x1401218b0]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.140086028
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140081fe0
nop
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x140031d80
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140084d10
mov word [rdi], 0
lea rcx, str.PROGRAMFILES
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140031e0c
mov ebx, eax
sub rbx, 1
jb 0x140031e0c
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x140031ddc
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140031df6
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
call fcn.140096a30
test eax, eax
je 0x140031edf
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMFILES_X86_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140031e66
mov ebx, eax
sub rbx, 1
jb 0x140031e66
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x140031e36
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140031e50
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
call fcn.140096a30
test eax, eax
je 0x140031f11
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMW6432
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140031ec0
mov ebx, eax
sub rbx, 1
jb 0x140031ec0
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x140031e90
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140031eaa
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
call fcn.140096a30
test eax, eax
je 0x140031f46
xor edi, edi
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.140081fe0
mov eax, edi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
ret
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x140031eee
mov rcx, qword [rsi + 8]
dec rcx
mov dil, 1
cmp rcx, rbx
je 0x140031ec2
mov rcx, rsi
test al, al
jns 0x140031f03
mov rcx, qword [rsi]
cmp word [rcx + rbx*2 + 2], 0x5c
jne 0x140031e0c
jmp 0x140031ec2
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x140031f20
mov rcx, qword [rsi + 8]
dec rcx
mov dil, 1
cmp rcx, rbx
je 0x140031ec2
mov rcx, rsi
test al, al
jns 0x140031f35
mov rcx, qword [rsi]
cmp word [rcx + rbx*2 + 2], 0x5c
jne 0x140031e66
jmp 0x140031ec2
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x140031f55
mov rcx, qword [rsi + 8]
dec rcx
mov dil, 1
cmp rcx, rbx
je 0x140031ec2
test al, al
jns 0x140031f6b
mov rsi, qword [rsi]
cmp word [rsi + rbx*2 + 2], 0x5c
jne 0x140031ec0
jmp 0x140031ec2
Function at 0x14003a730
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov esi, r8d
mov r14, rdx
mov r15, rcx
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], r12
movaps xmm0, xmmword [0x1400f69f0]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0x88
call fcn.14006bdc0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14006bdf0
test esi, esi
js 0x14003a838
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.1400742f0
test al, al
jne 0x14003a83f
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], 0
mov rdx, r14
mov r8d, esi
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [rdi]
lea rcx, [rsp + 0x30]
call fcn.140074380
lea rcx, [rsp + 0x50]
call fcn.14006be50
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140081fe0
mov eax, esi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14003a80b
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.1400d6a00
jmp 0x14003a7d2
Function at 0x14003a9d0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r15d, r8d
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x1400f69f0]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
lea rdx, str.DoInitialize
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x160
call fcn.14006bdc0
mov rcx, rbp
mov rdx, rdi
xor r8d, r8d
call fcn.14006bdf0
mov eax, r15d
and eax, 1
neg eax
and eax, 3
test r15b, 2
mov edx, 1
cmove edx, eax
test r15b, 4
mov ecx, 4
cmovne edx, ecx
test r15b, 8
mov ebp, 2
cmove ebp, edx
test r15b, 0x10
mov eax, 5
cmove eax, ebp
test eax, eax
je 0x14003ac33
mov edx, r15d
and edx, 0x40
shl edx, 0x18
test r15b, 0x80
cmove ecx, edx
mov edx, r15d
rol edx, 0x1a
mov edi, r15d
shl edi, 0xb
and edi, 0x20000000
mov esi, r15d
shr esi, 4
and esi, 0x10000
and edx, 0x80000100
or edx, edi
or edx, esi
or edx, ecx
mov ecx, r15d
shr ecx, 8
and ecx, 3
mov r8d, r15d
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov edi, r15d
and edi, 0x400
mov ecx, edi
shl ecx, 0x14
mov ebp, r15d
shr ebp, 3
and ebp, 0x100
or ebp, ecx
mov ecx, r15d
shr ecx, 0xb
and ecx, 2
or ecx, ebp
mov ebp, r15d
shl ebp, 0xd
and ebp, 0x4000000
or ebp, ecx
mov ecx, r15d
shl ecx, 8
mov esi, ecx
and esi, 0x2000000
or esi, ebp
and ecx, 0x8000000
or ecx, esi
cmp byte [rbx + 0x17], 0
jns 0x14003ab45
mov rbx, qword [rbx]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], 0
mov rcx, rbx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp qword [r14], rax
je 0x14003aba1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r14]
inc rax
cmp rax, 2
jae 0x14003ac1a
mov rax, rbx
inc rax
cmp rax, 2
jb 0x14003ab96
mov qword [r14], rbx
call fcn.14006bde0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [r14]
inc rbx
cmp rbx, 2
jb 0x14003abf5
shr edi, 0xa
mov dword [r14 + 0x24], 0
mov byte [r14 + 0x29], dil
test r15b, 4
jne 0x14003ac08
test r15b, 0xa
je 0x14003abca
mov byte [r14 + 0x28], 1
lea rcx, [rsp + 0x60]
call fcn.14006be50
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140081fe0
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003a860
mov dword [r14 + 0x24], eax
jmp 0x14003abca
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [r14 + 0x28]
jmp 0x14003abca
call fcn.14006bde0
mov rcx, qword [r14]
call fcn.14006c1a0
mov qword [r14], 0
jmp 0x14003ab82
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [r14 + 0x24], 0xffffffff
jmp 0x14003abca