joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400365c0
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 [0x140119028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x50]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1400ffac0]
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.140075ea0
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
call fcn.140075ed0
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rbx + 0x17], 0
jns 0x140036654
mov rbx, qword [rbx]
lea rdx, [rsp + 0x24]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x14003679a
mov ebp, eax
mov esi, eax
mov rcx, rsi
call fcn.1400897bc
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.14008cc30
mov edx, dword [rsp + 0x24]
mov rcx, rbx
mov r8d, ebp
mov r9, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1400367a3
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 0x1400367a3
mov rbp, qword [rsp + 0x28]
test rbp, rbp
je 0x1400367a3
add rsi, rdi
mov ecx, 0x38
call fcn.1400897bc
mov rbx, rax
movzx r15d, word [rbp]
movzx ebp, word [rbp + 2]
lea rax, fcn.140036b80
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 [0x140119e88]
jne 0x140036729
mov rcx, rdi
call fcn.14006f300
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, [0x140103012]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400367b9
mov rax, qword [rsp + 0x28]
mov qword [rbx + 0x30], rax
mov qword [r14], rbx
lea rcx, [rsp + 0x50]
call fcn.140075f30
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14008ab00
mov rax, r14
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov qword [r14], 0
jmp 0x14003676d
mov qword [r14], 0
test rdi, rdi
je 0x14003676d
mov rcx, rdi
call fcn.1400897f8
jmp 0x14003676d
int3
Function at 0x140036850
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 [0x140119028]
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.14008cc30
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.140036af0
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 0x140036954
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140036954
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x140036954
dec r8d
mov rcx, r15
call fcn.14006e2d0
mov sil, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14008ab00
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.14008cc30
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.140036af0
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 0x1400369d3
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1400369d3
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x140036920
lea rsi, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.14008cc30
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.140036af0
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 0x140036a57
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140036a57
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x140036920
lea rsi, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.14008cc30
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.140036af0
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 0x140036adc
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140036adc
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x140036920
xor esi, esi
jmp 0x14003692e
Function at 0x140036fb0
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 [0x140119028]
xor rax, rsp
mov qword [rsp + 0x4a8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x450]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x1400ffac0]
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, [0x14010304d]
lea r8, str....._base_files_file_util_win.cc
lea rsi, [rsp + 0x240]
mov rcx, rsi
mov r9d, 0x1a0
call fcn.140075ea0
mov rcx, rbp
mov rdx, rsi
xor r8d, r8d
call fcn.140075ed0
lea rbp, [rsp + 0x240]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.14008cc30
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14003705f
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, rbp
call fcn.14006fde0
mov rcx, rbp
call fcn.14005da50
lea rbp, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.14008cc30
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x140037096
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, rbp
call fcn.14006fde0
mov rcx, rbp
call fcn.14005da50
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400370b8
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400370c4
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]
test eax, eax
jne 0x14003712e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140043a20
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x1400370f7
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x140037100
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
test r14, r14
je 0x140037131
test eax, eax
jne 0x140037131
cmp ebp, 0xfffffffc
jne 0x140037127
call fcn.1400de440
mov ebp, eax
mov dword [r14], ebp
xor edi, edi
jmp 0x140037131
mov dil, 1
lea rcx, [rsp + 0x450]
call fcn.140075f30
mov rcx, qword [rsp + 0x4a8]
xor rcx, rsp
call fcn.14008ab00
mov eax, edi
add rsp, 0x4b0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1400ffac0]
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, 0x1d3
call fcn.140075ea0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140075ed0
cmp byte [rdi + 0x17], 0
jns 0x1400371e4
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.140075f30
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14008ab00
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140037220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1400ffac0]
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, 0x1fb
call fcn.140075ea0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140075ed0
cmp byte [rdi + 0x17], 0
jns 0x1400372a4
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.140075f30
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14008ab00
mov eax, edi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400372f0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14008cc30
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
add edi, 0xfffffefc
cmp edi, 0xfffffefd
jb 0x140037393
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.1400a8f50
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.14006a280
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.140034aa0
mov rcx, r14
mov rdx, rsi
call fcn.14006a3c0
mov rcx, rsi
call fcn.14006a350
mov rcx, rbx
call fcn.14006a350
cmp edi, 0xfffffefd
setae bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14008ab00
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400373c0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14008cc30
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 0x140037455
cmp word [rsp + 0x70], 0
je 0x140037455
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400a8f50
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.14006a280
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14008ab00
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 [0x1400ffac0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14006a200
mov rcx, rdi
call fcn.1400372f0
test al, al
je 0x140037495
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14006a260
jmp 0x1400374b4
lea rax, [0x140103076]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14006a280
lea rcx, [rsp + 0x40]
call fcn.14006a350
jmp 0x140037437
Function at 0x140037c70
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 [0x140119028]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rbx, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.14008cc30
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.1400446b0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400ffac0]
movaps xmmword [rdi], xmm0
mov rcx, rbx
mov rdx, rdi
call fcn.140044890
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x140037d06
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140037d48
lea rcx, [rsp + 0x30]
call fcn.14006a350
lea rcx, [rsp + 0x298]
call fcn.140044790
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14008ab00
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
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.14008cc30
mov rcx, r15
mov rdx, rbx
call fcn.140044800
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x140037e61
mov rcx, rbx
call fcn.140044680
test al, al
jne 0x140037e0f
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140037da2
mov rcx, qword [rsp + 0x30]
call r13
test eax, eax
jne 0x140037e97
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.140019d50
mov rcx, r15
mov rdx, rbx
call fcn.140044890
mov rcx, rdi
mov rdx, rbx
call fcn.14006a3c0
mov rcx, rbx
call fcn.14006a350
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x140037dfe
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
je 0x140037d0b
jmp 0x140037d5f
xor ebp, ebp
test r14b, r14b
je 0x140037dc3
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.140037c70
test eax, eax
jne 0x140037eb4
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140037e3b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140037dc3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x140037dc3
test r14b, r14b
je 0x140037e77
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x140037e9e
mov rcx, qword [rsp + 0x30]
jmp 0x140037ea3
lea rcx, [rsp + 0x48]
call fcn.140044680
test al, al
je 0x140037eae
lea rcx, [rsp + 0x48]
call fcn.140044680
test al, al
je 0x140037d93
xor ebp, ebp
jmp 0x140037dc3
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140037d87
mov edx, dword [rsp + 0x48]
jmp 0x140037e66
mov ebp, eax
jmp 0x140037dc3
Function at 0x140039300
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 [0x140119028]
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 0x140039363
mov ebx, eax
mov r12d, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [0x1400ffac0]
movaps xmmword [rsp + 0x20], xmm0
cmp ebx, 0xa
ja 0x140039377
lea rsi, [rsp + 0x20]
mov byte [rsi + 0x17], bl
jmp 0x1400393a0
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
jmp 0x140039432
lea rdi, [r12 + 8]
and rdi, 0xfffffffffffffff8
lea rcx, [rdi + rdi]
call fcn.1400897bc
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.14008cc30
mov word [rsi + r12*2], 0
cmp byte [rsp + 0x37], 0
jns 0x1400393c3
mov rdx, qword [rsp + 0x20]
jmp 0x1400393c8
lea rdx, [rsp + 0x20]
mov rcx, r15
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140039411
mov edx, eax
movzx eax, byte [rsp + 0x37]
mov rcx, rax
test al, al
jns 0x1400393eb
mov rcx, qword [rsp + 0x28]
cmp rcx, rdx
jbe 0x140039415
lea rsi, [rsp + 0x20]
mov rcx, rsi
xor r8d, r8d
call fcn.1400696f0
mov rax, qword [rsi + 0x10]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [rsi]
movups xmmword [r14], xmm0
jmp 0x140039432
mov al, byte [rsp + 0x37]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
test al, al
jns 0x140039432
mov rcx, qword [rsp + 0x20]
call fcn.1400897f8
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008ab00
mov rax, r14
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140039a00
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 [0x140119028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.14005dc00
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x140126bc0]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.14008def0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008ab00
nop
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x14003a600
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14008cc30
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 0x14003a68c
mov ebx, eax
sub rbx, 1
jb 0x14003a68c
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x14003a65c
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003a676
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
call fcn.1400a43f4
test eax, eax
je 0x14003a75f
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 0x14003a6e6
mov ebx, eax
sub rbx, 1
jb 0x14003a6e6
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x14003a6b6
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003a6d0
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
call fcn.1400a43f4
test eax, eax
je 0x14003a791
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 0x14003a740
mov ebx, eax
sub rbx, 1
jb 0x14003a740
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x14003a710
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003a72a
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
call fcn.1400a43f4
test eax, eax
je 0x14003a7c6
xor edi, edi
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14008ab00
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 0x14003a76e
mov rcx, qword [rsi + 8]
dec rcx
mov dil, 1
cmp rcx, rbx
je 0x14003a742
mov rcx, rsi
test al, al
jns 0x14003a783
mov rcx, qword [rsi]
cmp word [rcx + rbx*2 + 2], 0x5c
jne 0x14003a68c
jmp 0x14003a742
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x14003a7a0
mov rcx, qword [rsi + 8]
dec rcx
mov dil, 1
cmp rcx, rbx
je 0x14003a742
mov rcx, rsi
test al, al
jns 0x14003a7b5
mov rcx, qword [rsi]
cmp word [rcx + rbx*2 + 2], 0x5c
jne 0x14003a6e6
jmp 0x14003a742
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x14003a7d5
mov rcx, qword [rsi + 8]
dec rcx
mov dil, 1
cmp rcx, rbx
je 0x14003a742
test al, al
jns 0x14003a7eb
mov rsi, qword [rsi]
cmp word [rsi + rbx*2 + 2], 0x5c
jne 0x14003a740
jmp 0x14003a742
Function at 0x1400438f0
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 [0x140119028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], r12
movaps xmm0, xmmword [0x1400ffac0]
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, 0x93
call fcn.140075ea0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140075ed0
test esi, esi
js 0x1400439f8
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.14007d870
test al, al
jne 0x1400439ff
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.14007d900
lea rcx, [rsp + 0x50]
call fcn.140075f30
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14008ab00
mov eax, esi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x1400439cb
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.1400e4db0
jmp 0x140043992
Function at 0x140043b90
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 [0x140119028]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x1400ffac0]
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, 0x16f
call fcn.140075ea0
mov rcx, rbp
mov rdx, rdi
xor r8d, r8d
call fcn.140075ed0
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 0x140043de9
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
and ecx, 0xa000000
or ecx, ebp
cmp byte [rbx + 0x17], 0
jns 0x140043cfb
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 0x140043d57
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r14]
inc rax
cmp rax, 2
jae 0x140043dd0
mov rax, rbx
inc rax
cmp rax, 2
jb 0x140043d4c
mov qword [r14], rbx
call fcn.140075ec0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [r14]
inc rbx
cmp rbx, 2
jb 0x140043d82
shr edi, 0xa
mov dword [r14 + 0x24], 0
mov byte [r14 + 0x29], dil
test r15b, 4
jne 0x140043dbe
test r15b, 0xa
je 0x140043d93
mov byte [r14 + 0x28], 1
jmp 0x140043d93
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140043a20
mov dword [r14 + 0x24], eax
lea rcx, [rsp + 0x60]
call fcn.140075f30
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14008ab00
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [r14 + 0x28]
jmp 0x140043d93
call fcn.140075ec0
mov rcx, qword [r14]
call fcn.140076550
mov qword [r14], 0
jmp 0x140043d38
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [r14 + 0x24], 0xffffffff
jmp 0x140043d93