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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140121040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1400fc140]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.CreateFileVersionInfoWin
lea r8, str....._base_file_version_info_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x4d
call fcn.140066ee0
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
call fcn.140066f10
mov dword [rsp + 0x2c], 0xaaaaaaaa
cmp byte [rbx + 0x17], 0
jns 0x140028a96
mov rbx, qword [rbx]
lea rdx, [rsp + 0x2c]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x140028ac2
mov ebp, eax
mov r14d, eax
mov rcx, r14
call fcn.14007f3f0
mov rdi, rax
lea r15, [rax + r14]
xor eax, eax
jmp 0x140028c06
mov qword [rsi], 0
jmp 0x140028bd5
mov edx, dword [rsp + 0x2c]
mov rcx, rbx
mov r8d, ebp
mov r9, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140028c31
lea r8, [rsp + 0x30]
mov qword [r8], 0
lea r9, [rsp + 0x9c]
mov dword [r9], 0xaaaaaaaa
lea rdx, str.VarFileInfoTranslation
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140028c31
mov r13, qword [rsp + 0x30]
test r13, r13
je 0x140028c31
mov ecx, 0x38
call fcn.14007f3f0
mov rbx, rax
movzx r12d, word [r13]
movzx ebp, word [r13 + 2]
lea rax, fcn.140028d00
mov qword [rbx], rax
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
movabs r14, 0xfffffffc00000000
mov rax, rdi
and rax, r14
cmp rax, qword [0x140123c08]
jne 0x140028b76
mov rcx, rdi
call fcn.140069e50
mov qword [rbx + 0x20], rdi
mov word [rbx + 0x28], r12w
mov word [rbx + 0x2a], bp
lea r8, [rsp + 0x30]
mov qword [r8], 0
lea r9, [rsp + 0x9c]
mov dword [r9], 0xaaaaaaaa
lea rdx, [0x1401010e4]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140028c58
mov rdi, qword [rsp + 0x30]
and r14, rdi
cmp r14, qword [0x140123c08]
jne 0x140028bce
mov rcx, rdi
call fcn.140069e50
mov qword [rbx + 0x30], rdi
mov qword [rsi], rbx
lea rcx, [rsp + 0x50]
call fcn.140066f90
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140080790
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
add rcx, rax
je 0x140028c1e
mov byte [rcx], 0
inc rax
cmp r14, rax
jne 0x140028c06
jmp 0x140028ace
lea rcx, [0x1400fc189]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.1400b71e0
mov qword [rsi], 0
test rdi, rdi
je 0x140028bd5
dec r15
cmp r15, r14
jae 0x140028c5b
lea rcx, [0x1400fc189]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.1400b71e0
int3
mov rcx, rdi
call fcn.14007f42c
jmp 0x140028bd5
Function at 0x14002d190
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140121040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140132d70]
test rdi, rdi
jne 0x14002d243
mov ecx, 0x50
call fcn.14007f3f0
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.14007f3f0
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14002d265
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x140132d70], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14002d278
mov rcx, rax
call fcn.14009e498
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.14002d290
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140080790
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400fc189]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.1400b71e0
lea rcx, [0x1400fc189]
lea rdx, str....._third_partylibc_srcinclude_string_view:267:_assertion___s___nullptr_failed:_null_pointer_passed_to_non_null_argument_of_char_traits_..._::length_n
call fcn.1400b71e0
int3
Function at 0x14002d290
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140121040]
xor rax, rsp
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 3
call fcn.140038350
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14002d41c
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, [0x140101478]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14002d473
lea rdx, [0x1401014c8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002d462
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x140114e70]
mov rbx, rax
movsxd r12, dword [rsp + 0x3c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
test r12, r12
je 0x14002d3b2
test r12d, r12d
js 0x14002d469
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.14007f3f0
mov r14, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
add rax, r15
mov qword [rsp + 0x30], rax
xor r15d, r15d
test r14, r14
je 0x14002d43c
mov rdx, qword [rbx + r15]
mov rcx, r14
call fcn.140019c00
add r14, 0x18
add r15, 8
cmp r12, r15
jne 0x14002d38b
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14002cf00
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14002d3d9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x14002d41c
mov rdi, qword [rsp + 0x28]
cmp rdi, rsi
je 0x14002d414
add rdi, 0xffffffffffffffe8
jmp 0x14002d407
mov rcx, qword [rdi]
call fcn.14007f42c
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
je 0x14002d414
test rdi, rdi
je 0x14002d44f
cmp byte [rdi + 0x17], 0
js 0x14002d3f3
jmp 0x14002d3fb
mov rcx, rsi
call fcn.14007f42c
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140080790
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x1400fc189]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.1400b71e0
lea rcx, [0x1400fc189]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.1400b71e0
xor ebx, ebx
jmp 0x14002d33f
lea rcx, [rsp + 0x20]
call fcn.1400b7070
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14002d33c
Function at 0x14002fec0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140121040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdx, qword [0x140132dc8]
test rdx, rdx
jne 0x14002ffd7
mov ecx, 0x18
call fcn.14007f3f0
mov rbx, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
xor r15d, r15d
mov qword [rax + 0x10], r15
mov qword [0x140132dc8], rax
mov ecx, 0x18
call fcn.14007f3f0
mov r14, rax
movups xmmword [rax], xmm6
mov qword [rax + 0x10], r15
mov qword [0x140132dd0], rax
call fcn.140031e20
mov rax, qword [rax + 8]
mov r15, qword [rax + 0x10]
lea rdx, str.user_data_dir
lea r12, [rsp + 0x38]
mov rcx, r12
call fcn.140019c00
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r13, [rsp + 0x20]
mov rcx, r13
mov rdx, rax
call fcn.140019c00
lea rbp, [rsp + 0x50]
mov rcx, rbp
mov rdx, r13
mov r8, r12
call fcn.140030eb0
mov rcx, rbp
mov rdx, r15
mov r8, rbx
mov r9, r14
call fcn.14002fa00
mov ebx, eax
cmp byte [rbp + 0x17], 0
jns 0x14002ffa6
mov rcx, qword [rsp + 0x50]
call fcn.14007f42c
cmp byte [rsp + 0x37], 0
jns 0x14002ffb7
mov rcx, qword [rsp + 0x20]
call fcn.14007f42c
cmp byte [rsp + 0x4f], 0
jns 0x14002ffc8
mov rcx, qword [rsp + 0x38]
call fcn.14007f42c
test bl, bl
je 0x1400300af
mov rdx, qword [0x140132dc8]
cmp rdx, rdi
je 0x140030012
cmp byte [rdi + 0x17], 0
movzx r8d, byte [rdx + 0x17]
js 0x140030080
test r8b, r8b
jns 0x140030004
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, rdi
mov rdx, rax
call fcn.140025bd0
jmp 0x140030012
mov rax, qword [rdx + 0x10]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rdi], xmm0
mov dil, 1
test rsi, rsi
je 0x140030044
mov rdx, qword [0x140132dd0]
cmp rdx, rsi
je 0x140030044
cmp byte [rsi + 0x17], 0
movzx r8d, byte [rdx + 0x17]
js 0x140030099
test r8b, r8b
js 0x14003006c
mov rax, qword [rdx + 0x10]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rsi], xmm0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140080790
mov eax, edi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, rsi
mov rdx, rax
call fcn.140025bd0
jmp 0x140030044
test r8b, r8b
jns 0x14003008c
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
mov rcx, rdi
call fcn.140025b00
jmp 0x140030012
test r8b, r8b
jns 0x1400300a5
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
mov rcx, rsi
call fcn.140025b00
jmp 0x140030044
xor edi, edi
jmp 0x140030044
Function at 0x1400307b0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x140121040]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400b5fa0
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 0x14003083b
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x1400309a0
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140030828
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.140099c28
test eax, eax
je 0x140030935
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 0x140030892
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x1400309ae
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003087f
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.140099c28
test eax, eax
je 0x140030967
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 0x1400308e5
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x1400309bc
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400308d6
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.140099c28
test eax, eax
je 0x140030906
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140080790
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x140030917
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x1400308e7
jb 0x1400309ca
test al, al
jns 0x14003092b
mov rsi, qword [rsi]
cmp word [rsi + r14*2], 0x5c
jne 0x1400308e5
jmp 0x1400308e7
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x140030946
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x1400308e7
jb 0x1400309ca
mov rcx, rsi
test al, al
jns 0x140030959
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x14003083b
jmp 0x1400308e7
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x140030978
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x1400308e7
jb 0x1400309ca
mov rcx, rsi
test al, al
jns 0x14003098f
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x140030892
jmp 0x1400308e7
dec r14
jne 0x14003080f
jmp 0x14003083b
dec r14
jne 0x140030866
jmp 0x140030892
dec r14
jne 0x1400308bd
jmp 0x1400308e5
lea rcx, [0x1400fc189]
lea rdx, str....._third_partylibc_srcinclude_string:1241:_assertion___pos___size___failed:_string_index_out_of_bounds_n
call fcn.1400b71e0
int3
Function at 0x140031330
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140121040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14003157a
mov ebx, eax
mov r15d, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1400fc140]
movaps xmmword [rsp + 0x40], xmm0
cmp ebx, 0xb
jae 0x140031500
lea r14, [rsp + 0x40]
mov byte [r14 + 0x17], bl
lea r8, [r15 + r15]
mov rcx, r14
xor edx, edx
call fcn.1400b5fa0
mov word [r14 + r15*2], 0
cmp byte [rsp + 0x57], 0
js 0x1400313bd
lea rdx, [rsp + 0x40]
jmp 0x1400313c2
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140031558
mov edx, eax
movsx rcx, byte [rsp + 0x57]
test rcx, rcx
mov rdi, qword [rsp + 0x48]
mov r8, rcx
cmovs r8, rdi
cmp r8, rdx
jbe 0x140031558
mov r14, rdx
test cl, cl
jns 0x140031460
sub r14, rdi
ja 0x14003147b
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x48], rdx
lea rax, [rcx + rdx*2]
mov word [rax], 0
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
cmp byte [rsp + 0x57], 0
js 0x14003156b
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140080790
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
sub r14, rcx
ja 0x14003146f
lea rcx, [rsp + 0x40]
mov byte [rcx + 0x17], al
jmp 0x14003140c
je 0x140031415
mov edx, 0xa
mov rdi, rcx
jmp 0x140031491
je 0x140031415
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
btr rdx, 0x3f
dec rdx
shr rcx, 0x38
mov rax, rdx
sub rax, rdi
cmp rax, r14
jae 0x1400314c9
mov r8, r14
sub r8, rdx
add r8, rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rdi
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9, rdi
call fcn.1400560e0
mov qword [rbx + 8], rdi
mov cl, byte [rbx + 0x17]
test cl, cl
js 0x1400314d4
lea rbx, [rsp + 0x40]
jmp 0x1400314d9
mov rbx, qword [rsp + 0x40]
lea rcx, [rbx + rdi*2]
lea r8, [r14 + r14]
xor edx, edx
call fcn.1400b5fa0
add rdi, r14
cmp byte [rsp + 0x57], 0
jns 0x14003154e
mov qword [rsp + 0x48], rdi
lea rax, [rbx + rdi*2]
jmp 0x140031410
mov eax, r15d
and eax, 0xfffffffc
add rax, 4
mov r12, r15
or r12, 3
cmp r12, 0xb
cmove r12, rax
lea rcx, [r12*2 + 2]
call fcn.14007f3f0
mov r14, rax
mov qword [rsp + 0x40], rax
movabs rax, 0x7fffffffffffffff
add rax, r12
add rax, 2
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r15
jmp 0x14003139a
mov eax, edi
and al, 0x7f
mov byte [rsp + 0x57], al
jmp 0x1400314f7
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x140031437
mov rcx, qword [rsp + 0x40]
call fcn.14007f42c
jmp 0x140031442
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x140031442
Function at 0x1400317b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rdi, rcx
mov rax, qword [0x140121040]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x1400317d8
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140031821
test al, 0x10
je 0x140031907
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140031980
mov dil, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140080790
mov eax, edi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movsx r9, byte [rdi + 0x17]
mov rax, rdi
test r9, r9
jns 0x140031846
mov rax, qword [rdi]
mov r9, qword [rdi + 8]
add r9, r9
test r9, r9
je 0x14003186c
movzx ecx, word [rax + r9 - 2]
add r9, 0xfffffffffffffffe
cmp ecx, 0x5c
je 0x140031862
cmp ecx, 0x2f
jne 0x140031849
cmp r9, 0xfffffffffffffffe
jne 0x140031924
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x1400318ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x1400318d9
lea r14, [rsp + 0x28]
mov rcx, r14
mov rdx, rsi
call fcn.140019c00
cmp byte [r14 + 0x17], 0
jns 0x1400318a9
mov r14, qword [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
setne al
and ebp, 0x10
shr ebp, 4
and bpl, al
cmp byte [rsp + 0x3f], 0
jns 0x1400318d4
mov rcx, qword [rsp + 0x28]
call fcn.14007f42c
test bpl, bpl
jne 0x1400318ed
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, ebx
call fcn.140031980
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x140031807
mov rcx, qword [rsp + 0x40]
call fcn.14007f42c
jmp 0x140031807
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140031980
xor edi, edi
jmp 0x140031807
sar r9, 1
lea rax, [rsp + 0x67]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.14005da70
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
call fcn.1400317b0
test al, al
jne 0x14003186c
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.140031980
jmp 0x1400318eb

Function at 0x140031980
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 [0x140121040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.140053aa0
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x140132de0]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.140083114
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140080790
nop
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140036e10
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140121040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140133718]
mov ecx, dword [0x14012fdc8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140036e70
lea rsi, [0x140133710]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140080790
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140133718]
call fcn.14007f47c
cmp dword [0x140133718], 0xffffffff
jne 0x140036e4c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400b5fa0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.14007f3f0
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140133760]
mov ecx, dword [0x14012fdc8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140036f30
lea r8, [0x140133730]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140037030
mov qword [0x140133710], rsi
lea rcx, [0x140133718]
call fcn.14007f530
jmp 0x140036e4c
lea rcx, [0x140133760]
call fcn.14007f47c
cmp dword [0x140133760], 0xffffffff
jne 0x140036f01
xorps xmm0, xmm0
movups xmmword [0x140133750], xmm0
movups xmmword [0x140133740], xmm0
movups xmmword [0x140133730], xmm0
lea rcx, [0x140133730]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140133760]
call fcn.14007f530
jmp 0x140036f01

Function at 0x140036f80
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140133760]
mov ecx, dword [0x14012fdc8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140036fbb
movzx eax, word [0x140133730]
cmp eax, 9
jne 0x140037003
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140133760]
call fcn.14007f47c
cmp dword [0x140133760], 0xffffffff
jne 0x140036fa5
xorps xmm0, xmm0
movups xmmword [0x140133750], xmm0
movups xmmword [0x140133740], xmm0
movups xmmword [0x140133730], xmm0
lea rcx, [0x140133730]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140133760]
call fcn.14007f530
jmp 0x140036fa5
test eax, eax
je 0x140036fb6
cmp eax, 6
jne 0x140037013
mov eax, 2
jmp 0x140036fb6
cmp eax, 0xc
jne 0x14003701f
mov eax, 3
jmp 0x140036fb6
mov eax, 4
jmp 0x140036fb6
Function at 0x140037920
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140121040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1400fc140]
lea r14, [rsp + 0x50]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x97
call fcn.140066ee0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140066f10
test esi, esi
js 0x140037a26
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140076a60
test al, al
jne 0x140037a2d
lea r14, [rsp + 0x2c]
mov dword [r14], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [r14]
lea rcx, [rsp + 0x30]
call fcn.140076dc0
lea rcx, [rsp + 0x50]
call fcn.140066f90
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140080790
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x1400379fb
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1400e0560
jmp 0x1400379c0