joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400207ee
Capabilities:
Create thread

Disassembly:
jmp 0x140045d00
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x178]
lea rcx, [0x1400975f5]
call fcn.140021040
mov dword [rbp + 4], 0
mov ecx, 0x30
call fcn.1400202ee
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140045e15
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x140]
mov qword [rax], rcx
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x160]
mov qword [rax + 0x20], rcx
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x148]
mov qword [rax + 8], rcx
cmp qword [rbp + 0x150], 0
je 0x140045dac
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x150]
mov qword [rax + 0x10], rcx
cmp qword [rbp + 0x158], 0
je 0x140045dc5
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x158]
mov qword [rax + 0x18], rcx
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 0x28]
lea r8, [0x140020118]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x140045e04
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x48]
mov qword [rax + 0x28], rcx
jmp 0x140045e15
mov rcx, qword [rbp + 0x28]
call fcn.140020aaa
mov qword [rbp + 0x28], 0
mov rax, qword [rbp + 0x28]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140075810]
call fcn.140020d66
mov rax, rdi
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x14002086b
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1400481f0
push rbp
push rbx
push rdi
sub rsp, 0x240
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x58
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
lea rcx, [0x14009781d]
call fcn.140021040
mov dword [rbp + 4], 0
mov edx, 0x70
lea rcx, [rbp + 0x30]
call fcn.140020b7c
lea r9, [rbp + 4]
mov r8d, 0x70
lea rdx, [rbp + 0x30]
mov ecx, 0x9f
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rbp + 0x114], eax
cmp dword [rbp + 0x114], 0
jl 0x1400482f3
lea rax, [rbp + 0x30]
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0xb8]
add rax, 4
mov r8d, 0xc
mov rdx, rax
lea rcx, str.Microsoft_Hv
call qword [sym.imp.KERNEL32.dll_RtlCompareMemory]
cmp rax, 0xc
jne 0x1400482a3
lea rdx, str.___MSFT_hypervisor_present_r_n
mov ecx, 2
call fcn.1400204b0
jmp 0x1400482ee
lea rax, [rbp + 0xd8]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov rax, qword [rbp + 0xb8]
add rax, 4
mov r8d, 0xc
mov rdx, rax
lea rcx, [rbp + 0xd8]
call fcn.1400207c6
lea r8, [rbp + 0xd8]
lea rdx, str.___The___s__hypervisor_present_r_n
mov ecx, 2
call fcn.1400204b0
jmp 0x1400483b2
mov dword [rbp + 0x138], 0xffffffff
mov dword [rbp + 0x13c], 0xffffffff
mov dword [rbp + 0x140], 0xffffffff
mov dword [rbp + 0x144], 0xffffffff
mov eax, 1
xor ecx, ecx
cpuid
lea rdi, [rbp + 0x138]
mov dword [rdi], eax
mov dword [rdi + 4], ebx
mov dword [rdi + 8], ecx
mov dword [rdi + 0xc], edx
mov eax, 4
imul rax, rax, 2
mov eax, dword [rbp + rax + 0x138]
sar eax, 0x1f
and eax, 1
test eax, eax
je 0x1400483b2
mov eax, 0x40000000
xor ecx, ecx
cpuid
lea rdi, [rbp + 0x138]
mov dword [rdi], eax
mov dword [rdi + 4], ebx
mov dword [rdi + 8], ecx
mov dword [rdi + 0xc], edx
lea rax, [rbp + 0xd8]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
lea rax, [rbp + 0x13c]
mov r8d, 0xc
mov rdx, rax
lea rcx, [rbp + 0xd8]
call fcn.1400207c6
lea r8, [rbp + 0xd8]
lea rdx, str.___The___s__hypervisor_present_r_n
mov ecx, 2
call fcn.1400204b0
lea rcx, [rbp - 0x20]
lea rdx, [0x140077b00]
call fcn.140020d66
lea rsp, [rbp + 0x220]
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400208e3
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140054240
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
lea rcx, [0x140097c3a]
call fcn.140021040
lea rax, str.HARDWARERESOURCEMAPSystem_ResourcesPhysical_Memory
mov qword [rbp + 8], rax
lea rax, str..Translated
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x64], 8
mov dword [rbp + 0x84], 0
mov qword [rbp + 0xa8], 0
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp + 8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cdqe
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
jne 0x140054370
lea rax, [rbp + 0x84]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x64]
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cdqe
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
jne 0x140054366
cmp dword [rbp + 0x64], 8
jne 0x140054366
mov eax, dword [rbp + 0x84]
mov ecx, eax
call fcn.1400202ee
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
je 0x140054366
lea rax, [rbp + 0x84]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0xa8]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x64]
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbp + 0xa8]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14007d098]
call fcn.140020d66
mov rax, rdi
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret

Function at 0x1400208e8
Capabilities:
Terminate process

Disassembly:
jmp 0x14005f0c0
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 0x14002091a
Capabilities:
Access pe header

Disassembly:
jmp 0x140055d90
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x140097c3a]
call fcn.140021040
mov eax, dword [rbp + 0x188]
inc eax
shr eax, 1
mov r8d, eax
mov rdx, qword [rbp + 0x180]
xor ecx, ecx
call fcn.140020280
mov word [rbp + 0x84], ax
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140055ee5
mov rax, qword [rbp + 0x28]
add rax, 0x58
mov qword [rbp + 8], rax
movzx eax, word [rbp + 0x84]
mov ecx, 2
imul rcx, rcx, 0
mov rdx, qword [rbp + 8]
movzx ecx, word [rdx + rcx]
cmp eax, ecx
jge 0x140055e2f
mov dword [rbp + 0x154], 1
jmp 0x140055e39
mov dword [rbp + 0x154], 0
movzx eax, word [rbp + 0x84]
sub eax, dword [rbp + 0x154]
mov word [rbp + 0x84], ax
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rbp + 8]
movzx eax, word [rcx + rax]
movzx ecx, word [rbp + 0x84]
sub ecx, eax
mov eax, ecx
mov word [rbp + 0x84], ax
movzx eax, word [rbp + 0x84]
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rbp + 8]
movzx ecx, word [rdx + rcx]
cmp eax, ecx
jge 0x140055e98
mov dword [rbp + 0x154], 1
jmp 0x140055ea2
mov dword [rbp + 0x154], 0
movzx eax, word [rbp + 0x84]
sub eax, dword [rbp + 0x154]
mov word [rbp + 0x84], ax
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rbp + 8]
movzx eax, word [rcx + rax]
movzx ecx, word [rbp + 0x84]
sub ecx, eax
mov eax, ecx
mov word [rbp + 0x84], ax
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x58]
mov dword [rbp + 0x44], eax
jmp 0x140055ef7
mov eax, dword [rbp + 0x188]
mov dword [rbp + 0x44], eax
xor eax, eax
mov word [rbp + 0x84], ax
movzx eax, word [rbp + 0x84]
add eax, dword [rbp + 0x188]
mov dword [rbp + 0x64], eax
cmp qword [rbp + 0x190], 0
je 0x140055f1d
mov rax, qword [rbp + 0x190]
mov ecx, dword [rbp + 0x44]
mov dword [rax], ecx
cmp qword [rbp + 0x198], 0
je 0x140055f33
mov rax, qword [rbp + 0x198]
mov ecx, dword [rbp + 0x64]
mov dword [rax], ecx
mov eax, dword [rbp + 0x44]
cmp dword [rbp + 0x64], eax
jne 0x140055f44
mov byte [rbp + 0x154], 1
jmp 0x140055f4b
mov byte [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x1400209a1
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
jmp 0x140027d60
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x140095341]
call fcn.140021040
mov byte [rbp + 4], 0
mov rcx, qword [rbp + 0x190]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x198], 0
je 0x140027db9
mov rax, qword [rbp + 0x198]
mov dword [rax], 0
cmp qword [rbp + 0x68], 0
jne 0x140027dc7
xor eax, eax
jmp 0x140027e7a
mov rax, qword [rbp + 0x68]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x68]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x68]
movzx eax, word [rax + 6]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jbe 0x140027e32
mov eax, dword [rbp + 0x188]
mov rcx, qword [rbp + 0x88]
mov r8d, eax
mov rdx, qword [rbp + 0x180]
call fcn.140020668
test eax, eax
jne 0x140027e16
mov byte [rbp + 4], 1
jmp 0x140027e32
mov eax, dword [rbp + 0x24]
dec eax
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x88]
add rax, 0x28
mov qword [rbp + 0x88], rax
jmp 0x140027dea
movzx eax, byte [rbp + 4]
test eax, eax
jne 0x140027e3e
xor eax, eax
jmp 0x140027e7a
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0xc]
mov rcx, qword [rbp + 0x190]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x198], 0
je 0x140027e76
mov rax, qword [rbp + 0x198]
mov rcx, qword [rbp + 0x88]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x1400209ab
Capabilities:
Access pe header

Disassembly:
jmp 0x140022440
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x228
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x248]
lea rcx, [0x1400950d9]
call fcn.140021040
mov qword [rbp + 8], 0
mov dword [rbp + 0x104], 0
mov rcx, qword [rbp + 0x220]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov qword [rbp + 0x128], rax
cmp qword [rbp + 0x128], 0
jne 0x1400224bf
mov ecx, 0xc0000005
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14002268c
mov rax, qword [rbp + 0x128]
movzx eax, word [rax + 4]
cmp eax, 0x8664
jne 0x1400224fb
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x128]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
jmp 0x140022546
mov rax, qword [rbp + 0x128]
movzx eax, word [rax + 4]
cmp eax, 0x14c
jne 0x140022534
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x128]
mov eax, dword [rcx + rax + 0x78]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
jmp 0x140022546
mov ecx, 0x65e
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14002268c
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov dword [rbp + 0xe4], 0
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x18]
dec eax
mov dword [rbp + 0xc4], eax
mov eax, dword [rbp + 0xe4]
cmp dword [rbp + 0xc4], eax
jb 0x140022621
mov eax, dword [rbp + 0xc4]
mov ecx, dword [rbp + 0xe4]
add ecx, eax
mov eax, ecx
shr eax, 1
mov dword [rbp + 0x104], eax
mov eax, dword [rbp + 0x104]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rbp + 0x228]
call fcn.14002024e
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0
jge 0x140022601
mov eax, dword [rbp + 0x104]
dec eax
mov dword [rbp + 0xc4], eax
jmp 0x14002261c
cmp dword [rbp + 0xa4], 0
jle 0x14002261a
mov eax, dword [rbp + 0x104]
inc eax
mov dword [rbp + 0xe4], eax
jmp 0x14002261c
jmp 0x140022621
jmp 0x14002258f
mov eax, dword [rbp + 0xe4]
cmp dword [rbp + 0xc4], eax
jae 0x140022633
xor eax, eax
jmp 0x14002268c
mov eax, dword [rbp + 0x104]
mov rcx, qword [rbp + 0x68]
movzx eax, word [rcx + rax*2]
mov word [rbp + 0x24], ax
movzx eax, word [rbp + 0x24]
mov rcx, qword [rbp + 8]
cmp eax, dword [rcx + 0x14]
jb 0x140022656
xor eax, eax
jmp 0x14002268c
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
movzx eax, word [rbp + 0x24]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140064c00]
call fcn.140020d66
mov rax, rdi
lea rsp, [rbp + 0x208]
pop rdi
pop rbp
ret
Function at 0x140020a37
Capabilities:
Enumerate files on windows

Disassembly:
jmp 0x140025b10
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x248
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x268]
lea rcx, [0x140095341]
call fcn.140021040
mov qword [rbp + 0x48], 0
cmp qword [rbp + 0x230], 0
jne 0x140025b73
mov eax, 0xc00000f2
jmp 0x140025d3d
mov dword [rbp + 0x64], 0xc0000001
cmp qword [rbp + 0x220], 0
je 0x140025c19
mov edx, 0x10
lea rcx, [rbp + 0xf8]
call fcn.140020b7c
mov rdx, qword [rbp + 0x220]
lea rcx, [rbp + 0xf8]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rbp + 0xa8], 0x30
mov qword [rbp + 0xb0], 0
mov dword [rbp + 0xc0], 0x40
lea rax, [rbp + 0xf8]
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0xd0], 0
lea r8, [rbp + 0xa8]
mov edx, 1
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jge 0x140025c17
mov eax, dword [rbp + 0x64]
jmp 0x140025d3d
jmp 0x140025c38
cmp qword [rbp + 0x228], 0
jne 0x140025c2d
mov eax, 0xc00000f0
jmp 0x140025d3d
mov rax, qword [rbp + 0x228]
mov qword [rbp + 0x48], rax
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
lea rax, [rbp + 0x24]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 0
mov r9b, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0xc0000023
je 0x140025c80
jmp 0x140025d29
mov eax, dword [rbp + 0x24]
mov ecx, eax
call fcn.140020938
mov qword [rbp + 0x128], rax
cmp qword [rbp + 0x128], 0
jne 0x140025ca0
jmp 0x140025d29
lea rax, [rbp + 0x24]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 0
mov r9b, 1
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jge 0x140025ce6
mov rcx, qword [rbp + 0x128]
call fcn.140020203
jmp 0x140025d29
mov rdx, qword [rbp + 0x238]
mov rcx, qword [rbp + 0x128]
call qword [rbp + 0x230]
mov dword [rbp + 0x84], eax
mov rcx, qword [rbp + 0x128]
call fcn.140020203
cmp dword [rbp + 0x84], 0
jl 0x140025d1e
mov dword [rbp + 0x64], 0
jmp 0x140025d29
xor eax, eax
cmp eax, 1
jne 0x140025c3f
cmp qword [rbp + 0x48], 0
je 0x140025d3a
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [rbp + 0x64]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140065c10]
call fcn.140020d66
mov rax, rdi
lea rsp, [rbp + 0x208]
pop rdi
pop rbp
ret
Function at 0x140020aeb
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1400285d0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
lea rcx, [0x140095341]
call fcn.140021040
cmp qword [rbp + 0x160], 0
je 0x140028626
mov rax, qword [rbp + 0x160]
mov byte [rax], 0
cmp qword [rbp + 0x168], 0
je 0x14002863a
mov rax, qword [rbp + 0x168]
mov byte [rax], 0
cmp qword [rbp + 0x170], 0
je 0x14002864e
mov rax, qword [rbp + 0x170]
mov byte [rax], 0
mov dword [rbp + 0x68], 8
lea r9, [rbp + 0x24]
mov r8d, 8
lea rdx, [rbp + 0x68]
mov ecx, 0x67
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jl 0x14002874f
mov eax, dword [rbp + 0x6c]
and eax, 1
test eax, eax
je 0x14002869d
mov eax, dword [rbp + 0x6c]
and eax, 0x400
test eax, eax
je 0x14002869d
mov dword [rbp + 0x134], 1
jmp 0x1400286a7
mov dword [rbp + 0x134], 0
movzx eax, byte [rbp + 0x134]
mov byte [rbp + 4], al
cmp qword [rbp + 0x160], 0
je 0x1400286c8
mov rax, qword [rbp + 0x160]
movzx ecx, byte [rbp + 4]
mov byte [rax], cl
cmp qword [rbp + 0x168], 0
je 0x14002870d
movzx eax, byte [rbp + 4]
cmp eax, 1
jne 0x1400286f3
mov eax, dword [rbp + 0x6c]
and eax, 0x1000
test eax, eax
je 0x1400286f3
mov dword [rbp + 0x134], 1
jmp 0x1400286fd
mov dword [rbp + 0x134], 0
mov rax, qword [rbp + 0x168]
movzx ecx, byte [rbp + 0x134]
mov byte [rax], cl
cmp qword [rbp + 0x170], 0
je 0x140028749
mov eax, dword [rbp + 0x6c]
and eax, 0x2000
test eax, eax
jbe 0x14002872f
mov dword [rbp + 0x134], 1
jmp 0x140028739
mov dword [rbp + 0x134], 0
mov rax, qword [rbp + 0x170]
movzx ecx, byte [rbp + 0x134]
mov byte [rax], cl
mov al, 1
jmp 0x140028762
mov ecx, dword [rbp + 0x44]
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140066380]
call fcn.140020d66
mov rax, rdi
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x140020aff
Capabilities:
Set registry value

Disassembly:
jmp 0x140054b60
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
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]
lea rcx, [0x140097c3a]
call fcn.140021040
mov rdx, qword [rbp + 0x1d8]
lea rcx, [rbp + 0x28]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rdx, qword [rbp + 0x1e0]
lea rcx, [rbp + 0x60]
call fcn.14002027b
lea rcx, [rbp + 0x60]
call fcn.140020352
lea rax, [rax + rax + 2]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 0x1d0]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14007c570]
call fcn.140020d66
mov rax, rdi
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x140020b1d
Capabilities:
Delete file

Disassembly:
jmp 0x140052830
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1f8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x42
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x218]
lea rcx, [0x140097c3a]
call fcn.140021040
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov rcx, qword [rbp + 0x1e0]
call fcn.140020352
lea rax, [rax + rax + 0x800]
mov qword [rbp + 0xa8], rax
mov rcx, qword [rbp + 0xa8]
call fcn.1400202ee
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x1400528c4
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140052a35
movzx eax, byte [rbp + 0x1e8]
test eax, eax
je 0x14005292d
mov rcx, qword [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
je 0x140052928
mov r8d, 0x104
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140052928
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rbp + 4], eax
jmp 0x140052a26
mov r8d, 0x104
mov rdx, qword [rbp + 0x88]
lea rcx, str._temp__
call fcn.1400205fa
mov dword [rbp + 0xe4], eax
cmp dword [rbp + 0xe4], 0
je 0x140052961
cmp dword [rbp + 0xe4], 0x104
jbe 0x140052971
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140052a26
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0x68], rax
mov byte [rsp + 0x20], 1
mov r9d, 0xf62e6ce0
lea r8, [rbp + 0x24]
mov rdx, qword [rbp + 0x68]
mov ecx, 0x7d1
call fcn.140020212
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x140052a1b
mov rdx, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x88]
call fcn.140020f96
mov eax, dword [rbp + 0x24]
mov qword [rbp + 0x1b8], rax
mov ecx, dword [rbp + 0x24]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 1
mov r8d, ecx
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x88]
call fcn.140020758
mov rcx, qword [rbp + 0x1b8]
cmp rcx, rax
jne 0x140052a19
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x140052a19
mov dword [rbp + 4], 1
jmp 0x140052a26
mov ecx, 0x3ee
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x88]
call fcn.140020aaa
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14007c420]
call fcn.140020d66
mov rax, rdi
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x140020b54
Capabilities:
Parse pe header

Disassembly:
jmp 0x14005d780
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14005d7a0
xor al, al
jmp 0x14005d821
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14005d7b3
xor al, al
jmp 0x14005d821
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14005d7dd
xor al, al
jmp 0x14005d821
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14005d7f1
xor al, al
jmp 0x14005d821
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14005d803
xor al, al
jmp 0x14005d821
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14005d81f
xor al, al
jmp 0x14005d821
mov al, 1
add rsp, 0x38
ret

Function at 0x140020b95
Capabilities:
Map section object

Disassembly:
jmp 0x140031800
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b8]
lea rcx, [0x140095570]
call fcn.140021040
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x68], 0
lea rdx, [rbp + 0x24]
mov rax, qword [rbp + 0x160]
mov ecx, dword [rax + 8]
call fcn.14002049c
mov eax, dword [rbp + 0x24]
add rax, 0xfff
and rax, 0xfffffffffffff000
mov qword [rbp + 0x48], rax
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
lea rax, [rbp + 0x48]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x1000
xor r9d, r9d
lea r8, [rbp + 0x68]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jl 0x14003193d
mov rax, qword [rbp + 0x160]
mov eax, dword [rax + 8]
mov dword [rbp + 0x134], eax
cmp dword [rbp + 0x134], 1
je 0x140031911
cmp dword [rbp + 0x134], 2
je 0x1400318f6
cmp dword [rbp + 0x134], 3
je 0x140031911
jmp 0x140031911
mov rax, qword [rbp + 0x68]
mov r8, qword [rax + 0x10]
lea rdx, str.___Shellcode_result__system_worker:_0x_p_r_n
mov ecx, 2
call fcn.1400204b0
jmp 0x14003192a
mov rax, qword [rbp + 0x68]
mov r8d, dword [rax + 8]
lea rdx, str.___Shellcode_result:_NTSTATUS__0x_lX__r_n
mov ecx, 2
call fcn.1400204b0
mov rdx, qword [rbp + 0x68]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
jmp 0x140031952
mov r8d, dword [rbp + 4]
lea rdx, str.____Cannot_map_shellcode_section__NTSTATUS___lX__r_n
mov ecx, 1
call fcn.1400204b0
lea rcx, [rbp - 0x50]
lea rdx, [0x14006d2a0]
call fcn.140020d66
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret