joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029580
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 [0x14010c038]
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.14007c0b0
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.140029820
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 0x140029684
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140029684
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x140029684
dec r8d
mov rcx, r15
call fcn.1400585d0
mov sil, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400797f0
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.14007c0b0
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.140029820
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 0x140029703
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140029703
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x140029650
lea rsi, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.14007c0b0
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.140029820
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 0x140029787
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140029787
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x140029650
lea rsi, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.14007c0b0
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.140029820
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 0x14002980c
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14002980c
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x140029650
xor esi, esi
jmp 0x14002965e
Function at 0x1400299f0
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a0
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x498], rax
movaps xmm0, xmmword [0x1400ec9c0]
lea rbp, [rsp + 0x30]
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, [0x1400f2ead]
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x290]
mov rcx, rsi
mov r9d, 0x19b
call fcn.140065cb0
mov rcx, rbp
mov rdx, rsi
xor r8d, r8d
call fcn.140065ce0
lea rbp, [rsp + 0x290]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.14007c0b0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140029a8e
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, rbp
call fcn.14005ea50
mov rcx, rbp
call fcn.1400526d0
lea rbp, [rsp + 0x80]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.14007c0b0
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x140029ac8
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, rbp
call fcn.14005ea50
mov rcx, rbp
call fcn.1400526d0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140029aea
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140029af6
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 0x140029b59
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140035930
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x140029b29
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x140029b32
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 0x140029b5c
test eax, eax
jne 0x140029b5c
cmp ebp, 0xfffffffc
je 0x140029b86
mov dword [r14], ebp
xor edi, edi
jmp 0x140029b5c
mov dil, 1
lea rcx, [rsp + 0x30]
call fcn.140065e70
mov rcx, qword [rsp + 0x498]
xor rcx, rsp
call fcn.1400797f0
mov eax, edi
add rsp, 0x4a0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400cca10
mov ebp, eax
jmp 0x140029b52

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1400ec9c0]
lea rsi, [rsp + 0x40]
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, 0x1ce
call fcn.140065cb0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140065ce0
cmp byte [rdi + 0x17], 0
jns 0x140029c06
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.140065e70
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400797f0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140029c40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1400ec9c0]
lea rsi, [rsp + 0x40]
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, 0x1f6
call fcn.140065cb0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140065ce0
cmp byte [rdi + 0x17], 0
jns 0x140029cb6
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.140065e70
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400797f0
mov eax, edi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x140029d00
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14007c0b0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x140029d9f
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.140092480
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.140059d20
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.1400279c0
mov rcx, r14
mov rdx, rsi
call fcn.140059e30
mov rcx, rsi
call fcn.140059e20
mov rcx, rbx
call fcn.140059e20
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400797f0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140029dd0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14007c0b0
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 0x140029e65
cmp word [rsp + 0x70], 0
je 0x140029e65
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.140092480
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.140059d20
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400797f0
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 [0x1400ec9c0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140059ca0
mov rcx, rdi
call fcn.140029d00
test al, al
je 0x140029ea5
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140059d00
jmp 0x140029ec4
lea rax, [0x1400f2ed6]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.140059d20
lea rcx, [rsp + 0x40]
call fcn.140059e20
jmp 0x140029e47
Function at 0x14002a2b0
Capabilities:
Check if file exists
Create directory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x120
movaps xmmword [rsp + 0x110], xmm6
mov r12, rdx
mov rdi, rcx
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x108], rax
movaps xmm6, xmmword [0x1400ec9c0]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x40], xmm6
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.CreateDirectoryAndGetError
lea r8, str..._.._base_files_file_util_win.cc
lea rbp, [rsp + 0xb0]
mov rcx, rbp
mov r9d, 0x283
call fcn.140065cb0
mov rcx, rbx
mov rdx, rbp
xor r8d, r8d
call fcn.140065ce0
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x14002a33e
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002a38c
mov bl, 1
test al, 0x10
je 0x14002a4aa
lea rcx, [rsp + 0x40]
call fcn.140065e70
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.1400797f0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x120
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x10], rax
movaps xmmword [rbp], xmm6
mov rcx, rdi
mov rdx, rbp
call fcn.140059fe0
movzx ecx, byte [rbp + 0x17]
mov rax, rcx
test cl, cl
jns 0x14002a3be
mov rax, qword [rsp + 0x28]
movzx esi, byte [rdi + 0x17]
mov rdx, rsi
test sil, sil
jns 0x14002a3ce
mov rdx, qword [rdi + 8]
cmp rax, rdx
je 0x14002a4c9
lea rcx, [rsp + 0x20]
mov rdx, r12
call fcn.14002a2b0
test al, al
je 0x14002a513
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x14002a40c
lea rcx, [rsp + 0x20]
call fcn.140059e20
jmp 0x14002a356
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp eax, 0xb7
jne 0x14002a494
lea rbp, [rsp + 0xb0]
movaps xmmword [rbp + 0x40], xmm6
movaps xmmword [rbp + 0x30], xmm6
movaps xmmword [rbp + 0x20], xmm6
movaps xmmword [rbp + 0x10], xmm6
movaps xmmword [rbp], xmm6
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea r15, [rsp + 0x90]
mov rcx, r15
mov r9d, 0x1f6
call fcn.140065cb0
mov rcx, rbp
mov rdx, r15
xor r8d, r8d
call fcn.140065ce0
cmp byte [rdi + 0x17], 0
jns 0x14002a473
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbp
call fcn.140065e70
cmp edi, 0xffffffff
je 0x14002a494
and edi, 0x10
jne 0x14002a3fd
test r12, r12
je 0x14002a4a5
mov ecx, r14d
call fcn.140035930
mov dword [r12], eax
mov ecx, r14d
jmp 0x14002a50d
test r12, r12
je 0x14002a4b7
mov dword [r12], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x14002a356
test rax, rax
je 0x14002a4fb
test cl, cl
jns 0x14002a4d7
mov rbp, qword [rsp + 0x20]
mov rcx, rdi
test sil, sil
jns 0x14002a4e2
mov rcx, qword [rdi]
xor edx, edx
movzx esi, word [rbp + rdx*2]
cmp si, word [rcx + rdx*2]
jne 0x14002a3d7
inc rdx
cmp rax, rdx
jne 0x14002a4e4
test r12, r12
je 0x14002a508
mov dword [r12], 0xfffffffc
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x14002a3fd
Function at 0x14002a650
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 [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rbx, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.14007c0b0
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.1400367d0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400ec9c0]
movaps xmmword [rdi], xmm0
mov rcx, rbx
mov rdx, rdi
call fcn.140036aa0
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x14002a6e6
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14002a7b5
lea rbx, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
xor r12d, r12d
mov r8d, 0x250
mov rcx, rbx
mov dl, 0xaa
call fcn.14007c0b0
mov rcx, r15
mov rdx, rbx
call fcn.140036a10
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x14002a7f2
mov rcx, rbx
call fcn.1400366f0
test al, al
jne 0x14002a813
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14002a74d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002a89e
call r13
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.140036aa0
mov rcx, rdi
mov rdx, rbx
call fcn.140059e30
mov rcx, rbx
call fcn.140059e20
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x14002a7a9
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
jne 0x14002a706
lea rcx, [rsp + 0x30]
call fcn.140059e20
lea rcx, [rsp + 0x298]
call fcn.1400368b0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1400797f0
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test r14b, r14b
je 0x14002a87e
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x14002a8a5
mov rcx, qword [rsp + 0x30]
jmp 0x14002a8aa
xor ebp, ebp
test r14b, r14b
je 0x14002a76e
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov rdx, rsi
mov r8b, 1
call fcn.14002a650
mov ebp, eax
test eax, eax
jne 0x14002a76e
cmp byte [rsp + 0x47], 0
jns 0x14002a84e
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x14002a76e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x14002a76e
lea rcx, [rsp + 0x48]
call fcn.1400366f0
test al, al
je 0x14002a8b5
lea rcx, [rsp + 0x48]
call fcn.1400366f0
test al, al
je 0x14002a73e
xor ebp, ebp
jmp 0x14002a76e
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14002a72e
mov edx, dword [rsp + 0x48]
jmp 0x14002a7fb
Function at 0x14002bf10
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15, rdx
mov r14, rcx
mov rax, qword [0x14010c038]
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 0x14002bf7c
mov ebx, eax
mov r12d, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [0x1400ec9c0]
movaps xmmword [rsp + 0x20], xmm0
cmp ebx, 0xa
ja 0x14002bf90
lea rsi, [rsp + 0x20]
mov byte [rsi + 0x17], bl
mov r13, rsi
mov rbp, rsi
jmp 0x14002bfbd
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
jmp 0x14002c04c
lea rdi, [r12 + 8]
and rdi, 0xfffffffffffffff8
lea rcx, [rdi + rdi]
call fcn.140078938
mov rbp, rax
lea rsi, [rsp + 0x20]
mov qword [rsi], rax
bts rdi, 0x3f
mov qword [rsi + 0x10], rdi
mov qword [rsi + 8], r12
mov r13, rsi
lea r8, [r12 + r12]
mov rcx, rbp
xor edx, edx
call fcn.14007c0b0
mov word [rbp + r12*2], 0
cmp byte [r13 + 0x17], 0
jns 0x14002bfdf
mov rsi, qword [rsp + 0x20]
mov rcx, r15
mov rdx, rsi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14002c02b
mov edx, eax
movzx eax, byte [r13 + 0x17]
mov rcx, rax
test al, al
jns 0x14002c005
mov rcx, qword [rsp + 0x28]
cmp rcx, rdx
jbe 0x14002c02f
lea rsi, [rsp + 0x20]
mov rcx, rsi
xor r8d, r8d
call fcn.140059250
mov rax, qword [rsi + 0x10]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [rsi]
movups xmmword [r14], xmm0
jmp 0x14002c04c
mov al, byte [r13 + 0x17]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
test al, al
jns 0x14002c04c
mov rcx, qword [rsp + 0x20]
call fcn.140078974
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400797f0
mov rax, r14
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002c570
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 [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.140051230
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x140113930]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.14007d3c8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400797f0
nop
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140035800
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov esi, r8d
mov r14, rdx
mov r15, rcx
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x1400ec9c0]
lea rdi, [rsp + 0x50]
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.140065cb0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140065ce0
test esi, esi
js 0x140035904
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.14006cf80
test al, al
jne 0x14003590b
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.14006cff0
lea rcx, [rsp + 0x50]
call fcn.140065e70
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400797f0
mov eax, esi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x1400358d9
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.1400d41c0
jmp 0x1400358a0
Function at 0x140035a60
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
mov r12d, r8d
mov r14, rdx
mov r15, rcx
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movaps xmm0, xmmword [0x1400ec9c0]
lea rbp, [rsp + 0x60]
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 rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x15a
call fcn.140065cb0
mov rcx, rbp
mov rdx, rbx
xor r8d, r8d
call fcn.140065ce0
mov eax, r12d
and eax, 1
neg eax
and eax, 3
test r12b, 2
mov edx, 1
cmove edx, eax
test r12b, 4
mov ecx, 4
cmovne edx, ecx
test r12b, 8
mov ebp, 2
cmove ebp, edx
test r12b, 0x10
mov eax, 5
cmove eax, ebp
test eax, eax
je 0x140035cb9
mov edx, r12d
and edx, 0x40
shl edx, 0x18
test r12b, r12b
cmovns ecx, edx
mov edx, r12d
rol edx, 0x1a
mov edi, r12d
shl edi, 0xb
and edi, 0x20000000
mov esi, r12d
shr esi, 4
and esi, 0x10000
and edx, 0x80000100
or edx, edi
or edx, esi
or edx, ecx
mov ecx, r12d
shr ecx, 8
and ecx, 3
mov r8d, r12d
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov edi, r12d
and edi, 0x400
mov ecx, edi
shl ecx, 0x14
mov ebp, r12d
shr ebp, 3
and ebp, 0x100
or ebp, ecx
mov ecx, r12d
shr ecx, 0xb
and ecx, 2
or ecx, ebp
mov ebp, r12d
shl ebp, 0xd
and ebp, 0x4000000
or ebp, ecx
mov ecx, r12d
shl ecx, 8
mov ebx, ecx
and ebx, 0x2000000
or ebx, ebp
and ecx, 0x8000000
or ecx, ebx
cmp byte [r14 + 0x17], 0
jns 0x140035bc9
mov r14, qword [r14]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], 0
mov rcx, r14
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp qword [r15], rax
je 0x140035c25
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r15]
inc rax
cmp rax, 2
jae 0x140035ca0
mov rax, rbx
inc rax
cmp rax, 2
jb 0x140035c1a
mov qword [r15], rbx
call fcn.140065cd0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [r15]
inc rbx
cmp rbx, 2
jb 0x140035c7b
shr edi, 0xa
mov dword [r15 + 0x24], 0
mov byte [r15 + 0x29], dil
test r12b, 4
jne 0x140035c8e
test r12b, 0xa
je 0x140035c4e
mov byte [r15 + 0x28], 1
lea rcx, [rsp + 0x60]
call fcn.140065e70
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400797f0
nop
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140035930
mov dword [r15 + 0x24], eax
jmp 0x140035c4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [r15 + 0x28]
jmp 0x140035c4e
call fcn.140065cd0
mov rcx, qword [r15]
call fcn.1400665e0
mov qword [r15], 0
jmp 0x140035c06
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [r15 + 0x24], 0xffffffff
jmp 0x140035c4e
Function at 0x140035ec0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.1400660e0
mov qword [rsi], 0
test rax, rax
je 0x140035f13
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140035f47
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140035f0b
mov qword [rsi], rbx
call fcn.140065cd0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.140059cc0
lea rcx, [rsi + 0x20]
call fcn.14006cfa0
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.140065cd0
mov rcx, qword [rsi]
call fcn.1400665e0
mov qword [rsi], 0
jmp 0x140035ef9