joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002a050
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x14002a096
mov r15, rbx
test r15, r15
je 0x14002a171
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r12
jbe 0x14002a0f2
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x14002a0e1
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.1400a9760
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x14002a072
mov rax, rbx
sub rax, r12
sar rax, 2
cmp rbx, r12
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x14002a18d
lea rcx, [r13*8]
call fcn.1400763d4
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x14002a153
xor r15d, r15d
mov r8, rcx
add r8, r15
je 0x14002a171
mov r9, qword [r14 + r15]
mov qword [r8], r9
add r15, 8
cmp rdx, r15
jne 0x14002a138
add r15, rcx
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdx
cmp rbx, r14
je 0x14002a173
add rbx, 0xfffffffffffffff8
jne 0x14002a166
ud2
test r12, r12
je 0x14002a072
mov rcx, r12
call fcn.140076410
mov r15, qword [rsi + 0x10]
jmp 0x14002a072
call fcn.1400aae10
int3

Function at 0x14002a4a0
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x140160040]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x1401382b0]
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.GetLength
lea r8, str....._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0xac
call fcn.140061690
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400358b0
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.140035aa0
test al, al
jne 0x14002a57c
lea rdi, [rsp + 0x28]
mov qword [rdi], r14
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.140035b20
lea rcx, [rsp + 0x50]
call fcn.140035930
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140077700
mov rax, rsi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.1400d5470
jmp 0x14002a529
Function at 0x14002a6a0
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 [0x140160040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1401382b0]
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.140061690
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400358b0
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 0x14002a911
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 0x14002a8db
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 0x14002a803
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 0x14002a859
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002a8b0
mov rax, r14
inc rax
cmp rax, 2
jb 0x14002a84e
mov qword [rsi], r14
call fcn.1400616b0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x14002a8c9
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x14002a8fd
test bl, 0xa
jne 0x14002a8ed
bt ebx, 0x15
jb 0x14002a8f3
lea rcx, [rsp + 0x60]
call fcn.140035930
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140077700
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400616b0
mov rcx, qword [rsi]
call fcn.14005ed70
mov qword [rsi], 0
jmp 0x14002a83a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002a5a0
mov dword [rsi + 0x24], eax
jmp 0x14002a885
bt ebx, 0x15
jb 0x14002a92d
or r8d, 0x20000000
jmp 0x14002a781
mov byte [rsi + 0x28], 1
jmp 0x14002a87f
mov rcx, rdi
call fcn.1400c8e50
jmp 0x14002a885
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x14002a87f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.1400d4820
jmp 0x14002a885
int3
Function at 0x14002a940
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140160040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1401382b0]
lea rsi, [rsp + 0x40]
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, 0x20d
call fcn.140061690
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400358b0
cmp byte [rdi + 0x17], 0
jns 0x14002a9b2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.140035930
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140077700
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x14002a9f0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140160040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm6, xmmword [0x1401382b0]
lea rbx, [rsp + 0x40]
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 r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x2f6
call fcn.140061690
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400358b0
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x14002aa73
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002aad3
mov bl, 1
test al, 0x10
je 0x14002aab9
lea rcx, [rsp + 0x40]
call fcn.140035930
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140077700
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
test rsi, rsi
je 0x14002aac4
mov dword [rsi], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x14002aa87
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x20]
mov qword [r14 + 0x10], rax
movaps xmmword [r14], xmm6
mov rcx, rdi
mov rdx, r14
call fcn.14002d5e0
movsx rax, byte [rdi + 0x17]
mov rcx, rdi
test rax, rax
jns 0x14002ab09
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
js 0x14002abe0
sete dl
test rcx, rcx
setne r8b
or r8b, dl
je 0x14002abe0
movsx rdx, byte [rsp + 0x37]
test rdx, rdx
cmovs rdx, qword [rsp + 0x28]
cmovs r14, qword [rsp + 0x20]
test rdx, rdx
js 0x14002abe0
sete r8b
test r14, r14
setne r9b
or r9b, r8b
je 0x14002abe0
cmp rdx, rax
jne 0x14002aba1
test rax, rax
je 0x14002ab77
xor edx, edx
movzx r8d, word [r14 + rdx*2]
cmp r8w, word [rcx + rdx*2]
jne 0x14002aba1
inc rdx
cmp rax, rdx
jne 0x14002ab63
mov eax, 0xfffffffc
mov ebp, 2
test rsi, rsi
je 0x14002ab88
mov dword [rsi], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea rcx, [rsp + 0x20]
call fcn.14002d530
jmp 0x14002aa87
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.14002a9f0
test al, al
je 0x14002ab90
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x14002ab92
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
je 0x14002abe2
test rsi, rsi
je 0x14002ab88
mov ecx, ebp
call fcn.14002a5a0
jmp 0x14002ab86
ud2
mov rcx, rdi
call fcn.1400c83f0
test al, al
jne 0x14002ab92
jmp 0x14002abd2
Function at 0x14002ca10
Capabilities:
Delete file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x140160040]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.14002cbd0
mov eax, dword [rsi]
mov dword [0x140162044], eax
mov bl, 1
test al, 1
jne 0x14002ca57
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140077700
mov eax, ebx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [0x140171418]
test rcx, rcx
je 0x14002ca85
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140171418], 0
cmp qword [0x140171420], 0
jne 0x14002ca85
and byte [0x140162044], 0xfe
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x14002caae
movsx rcx, byte [rsi + 0x1f]
test rcx, rcx
jns 0x14002ca9c
mov rcx, qword [rsi + 0x10]
test rcx, rcx
jne 0x14002cb27
mov qword [0x140171418], rax
jmp 0x14002ca3e
movsx rax, byte [rsi + 0x1f]
test rax, rax
jns 0x14002cabc
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14002cb76
lea rdi, [rsi + 8]
mov rcx, qword [0x140171420]
test rcx, rcx
jne 0x14002caf7
mov ecx, 0x18
call fcn.1400763d4
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x140171420], rax
mov rdx, rdi
call fcn.140022d90
cmp dword [rsi + 0x24], 0
jne 0x14002cb1b
mov rcx, qword [0x140171420]
cmp byte [rcx + 0x17], 0
jns 0x14002cb15
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1400ca8d0
mov ebx, eax
jmp 0x14002ca3e
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, str....._baselogging.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x231
call fcn.140061690
lea rdx, str.settings.log_file_path.empty__
lea r14, [rsp + 0x48]
mov rcx, r14
mov r8d, 0x7f
mov r9, rdi
call fcn.1400d44e0
mov rcx, r14
call fcn.1400d46f0
mov rax, qword [rsi + 0x28]
jmp 0x14002caa5
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, str....._baselogging.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x237
call fcn.140061690
lea rdx, str._settings.log_file_path.empty__
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r8d, 0x7f
mov r9, rdi
call fcn.1400d44e0
lea rdx, str.LOG_TO_FILE_set_but_no_log_file_path_
mov rcx, rbx
call fcn.1400ca8a0
mov rcx, rbx
call fcn.1400d46f0
jmp 0x14002cac5

Function at 0x14002e300
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.14002a360
mov qword [rsi], 0
test rax, rax
je 0x14002e353
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002e387
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14002e34b
mov qword [rsi], rbx
call fcn.1400616b0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.14002d4f0
lea rcx, [rsi + 0x20]
call fcn.140035ac0
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.1400616b0
mov rcx, qword [rsi]
call fcn.14005ed70
mov qword [rsi], 0
jmp 0x14002e339
Function at 0x14002e810
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140160040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140171488]
test rdi, rdi
jne 0x14002e8c3
mov ecx, 0x50
call fcn.1400763d4
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.1400763d4
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14002e8e5
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 [0x140171488], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14002e8e5
mov rcx, rax
call fcn.1400930c8
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.14002e8f0
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140077700
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
ud2
Function at 0x14002e8f0
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 [0x140160040]
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.140029ab0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14002ea78
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14002eaab
lea rdx, [0x14013c4be]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002ea9a
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x1401538b0]
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 0x14002ea12
test r12d, r12d
js 0x14002eaa1
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.1400763d4
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 0x14002ea98
mov rdx, qword [rbx + r15]
mov rcx, r14
call fcn.14001af60
add r14, 0x18
add r15, 8
cmp r12, r15
jne 0x14002e9eb
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14002e5e0
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14002ea39
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x14002ea78
mov rdi, qword [rsp + 0x28]
cmp rdi, rsi
je 0x14002ea70
add rdi, 0xffffffffffffffe8
test rdi, rdi
je 0x14002ea98
cmp byte [rdi + 0x17], 0
jns 0x14002ea64
mov rcx, qword [rdi]
call fcn.140076410
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
jne 0x14002ea51
mov rcx, rsi
call fcn.140076410
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140077700
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
xor ebx, ebx
jmp 0x14002e99f
lea rcx, [rsp + 0x20]
call fcn.1400ab000
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14002e99c
Function at 0x140031c20
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x140160040]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400a9e00
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 0x140031cab
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x140031e10
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140031c98
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14008e664
test eax, eax
je 0x140031da5
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 0x140031d02
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x140031e1e
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140031cef
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14008e664
test eax, eax
je 0x140031dd7
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 0x140031d55
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x140031e2c
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140031d46
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14008e664
test eax, eax
je 0x140031d76
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140077700
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 0x140031d87
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x140031d57
jb 0x140031e3a
test al, al
jns 0x140031d9b
mov rsi, qword [rsi]
cmp word [rsi + r14*2], 0x5c
jne 0x140031d55
jmp 0x140031d57
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x140031db6
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x140031d57
jb 0x140031e3a
mov rcx, rsi
test al, al
jns 0x140031dc9
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x140031cab
jmp 0x140031d57
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x140031de8
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x140031d57
jb 0x140031e3a
mov rcx, rsi
test al, al
jns 0x140031dff
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x140031d02
jmp 0x140031d57
dec r14
jne 0x140031c7f
jmp 0x140031cab
dec r14
jne 0x140031cd6
jmp 0x140031d02
dec r14
jne 0x140031d2d
jmp 0x140031d55
ud2
Function at 0x1400339b0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140160040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140171560]
mov ecx, dword [0x14016e698]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140033a10
lea rsi, [0x140171558]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140077700
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140171560]
call fcn.14007645c
cmp dword [0x140171560], 0xffffffff
jne 0x1400339ec
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400a9e00
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, 0x88
call fcn.1400763d4
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401715a8]
mov ecx, dword [0x14016e698]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140033ae7
lea rcx, [0x1401715a8]
call fcn.14007645c
cmp dword [0x1401715a8], 0xffffffff
jne 0x140033ae7
xorps xmm0, xmm0
movups xmmword [0x140171598], xmm0
movups xmmword [0x140171588], xmm0
movups xmmword [0x140171578], xmm0
lea rcx, [0x140171578]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401715a8]
call fcn.140076510
lea r8, [0x140171578]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140033bd0
mov qword [0x140171558], rsi
lea rcx, [0x140171560]
call fcn.140076510
jmp 0x1400339ec

Function at 0x140033b20
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401715a8]
mov ecx, dword [0x14016e698]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140033b8b
lea rcx, [0x1401715a8]
call fcn.14007645c
cmp dword [0x1401715a8], 0xffffffff
jne 0x140033b8b
xorps xmm0, xmm0
movups xmmword [0x140171598], xmm0
movups xmmword [0x140171588], xmm0
movups xmmword [0x140171578], xmm0
lea rcx, [0x140171578]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401715a8]
call fcn.140076510
movzx eax, word [0x140171578]
cmp eax, 9
jne 0x140033ba1
mov eax, 1
add rsp, 0x28
ret
test eax, eax
je 0x140033b9c
cmp eax, 6
jne 0x140033bb1
mov eax, 2
jmp 0x140033b9c
cmp eax, 0xc
jne 0x140033bbd
mov eax, 3
jmp 0x140033b9c
mov eax, 4
jmp 0x140033b9c
Function at 0x140037f30
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x140160040]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x1401382b0]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x1400380ac
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x140171c10]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.14009351c
mov rcx, rbx
call fcn.1400930c8
sub r14, rax
lea rdx, [0x140139dae]
mov rcx, rbx
mov r8, r14
call fcn.14009351c
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.1400a9e00
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 0x14003800c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140093564
test eax, eax
je 0x1400380d0
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 0x140038047
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140093564
test eax, eax
je 0x1400380d0
xor eax, eax
mov byte [0x140171801], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140146498]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400380d7
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x1401538b0]
test eax, eax
je 0x1400380d7
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x140171e10], al
mov byte [0x140171800], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140077700
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x140038049
xor eax, eax
jmp 0x14003809f