joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008a2a8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140067a10
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14008a332
cmp byte [rbp - 0x21], r15b
je 0x14008a32d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14008a368
call fcn.14007ad00
test eax, eax
jne 0x14008a354
cmp byte [rbp - 0x21], r15b
je 0x14008a34c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14008a368
cmp byte [rbp - 0x21], r15b
je 0x14008a365
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140076b18
test eax, eax
jne 0x14008a408
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140067a10
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14008a3a7
cmp byte [rbp - 0x21], r15b
je 0x14008a3dc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14008a3dc
call fcn.14007ad00
test eax, eax
jne 0x14008a3c8
cmp byte [rbp - 0x21], r15b
je 0x14008a3c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14008a3dc
cmp byte [rbp - 0x21], r15b
je 0x14008a3d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140076b18
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14008a408
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14008a40b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14008a419
mov rcx, rdi
call fcn.1400799e4
cmp byte [rbp + 0x3f], r15b
je 0x14008a428
mov rcx, qword [rbp + 0x27]
call fcn.1400799e4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14008b8c0
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400807d8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400807d8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14008ba10
cmp rax, 0xffffffffffffffff
je 0x14008ba10
xor edi, edi
test rbp, rbp
jle 0x14008b9bb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14007996c
mov rbx, rax
test rax, rax
jne 0x14008b948
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14008b9b1
mov edx, 0x8000
mov ecx, r14d
call fcn.14006e17c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14007cbd4
cmp eax, 0xffffffff
je 0x14008b991
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14008b958
mov edx, r15d
mov ecx, r14d
call fcn.14006e17c
jmp 0x14008b9b1
cmp byte [rsi + 0x38], dil
je 0x14008b9a8
cmp dword [rsi + 0x34], 5
jne 0x14008b9a8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14008b9b1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400799e4
jmp 0x14008ba24
jns 0x14008ba24
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400807d8
cmp rax, 0xffffffffffffffff
jne 0x14008b9dc
cmp byte [rsi + 0x30], dil
je 0x14008ba24
mov edi, dword [rsi + 0x2c]
jmp 0x14008ba24
mov ecx, r14d
call fcn.140083130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14008ba24
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14008ba24
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14008ba1d
mov eax, dword [rsi + 0x2c]
jmp 0x14008ba22
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400807d8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14008c050
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14008c078
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14008c078
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001520
Capabilities:
Create device object

Disassembly:
push rbx
sub rsp, 0x40
lea rax, [0x1400015f0]
mov rbx, rcx
mov qword [rcx + 0x68], rax
lea rdx, [0x1400017d0]
lea rcx, [0x140003f40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x140001840]
lea rcx, [0x140003f30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [0x140003f50]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [0x140003f40]
mov byte [rsp + 0x28], 0
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
lea rdx, [0x140003f40]
lea rcx, [0x140003f30]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
lea rax, [0x140001350]
mov qword [rbx + 0x70], rax
lea rax, [0x140001350]
mov qword [rbx + 0x80], rax
lea rax, [0x140001370]
mov qword [rbx + 0xe0], rax
mov rax, qword [0x140003f50]
or dword [rax + 0x30], 0x10
mov rax, qword [0x140003f50]
btr dword [rax + 0x30], 7
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x14001119f
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001ece0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14004e038]
call fcn.140011f1e
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001ed37
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14001ee43
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14001eddc
cmp qword [rbp + 0x28], 0
jle 0x14001eddc
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001ed7c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140011e42
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x14001ee32
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001ee32
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140011910
Capabilities:
Terminate process

Disassembly:
jmp 0x14002cab0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011ee7
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001a730
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x140043018]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x14004e038]
call fcn.140011f1e
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x14001a796
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001a79d
mov al, 1
jmp 0x14001a8f7
call fcn.14001147e
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x198], rcx
mov edx, eax
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rbp + 0x198]
call qword [rax + 0x18]
mov dword [rbp + 0x164], eax
call fcn.14001147e
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.140011ccb
movzx eax, al
test eax, eax
je 0x14001a7f8
xor al, al
jmp 0x14001a8f7
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x194], eax
cmp dword [rbp + 0x194], 0
je 0x14001a85d
cmp dword [rbp + 0x194], 1
je 0x14001a868
cmp dword [rbp + 0x194], 3
je 0x14001a8e6
jmp 0x14001a8f5
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001a8b8
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001a8b8
xor al, al
jmp 0x14001a8f7
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001a8d3
mov dword [rbp + 0x194], 1
jmp 0x14001a8dd
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x14001a8f7
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001a8f7
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140038a60]
call fcn.140011cad
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.1400117da
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x1400246e4
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x1400c2270]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rcx
lea rcx, [rsp + 0x30]
call fcn.14002450c
lea rdx, [rax + 8]
lea r8, [rsp + 0x24]
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x14002473f
cmp dword [rsp + 0x24], 0
setne bl
mov dil, 1
jmp 0x140024746
xor dil, dil
mov bl, byte [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140004040
test dil, dil
jne 0x140024759
xor al, al
jmp 0x14002475f
mov al, bl
jmp 0x14002475f
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140065760
mov rbx, qword [rsp + 0xd8]
add rsp, 0xc0
pop rdi
ret
Function at 0x140025fbc
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x1400c2270]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov qword [r8], r15
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r14, r8
mov r9d, 0x104
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14002602d
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14002602d
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x14002600b
test r9, r9
lea rax, [rdx - 2]
lea r8, [0x14008cb70]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov word [rax], r15w
call fcn.14002496c
mov ebx, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x140026097
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140026153
mov edx, 0xc8
mov rcx, qword [rbp + 0x168]
lea r8, [0x14008cb20]
call fcn.140025dd4
mov esi, eax
jmp 0x140026156
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.140025e78
mov esi, eax
test eax, eax
jns 0x1400260cd
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xce
call fcn.140025d9c
jmp 0x140026156
lea r8, [0x14008cb78]
lea rcx, [rsp + 0x30]
call fcn.14002496c
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x1400260fc
mov edx, 0xd4
jmp 0x14002607d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140025e78
mov esi, eax
test eax, eax
jns 0x140026132
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd6
call fcn.140025d9c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140026156
jmp 0x140026196
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400261a8
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov esi, r15d
test rdi, rdi
je 0x140026168
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400261ba
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140065760
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbp + 0x168]
mov edx, 0x875
call fcn.140025dec
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x875
call fcn.140025dec
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x875
call fcn.140025dec
int3
Function at 0x140026870
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
mov rdi, rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
xor ebx, ebx
mov qword [rbp - 8], rbx
mov edx, 0x104
lea rcx, [rbp - 0x18]
call fcn.140036878
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
sub rdx, rcx
sar rdx, 1
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test eax, eax
jne 0x1400268cd
mov rcx, qword [rbp - 0x18]
jmp 0x140026957
mov r8, qword [rbp - 0x10]
mov rax, r8
mov rcx, qword [rbp - 0x18]
sub rax, rcx
sar rax, 1
cmp rdx, rax
jbe 0x14002690a
lea rcx, [rbp - 0x18]
call fcn.140036878
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
sub rdx, rcx
sar rdx, 1
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov r8, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
test edx, edx
je 0x140026957
sub r8, rcx
sar r8, 1
mov eax, edx
cmp rax, r8
ja 0x140026957
or r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], bx
jne 0x14002691f
mov rdx, rcx
mov rcx, rdi
call fcn.1400030f0
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140026953
mov rdx, qword [rbp - 8]
sub rdx, rcx
sar rdx, 1
mov r8d, 2
call fcn.140002ec0
mov bl, 1
jmp 0x140026971
test rcx, rcx
je 0x140026971
mov rdx, qword [rbp - 8]
sub rdx, rcx
mov r8d, 2
sar rdx, 1
call fcn.140002ec0
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
Function at 0x14003dc8c
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x198
mov rax, qword [0x1400c2270]
xor rax, rsp
mov qword [rsp + 0x180], rax
cmp dword [0x1400c3304], 0
je 0x14003dcb9
mov eax, dword [0x1400c3300]
jmp 0x14003dd3a
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x11c
call sub.api_ms_win_crt_private_l1_1_0.dll__o_memset
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x30]
call sub.api_ms_win_crt_private_l1_1_0.dll__o_memset
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x30]
mov r9b, byte [rsp + 0x17a]
mov edx, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x64]
mov r8d, dword [rsp + 0x70]
mov word [rsp + 0x28], ax
movzx eax, word [rsp + 0x178]
mov word [rsp + 0x20], ax
call fcn.14003dd54
mov dword [0x1400c3300], eax
mov dword [0x1400c3304], 1
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140065760
add rsp, 0x198
ret

Function at 0x14003eba0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rbp - 0x30], r14d
mov dword [rbp + 0x38], r14d
cmp qword [rdx + 0x18], 8
jb 0x14003ebdc
mov rdx, qword [rdx]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x30]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003eca2
mov ecx, dword [rbp + 0x38]
test ecx, ecx
je 0x14003ec9d
mov eax, dword [rbp - 0x30]
dec eax
cmp eax, 1
ja 0x14003ec9d
mov byte [rbp + 0x28], r14b
lea rdx, [rcx + 2]
lea r8, [rbp + 0x28]
lea rcx, [rbp - 0x20]
call fcn.14003edb0
nop
cmp qword [rbx + 0x18], 8
jb 0x14003ec38
mov rbx, qword [rbx]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14003ec7e
mov rdx, qword [rbp - 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r14w
jne 0x14003ec6b
mov rcx, rsi
call fcn.1400030f0
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14003ec99
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
mov r8d, 1
call fcn.140002ec0
mov eax, ebx
jmp 0x14003eca2
mov eax, 0x65e
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14003ecb8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x30
and dword [r9], 0
mov rsi, r9
cmp qword [rdx + 0x18], 8
mov rdi, r8
jb 0x14003ecd8
mov rdx, qword [rdx]
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003ed6f
mov rbx, qword [rsp + 0x50]
lea ecx, [rax + 0x18]
call fcn.140065784
lea rcx, vtable.appv::utility::scope_guard_func_impl_class_std::_Binder_struct_std::_Unforced__long_int____cdecl___struct_HKEY______ptr64___struct_HKEY______ptr64____ptr64__.0
mov qword [rsp + 0x68], rax
mov qword [rax], rcx
mov rcx, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rbx
cmp qword [rdi + 0x18], 8
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x70], 4
jb 0x14003ed3e
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rsp + 0x58]
mov ebx, eax
call fcn.140005a4c
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x14003f5d4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r14
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400c2270]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, rcx
xor r14d, r14d
mov esi, r14d
mov dword [rsp + 0x20], r14d
call fcn.14003dc8c
and eax, 0xffff0000
cmp eax, 0x800000
jl 0x14003f68e
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
lea r8d, [r14 + 0xa]
lea rdx, str.API_MS_WIN
lea rcx, [rsp + 0x30]
call fcn.1400030f0
lea esi, [r14 + 1]
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
cmp qword [rbx + 0x18], 8
jb 0x14003f679
mov rcx, qword [rbx]
jmp 0x14003f67c
mov rcx, rbx
mov r8, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsnicmp]
test eax, eax
mov dil, sil
je 0x14003f691
mov dil, r14b
mov r12d, 2
test sil, 1
je 0x14003f6b8
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14003f6b8
inc rdx
mov r8d, r12d
mov rcx, qword [rsp + 0x30]
call fcn.140002ec0
test dil, dil
je 0x14003f76a
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
cmp qword [rbx + 0x18], 8
jb 0x14003f6db
mov rcx, qword [rbx]
jmp 0x14003f6de
mov rcx, rbx
lea rdx, [rsp + 0x30]
call fcn.14003f440
mov rsi, rax
test rax, rax
jne 0x14003f6f5
mov rbx, r14
jmp 0x14003f745
mov rdi, r14
lea rdx, str.API_MS_WIN_CORE_PROCESSTHREADS_L1_1_0.DLL
mov rdx, qword [rdi + rdx]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__stricmp]
test eax, eax
je 0x14003f739
add rdi, 8
cmp rdi, 0x30
jb 0x14003f6f8
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14003f76a
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov r8d, 1
call fcn.140002ec0
jmp 0x14003f76a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14003f762
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov r8d, 1
call fcn.140002ec0
mov rax, rbx
jmp 0x14003f823
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x103
ja 0x14003f821
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x14003f7a4
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.1400030f0
nop
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14003fb78
cmp qword [rax + 0x18], 8
jb 0x14003f7da
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14003f802
inc rdx
mov r8, r12
mov rcx, qword [rsp + 0x50]
call fcn.140002ec0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14003f762
inc rdx
mov r8, r12
mov rcx, qword [rsp + 0x30]
jmp 0x14003f75d
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140065760
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret