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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140132d60]
test rdi, rdi
jne 0x14002e013
mov ecx, 0x50
call fcn.140085af8
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.140085af8
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14002e035
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 [0x140132d60], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14002e048
mov rcx, rax
call fcn.1400a58f8
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.14002e060
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140087020
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400fc149]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.1400bcb80
lea rcx, [0x1400fc149]
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.1400bcb80
int3
Function at 0x14002e060
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 [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.14003a790
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14002e1ec
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, [0x1401013c8]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14002e243
lea rdx, [0x140101418]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002e232
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x1401149e8]
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 0x14002e182
test r12d, r12d
js 0x14002e239
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.140085af8
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 0x14002e20c
mov rdx, qword [rbx + r15]
mov rcx, r14
call fcn.1400bc370
add r14, 0x18
add r15, 8
cmp r12, r15
jne 0x14002e15b
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14002dcd0
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14002e1a9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x14002e1ec
mov rdi, qword [rsp + 0x28]
cmp rdi, rsi
je 0x14002e1e4
add rdi, 0xffffffffffffffe8
jmp 0x14002e1d7
mov rcx, qword [rdi]
call fcn.140085b34
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
je 0x14002e1e4
test rdi, rdi
je 0x14002e21f
cmp byte [rdi + 0x17], 0
js 0x14002e1c3
jmp 0x14002e1cb
mov rcx, rsi
call fcn.140085b34
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140087020
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x1400fc149]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.1400bcb80
lea rcx, [0x1400fc149]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.1400bcb80
xor ebx, ebx
jmp 0x14002e10f
lea rcx, [rsp + 0x20]
call fcn.1400bc9e0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14002e10c
Function at 0x1400313b0
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 [0x140132db8]
test rdx, rdx
jne 0x1400314c7
mov ecx, 0x18
call fcn.140085af8
mov rbx, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
xor r15d, r15d
mov qword [rax + 0x10], r15
mov qword [0x140132db8], rax
mov ecx, 0x18
call fcn.140085af8
mov r14, rax
movups xmmword [rax], xmm6
mov qword [rax + 0x10], r15
mov qword [0x140132dc0], rax
call fcn.140033930
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.1400bc370
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r13, [rsp + 0x20]
mov rcx, r13
mov rdx, rax
call fcn.1400bc370
lea rbp, [rsp + 0x50]
mov rcx, rbp
mov rdx, r13
mov r8, r12
call fcn.140032480
mov rcx, rbp
mov rdx, r15
mov r8, rbx
mov r9, r14
call fcn.140030f00
mov ebx, eax
cmp byte [rbp + 0x17], 0
jns 0x140031496
mov rcx, qword [rsp + 0x50]
call fcn.140085b34
cmp byte [rsp + 0x37], 0
jns 0x1400314a7
mov rcx, qword [rsp + 0x20]
call fcn.140085b34
cmp byte [rsp + 0x4f], 0
jns 0x1400314b8
mov rcx, qword [rsp + 0x38]
call fcn.140085b34
test bl, bl
je 0x14003159f
mov rdx, qword [0x140132db8]
cmp rdx, rdi
je 0x1400314f2
cmp byte [rdi + 0x17], 0
movzx r8d, byte [rdx + 0x17]
js 0x140031570
test r8b, r8b
jns 0x140031550
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 0x140031528
mov rdx, qword [0x140132dc0]
cmp rdx, rsi
je 0x140031528
cmp byte [rsi + 0x17], 0
movzx r8d, byte [rdx + 0x17]
js 0x140031589
test r8b, r8b
jns 0x140031560
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.140087020
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 0x1400314f2
mov rax, qword [rdx + 0x10]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rsi], xmm0
jmp 0x140031528
test r8b, r8b
jns 0x14003157c
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
mov rcx, rdi
call fcn.140027540
jmp 0x1400314f2
test r8b, r8b
jns 0x140031595
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
mov rcx, rsi
call fcn.140027540
jmp 0x140031528
xor edi, edi
jmp 0x140031528
Function at 0x140031cb0
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.140089170
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 0x140031d3b
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x140031e9a
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140031d28
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400a1088
test eax, eax
je 0x140031e33
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 0x140031d92
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x140031ea8
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140031d7f
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400a1088
test eax, eax
je 0x140031e63
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 0x140031de5
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x140031eb6
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140031dd6
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400a1088
test eax, eax
je 0x140031e06
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140087020
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 0x140031e15
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x140031de7
jb 0x140031ec4
test al, al
jns 0x140031e29
mov rsi, qword [rsi]
cmp word [rsi + r14*2], 0x5c
jne 0x140031de5
jmp 0x140031de7
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x140031e42
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x140031de7
jb 0x140031ec4
mov rcx, rsi
test al, al
jns 0x140031e55
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x140031d3b
jmp 0x140031de7
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x140031e72
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x140031de7
jb 0x140031ec4
mov rcx, rsi
test al, al
jns 0x140031e89
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x140031d92
jmp 0x140031de7
dec r14
jne 0x140031d0f
jmp 0x140031d3b
dec r14
jne 0x140031d66
jmp 0x140031d92
dec r14
jne 0x140031dbd
jmp 0x140031de5
lea rcx, [0x1400fc149]
lea rdx, str....._third_partylibc_srcinclude_string:1241:_assertion___pos___size___failed:_string_index_out_of_bounds_n
call fcn.1400bcb80
int3
Function at 0x140032870
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 0x140032ac3
mov ebx, eax
mov r15d, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1400fc100]
movaps xmmword [rsp + 0x40], xmm0
cmp ebx, 0xb
jae 0x140032a46
lea r14, [rsp + 0x40]
mov byte [r14 + 0x17], bl
lea r8, [r15 + r15]
mov rcx, r14
xor edx, edx
call fcn.140089170
mov word [r14 + r15*2], 0
cmp byte [rsp + 0x57], 0
js 0x1400328fd
lea rdx, [rsp + 0x40]
jmp 0x140032902
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140032aa1
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 0x140032aa1
mov r14, rdx
test cl, cl
jns 0x1400329a0
sub r14, r8
ja 0x1400329b8
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 0x140032ab4
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140087020
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
sub r14, rdi
ja 0x1400329af
lea rcx, [rsp + 0x40]
mov byte [rcx + 0x17], al
jmp 0x14003294c
je 0x140032955
mov edx, 0xa
jmp 0x1400329d1
je 0x140032955
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 0x140032a17
test cl, cl
js 0x1400329e7
lea rbx, [rsp + 0x40]
jmp 0x1400329ec
mov rbx, qword [rsp + 0x40]
lea rcx, [rbx + rdi*2]
lea r8, [r14 + r14]
xor edx, edx
call fcn.140089170
add rdi, r14
cmp byte [rsp + 0x57], 0
jns 0x140032a94
mov qword [rsp + 0x48], rdi
lea rax, [rbx + rdi*2]
jmp 0x140032950
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.14005ba80
mov qword [rbx + 8], rdi
mov cl, byte [rbx + 0x17]
jmp 0x1400329dc
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.140085af8
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 0x1400328da
mov eax, edi
and al, 0x7f
mov byte [rsp + 0x57], al
jmp 0x140032a0e
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x140032977
mov rcx, qword [rsp + 0x40]
call fcn.140085b34
jmp 0x140032982
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x140032982
Function at 0x1400332c0
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 0x1400332e8
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003331c
test al, 0x10
je 0x1400333af
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140033490
mov dil, 1
jmp 0x1400333c7
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 0x140033341
mov rax, qword [rdi]
mov r9, qword [rdi + 8]
add r9, r9
test r9, r9
je 0x140033367
movzx ecx, word [rax + r9 - 2]
add r9, 0xfffffffffffffffe
cmp ecx, 0x5c
je 0x14003335d
cmp ecx, 0x2f
jne 0x140033344
cmp r9, 0xfffffffffffffffe
jne 0x140033436
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x14003339c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
je 0x1400333e1
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, ebx
call fcn.140033490
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x1400333c7
mov rcx, qword [rsp + 0x40]
call fcn.140085b34
jmp 0x1400333c7
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140033490
xor edi, edi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140087020
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.1400bc370
cmp byte [r14 + 0x17], 0
jns 0x1400333fd
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 0x140033428
mov rcx, qword [rsp + 0x28]
call fcn.140085b34
test bpl, bpl
je 0x140033388
jmp 0x14003339c
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.1400332c0
test al, al
jne 0x140033367
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.140033490
jmp 0x14003339a

Function at 0x140033490
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.140059b20
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x140132dd0]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.14008a574
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140087020
nop
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140039140
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 [0x1401336e8]
mov ecx, dword [0x14012fdc0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400391a0
lea rsi, [0x1401336e0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140087020
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401336e8]
call fcn.140085c50
cmp dword [0x1401336e8], 0xffffffff
jne 0x14003917c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140089170
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.140085af8
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140133730]
mov ecx, dword [0x14012fdc0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140039260
lea r8, [0x140133700]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140039360
mov qword [0x1401336e0], rsi
lea rcx, [0x1401336e8]
call fcn.140085ce8
jmp 0x14003917c
lea rcx, [0x140133730]
call fcn.140085c50
cmp dword [0x140133730], 0xffffffff
jne 0x140039231
xorps xmm0, xmm0
movups xmmword [0x140133720], xmm0
movups xmmword [0x140133710], xmm0
movups xmmword [0x140133700], xmm0
lea rcx, [0x140133700]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140133730]
call fcn.140085ce8
jmp 0x140039231

Function at 0x1400392b0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140133730]
mov ecx, dword [0x14012fdc0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400392eb
movzx eax, word [0x140133700]
cmp eax, 9
jne 0x140039333
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140133730]
call fcn.140085c50
cmp dword [0x140133730], 0xffffffff
jne 0x1400392d5
xorps xmm0, xmm0
movups xmmword [0x140133720], xmm0
movups xmmword [0x140133710], xmm0
movups xmmword [0x140133700], xmm0
lea rcx, [0x140133700]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140133730]
call fcn.140085ce8
jmp 0x1400392d5
test eax, eax
je 0x1400392e6
cmp eax, 6
jne 0x140039343
mov eax, 2
jmp 0x1400392e6
cmp eax, 0xc
jne 0x14003934f
mov eax, 3
jmp 0x1400392e6
mov eax, 4
jmp 0x1400392e6
Function at 0x140044c20
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 [0x1400fc100]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x140044d9c
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x140133fa0]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.1400a5d4c
mov rcx, rbx
call fcn.1400a58f8
sub r14, rax
lea rdx, [0x1400feb8a]
mov rcx, rbx
mov r8, r14
call fcn.1400a5d4c
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.140089170
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 0x140044cfc
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400a5d94
test eax, eax
je 0x140044dc0
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 0x140044d37
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400a5d94
test eax, eax
je 0x140044dc0
xor eax, eax
mov byte [0x140133b91], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140109894]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140044dc7
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x1401149e8]
test eax, eax
je 0x140044dc7
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x1401341a0], al
mov byte [0x140133b90], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140087020
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x140044d39
xor eax, eax
jmp 0x140044d8f
Function at 0x140045090
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x1400450c3
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400451ba
bt ebx, 8
jae 0x1400450df
mov eax, ebx
and eax, 0x200
jne 0x1400451ba
cmp edi, 2
lea rax, [0x140133ba0]
lea rcx, [0x140133da0]
cmove rcx, rax
cmp word [rcx], 0
jne 0x1400451ba
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x1400451ba
bt ebx, 8
jb 0x1400451ba
shr ebx, 9
and ebx, 1
or bl, byte [0x1401341a0]
je 0x1400451ba
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx r13d, byte [rsi + 0x17]
test r13b, r13b
jns 0x1400451d9
mov r14, qword [rsi]
mov r13, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov rbp, r13
sub rbp, r15
jb 0x1400451a3
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.1400a1088
test eax, eax
je 0x1400451de
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x140045183
cmp dword [rsp + 0x2c], 0
jne 0x14004525c
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140087020
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, rsi
jmp 0x140045166
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x1400451ec
test ecx, ecx
jne 0x1400451a3
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x14004521b
cmp dword [rsp + 0x2c], 2
jne 0x14004522c
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x14004522c
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x140045245
lea r14, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x140045232
jmp 0x140045248
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov r13, rbp
jmp 0x1400451aa
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x140045268
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, rsi
mov r8, qword [rsp + 0x38]
call fcn.1400d3500
jmp 0x1400451ba