joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140041490
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x188
movaps xmmword [rsp + 0x170], xmm6
mov ebp, r9d
mov r15d, r8d
mov r12, rdx
mov rsi, rcx
mov rax, qword [0x14010d6b8]
xor rax, rsp
mov qword [rsp + 0x168], rax
movabs rdi, 0xaaaaaaaaaaaaaaaa
movzx r14d, byte [0x14010d770]
test r14b, 0x19
jne 0x14004173e
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x110], rdi
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x100], xmm6
lea rbx, [rsp + 0x70]
mov rcx, r12
mov rdx, rbx
call fcn.14004a220
lea r13, [rsp + 0x100]
mov rcx, r13
mov rdx, rbx
call fcn.140042220
mov rcx, rbx
call fcn.1400471f0
mov qword [rsp + 0xf0], rdi
movaps xmmword [rsp + 0xe0], xmm6
lea rbx, [rsp + 0xe0]
mov rcx, r12
mov rdx, rbx
call fcn.14004c590
xorps xmm0, xmm0
movups xmmword [rsp + 0xd0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xa0], xmm0
movabs rax, 0x4000000070
mov qword [rsp + 0x70], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [rsp + 0x78], rax
lea rax, str.runas
mov qword [rsp + 0x80], rax
cmp byte [rsp + 0x117], 0
jns 0x1400415b9
mov r13, qword [rsp + 0x100]
mov qword [rsp + 0x88], r13
cmp byte [rsp + 0xf7], 0
jns 0x1400415d3
mov rbx, qword [rsp + 0xe0]
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], 0
xor r15b, 1
movzx eax, r15b
mov dword [rsp + 0xa0], eax
mov qword [rsp + 0xa8], 0
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1400416ac
test bpl, bpl
je 0x1400416a2
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x160], rax
movaps xmmword [rsp + 0x150], xmm6
movaps xmmword [rsp + 0x140], xmm6
movaps xmmword [rsp + 0x130], xmm6
movaps xmmword [rsp + 0x120], xmm6
lea rdx, str.LaunchElevatedProcess
lea r8, str....._baseprocesslaunch_win.cc
lea rbx, [rsp + 0x50]
mov rcx, rbx
mov r9d, 0x9e
call fcn.1400470a0
lea r15, [rsp + 0x120]
mov rcx, r15
mov rdx, rbx
xor r8d, r8d
call fcn.140056e20
mov rcx, qword [rsp + 0xd8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, r15
call fcn.140057120
mov rdx, qword [rsp + 0xd8]
jmp 0x1400416ae
xor edx, edx
mov rcx, rsi
call fcn.140041100
cmp byte [rsp + 0xf7], 0
js 0x140041718
cmp byte [rsp + 0x117], 0
js 0x14004172f
test r14b, 0x19
mov rcx, qword [rsp + 0x48]
je 0x1400416e9
cmp byte [rcx], 0
je 0x1400416e9
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
call fcn.140052ac0
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.14009fa30
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x170]
add rsp, 0x188
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0xe0]
call fcn.14009f64c
cmp byte [rsp + 0x117], 0
jns 0x1400416ca
mov rcx, qword [rsp + 0x100]
call fcn.14009f64c
jmp 0x1400416ca
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea rdx, [0x14010d770]
lea r8, str.LaunchElevatedProcess
mov cl, 0x58
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], r8
xor r9d, r9d
call fcn.140041350
mov qword [rsp + 0x38], rax
jmp 0x1400414f6
Function at 0x1400433a0
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
call fcn.140043490
mov eax, dword [rsi]
mov dword [0x14010d698], eax
test al, 1
jne 0x1400433c1
mov al, 1
add rsp, 0x30
pop rsi
ret
mov rcx, qword [0x140119040]
test rcx, rcx
je 0x1400433f3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140119040], 0
mov rcx, qword [0x140119018]
test rcx, rcx
jne 0x140043421
and byte [0x14010d698], 0xfe
jmp 0x1400433ff
mov rcx, qword [0x140119018]
test rcx, rcx
jne 0x140043421
mov ecx, 0x18
call fcn.14009f610
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x140119018], rax
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x140043456
call fcn.14003f5dc
cmp dword [rsi + 0x14], 0
jne 0x14004344b
mov rcx, qword [0x140119018]
cmp byte [rcx + 0x17], 0
jns 0x140043445
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x30
pop rsi
jmp fcn.1400435e0
lea rax, str.string::assign_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string
lea r9, str.__s___nullptr
mov r8d, 0x9f3
call fcn.140005a9c
int3
Function at 0x1400495c0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x14010d6b8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140119088]
test rdi, rdi
jne 0x140049674
mov ecx, 0x50
call fcn.14009f610
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.14009f610
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x140049696
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 [0x140119088], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400496c2
mov rcx, rax
call fcn.1400c0c38
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.1400496f0
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14009fa30
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, 0x25
call fcn.140005a9c
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.140005a9c
int3
Function at 0x1400496f0
Capabilities:
Accept command line arguments

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14010d6b8]
xor rax, rsp
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 3
call fcn.14005eb20
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x140049850
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x1400dd1e8]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14004978e
lea rdx, [0x1400dd238]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400497a1
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x140125008]
jmp 0x14004979c
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
jmp 0x1400497a3
xor ebx, ebx
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x30], xmm0
movsxd rax, dword [rsp + 0x4c]
lea r8, [rbx + rax*8]
lea r14, [rsp + 0x30]
mov rcx, r14
mov rdx, rbx
call fcn.14004b280
mov rcx, rsi
mov rdx, r14
call fcn.1400492e0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x1400497ff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x140049850
mov rdi, qword [rsp + 0x38]
mov rcx, rsi
cmp rdi, rsi
je 0x140049846
add rdi, 0xffffffffffffffe8
jmp 0x14004982c
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
je 0x140049841
test rdi, rdi
je 0x140049868
cmp byte [rdi + 0x17], 0
jns 0x140049820
mov rcx, qword [rdi]
call fcn.14009f64c
jmp 0x140049820
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rsi
call fcn.14009f64c
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14009fa30
nop
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rax, str.null_pointer_given_to_destroy_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.__loc___nullptr
mov r8d, 0x41
call fcn.140005a9c
int3
Function at 0x14004e940
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x14010d6b8]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x140119150]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x14004ea94
jp 0x14004ea94
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
call rdi
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x140119160]
mov ecx, dword [0x1401190f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x30]
jg 0x14004eab4
mov eax, dword [0x140119170]
mov ecx, dword [0x1401190f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x30]
jg 0x14004eaee
rdtsc
mov rdi, rax
mov rbx, rdx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r14, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r14, qword [0x140119168]
xorps xmm0, xmm0
cvtsi2sd xmm0, r14
cvtsi2sd xmm1, qword [rsp + 0x20]
divsd xmm0, xmm1
xorpd xmm6, xmm6
movsd xmm1, qword [0x1400d6b08]
ucomisd xmm1, xmm0
ja 0x14004ea94
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x140119158]
movq xmm1, rdi
punpckldq xmm1, xmmword [0x1400d5aa0]
subpd xmm1, xmmword [0x1400d5ab0]
movapd xmm6, xmm1
unpckhpd xmm6, xmm1
addsd xmm6, xmm1
divsd xmm6, xmm0
movsd qword [0x140119150], xmm6
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14009fa30
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140119160]
call fcn.14009f770
cmp dword [0x140119160], 0xffffffff
jne 0x14004e9c2
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140119158], rdx
lea rcx, [0x140119160]
call fcn.14009f808
jmp 0x14004e9c2
lea rcx, [0x140119170]
call fcn.14009f770
cmp dword [0x140119170], 0xffffffff
jne 0x14004e9e7
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
mov qword [0x140119168], rax
lea rcx, [0x140119170]
call fcn.14009f808
jmp 0x14004e9e7
Function at 0x140055df0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14010d6b8]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x38]
mov r8d, 0x118
xor edx, edx
call fcn.1400a2bc0
mov dword [rsp + 0x34], 0x11c
lea rcx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x30], 0
mov ecx, dword [rsp + 0x38]
mov edx, dword [rsp + 0x3c]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.14009f610
mov rsi, rax
mov edi, dword [rsp + 0x30]
mov eax, dword [0x140119550]
mov ecx, dword [0x1401190f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x30]
jg 0x140055ebc
lea r8, [0x140119520]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140056020
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14009fa30
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140119550]
call fcn.14009f770
cmp dword [0x140119550], 0xffffffff
jne 0x140055e88
xorps xmm0, xmm0
movups xmmword [0x140119540], xmm0
movups xmmword [0x140119530], xmm0
movups xmmword [0x140119520], xmm0
lea rcx, [0x140119520]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140119550]
call fcn.14009f808
jmp 0x140055e88

Function at 0x140055f70
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140119550]
mov ecx, dword [0x1401190f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x30]
jg 0x140055fd1
movzx eax, word [0x140119520]
cmp rax, 0xc
ja case.0x140055fb0.1
lea rcx, [0x1400df044]
movsxd rdx, dword [rcx + rax*4]
add rdx, rcx
jmp rdx
mov eax, 2
jmp case.0x140055fb0.0
mov eax, 4
jmp case.0x140055fb0.0
mov eax, 1
jmp case.0x140055fb0.0
mov eax, 3
add rsp, 0x28
ret
lea rcx, [0x140119550]
call fcn.14009f770
cmp dword [0x140119550], 0xffffffff
jne 0x140055f95
xorps xmm0, xmm0
movups xmmword [0x140119540], xmm0
movups xmmword [0x140119530], xmm0
movups xmmword [0x140119520], xmm0
lea rcx, [0x140119520]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140119550]
call fcn.14009f808
jmp 0x140055f95
Function at 0x140059510
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
mov rax, qword [rcx]
jne 0x14005953e
test rax, rax
jne 0x14005953e
cmp dword [rsi + 0x14], 0
jne 0x14005953e
cmp qword [rsi + 8], 0
je 0x140059642
lea rcx, [rax + 1]
cmp rcx, 2
jb 0x14005955e
call fcn.1400470c0
mov rcx, qword [rsi]
call fcn.14004e570
mov qword [rsi], 0
xor eax, eax
mov rcx, qword [rsi + 8]
lea rdx, [rcx + 1]
cmp rdx, 2
jb 0x140059587
call fcn.1400470c0
mov rcx, qword [rsi + 8]
call fcn.14004e570
mov qword [rsi + 8], 0
mov rax, qword [rsi]
xor ecx, ecx
mov qword [rsi + 0x10], 0
mov r14, qword [rdi]
cmp rax, r14
je 0x1400595dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x1400595bf
call fcn.1400470c0
mov rcx, qword [rsi]
call fcn.14004e570
mov qword [rsi], 0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400595d1
mov qword [rsi], r14
call fcn.1400470c0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsi + 8]
mov r14, qword [rdi + 8]
cmp rcx, r14
je 0x14005962c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jb 0x140059611
call fcn.1400470c0
mov rcx, qword [rsi + 8]
call fcn.14004e570
mov qword [rsi + 8], 0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140059624
mov qword [rsi + 8], r14
call fcn.1400470c0
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
xor ecx, ecx
xor eax, eax
jmp 0x14005958f

Function at 0x140059840
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rcx
mov rax, qword [0x14010d6b8]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], 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.1400470a0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140056e20
cmp byte [rsi + 0x17], 0
jns 0x1400598c9
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rdi
call fcn.140057120
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14009fa30
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x140059900
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x14010d6b8]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1400a2bc0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14005999f
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call fcn.1400c0c38
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140047110
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140048790
mov rcx, rsi
mov rdx, r14
call fcn.140047220
mov rcx, r14
call fcn.1400471f0
mov rcx, rbx
call fcn.1400471f0
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14009fa30
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400599d0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x288
mov rsi, rcx
mov rax, qword [0x14010d6b8]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400a2bc0
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 0x140059a48
cmp word [rsp + 0x70], 0
je 0x140059a48
mov qword [rsp + 0x60], rdi
mov rcx, rdi
call fcn.1400c0c38
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.140047110
jmp 0x140059ab7
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x40], xmm0
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.1400470d0
mov rcx, rdi
call fcn.140059900
test al, al
je 0x140059a8b
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400470f0
jmp 0x140059aad
lea rax, [0x1400df552]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 3
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140047110
lea rcx, [rsp + 0x40]
call fcn.1400471f0
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14009fa30
mov rax, rsi
add rsp, 0x288
pop rdi
pop rsi
ret
Function at 0x14005d970
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x10]
cmp r15, qword [rcx + 0x18]
je 0x14005d995
mov rcx, r15
jmp 0x14005dac8
mov r14, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r14
jbe 0x14005d9e5
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r14, [rax + rcx]
inc r14
shr r14, 1
shl r14, 3
mov rcx, rbx
sub rcx, r14
mov r8, r15
sub r8, rbx
mov rdx, rbx
call fcn.1400a2510
sub r15, r14
mov qword [rsi + 0x10], r15
sub qword [rsi + 8], r14
mov rcx, r15
jmp 0x14005dac8
mov rax, r15
sub rax, r14
sar rax, 2
cmp r15, r14
mov r12d, 1
cmovne r12, rax
mov rax, r12
shr rax, 0x3d
jne 0x14005db12
lea rcx, [r12*8]
call fcn.14009f610
mov rcx, r12
and rcx, 0xfffffffffffffffc
lea rdx, [rax + rcx*2]
mov r9, r15
mov rcx, rdx
sub r9, rbx
je 0x14005da6c
mov r8, r9
sar r8, 3
and r9, 0xfffffffffffffff8
mov rcx, r9
add rcx, rdx
shl r8, 3
xor r9d, r9d
nop word cs:[rax + rax]
mov r10, rdx
add r10, r9
je 0x14005dae6
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp r8, r9
jne 0x14005da50
lea r8, [rax + r12*8]
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], r8
nop
cmp r15, rbx
je 0x14005dab7
add r15, 0xfffffffffffffff8
jne 0x14005da80
lea rax, str.null_pointer_given_to_destroy_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.__loc___nullptr
mov r8d, 0x41
call fcn.140005a9c
test r14, r14
je 0x14005dac8
mov rcx, r14
call fcn.14009f64c
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x14005dae6
mov rax, qword [rdi]
mov qword [rcx], rax
add qword [rsi + 0x10], 8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
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, 0x25
call fcn.140005a9c
call fcn.14000251e
int3
Function at 0x140068f00
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x14010d6b8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 0
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140068f7b
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140068f7b
cmp dword [rsp + 0x38], 4
jne 0x140068f7b
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14009fa30
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x140068fa0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14009f950
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14010d6b8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1400a2bc0
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x800
mov rcx, qword [rbx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x3c]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14006908b
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x14006903b
mov edi, 0x3f4
cmp eax, 1
jne 0x14006908b
lea rdx, [rsp + 0x840]
jmp 0x140069081
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1400a2bc0
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x14006908b
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14003f5dc
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14009fa30
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret