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

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov rdi, rdx
mov r14, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x50]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1400f2f80]
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 rbx, [rsp + 0x28]
mov rcx, rbx
mov r9d, 0x4d
call fcn.140068280
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400682b0
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 0x17], 0
jns 0x14002bd72
mov rdi, qword [rdi]
lea rdx, [rsp + 0x24]
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x14002be8f
mov ebp, eax
mov esi, eax
mov rcx, rsi
call fcn.14007b74c
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.14007eec0
mov edx, dword [rsp + 0x24]
mov rcx, rdi
mov r8d, ebp
mov r9, rbx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14002be98
lea r8, [rsp + 0x28]
mov qword [r8], 0
lea r9, [rsp + 0x4c]
mov dword [r9], 0xaaaaaaaa
lea rdx, str.VarFileInfoTranslation
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002be98
mov rbp, qword [rsp + 0x28]
test rbp, rbp
je 0x14002be98
mov rdi, rbx
add rdi, rsi
mov ecx, 0x38
call fcn.14007b74c
mov rsi, rax
mov eax, dword [rbp]
lea rcx, fcn.14002c150
mov qword [rsi], rcx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], rdi
mov qword [rsi + 0x20], rbx
mov dword [rsi + 0x28], eax
lea r8, [rsp + 0x28]
mov qword [r8], 0
lea r9, [rsp + 0x4c]
mov dword [r9], 0xaaaaaaaa
lea rdx, [0x1400f5be2]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002beae
mov rax, qword [rsp + 0x28]
mov qword [rsi + 0x30], rax
mov qword [r14], rsi
lea rcx, [rsp + 0x50]
call fcn.140068310
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14007c600
mov rax, r14
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov qword [r14], 0
jmp 0x14002be64
mov qword [r14], 0
test rbx, rbx
je 0x14002be64
mov rcx, rbx
call fcn.14007b788
jmp 0x14002be64
int3
Function at 0x14002bf50
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, 0x278
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x270], rax
movzx eax, word [rcx + 0x28]
mov word [rsp + 0x260], ax
movzx eax, word [rcx + 0x2a]
mov word [rsp + 0x262], ax
mov rsi, qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call rsi
mov word [rsp + 0x264], ax
movzx eax, word [rbx + 0x2a]
mov word [rsp + 0x266], ax
movzx eax, word [rbx + 0x28]
mov word [rsp + 0x268], ax
mov bp, 0x4e4
mov word [rsp + 0x26a], bp
call rsi
mov word [rsp + 0x26c], ax
mov word [rsp + 0x26e], bp
xor ebp, ebp
lea rsi, [rsp + 0x50]
lea r15, str.StringFileInfo_04x_04x_ls
lea r12, [rsp + 0x48]
lea r13, [rsp + 0x44]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.14007eec0
movzx eax, word [rsp + rbp + 0x262]
movzx ecx, word [rsp + rbp + 0x260]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
mov r9, r15
call fcn.14002c0c0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x44], 0xaaaaaaaa
mov rcx, qword [rbx + 0x20]
mov rdx, rsi
mov r8, r12
mov r9, r13
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002c0a7
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14002c0a7
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x14002c0a7
dec r8d
mov rcx, r14
call fcn.14005ff80
mov sil, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14007c600
mov eax, esi
add rsp, 0x278
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
add rbp, 4
cmp rbp, 0x10
jne 0x14002bff5
xor esi, esi
jmp 0x14002c081
Function at 0x14002c2b0
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 [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x4a8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x450]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x1400f2f80]
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, [0x1400f5c1d]
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x240]
mov rcx, rsi
mov r9d, 0x1c7
call fcn.140068280
mov rcx, rbp
mov rdx, rsi
xor r8d, r8d
call fcn.1400682b0
lea rbp, [rsp + 0x240]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.14007eec0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14002c35f
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, rbp
call fcn.140061ab0
mov rcx, rbp
call fcn.140056b40
lea rbp, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.14007eec0
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x14002c396
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, rbp
call fcn.140061ab0
mov rcx, rbp
call fcn.140056b40
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14002c3b8
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x14002c3c4
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 0x14002c425
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140038f70
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x14002c3f7
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x14002c400
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
jne 0x14002c428
test r14, r14
je 0x14002c428
cmp ebp, 0xfffffffc
je 0x14002c455
mov dword [r14], ebp
xor edi, edi
jmp 0x14002c428
mov dil, 1
lea rcx, [rsp + 0x450]
call fcn.140068310
mov rcx, qword [rsp + 0x4a8]
xor rcx, rsp
call fcn.14007c600
mov eax, edi
add rsp, 0x4b0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400c62c0
mov ebp, eax
jmp 0x14002c41e

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1400f2f80]
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, 0x1fa
call fcn.140068280
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400682b0
cmp byte [rdi + 0x17], 0
jns 0x14002c4e4
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.140068310
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14007c600
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x14002c520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1400f2f80]
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, 0x222
call fcn.140068280
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400682b0
cmp byte [rdi + 0x17], 0
jns 0x14002c5a4
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.140068310
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14007c600
mov eax, edi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x14002c5f0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14007eec0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14002c68f
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.1400952c0
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.14005c030
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.14002a190
mov rcx, r14
mov rdx, rsi
call fcn.14005c120
mov rcx, rsi
call fcn.14005c110
mov rcx, rbx
call fcn.14005c110
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14007c600
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14002c6c0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14007eec0
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 0x14002c755
cmp word [rsp + 0x70], 0
je 0x14002c755
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400952c0
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.14005c030
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14007c600
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 [0x1400f2f80]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14005bfb0
mov rcx, rdi
call fcn.14002c5f0
test al, al
je 0x14002c795
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14005c010
jmp 0x14002c7b4
lea rax, [0x1400f5c46]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14005c030
lea rcx, [rsp + 0x40]
call fcn.14005c110
jmp 0x14002c737
Function at 0x14002cbc0
Capabilities:
Check if file exists
Create directory

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
movaps xmmword [rsp + 0xa0], xmm6
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], r15
movaps xmm6, xmmword [0x1400f2f80]
movaps xmmword [rsi + 0x40], xmm6
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
movaps xmmword [rsi], xmm6
lea rdx, str.CreateDirectoryAndGetError
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x2af
call fcn.140068280
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400682b0
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x14002cc56
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002cca2
mov sil, 1
test al, 0x10
je 0x14002cd3c
lea rcx, [rsp + 0x40]
call fcn.140068310
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14007c600
mov eax, esi
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rsi, [rsp + 0x20]
mov qword [rsi + 0x10], r15
movaps xmmword [rsi], xmm6
mov rcx, rdi
mov rdx, rsi
call fcn.14005c9b0
movzx ecx, byte [rsi + 0x17]
mov r8, rcx
test cl, cl
jns 0x14002ccc9
mov r8, qword [rsp + 0x28]
movzx eax, byte [rdi + 0x17]
mov rdx, rax
test al, al
jns 0x14002ccd8
mov rdx, qword [rdi + 8]
cmp r8, rdx
je 0x14002cd5a
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.14002cbc0
test al, al
je 0x14002cda4
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov sil, 1
test eax, eax
je 0x14002cd13
lea rcx, [rsp + 0x20]
call fcn.14005c110
jmp 0x14002cc6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x14002cd2e
mov rcx, rdi
call fcn.14002c520
test al, al
jne 0x14002cd04
test r14, r14
je 0x14002cd9c
mov ecx, ebx
call fcn.140038f70
jmp 0x14002cd99
test r14, r14
je 0x14002cd48
mov dword [r14], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x14002cc6f
test r8, r8
je 0x14002cd8a
test cl, cl
jns 0x14002cd68
mov rsi, qword [rsp + 0x20]
mov rcx, rdi
test al, al
jns 0x14002cd72
mov rcx, qword [rdi]
xor edx, edx
movzx eax, word [rsi + rdx*2]
cmp ax, word [rcx + rdx*2]
jne 0x14002ccdd
inc rdx
cmp r8, rdx
jne 0x14002cd74
mov eax, 0xfffffffc
mov ebx, 2
test r14, r14
je 0x14002cd9c
mov dword [r14], eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x14002cd04
Function at 0x14002cef0
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 [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rbx, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.14007eec0
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140039e20
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400f2f80]
movaps xmmword [rdi], xmm0
mov rcx, rbx
mov rdx, rdi
call fcn.14003a000
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x14002cf86
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14002d055
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.14007eec0
mov rcx, r15
mov rdx, rbx
call fcn.140039f70
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x14002d092
mov rcx, rbx
call fcn.140039d40
test al, al
jne 0x14002d0b3
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14002cfed
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002d13e
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.14003a000
mov rcx, rdi
mov rdx, rbx
call fcn.14005c120
mov rcx, rbx
call fcn.14005c110
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x14002d049
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
jne 0x14002cfa6
lea rcx, [rsp + 0x30]
call fcn.14005c110
lea rcx, [rsp + 0x298]
call fcn.140039f00
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14007c600
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 0x14002d11e
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x14002d145
mov rcx, qword [rsp + 0x30]
jmp 0x14002d14a
xor ebp, ebp
test r14b, r14b
je 0x14002d00e
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov rdx, rsi
mov r8b, 1
call fcn.14002cef0
mov ebp, eax
test eax, eax
jne 0x14002d00e
cmp byte [rsp + 0x47], 0
jns 0x14002d0ee
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 0x14002d00e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x14002d00e
lea rcx, [rsp + 0x48]
call fcn.140039d40
test al, al
je 0x14002d155
lea rcx, [rsp + 0x48]
call fcn.140039d40
test al, al
je 0x14002cfde
xor ebp, ebp
jmp 0x14002d00e
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14002cfce
mov edx, dword [rsp + 0x48]
jmp 0x14002d09b
Function at 0x14002e390
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 [0x14010e038]
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 0x14002e3f3
mov ebx, eax
mov r12d, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [0x1400f2f80]
movaps xmmword [rsp + 0x20], xmm0
cmp ebx, 0xa
ja 0x14002e407
lea rsi, [rsp + 0x20]
mov byte [rsi + 0x17], bl
jmp 0x14002e430
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
jmp 0x14002e4c2
lea rdi, [r12 + 8]
and rdi, 0xfffffffffffffff8
lea rcx, [rdi + rdi]
call fcn.14007b74c
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.14007eec0
mov word [rsi + r12*2], 0
cmp byte [rsp + 0x37], 0
jns 0x14002e453
mov rdx, qword [rsp + 0x20]
jmp 0x14002e458
lea rdx, [rsp + 0x20]
mov rcx, r15
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14002e4a1
mov edx, eax
movzx eax, byte [rsp + 0x37]
mov rcx, rax
test al, al
jns 0x14002e47b
mov rcx, qword [rsp + 0x28]
cmp rcx, rdx
jbe 0x14002e4a5
lea rsi, [rsp + 0x20]
mov rcx, rsi
xor r8d, r8d
call fcn.14005b360
mov rax, qword [rsi + 0x10]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [rsi]
movups xmmword [r14], xmm0
jmp 0x14002e4c2
mov al, byte [rsp + 0x37]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
test al, al
jns 0x14002e4c2
mov rcx, qword [rsp + 0x20]
call fcn.14007b788
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007c600
mov rax, r14
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14002ec90
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 [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.140055970
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x1401143c0]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.1400801d8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007c600
nop
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x14002fbc0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14007eec0
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 0x14002fc4c
mov ebx, eax
sub rbx, 1
jb 0x14002fc4c
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x14002fc1c
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002fc36
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
call fcn.140090d48
test eax, eax
je 0x14002fd1f
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, 0x103
jae 0x14002fca6
mov ebx, eax
sub rbx, 1
jb 0x14002fca6
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x14002fc76
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002fc90
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
call fcn.140090d48
test eax, eax
je 0x14002fd51
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 0x14002fd00
mov ebx, eax
sub rbx, 1
jb 0x14002fd00
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x14002fcd0
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002fcea
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
call fcn.140090d48
test eax, eax
je 0x14002fd86
xor edi, edi
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14007c600
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 0x14002fd2e
mov rcx, qword [rsi + 8]
dec rcx
mov dil, 1
cmp rcx, rbx
je 0x14002fd02
mov rcx, rsi
test al, al
jns 0x14002fd43
mov rcx, qword [rsi]
cmp word [rcx + rbx*2 + 2], 0x5c
jne 0x14002fc4c
jmp 0x14002fd02
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x14002fd60
mov rcx, qword [rsi + 8]
dec rcx
mov dil, 1
cmp rcx, rbx
je 0x14002fd02
mov rcx, rsi
test al, al
jns 0x14002fd75
mov rcx, qword [rsi]
cmp word [rcx + rbx*2 + 2], 0x5c
jne 0x14002fca6
jmp 0x14002fd02
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x14002fd95
mov rcx, qword [rsi + 8]
dec rcx
mov dil, 1
cmp rcx, rbx
je 0x14002fd02
test al, al
jns 0x14002fdab
mov rsi, qword [rsi]
cmp word [rsi + rbx*2 + 2], 0x5c
jne 0x14002fd00
jmp 0x14002fd02
Function at 0x140038e40
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 [0x14010e038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], r12
movaps xmm0, xmmword [0x1400f2f80]
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.140068280
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400682b0
test esi, esi
js 0x140038f48
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.14006ee70
test al, al
jne 0x140038f4f
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.14006eee0
lea rcx, [rsp + 0x50]
call fcn.140068310
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14007c600
mov eax, esi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x140038f1b
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.1400ce180
jmp 0x140038ee2