joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005173c
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x1400fc800]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x20], 0x36332f79
xor ecx, ecx
mov dword [rbp - 0x1c], 0x23312d2d
mov dword [rbp - 0x18], 0x1006867
lea eax, [rcx + 0x3f]
xor byte [rbp + rcx - 0x20], al
inc rcx
cmp rcx, 0xa
jb 0x14005176a
lea rdx, [rbp - 0x20]
mov byte [rbp - 0x15], 0
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x1400fd0d0], rax
test rax, rax
jne 0x14005179d
mov eax, 4
jmp 0x1400517b8
call fcn.1400499cc
test al, al
jne 0x1400517aa
xor eax, eax
jmp 0x1400517b8
call fcn.140049c74
neg al
sbb eax, eax
and eax, 2
inc eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400c20d0
add rsp, 0x40
pop rbp
ret

Function at 0x140051b50
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x440
mov rax, qword [0x1400fc800]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rsi, r9
mov dword [rsp + 0x20], 0x100261a
mov rdi, rdx
mov rbx, rcx
xor r8d, r8d
lea eax, [r8 + 0x3f]
xor byte [rsp + r8 + 0x20], al
inc r8
cmp r8, 2
jb 0x140051b81
cvtss2sd xmm2, xmm2
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x23], 0
lea rcx, [rsp + 0x30]
movq r8, xmm2
call fcn.14001a798
mov r9, rsi
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400c20d0
add rsp, 0x440
pop rdi
pop rsi
pop rbx
ret

Function at 0x140051be0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x440
mov rax, qword [0x1400fc800]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rsi, r9
mov dword [rsp + 0x20], 0x100241a
mov rdi, rdx
mov rbx, rcx
xor r10d, r10d
lea eax, [r10 + 0x3f]
xor byte [rsp + r10 + 0x20], al
inc r10
cmp r10, 2
jb 0x140051c11
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x23], 0
lea rcx, [rsp + 0x30]
call fcn.14001a798
mov r9, rsi
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400c20d0
add rsp, 0x440
pop rdi
pop rsi
pop rbx
ret
Function at 0x14005243c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400fc800]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400524ab
cmp byte [rcx + 0x71], 0
je 0x1400524ab
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x140052500
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400524c5
sub eax, 1
je 0x1400524c9
cmp eax, 2
jne 0x140052500
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400c20d0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400524f7
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140052500
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400524ad
xor al, al
jmp 0x1400524ad

Function at 0x140053194
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x4f], 0
je 0x1400531af
xor edx, edx
lea eax, [rdx + 0x3f]
xor byte [rdx + rcx], al
inc rdx
cmp rdx, 0x4e
jb 0x14005319c
mov byte [rcx + 0x4f], 0
mov rax, rcx
ret

Function at 0x1400531b4
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xdd], 0
je 0x1400531d8
xor edx, edx
lea eax, [rdx + 0x3f]
xor byte [rdx + rcx], al
inc rdx
cmp rdx, 0xdc
jb 0x1400531bf
mov byte [rcx + 0xdd], 0
mov rax, rcx
ret
Function at 0x140056dac
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x70
movaps xmmword [rax - 0x18], xmm7
movaps xmmword [rax - 0x28], xmm8
movaps xmm8, xmm1
movaps xmmword [rax - 0x38], xmm9
movaps xmm9, xmm0
call fcn.14000a7ec
movss xmm7, dword [rax + 8]
mulss xmm7, dword [0x1400c8c88]
call fcn.14000a7ec
xorps xmm4, xmm4
xorps xmm3, xmm3
ucomiss xmm9, xmm4
movss xmm5, dword [rax + 0xc]
xorps xmm2, xmm2
mulss xmm5, dword [0x1400c8c88]
jp 0x140056e03
je 0x140056e5b
comiss xmm9, xmm7
jbe 0x140056e36
movaps xmm3, xmm7
movaps xmm0, xmm7
subss xmm3, xmm9
addss xmm0, xmm7
xorps xmm3, xmmword [0x1400c8d80]
divss xmm3, dword [0x1400fbe2c]
movaps xmm1, xmm3
addss xmm1, xmm7
comiss xmm1, xmm0
jbe 0x140056e36
xorps xmm3, xmm3
comiss xmm7, xmm9
jbe 0x140056e5b
movaps xmm3, xmm9
subss xmm3, xmm7
divss xmm3, dword [0x1400fbe2c]
movaps xmm0, xmm3
addss xmm0, xmm7
comiss xmm4, xmm0
jbe 0x140056e5b
xorps xmm3, xmm3
ucomiss xmm8, xmm4
jp 0x140056e63
je 0x140056ebb
comiss xmm8, xmm5
jbe 0x140056e96
movaps xmm2, xmm5
movaps xmm0, xmm5
subss xmm2, xmm8
addss xmm0, xmm5
xorps xmm2, xmmword [0x1400c8d80]
divss xmm2, dword [0x1400fbe2c]
movaps xmm1, xmm2
addss xmm1, xmm5
comiss xmm1, xmm0
jbe 0x140056e96
xorps xmm2, xmm2
comiss xmm5, xmm8
jbe 0x140056ebb
movaps xmm2, xmm8
subss xmm2, xmm5
divss xmm2, dword [0x1400fbe2c]
movaps xmm0, xmm2
addss xmm0, xmm5
comiss xmm4, xmm0
jbe 0x140056ebb
xorps xmm2, xmm2
cvttss2si eax, xmm3
xor ebx, ebx
mov edx, 0x1000
mov qword [rsp + 0x38], rbx
xor ecx, ecx
mov r8d, edx
lea r9d, [rbx + 0x40]
xorps xmm0, xmm0
mov dword [rsp + 0x20], eax
cvttss2si eax, xmm2
movdqu xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x24], eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x140056f72
mov eax, ebx
lea rcx, [0x1400fd7a0]
xor byte [rax + rcx], 0xfa
inc rax
cmp rax, 0x1e
jb 0x140056f00
movups xmm0, xmmword [0x1400fd7a0]
movups xmmword [rdi], xmm0
movsd xmm1, qword [0x1400fd7b0]
movsd qword [rdi + 0x10], xmm1
mov eax, dword [0x1400fd7b8]
mov dword [rdi + 0x18], eax
movzx eax, word [0x1400fd7bc]
mov word [rdi + 0x1c], ax
xor byte [rbx + rcx], 0xfa
inc rbx
cmp rbx, 0x1e
jb 0x140056f38
mov edx, 1
lea rcx, [rsp + 0x20]
call rdi
xor edx, edx
mov r8d, 0x1000
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
movaps xmm7, xmmword [rsp + 0x60]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
movaps xmm8, xmmword [r11 - 0x20]
movaps xmm9, xmmword [r11 - 0x30]
mov rsp, r11
pop rdi
ret
Function at 0x140057058
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400fc800]
xor rax, rsp
mov qword [rbp - 8], rax
or esi, 0xffffffff
mov r14d, edx
mov rdi, rcx
cmp edx, esi
jne 0x140057092
xor eax, eax
jmp 0x1400571b1
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x1400570cb
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x1400570cb
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], r14b
mov eax, r14d
jmp 0x1400571b1
cmp qword [rdi + 0x80], 0
je 0x1400571af
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x140057105
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140057126
movsx ecx, r14b
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, esi
jmp 0x1400571ab
lea rax, [rbp - 0x38]
mov byte [rbp - 0x40], r14b
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x3f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140057174
sub eax, 1
je 0x140057174
cmp eax, 2
jne 0x1400571af
movsx ecx, byte [rbp - 0x40]
jmp 0x140057112
mov rbx, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub rbx, rax
je 0x14005719f
mov r9, qword [rdi + 0x80]
lea rcx, [rbp - 0x28]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1400571af
lea rax, [rbp - 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rbp - 0x30], rax
cmovne esi, r14d
mov eax, esi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400c20d0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140057368
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400fc800]
xor rax, rsp
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
xor ebx, ebx
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x37
sub r8d, ecx
lea rcx, [0x1400ce001]
movsxd rax, r8d
mov cl, byte [rax + rcx]
add byte [rsp + rbx + 0x20], cl
inc rbx
cmp rbx, 0xf
jne 0x140057387
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400c20d0
add rsp, 0x40
pop rbx
ret

Function at 0x140057ab4
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x140057ae2
xor eax, eax
jmp 0x140057bc9
cmp qword [rcx + 0x68], 0
je 0x140057af4
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x140057bc9
mov rdi, rsi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x140057b34
cmp rax, rsi
mov rbx, rsi
mov rcx, rbp
cmovb rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rbx
mov rcx, r14
mov rdx, rax
call fcn.1400c30a8
mov edx, ebx
mov rcx, rbp
add r14, rbx
sub rdi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
je 0x140057bc3
mov rcx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rbp + 0x70]
cmp rax, rcx
jne 0x140057b6e
mov rdx, qword [rbp + 0x88]
mov rcx, rbp
mov r9, qword [rbp + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, rdi
mov ebx, 0xfff
jmp 0x140057b9e
mov r9, qword [rbp + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
add r14, rax
mov rcx, rdi
cmp rax, rbx
jne 0x140057bc3
cmp rdi, rbx
ja 0x140057b78
test rcx, rcx
je 0x140057bc3
mov r9, qword [rbp + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140057be4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140057c0e
call qword [sym.imp.MSVCP140.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 0x140057c7e
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x140057c78
test rax, rax
jle 0x140057c58
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call fcn.1400c30a8
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x140057c78
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140057c78
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14005f3d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005f3ee
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
xor ecx, ecx
cmp dword [rax], 0x4550
cmovne rax, rcx
ret
xor eax, eax
ret

Function at 0x14005f84c
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov rax, qword [0x1400fc800]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
lea rcx, [rbp + 0x27]
call fcn.14005c394
nop
lea r8, [rbp + 0x27]
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp + 7]
call fcn.14005f7e0
nop
mov r8, rbx
lea rdx, [0x1400d8358]
lea rcx, [rbp - 0x39]
call fcn.14005f7e0
nop
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 7
cmova rdx, qword [rbp + 7]
lea r8, [rbp - 0x51]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14005f911
mov eax, dword [rbp - 0x29]
add eax, eax
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 7
cmova rcx, qword [rbp - 0x39]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 2
lea r8, str.ImagePath
xor edx, edx
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp - 0x51]
test eax, eax
je 0x14005f959
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor dil, dil
lea rcx, [rbp - 0x39]
call fcn.140052e90
nop
lea rcx, [rbp + 7]
call fcn.140052e90
nop
lea rcx, [rbp + 0x27]
call fcn.140052e90
mov al, dil
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400c20d0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, reloc.WS2_32.dll_accept
mov qword [rsp + 0x20], rax
lea r8, str.Type
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp - 0x51]
test eax, eax
jne 0x14005f90b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x1400cd1f0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x14005f911
lea rdx, str.RtlAdjustPrivilege
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.NtLoadDriver
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
lea r9, [rbp - 0x59]
xor r8d, r8d
mov dil, 1
mov dl, dil
lea ecx, [r8 + 0xa]
call rbx
test eax, eax
js 0x14005f911
lea r8, [rbp + 0x27]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp - 0x19]
call fcn.14005f7e0
nop
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 7
cmova rdx, qword [rbp - 0x19]
lea rcx, [rbp - 0x49]
call sub.ntdll.dll_RtlInitUnicodeString
lea rcx, [rbp - 0x49]
call rsi
cmp eax, 0xc000010e
je 0x14005fa26
shr eax, 0x1f
xor dil, al
lea rcx, [rbp - 0x19]
call fcn.140052e90
jmp 0x14005f914
Function at 0x14005fa38
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400fc800]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rcx
lea rcx, [0x1400cd1f0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
xor ebx, ebx
test rax, rax
je 0x14005fb53
mov r8, rsi
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp - 0x28]
call fcn.14005f7e0
nop
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x58]
call sub.ntdll.dll_RtlInitUnicodeString
mov r8, rsi
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp - 0x48]
call fcn.14005f7e0
nop
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 7
cmova rdx, qword [rbp - 0x48]
lea r8, [rbp - 0x60]
mov rsi, 0xffffffff80000002
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x14005faeb
cmp eax, 2
sete bl
jmp 0x14005fb3e
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp - 0x58]
call rax
lea rdx, [rbp - 0x48]
mov rcx, rsi
test eax, eax
je 0x14005fb28
cmp qword [rbp - 0x30], 7
cmova rdx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
jmp 0x14005fb3e
cmp qword [rbp - 0x30], 7
cmova rdx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
jne 0x14005fb3e
mov bl, 1
lea rcx, [rbp - 0x48]
call fcn.140052e90
nop
lea rcx, [rbp - 0x28]
call fcn.140052e90
mov al, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400c20d0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14005fcd4
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r14, r8
mov rbp, rdx
mov r12, rcx
or rdi, 0xffffffffffffffff
inc rdi
cmp byte [rcx + rdi], 0
jne 0x14005fcfd
movsxd rcx, dword [rdx + 0x3c]
lea r13, [rdx + 0x18]
add r13, rcx
xor esi, esi
movzx eax, word [rcx + rdx + 0x14]
movzx r15d, word [rcx + rdx + 6]
add r13, rax
test r15d, r15d
je 0x14005fd60
lea rcx, [rsi + rsi*4]
mov r8, rdi
lea rbx, [rcx*8]
mov rdx, r12
add rbx, r13
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14005fd59
or rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x14005fd4b
cmp rdi, rax
je 0x14005fd7f
inc esi
cmp esi, r15d
jb 0x14005fd26
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp dword [rbx + 0xc], 0
je 0x14005fd60
test r14, r14
je 0x14005fd90
mov eax, dword [rbx + 8]
mov dword [r14], eax
mov eax, dword [rbx + 0xc]
add rax, rbp
jmp 0x14005fd62
Function at 0x14005fd98
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400fc800]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x20a
xor edi, edi
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x30]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x14005fe42
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov rax, r8
inc rax
cmp word [rcx + rax*2], di
jne 0x14005fdf8
cmp word [rsp + rax*2 + 0x2e], 0x5c
jne 0x14005fe1e
lea rax, [rax*2 - 2]
cmp rax, 0x20a
jae 0x14005fe86
mov word [rsp + rax + 0x30], di
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
inc r8
cmp word [rax + r8*2], di
jne 0x14005fe31
lea rdx, [rsp + 0x30]
jmp 0x14005fe5a
xorps xmm0, xmm0
lea rdx, [0x1400d7e7c]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
xor r8d, r8d
mov qword [rbx + 0x18], rdi
mov rcx, rbx
call fcn.140040308
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400c20d0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
call fcn.1400c2574
int3
Function at 0x14005fe8c
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400fc800]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
lea r9, [rbp - 0x30]
and dword [rbp - 0x30], ebx
mov r14, rcx
xor r8d, r8d
xor edx, edx
lea edi, [rbx + 0xb]
mov ecx, edi
call sub.ntdll.dll_NtQuerySystemInformation
mov esi, 0xc0000004
jmp 0x14005ff11
test rbx, rbx
je 0x14005fee7
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x30]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp - 0x30]
lea r9, [rbp - 0x30]
mov rdx, rax
mov ecx, edi
mov rbx, rax
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, esi
je 0x14005fed1
test eax, eax
jns 0x14005ff52
test rbx, rbx
je 0x14005ff2f
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400c20d0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
test rbx, rbx
je 0x14005ff2f
xor edi, edi
cmp dword [rbx], edi
jbe 0x14005ff1e
and qword [rbp - 0x18], 0
xorps xmm0, xmm0
and qword [rbp - 0x10], 0
mov eax, edi
imul rsi, rax, 0x128
movups xmmword [rbp - 0x28], xmm0
movzx edx, word [rsi + rbx + 0x2e]
add rdx, 0x30
add rdx, rsi
add rdx, rbx
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x14005ff8a
lea rcx, [rbp - 0x28]
call fcn.140040228
cmp qword [r14 + 0x18], 0xf
mov rdx, r14
jbe 0x14005ffaa
mov rdx, qword [r14]
cmp qword [rbp - 0x10], 0xf
lea rcx, [rbp - 0x28]
cmova rcx, qword [rbp - 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140060008
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x14005fff9
mov rcx, qword [rbp - 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005fff4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140060050
call fcn.1400c1df4
inc edi
cmp edi, dword [rbx]
jb 0x14005ff5d
jmp 0x14005ff1e
mov rdi, qword [rsi + rbx + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x14006005c
mov rcx, qword [rbp - 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140060057
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140060057
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c1df4
mov rax, rdi
jmp 0x14005ff31