joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002bcd0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1058
call fcn.1400799c0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x1050], rax
lea r14, [rsp + 0x850]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14007bb70
lea r9, [rsp + 0x4c]
mov dword [r9], 1
lea rax, [rsp + 0x48]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002bdd1
mov eax, dword [rsp + 0x4c]
cmp eax, 1
jne 0x14002be32
lea rbx, [rsp + 0x850]
mov rcx, rbx
call fcn.140095228
mov rdi, rax
mov al, byte [rsi + 0x17]
test al, al
js 0x14002be12
cmp rdi, 0xa
ja 0x14002bddb
mov rbx, rsi
test rdi, rdi
je 0x14002bd9f
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x850]
mov rcx, rbx
call fcn.14007b4d0
mov al, byte [rsi + 0x17]
test al, al
js 0x14002bdd5
mov eax, edi
and al, 0x7f
mov byte [rsi + 0x17], al
mov word [rbx + rdi*2], 0
xor edi, edi
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140079a20
mov eax, edi
add rsp, 0x1058
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14002bdb2
mov qword [rsi + 8], rdi
jmp 0x14002bdaa
movzx r9d, al
mov edx, 0xa
mov r8, rdi
sub r8, rdx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], 0
mov rcx, rsi
call fcn.140027a20
jmp 0x14002bdb0
mov r9, qword [rsi + 8]
jmp 0x14002bde4
mov rax, qword [rsi + 0x10]
mov rdx, rax
btr rdx, 0x3f
dec rdx
cmp rdx, rdi
jb 0x14002be0c
shr rax, 0x38
mov rbx, qword [rsi]
jmp 0x14002bd81
cmp eax, 2
jne 0x14002bed5
lea rdi, [rsp + 0x50]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14007bb70
lea rcx, [rsp + 0x850]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x48], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x14002bedf
lea rbx, [rsp + 0x50]
mov rcx, rbx
call fcn.140095228
mov rdi, rax
mov al, byte [rsi + 0x17]
test al, al
js 0x14002beb4
cmp rdi, 0xa
ja 0x14002bddb
mov rbx, rsi
test rdi, rdi
je 0x14002bd9f
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x50]
jmp 0x14002bd94
mov rax, qword [rsi + 0x10]
mov rdx, rax
btr rdx, 0x3f
dec rdx
cmp rdx, rdi
jb 0x14002be0c
shr rax, 0x38
mov rbx, qword [rsi]
jmp 0x14002be9b
mov edi, 0x3f4
jmp 0x14002bdb2
mov edi, 0xea
jmp 0x14002bdb2

Function at 0x14002bef0
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x34]
mov dword [rax], r8d
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140079a20
mov eax, esi
add rsp, 0x40
pop rsi
ret
xor r8d, r8d
test edx, edx
cmovg r8d, edx
lea rdx, str.PWALauncherResult
jmp 0x14002bef0
Function at 0x14002c2d0
Capabilities:
Create thread

Disassembly:
jmp 0x14002c2d0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.1400785d4
mov rsi, rax
movabs r12, 0xfffffffc00000000
mov rax, r15
and rax, r12
cmp rax, qword [0x14010ce88]
je 0x14002c39e
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x14002c790]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14002c3b3
test r14, r14
je 0x14002c3a8
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140079a20
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r15
call fcn.14004f010
jmp 0x14002c335
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14002c378
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14002c3cc
mov ebp, eax
cmp eax, 0x5af
je 0x14002c3cc
cmp ebp, 0xe
jne 0x14002c3f7
mov rcx, rbx
call fcn.1400adad0
test rsi, rsi
je 0x14002c378
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x14010ce88]
jne 0x14002c3ed
call fcn.14004f160
mov rcx, rsi
call fcn.140078610
jmp 0x14002c378
mov eax, dword [0x140124298]
mov ecx, dword [0x14011b748]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002c47a
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.1400351b0
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
js 0x14002c437
and r8d, 0x7f
jmp 0x14002c441
mov r8, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
lea r14, [rsp + 0x50]
mov rcx, r14
mov rdx, rbx
call fcn.140046fc0
mov rcx, qword [0x140124290]
mov rdx, r14
call fcn.1400392d0
cmp byte [rsp + 0x4f], 0
jns 0x14002c3d4
mov rcx, qword [rsp + 0x38]
call fcn.140078610
jmp 0x14002c3d4
lea rcx, [0x140124298]
call fcn.14007865c
cmp dword [0x140124298], 0xffffffff
jne 0x14002c418
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.1400392a0
mov qword [0x140124290], rax
lea rcx, [0x140124298]
call fcn.140078710
jmp 0x14002c418

Function at 0x14002cab0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14002caf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002cb11
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14002caef
mov qword [rsi], rdi
call fcn.14005c3b0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14002cb27
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14005c3b0
mov rcx, qword [rsi]
call fcn.140056080
mov qword [rsi], 0
jmp 0x14002cadd
int3
Function at 0x14002d860
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], rax
movaps xmm0, xmmword [0x1400f0930]
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, 0x209
call fcn.14005c390
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140061880
cmp byte [rdi + 0x17], 0
jns 0x14002d8e0
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.140061af0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140079a20
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x14002d920
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14007bb70
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14002d9bf
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.140095228
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14005c550
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140031380
mov rcx, rsi
mov rdx, r14
call fcn.14005c710
mov rcx, r14
call fcn.14005c690
mov rcx, rbx
call fcn.14005c690
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140079a20
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14002d9f0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14007bb70
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14002da9e
cmp word [rsp + 0x70], 0
je 0x14002da9e
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.140095228
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.14005c550
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140079a20
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14005c530
lea rcx, [rsp + 0x40]
call fcn.14005c690
jmp 0x14002da67
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400f0930]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14005c510
mov rcx, rdi
call fcn.14002d920
test al, al
jne 0x14002da85
lea rax, [0x1400f6494]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14005c550
jmp 0x14002da92
Function at 0x14002e9f0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0xc8], rax
test rcx, rcx
je 0x14002ebb9
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor r8d, r8d
call fcn.1400927a0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x80]
mov qword [r14 + 0x40], rax
movaps xmm6, xmmword [0x1400f0930]
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.ReadStreamToSpanWithMaxSize
lea r8, str....._base_files_file_util.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x48
call fcn.14005c390
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140061880
xorps xmm0, xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov dword [r15 + 0x30], 0
mov rcx, rbx
call fcn.14008b5dc
mov ecx, eax
call fcn.14008b63c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14002ebae
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
shl rax, 0x20
or rax, rcx
test rax, rax
mov r14d, 0xffff
cmovg r14, rax
cmp r14, rdi
cmovae r14, rdi
inc r14
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm6
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
mov r8, r14
call qword [0x140130008]
xor r12d, r12d
mov rcx, qword [rsp + 0x38]
add rcx, r12
mov edx, 1
mov r8, r14
mov r9, rbx
call fcn.140092428
test rax, rax
je 0x14002eb51
mov r15, rax
mov rax, rdi
sub rax, r12
cmp rax, r15
jb 0x14002ebbd
add r15, r12
mov rcx, rbx
call fcn.140091c90
test eax, eax
je 0x14002ebc1
mov r12, r15
mov rcx, rbx
call fcn.140091cbc
test eax, eax
sete bl
mov rdi, r12
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [0x140130008]
lea rcx, [rsp + 0x80]
call fcn.140061af0
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140079a20
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14d, 0xffff
jmp 0x14002eaef
xor ebx, ebx
jmp 0x14002eb83
xor ebx, ebx
jmp 0x14002eb61
test r12, r12
mov eax, 0x10000
cmove r14, rax
lea r8, [r15 + r14]
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea r12, [rsp + 0x20]
mov rcx, r12
call qword [0x140130008]
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
mov r12, r15
jmp 0x14002eb14
Function at 0x14002fa30
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14002faf0
mov eax, dword [rsi]
mov dword [0x14011b688], eax
test al, 1
jne 0x14002fa51
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x140124300]
test rcx, rcx
jne 0x14002fa6b
mov rcx, qword [0x1401242d8]
test rcx, rcx
je 0x14002fa8f
jmp 0x14002fab1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140124300], 0
mov rcx, qword [0x1401242d8]
test rcx, rcx
jne 0x14002fab1
and byte [0x14011b688], 0xfe
mov ecx, 0x18
call fcn.1400785d4
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1401242d8], rax
mov rdx, qword [rsi + 8]
call fcn.140030a00
cmp dword [rsi + 0x14], 0
jne 0x14002fad6
mov rcx, qword [0x1401242d8]
cmp byte [rcx + 0x17], 0
jns 0x14002fad0
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.1400d24e0
Function at 0x140031cf0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140124380]
test rdi, rdi
jne 0x140031da3
mov ecx, 0x50
call fcn.1400785d4
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.1400785d4
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x140031dc5
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 [0x140124380], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140031df1
mov rcx, rax
call fcn.140095228
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140031e20
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140079a20
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.1400ac530
lea rax, str.null_pointer_passed_to_non_null_argument_of_char_traits_..._::length
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__s___nullptr
mov r8d, 0x109
call fcn.1400ac530
int3
Function at 0x140034880
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14007bb70
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 0x140034915
mov eax, eax
inc rax
cmp rax, 1
je 0x140034915
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x1400348e1
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140034902
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14009009c
test eax, eax
je 0x140034a4e
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 0x140034976
mov eax, eax
inc rax
cmp rax, 1
je 0x140034976
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x140034942
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140034963
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14009009c
test eax, eax
je 0x140034a1f
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 0x1400349d3
mov eax, eax
inc rax
cmp rax, 1
je 0x1400349d3
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x1400349a3
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400349c4
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14009009c
test eax, eax
je 0x1400349f4
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140079a20
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx eax, byte [rsi + 0x17]
test al, al
js 0x140034a01
and eax, 0x7f
jmp 0x140034a05
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x1400349d5
mov rcx, rsi
mov rdx, r14
call fcn.1400b78a0
cmp word [rax], 0x5c
jne 0x1400349d3
jmp 0x1400349d5
movzx eax, byte [rsi + 0x17]
test al, al
js 0x140034a2c
and eax, 0x7f
jmp 0x140034a30
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x1400349d5
mov rcx, rsi
mov rdx, r14
call fcn.1400b78a0
cmp word [rax], 0x5c
jne 0x140034976
jmp 0x1400349d5
movzx eax, byte [rsi + 0x17]
test al, al
js 0x140034a5b
and eax, 0x7f
jmp 0x140034a5f
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x1400349d5
mov rcx, rsi
mov rdx, r14
call fcn.1400b78a0
cmp word [rax], 0x5c
jne 0x140034915
jmp 0x1400349d5
Function at 0x140037c20
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140124468]
mov ecx, dword [0x14011b748]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140037c80
lea rsi, [0x140124460]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140079a20
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140124468]
call fcn.14007865c
cmp dword [0x140124468], 0xffffffff
jne 0x140037c5c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14007bb70
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.1400785d4
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401244b0]
mov ecx, dword [0x14011b748]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140037d40
lea r8, [0x140124480]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140037e40
mov qword [0x140124460], rsi
lea rcx, [0x140124468]
call fcn.140078710
jmp 0x140037c5c
lea rcx, [0x1401244b0]
call fcn.14007865c
cmp dword [0x1401244b0], 0xffffffff
jne 0x140037d11
xorps xmm0, xmm0
movups xmmword [0x1401244a0], xmm0
movups xmmword [0x140124490], xmm0
movups xmmword [0x140124480], xmm0
lea rcx, [0x140124480]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401244b0]
call fcn.140078710
jmp 0x140037d11

Function at 0x140037d90
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401244b0]
mov ecx, dword [0x14011b748]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140037dcb
movzx eax, word [0x140124480]
cmp eax, 9
jne 0x140037e13
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x1401244b0]
call fcn.14007865c
cmp dword [0x1401244b0], 0xffffffff
jne 0x140037db5
xorps xmm0, xmm0
movups xmmword [0x1401244a0], xmm0
movups xmmword [0x140124490], xmm0
movups xmmword [0x140124480], xmm0
lea rcx, [0x140124480]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401244b0]
call fcn.140078710
jmp 0x140037db5
test eax, eax
je 0x140037dc6
cmp eax, 6
jne 0x140037e23
mov eax, 2
jmp 0x140037dc6
cmp eax, 0xc
jne 0x140037e2f
mov eax, 3
jmp 0x140037dc6
mov eax, 4
jmp 0x140037dc6
Function at 0x1400395c0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x1400396b5
cmp qword [rsi], 0
jne 0x1400396b5
cmp dword [rsi + 0x14], 0
jne 0x1400396b5
cmp qword [rsi + 8], 0
jne 0x1400396b5
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x140039634
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003969c
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14003962c
mov qword [rsi], r14
call fcn.14005c3b0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14003966e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140039684
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140039666
mov qword [rsi + 8], r14
call fcn.14005c3b0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14005c3b0
mov rcx, qword [rsi + 8]
call fcn.140056080
mov qword [rsi + 8], 0
jmp 0x140039653
call fcn.14005c3b0
mov rcx, qword [rsi]
call fcn.140056080
mov qword [rsi], 0
jmp 0x14003961a
mov rcx, rsi
call fcn.1400d9e70
mov rax, qword [rsi]
jmp 0x1400395fa
Function at 0x14003d730
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x1400f0930]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x14003d8ac
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x140124a60]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.14009567c
mov rcx, rbx
call fcn.140095228
sub r14, rax
lea rdx, [0x1400f26d4]
mov rcx, rbx
mov r8, r14
call fcn.14009567c
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.14007bb70
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 0x14003d80c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400956c4
test eax, eax
je 0x14003d8d4
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 0x14003d847
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400956c4
test eax, eax
je 0x14003d8d4
xor eax, eax
mov byte [0x140124655], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1400fa383]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003d8d0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x140130008]
test eax, eax
je 0x14003d8d0
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x140124c60], al
mov byte [0x140124654], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140079a20
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x14003d89f
mov al, 1
jmp 0x14003d849