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

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1400e4040]
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 0x140041cbb
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140041cbb
cmp dword [rsp + 0x38], 4
jne 0x140041cbb
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140087ae0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140087a80
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400e4040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1400b8e90
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 0x140041dcb
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x140041d7b
mov edi, 0x3f4
cmp eax, 1
jne 0x140041dcb
lea rdx, [rsp + 0x840]
jmp 0x140041dc1
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1400b8e90
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 0x140041dcb
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14003fd2a
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140087ae0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140041df0
Capabilities:
Set registry value

Disassembly:
xor r8d, r8d
test edx, edx
cmovg r8d, edx
lea rdx, str.PWALauncherResult
jmp 0x140041df0
push rsi
sub rsp, 0x40
mov rax, qword [0x1400e4040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], r8d
mov rcx, qword [rcx]
lea rax, [rsp + 0x34]
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.140087ae0
mov eax, esi
add rsp, 0x40
pop rsi
ret
Function at 0x140042b10
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 0x140042b6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x140042b51
call fcn.14004d0e0
mov rcx, qword [rsi]
call fcn.140041a10
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140042b63
mov qword [rsi], rdi
call fcn.14004d0e0
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 0x140042b85
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
int3

Function at 0x140042be0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1400e4040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x140042c0f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140042c12
mov rcx, qword [rsi]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140042c36
mov dil, 1
test bl, bl
je 0x140042c9d
cmp byte [rsi + 8], 0
je 0x140042c7c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140042c7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x140042c4d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140042c50
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140042c63
xor edi, edi
jmp 0x140042c9d
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x140042c8c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140042c8f
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140042c9d
mov rcx, qword [rsi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140087ae0
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140044fb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rcx
mov rax, qword [0x1400e4040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400c5aa0]
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, [0x1400d1b30]
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x20b
call fcn.14004d0c0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140057f20
cmp byte [rsi + 0x17], 0
jns 0x140045027
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rdi
call fcn.140057fa0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140087ae0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rcx
mov rax, qword [0x1400e4040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400c5aa0]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rdx, str.DirectoryExists
lea r8, [0x1400d1b30]
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x233
call fcn.14004d0c0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140057f20
cmp byte [rsi + 0x17], 0
jns 0x1400450d7
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
setne al
and esi, 0x10
shr esi, 4
and sil, al
mov rcx, rdi
call fcn.140057fa0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140087ae0
mov eax, esi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x140045120
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x1400e4040]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1400b8e90
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x1400451bf
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call fcn.1400a2218
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14004d290
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.14004eb00
mov rcx, rsi
mov rdx, r14
call fcn.14004d3b0
mov rcx, r14
call fcn.14004d340
mov rcx, rbx
call fcn.14004d340
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140087ae0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400451f0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x288
mov rsi, rcx
mov rax, qword [0x1400e4040]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400b8e90
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 0x140045268
cmp word [rsp + 0x70], 0
je 0x140045268
mov qword [rsp + 0x60], rdi
mov rcx, rdi
call fcn.1400a2218
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.14004d290
jmp 0x1400452d7
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1400c5aa0]
movaps xmmword [rsp + 0x40], xmm0
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.14004d250
mov rcx, rdi
call fcn.140045120
test al, al
je 0x1400452ab
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14004d270
jmp 0x1400452cd
lea rax, [0x1400d1b82]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 3
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14004d290
lea rcx, [rsp + 0x40]
call fcn.14004d340
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140087ae0
mov rax, rsi
add rsp, 0x288
pop rdi
pop rsi
ret
Function at 0x1400461c0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x1400e4040]
xor rax, rsp
mov qword [rsp + 0xc8], rax
test rcx, rcx
je 0x1400462bd
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor r8d, r8d
call fcn.14009f794
movaps xmm6, xmmword [0x1400c5aa0]
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
lea rdx, str.ReadStreamToSpanWithMaxSize
lea r8, str....._base_files_file_util.cc
lea r14, [rsp + 0x40]
mov rcx, r14
mov r9d, 0x48
call fcn.14004d0c0
lea rcx, [rsp + 0x80]
mov rdx, r14
xor r8d, r8d
call fcn.140057f20
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x70], 0
mov rcx, rbx
call fcn.1400989c8
mov ecx, eax
call fcn.140098a1c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1400462c4
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
jmp 0x1400462ca
xor ebx, ebx
jmp 0x14004639d
mov r14d, 0xffff
cmp r14, rdi
cmovae r14, rdi
inc r14
movaps xmmword [rsp + 0x30], xmm6
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x30]
mov r8, r14
call qword [0x14010c008]
xor r13d, r13d
mov ebp, 0x10000
lea r15, [rsp + 0x20]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
add rcx, r13
mov edx, 1
mov r8, r14
mov r9, rbx
call fcn.14009f41c
test rax, rax
je 0x14004636b
mov r12, rax
mov rax, rdi
sub rax, r13
cmp rax, r12
jb 0x140046364
add r12, r13
mov rcx, rbx
call fcn.14009ec84
test eax, eax
jne 0x140046368
test r13, r13
cmove r14, rbp
lea r8, [r12 + r14]
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
mov rcx, r15
call qword [0x14010c008]
movups xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x30], xmm0
mov r13, r12
jmp 0x140046300
xor ebx, ebx
jmp 0x14004637b
mov r13, r12
mov rcx, rbx
call fcn.14009ecb0
test eax, eax
sete bl
mov rdi, r13
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [0x14010c008]
lea rcx, [rsp + 0x80]
call fcn.140057fa0
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140087ae0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14004a020
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
call fcn.14004a110
mov eax, dword [rsi]
mov dword [0x1400e6478], eax
test al, 1
jne 0x14004a041
mov al, 1
add rsp, 0x30
pop rsi
ret
mov rcx, qword [0x1400f5318]
test rcx, rcx
je 0x14004a073
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400f5318], 0
mov rcx, qword [0x1400f52f0]
test rcx, rcx
jne 0x14004a0a1
and byte [0x1400e6478], 0xfe
jmp 0x14004a07f
mov rcx, qword [0x1400f52f0]
test rcx, rcx
jne 0x14004a0a1
mov ecx, 0x18
call fcn.1400866a0
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1400f52f0], rax
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x14004a0d6
call fcn.14003fd2a
cmp dword [rsi + 0x14], 0
jne 0x14004a0cb
mov rcx, qword [0x1400f52f0]
cmp byte [rcx + 0x17], 0
jns 0x14004a0c5
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x30
pop rsi
jmp fcn.14004a260
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, 0xa51
call fcn.14001c2cc
int3
Function at 0x14004fcb0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1400e4040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1400f5398]
test rdi, rdi
jne 0x14004fd64
mov ecx, 0x50
call fcn.1400866a0
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.1400866a0
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14004fd86
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 [0x1400f5398], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14004fdb2
mov rcx, rax
call fcn.1400a2218
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.14004fde0
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140087ae0
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.14001c2cc
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.14001c2cc
int3
Function at 0x14004fde0
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 [0x1400e4040]
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.140042670
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14004ff40
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x1400d1db8]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14004fe7e
lea rdx, [0x1400d1e08]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004fe91
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x14010c008]
jmp 0x14004fe8c
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
jmp 0x14004fe93
xor ebx, ebx
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [0x1400c5aa0]
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.140051810
mov rcx, rsi
mov rdx, r14
call fcn.14004f9d0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14004feef
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x14004ff40
mov rdi, qword [rsp + 0x38]
mov rcx, rsi
cmp rdi, rsi
je 0x14004ff36
add rdi, 0xffffffffffffffe8
jmp 0x14004ff1c
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
je 0x14004ff31
test rdi, rdi
je 0x14004ff58
cmp byte [rdi + 0x17], 0
jns 0x14004ff10
mov rcx, qword [rdi]
call fcn.1400866dc
jmp 0x14004ff10
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rsi
call fcn.1400866dc
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140087ae0
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, 0x44
call fcn.14001c2cc
int3
Function at 0x140051050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
mov rax, qword [0x1400e4040]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, byte [0x1400f53a8]
cmp eax, 3
je 0x140051194
mov rsi, rcx
lea r14, [0x1400d1d80]
movabs r15, 0xaaaaaaaaaaaaaaaa
movaps xmm6, xmmword [0x1400c5aa0]
lea rdi, [rsp + 0x30]
xor r12d, r12d
jmp 0x1400510cf
test bl, bl
js 0x140051170
inc r12
movzx eax, byte [0x1400f53a8]
xor rax, 3
cmp r12, rax
jae 0x140051194
mov rdx, r12
shl rdx, 4
add rdx, r14
mov qword [rsp + 0x40], r15
movaps xmmword [rsp + 0x30], xmm6
mov rcx, rdi
call fcn.140023ec8
movzx ebx, byte [rsp + 0x47]
test bl, bl
js 0x140051100
mov rcx, rdi
mov rax, rbx
jmp 0x140051120
mov rax, qword [rsp + 0x38]
test rax, rax
js 0x1400511e5
mov rcx, qword [rsp + 0x30]
je 0x140051120
test rcx, rcx
je 0x1400511b9
nop
mov rdx, qword [rsi]
mov r9, qword [rsi + 8]
cmp r9, rax
mov r8, rax
cmovb r8, r9
test r8, r8
je 0x14005113b
test rdx, rdx
je 0x1400511b9
cmp rax, r9
ja 0x1400510b0
test r8, r8
je 0x14005117f
xor r8d, r8d
nop dword [rax]
movzx r9d, word [rdx + r8*2]
cmp r9w, word [rcx + r8*2]
jne 0x1400510b0
inc r8
cmp rax, r8
jne 0x140051150
jmp 0x14005117f
mov rcx, qword [rsp + 0x30]
call fcn.1400866dc
jmp 0x1400510b8
test bl, bl
jns 0x140051196
mov rcx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
call fcn.1400866dc
jmp 0x140051196
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140087ae0
mov rax, rbx
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
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.__len__0____s___nullptr
mov r8d, 0x13c
call fcn.14001c2cc
lea rax, str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
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.__len___static_cast_size_type__numeric_limits_difference_type_::max___
mov r8d, 0x13a
call fcn.14001c2cc
int3

Function at 0x1400540bc
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x1400e4040]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400b8e90
xor ebx, ebx
lea r14, str.PROGRAMFILES
mov r15, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r14]
mov word [rsp + 0x20], 0
mov rdx, rdi
mov r8d, 0x104
call r15
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140054137
mov edx, eax
mov rcx, rdi
mov r8, rsi
call fcn.140054051
test al, al
jne 0x140054145
add rbx, 8
cmp rbx, 0x18
jne 0x140054104
xor esi, esi
jmp 0x140054148
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.140087ae0
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400556b0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1400e4040]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x38]
mov r8d, 0x118
xor edx, edx
call fcn.1400b8e90
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.1400866a0
mov rsi, rax
mov edi, dword [rsp + 0x30]
mov eax, dword [0x1400f5430]
mov ecx, dword [0x1400f2648]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005577c
lea r8, [0x1400f5400]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140055880
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140087ae0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1400f5430]
call fcn.14008672c
cmp dword [0x1400f5430], 0xffffffff
jne 0x140055748
xorps xmm0, xmm0
movups xmmword [0x1400f5420], xmm0
movups xmmword [0x1400f5410], xmm0
movups xmmword [0x1400f5400], xmm0
lea rcx, [0x1400f5400]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400f5430]
call fcn.1400867e0
jmp 0x140055748

Function at 0x1400557d0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400f5430]
mov ecx, dword [0x1400f2648]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140055831
movzx eax, word [0x1400f5400]
cmp rax, 0xc
ja case.0x140055810.1
lea rcx, [0x1400d2114]
movsxd rdx, dword [rcx + rax*4]
add rdx, rcx
jmp rdx
mov eax, 2
jmp case.0x140055810.0
mov eax, 1
jmp case.0x140055810.0
mov eax, 3
jmp case.0x140055810.0
mov eax, 4
add rsp, 0x28
ret
lea rcx, [0x1400f5430]
call fcn.14008672c
cmp dword [0x1400f5430], 0xffffffff
jne 0x1400557f5
xorps xmm0, xmm0
movups xmmword [0x1400f5420], xmm0
movups xmmword [0x1400f5410], xmm0
movups xmmword [0x1400f5400], xmm0
lea rcx, [0x1400f5400]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400f5430]
call fcn.1400867e0
jmp 0x1400557f5
Function at 0x140059a30
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 0x140059a5e
test rax, rax
jne 0x140059a5e
cmp dword [rsi + 0x14], 0
jne 0x140059a5e
cmp qword [rsi + 8], 0
je 0x140059b62
lea rcx, [rax + 1]
cmp rcx, 2
jb 0x140059a7e
call fcn.14004d0e0
mov rcx, qword [rsi]
call fcn.140041a10
mov qword [rsi], 0
xor eax, eax
mov rcx, qword [rsi + 8]
lea rdx, [rcx + 1]
cmp rdx, 2
jb 0x140059aa7
call fcn.14004d0e0
mov rcx, qword [rsi + 8]
call fcn.140041a10
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 0x140059afd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x140059adf
call fcn.14004d0e0
mov rcx, qword [rsi]
call fcn.140041a10
mov qword [rsi], 0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140059af1
mov qword [rsi], r14
call fcn.14004d0e0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsi + 8]
mov r14, qword [rdi + 8]
cmp rcx, r14
je 0x140059b4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jb 0x140059b31
call fcn.14004d0e0
mov rcx, qword [rsi + 8]
call fcn.140041a10
mov qword [rsi + 8], 0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140059b44
mov qword [rsi + 8], r14
call fcn.14004d0e0
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 0x140059aaf