joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006b760
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x141072920]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x1410722b0], 0
je 0x14006b796
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x141072ca0]
aesenc xmm0, xmmword [0x141072cb0]
aesenc xmm0, xmmword [0x141072cc0]
movq rax, xmm0
ret
jmp 0x14000dac0

Function at 0x1405cdeb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140fe99e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1405cded0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1405cded8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1405cded0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1405cdf25
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1405cdf1c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1405cded0
add rax, 0x28
cmp rax, r9
jne 0x1405cdf08
xor eax, eax
ret

Function at 0x1405cdf30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140fe99e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1405cdf50
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1405cdf58
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1405cdf50
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1405cdfe0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140fe99e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1405ce000
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1405ce008
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140c0bd50
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140c0bd5a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140c0bd83
pop rbp
sub rbp, 0x33
sub rbp, 0xc0bd50
sub rsp, 0x20
jmp 0x140c0bda2
mov rax, 0xc0bd50
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0xffffffff9ef234b7
xor byte [rax], dl
inc rax
dec rcx
jne 0x140c0bdc1
jmp 0x140c0bdd8
invalid
Function at 0x7ff7980cbfd0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x7ff7981d4380]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x7ff7980cc0a3
cmp byte [rcx + 0x71], 0
je 0x7ff7980cc0a3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x7ff7980cc09f
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 0x7ff7980cc064
sub eax, 1
je 0x7ff7980cc068
cmp eax, 2
jne 0x7ff7980cc09f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.7ff798179f10
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x7ff7980cc096
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.ucrtbase.dll_fwrite]
cmp rdi, rax
jne 0x7ff7980cc09f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x7ff7980cc04c
xor al, al
jmp 0x7ff7980cc04c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.7ff798179f10
add rsp, 0x60
pop rbx
ret
Function at 0x7ff7980f04a0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x7ff7981d4380]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x7ff7980f0513
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call sub.kernel32.dll_Process32First
test eax, eax
je 0x7ff7980f0513
nop
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.ucrtbase.dll__mbsicmp]
mov rcx, rbx
test eax, eax
je 0x7ff7980f053f
lea rdx, [rsp + 0x20]
call sub.kernel32.dll_Process32Next
test eax, eax
jne 0x7ff7980f04f0
mov rcx, rbx
call qword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.7ff798179f10
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x7ff7980f051e

Function at 0x7ff7980f0550
Capabilities:
Access peb ldr_data
Encode data using xor
Enumerate processes
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x270
mov rax, qword [0x7ff7981d4380]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
xor ebp, ebp
xor edx, edx
lea ecx, [rbp + 2]
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x7ff7980f0692
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x288], rdi
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call sub.kernel32.dll_Process32FirstW
test eax, eax
je 0x7ff7980f05da
mov rdx, rbx
lea rcx, [rsp + 0x4c]
call sub.VCRUNTIME140.dll_wcsstr
test rax, rax
jne 0x7ff7980f05d6
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x7ff7980f05b1
jmp 0x7ff7980f05da
mov ebp, dword [rsp + 0x28]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x7ff7980f0667
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x7ff7980f0667
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x4608e984
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x7ff7980f0662
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x7ff7980f0640
cmp r8d, 0x39ebddce
je 0x7ff7980f066c
test r9d, r9d
jne 0x7ff7980f0620
mov rax, qword [rax]
jmp 0x7ff7980f05f0
mov edx, dword [rbx + 0x24]
mov rcx, rsi
add rdx, r10
movzx r8d, word [rdx + r9*2]
mov edx, dword [rbx + 0x1c]
add rdx, r10
mov r9d, dword [rdx + r8*4]
add r9, r10
call r9
mov rdi, qword [rsp + 0x288]
mov eax, ebp
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.7ff798179f10
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x7ff7980f0730
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x7ff7981d4380]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r8d, 4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.advapi32.dll_OpenSCManagerA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x7ff7980f0772
xor al, al
jmp 0x7ff7980f0812
mov rax, qword [rsp + 0xa0]
mov rcx, rax
call fcn.7ff7980feef0
mov qword [rsp + 0x48], rax
mov r8d, 4
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.advapi32.dll_OpenServiceA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x7ff7980f07b9
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
xor al, al
jmp 0x7ff7980f0812
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.advapi32.dll_QueryServiceStatusEx]
test eax, eax
je 0x7ff7980f07f2
cmp dword [rsp + 0x5c], 4
jne 0x7ff7980f07f0
mov byte [rsp + 0x30], 1
jmp 0x7ff7980f07f7
mov byte [rsp + 0x30], 0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.7ff798179f10
add rsp, 0x98
ret
Function at 0x7ff798102000
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x7ff7981d4380]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xa0]
mov rcx, rax
call fcn.7ff7980feef0
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x7ff79810213f
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x18], 0xf
jbe 0x7ff7981020ab
mov dword [rsp + 0x34], 1
jmp 0x7ff7981020b3
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x7ff7981020dc
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.advapi32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov al, 1
jmp 0x7ff798102145
xor al, al
jmp 0x7ff798102145
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.7ff798179f10
add rsp, 0x98
ret
Function at 0x7ff798106590
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rax, qword [0x7ff7981d4380]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xb8], 4
lea rax, [rsp + 0x78]
lea rcx, [0x7ff79818bdc8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x32
rep movsb byte [rdi], byte [rsi]
mov eax, 1
imul rax, rax, 0x31
movsx eax, byte [rsp + rax + 0x78]
test eax, eax
je 0x7ff7981065ec
mov dword [rsp + 0x38], 1
jmp 0x7ff7981065f4
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x7ff79810664a
mov dword [rsp + 0x30], 0
jmp 0x7ff798106611
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x32
jge 0x7ff79810664a
movsxd rax, dword [rsp + 0x30]
movsx eax, byte [rsp + rax + 0x78]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x30]
cdq
mov ecx, 0x32
idiv ecx
mov eax, edx
add eax, 0x36
mov ecx, dword [rsp + 0x44]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x30]
mov byte [rsp + rcx + 0x78], al
jmp 0x7ff798106607
lea rax, [rsp + 0x78]
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
je 0x7ff798106680
xor al, al
jmp 0x7ff79810679f
lea rax, [rsp + 0x60]
lea rcx, [0x7ff79818be00]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x16
rep movsb byte [rdi], byte [rsi]
mov eax, 1
imul rax, rax, 0x15
movsx eax, byte [rsp + rax + 0x60]
test eax, eax
je 0x7ff7981066b5
mov dword [rsp + 0x3c], 1
jmp 0x7ff7981066bd
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
test eax, eax
je 0x7ff798106713
mov dword [rsp + 0x34], 0
jmp 0x7ff7981066da
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0x16
jge 0x7ff798106713
movsxd rax, dword [rsp + 0x34]
movsx eax, byte [rsp + rax + 0x60]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x34]
cdq
mov ecx, 0x32
idiv ecx
mov eax, edx
add eax, 0x36
mov ecx, dword [rsp + 0x48]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x34]
mov byte [rsp + rcx + 0x60], al
jmp 0x7ff7981066d0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xbc]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
je 0x7ff798106770
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.advapi32.dll_RegCloseKey]
xor al, al
jmp 0x7ff79810679f
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [rsp + 0xbc], 1
jne 0x7ff798106792
mov dword [rsp + 0x40], 1
jmp 0x7ff79810679a
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.7ff798179f10
add rsp, 0xd8
pop rdi
pop rsi
ret
Function at 0x7ff7981145c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x7ff7981145de
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 0x7ff7981145f0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x7ff7981d4380]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x7ff798114707
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x7ff798114707
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + rdx + 0xb0]
test ecx, ecx
jne 0x7ff798114669
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x7ff798114712
lea rbx, [rdx + rcx]
mov ebp, dword [rax + rdx + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x50]
cmp rbx, rbp
jae 0x7ff7981146f5
mov edx, dword [rbx + 4]
test edx, edx
je 0x7ff7981146f5
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, r8
je 0x7ff7981146ce
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
mov rcx, qword [rsp + 0x50]
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x7ff7981146e5
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.7ff798113b70
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
mov r8, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x7ff798114681
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x7ff798114712
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.7ff798179f10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x7ff798114d60
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x7ff7981d4380]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
lea rcx, [0x7ff798187c98]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x7ff798114f02
mov r8, rdi
lea rdx, [0x7ff79818d190]
lea rcx, [rbp - 0x38]
call fcn.7ff7981148d0
nop
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 7
cmova rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x18]
call sub.ntdll.dll_RtlInitUnicodeString
mov r8, rdi
lea rdx, [0x7ff79818d0e0]
lea rcx, [rbp - 0x58]
call fcn.7ff7981148d0
nop
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 7
cmova rdx, qword [rbp - 0x58]
lea r8, [rbp - 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyW]
test eax, eax
je 0x7ff798114e09
cmp eax, 2
sete bl
jmp 0x7ff798114e66
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.advapi32.dll_RegCloseKey]
lea rdx, [0x7ff79818d200]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_GetProcAddress]
lea rcx, [rbp - 0x18]
call rax
lea rdx, [rbp - 0x58]
mov rcx, 0xffffffff80000002
test eax, eax
je 0x7ff798114e4c
cmp qword [rbp - 0x40], 7
cmova rdx, qword [rbp - 0x58]
call qword [sym.imp.advapi32.dll_RegDeleteTreeW]
xor bl, bl
jmp 0x7ff798114e66
cmp qword [rbp - 0x40], 7
cmova rdx, qword [rbp - 0x58]
call qword [sym.imp.advapi32.dll_RegDeleteTreeW]
test eax, eax
je 0x7ff798114e64
xor bl, bl
jmp 0x7ff798114e66
mov bl, 1
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x7ff798114ea9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff798114ea4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff798114ea4
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff798179c7c
movdqa xmm0, xmmword [0x7ff798187cc0]
movdqu xmmword [rbp - 0x48], xmm0
xor eax, eax
mov word [rbp - 0x58], ax
mov rdx, qword [rbp - 0x20]
cmp rdx, 7
jbe 0x7ff798114eff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff798114efa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff798114efa
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff798179c7c
movzx eax, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.7ff798179f10
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x7ff7981151e0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, r8
mov r15, rdx
mov rbp, rcx
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rcx], 0
jne 0x7ff798115207
movsxd rcx, dword [rdx + 0x3c]
lea r13, [rdx + 0x18]
add r13, rcx
mov qword [rsp + 0x50], rbx
xor esi, esi
movzx eax, word [rcx + rdx + 0x14]
movzx r14d, word [rcx + rdx + 6]
add r13, rax
test r14d, r14d
je 0x7ff798115285
nop word [rax + rax]
lea rcx, [rsi + rsi*4]
mov r8, rdi
lea rbx, [rcx*8]
mov rdx, rbp
add rbx, r13
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x7ff79811527e
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x7ff798115270
cmp rdi, rax
je 0x7ff7981152a4
inc esi
cmp esi, r14d
jb 0x7ff798115240
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 0x7ff798115285
test r12, r12
je 0x7ff7981152b6
mov eax, dword [rbx + 8]
mov dword [r12], eax
mov eax, dword [rbx + 0xc]
add rax, r15
jmp 0x7ff798115287

Function at 0x7ff7981152c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x7ff7981d4380]
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 0x7ff798115371
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov rax, r8
cmp word [rcx + rax*2 + 2], di
lea rax, [rax + 1]
jne 0x7ff798115323
cmp word [rsp + rax*2 + 0x2e], 0x5c
jne 0x7ff79811534b
lea rax, [rax*2 - 2]
cmp rax, 0x20a
jae 0x7ff7981153b5
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
nop
inc r8
cmp word [rax + r8*2], di
jne 0x7ff798115360
lea rdx, [rsp + 0x30]
jmp 0x7ff798115389
xorps xmm0, xmm0
lea rdx, [0x7ff798187800]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
xor r8d, r8d
mov qword [rbx + 0x18], rdi
mov rcx, rbx
call fcn.7ff7980c4580
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.7ff798179f10
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
call fcn.7ff79817a5b0
int3
Function at 0x7ff7981153c0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x7ff7981d4380]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov ebx, r14d
lea ecx, [rdx + 0xb]
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
jne 0x7ff79811544d
nop
test rbx, rbx
je 0x7ff798115416
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.kernel32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
je 0x7ff798115400
test eax, eax
jns 0x7ff79811546e
test rbx, rbx
je 0x7ff798115473
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.kernel32.dll_VirtualFree]
xor eax, eax
jmp 0x7ff798115572
test rbx, rbx
jne 0x7ff79811547a
xor eax, eax
jmp 0x7ff798115572
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x7ff798115552
mov eax, edi
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rdx, 0x30
mov qword [rsp + 0x38], r14
add rdx, rcx
mov qword [rsp + 0x40], r14
add rdx, rbx
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], r14b
jne 0x7ff7981154d0
lea rcx, [rsp + 0x28]
call fcn.7ff7980c4480
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x7ff7981154f0
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.ucrtbase.dll__stricmp]
test eax, eax
je 0x7ff798115588
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x7ff798115548
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff798115543
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff7981155d1
call fcn.7ff798179c7c
inc edi
cmp edi, dword [rbx]
jb 0x7ff798115493
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.kernel32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.7ff798179f10
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.kernel32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x7ff7981155dd
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7981155d8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7981155d8
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff798179c7c
mov rax, rdi
jmp 0x7ff798115565