joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e7d0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140121038]
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.140039d90
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14002e957
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, [0x1401012a8]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14002e9bb
lea rdx, [0x1401012f8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002e99f
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x140114788]
mov r14, rax
movsxd r12, dword [rsp + 0x3c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
test r12, r12
je 0x14002e9b1
test r12d, r12d
js 0x14002e9a7
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.140083658
mov rbx, rax
mov qword [rsp + 0x20], rax
add rax, r15
mov qword [rsp + 0x30], rax
xor r13d, r13d
mov r15, rbx
test r15, r15
je 0x14002e979
mov rdx, qword [r14 + r13]
mov rcx, r15
call fcn.1400b9ed0
add r15, 0x18
add r13, 8
cmp r12, r13
jne 0x14002e8cf
mov qword [rsp + 0x28], r15
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14002e440
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14002e91d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x14002e957
cmp r15, rbx
je 0x14002e94f
add r15, 0xffffffffffffffe8
jmp 0x14002e941
mov rcx, qword [r15]
call fcn.140083694
lea rax, [r15 - 0x18]
cmp r15, rbx
mov r15, rax
je 0x14002e94f
test r15, r15
je 0x14002e98c
cmp byte [r15 + 0x17], 0
js 0x14002e92d
jmp 0x14002e935
mov rcx, rbx
call fcn.140083694
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140084b80
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1400fc139]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.1400ba6b0
lea rcx, [0x1400fc139]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.1400ba6b0
xor r14d, r14d
jmp 0x14002e881
lea rcx, [rsp + 0x20]
call fcn.1400ba540
xor r15d, r15d
xor ebx, ebx
jmp 0x14002e8f6
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14002e87e
Function at 0x140031380
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 [0x140121038]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdx, qword [0x140132db0]
test rdx, rdx
jne 0x140031497
mov ecx, 0x18
call fcn.140083658
mov rbx, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
xor r15d, r15d
mov qword [rax + 0x10], r15
mov qword [0x140132db0], rax
mov ecx, 0x18
call fcn.140083658
mov r14, rax
movups xmmword [rax], xmm6
mov qword [rax + 0x10], r15
mov qword [0x140132db8], rax
call fcn.140033950
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.1400b9ed0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r13, [rsp + 0x20]
mov rcx, r13
mov rdx, rax
call fcn.1400b9ed0
lea rbp, [rsp + 0x50]
mov rcx, rbp
mov rdx, r13
mov r8, r12
call fcn.1400323e0
mov rcx, rbp
mov rdx, r15
mov r8, rbx
mov r9, r14
call fcn.140030ed0
mov ebx, eax
cmp byte [rbp + 0x17], 0
jns 0x140031466
mov rcx, qword [rsp + 0x50]
call fcn.140083694
cmp byte [rsp + 0x37], 0
jns 0x140031477
mov rcx, qword [rsp + 0x20]
call fcn.140083694
cmp byte [rsp + 0x4f], 0
jns 0x140031488
mov rcx, qword [rsp + 0x38]
call fcn.140083694
test bl, bl
je 0x14003156f
mov rdx, qword [0x140132db0]
cmp rdx, rdi
je 0x1400314c2
cmp byte [rdi + 0x17], 0
movzx r8d, byte [rdx + 0x17]
js 0x140031540
test r8b, r8b
jns 0x140031520
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, rdi
mov rdx, rax
call fcn.140027610
mov dil, 1
test rsi, rsi
je 0x1400314f8
mov rdx, qword [0x140132db8]
cmp rdx, rsi
je 0x1400314f8
cmp byte [rsi + 0x17], 0
movzx r8d, byte [rdx + 0x17]
js 0x140031559
test r8b, r8b
jns 0x140031530
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, rsi
mov rdx, rax
call fcn.140027610
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140084b80
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 + 0x10]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rdi], xmm0
jmp 0x1400314c2
mov rax, qword [rdx + 0x10]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rsi], xmm0
jmp 0x1400314f8
test r8b, r8b
jns 0x14003154c
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
mov rcx, rdi
call fcn.140027540
jmp 0x1400314c2
test r8b, r8b
jns 0x140031565
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
mov rcx, rsi
call fcn.140027540
jmp 0x1400314f8
xor edi, edi
jmp 0x1400314f8
Function at 0x140031c10
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140086cd0
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 0x140031c9b
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x140031dfa
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140031c88
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14009ebe8
test eax, eax
je 0x140031d93
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 0x140031cf2
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x140031e08
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140031cdf
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14009ebe8
test eax, eax
je 0x140031dc3
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 0x140031d45
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x140031e16
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140031d36
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14009ebe8
test eax, eax
je 0x140031d66
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140084b80
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x140031d75
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x140031d47
jb 0x140031e24
test al, al
jns 0x140031d89
mov rsi, qword [rsi]
cmp word [rsi + r14*2], 0x5c
jne 0x140031d45
jmp 0x140031d47
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x140031da2
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x140031d47
jb 0x140031e24
mov rcx, rsi
test al, al
jns 0x140031db5
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x140031c9b
jmp 0x140031d47
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x140031dd2
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x140031d47
jb 0x140031e24
mov rcx, rsi
test al, al
jns 0x140031de9
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x140031cf2
jmp 0x140031d47
dec r14
jne 0x140031c6f
jmp 0x140031c9b
dec r14
jne 0x140031cc6
jmp 0x140031cf2
dec r14
jne 0x140031d1d
jmp 0x140031d45
lea rcx, [0x1400fc139]
lea rdx, str....._third_partylibc_srcinclude_string:1221:_assertion___pos___size___failed:_string_index_out_of_bounds_n
call fcn.1400ba6b0
int3
Function at 0x1400327d0
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 [0x140121038]
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 0x140032a2a
mov ebx, eax
mov r15d, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1400fc0f0]
movaps xmmword [rsp + 0x40], xmm0
cmp ebx, 0xb
jae 0x14003297b
lea r14, [rsp + 0x40]
mov byte [r14 + 0x17], bl
lea r8, [r15 + r15]
mov rcx, r14
xor edx, edx
call fcn.140086cd0
mov word [r14 + r15*2], 0
cmp byte [rsp + 0x57], 0
js 0x14003285d
lea rdx, [rsp + 0x40]
jmp 0x140032862
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140032a08
mov edx, eax
mov cl, byte [rsp + 0x57]
test cl, cl
mov r8, qword [rsp + 0x48]
movzx edi, cl
mov r9, rdi
cmovs r9, r8
cmp r9, rdx
jbe 0x140032a08
mov r14, rdx
test cl, cl
jns 0x140032900
sub r14, r8
ja 0x140032918
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 0x140032a1b
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140084b80
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
sub r14, rdi
ja 0x14003290f
lea rcx, [rsp + 0x40]
mov byte [rcx + 0x17], al
jmp 0x1400328ac
je 0x1400328b5
mov edx, 0xa
jmp 0x140032931
je 0x1400328b5
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
btr rdx, 0x3f
dec rdx
shr rcx, 0x38
mov rdi, r8
mov rax, rdx
sub rax, rdi
cmp rax, r14
jb 0x1400329c9
test cl, cl
js 0x14003294b
lea rbx, [rsp + 0x40]
jmp 0x140032950
mov rbx, qword [rsp + 0x40]
lea rcx, [rbx + rdi*2]
lea r8, [r14 + r14]
xor edx, edx
call fcn.140086cd0
add rdi, r14
cmp byte [rsp + 0x57], 0
jns 0x1400329fb
mov qword [rsp + 0x48], rdi
lea rax, [rbx + rdi*2]
jmp 0x1400328b0
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.140083658
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 0x14003283a
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.140057890
mov qword [rbx + 8], rdi
mov cl, byte [rbx + 0x17]
jmp 0x140032940
mov eax, edi
and al, 0x7f
mov byte [rsp + 0x57], al
jmp 0x140032972
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x1400328d7
mov rcx, qword [rsp + 0x40]
call fcn.140083694
jmp 0x1400328e2
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x1400328e2
Function at 0x140033230
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 [0x140121038]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x140033258
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003328c
test al, 0x10
je 0x14003331f
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140033400
mov dil, 1
jmp 0x140033337
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movzx r9d, byte [rdi + 0x17]
mov rax, rdi
test r9b, r9b
jns 0x1400332b1
mov rax, qword [rdi]
mov r9, qword [rdi + 8]
add r9, r9
test r9, r9
je 0x1400332d7
movzx ecx, word [rax + r9 - 2]
add r9, 0xfffffffffffffffe
cmp ecx, 0x5c
je 0x1400332cd
cmp ecx, 0x2f
jne 0x1400332b4
cmp r9, 0xfffffffffffffffe
jne 0x1400333a6
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x14003330c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
je 0x140033351
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, ebx
call fcn.140033400
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x140033337
mov rcx, qword [rsp + 0x40]
call fcn.140083694
jmp 0x140033337
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140033400
xor edi, edi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140084b80
mov eax, edi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea r14, [rsp + 0x28]
mov rcx, r14
mov rdx, rsi
call fcn.1400b9ed0
cmp byte [r14 + 0x17], 0
jns 0x14003336d
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 0x140033398
mov rcx, qword [rsp + 0x28]
call fcn.140083694
test bpl, bpl
je 0x1400332f8
jmp 0x14003330c
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.140027400
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
call fcn.140033230
test al, al
jne 0x1400332d7
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.140033400
jmp 0x14003330a

Function at 0x140033400
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 [0x140121038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.140055580
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x140132dc0]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.1400880d4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140084b80
nop
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x1400389b0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1401336a0]
mov ecx, dword [0x14012fdc0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140038a10
lea rsi, [0x140133698]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140084b80
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401336a0]
call fcn.1400837b0
cmp dword [0x1401336a0], 0xffffffff
jne 0x1400389ec
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140086cd0
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.140083658
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401336e8]
mov ecx, dword [0x14012fdc0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140038ad0
lea r8, [0x1401336b8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140038bd0
mov qword [0x140133698], rsi
lea rcx, [0x1401336a0]
call fcn.140083848
jmp 0x1400389ec
lea rcx, [0x1401336e8]
call fcn.1400837b0
cmp dword [0x1401336e8], 0xffffffff
jne 0x140038aa1
xorps xmm0, xmm0
movups xmmword [0x1401336d8], xmm0
movups xmmword [0x1401336c8], xmm0
movups xmmword [0x1401336b8], xmm0
lea rcx, [0x1401336b8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401336e8]
call fcn.140083848
jmp 0x140038aa1

Function at 0x140038b20
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401336e8]
mov ecx, dword [0x14012fdc0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140038b5b
movzx eax, word [0x1401336b8]
cmp eax, 9
jne 0x140038ba3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x1401336e8]
call fcn.1400837b0
cmp dword [0x1401336e8], 0xffffffff
jne 0x140038b45
xorps xmm0, xmm0
movups xmmword [0x1401336d8], xmm0
movups xmmword [0x1401336c8], xmm0
movups xmmword [0x1401336b8], xmm0
lea rcx, [0x1401336b8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401336e8]
call fcn.140083848
jmp 0x140038b45
test eax, eax
je 0x140038b56
cmp eax, 6
jne 0x140038bb3
mov eax, 2
jmp 0x140038b56
cmp eax, 0xc
jne 0x140038bbf
mov eax, 3
jmp 0x140038b56
mov eax, 4
jmp 0x140038b56
Function at 0x140039480
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 [0x140121038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1400fc0f0]
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.140069430
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140069460
test esi, esi
js 0x140039586
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.14007b710
test al, al
jne 0x14003958d
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.14007ba70
lea rcx, [rsp + 0x50]
call fcn.1400694e0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140084b80
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14003955b
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1400e0080
jmp 0x140039520
Function at 0x1400396c0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1400fc0f0]
lea r14, [rsp + 0x60]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.DoInitialize
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x171
call fcn.140069430
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140069460
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov edx, 1
cmove edx, eax
test bl, 4
mov ecx, 4
cmovne edx, ecx
test bl, 8
mov r8d, 2
cmove r8d, edx
test bl, 0x10
mov eax, 5
cmove eax, r8d
test eax, eax
je 0x14003992c
mov edx, ebx
and edx, 0x40
shl edx, 0x18
test bl, bl
cmovns ecx, edx
mov r8d, ebx
rol r8d, 0x1a
and r8d, 0x80000100
or r8d, ecx
bt ebx, 0x12
jb 0x140039901
mov edx, ebx
shr edx, 4
and edx, 0x10000
or edx, r8d
mov ecx, ebx
shr ecx, 8
and ecx, 3
mov r8d, ebx
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov r15d, ebx
and r15d, 0x400
mov ecx, r15d
shl ecx, 0x14
mov r9d, ebx
shr r9d, 3
and r9d, 0x100
or r9d, ecx
mov ecx, ebx
shr ecx, 0xb
and ecx, 2
or ecx, r9d
mov r10d, ebx
shl r10d, 0xd
and r10d, 0x4000000
or r10d, ecx
mov r9d, ebx
shl r9d, 8
and r9d, 0xa000000
or r9d, r10d
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140039823
mov rcx, qword [rdi]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x30], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp qword [rsi], rax
je 0x14003987d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140039913
mov rax, r14
inc rax
cmp rax, 2
jb 0x140039872
mov qword [rsi], r14
call fcn.140069450
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x1400398d4
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x1400398e6
test bl, 0xa
je 0x1400398a3
mov byte [rsi + 0x28], 1
bt ebx, 0x15
jb 0x1400398f7
lea rcx, [rsp + 0x60]
call fcn.1400694e0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140084b80
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400395b0
mov dword [rsi + 0x24], eax
jmp 0x1400398a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x1400398a3
mov rcx, rdi
call fcn.140029520
jmp 0x1400398a9
bt ebx, 0x15
jb 0x140039948
or r8d, 0x20000000
jmp 0x1400397a1
call fcn.140069450
mov rcx, qword [rsi]
call fcn.14006ac90
mov qword [rsi], 0
jmp 0x14003985e
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.1400d41a0
jmp 0x1400398a9
int3
Function at 0x1400418f0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x1400fc0f0]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x140041a6c
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x140133f50]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.1400a38ac
mov rcx, rbx
call fcn.1400a3458
sub r14, rax
lea rdx, [0x1400feaca]
mov rcx, rbx
mov r8, r14
call fcn.1400a38ac
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.140086cd0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1400419cc
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400a38f4
test eax, eax
je 0x140041a90
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140041a07
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400a38f4
test eax, eax
je 0x140041a90
xor eax, eax
mov byte [0x140133b4d], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1401096ac]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140041a97
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x140114788]
test eax, eax
je 0x140041a97
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x140134150], al
mov byte [0x140133b4c], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140084b80
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x140041a09
xor eax, eax
jmp 0x140041a5f