joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140167150
Capabilities:
Delete file

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
add rax, 0x10
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1401683b0
mov rax, qword [rsp + 0x50]
add rax, 8
mov qword [rsp + 0x28], rax
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.140168350
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.140168350
mov rax, qword [rsp + 0x50]
add rax, 0x48
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.140168410
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x28], 0
movzx eax, byte [rsp + 0x58]
test eax, eax
jne 0x140167236
mov rax, qword [rsp + 0x50]
add rax, 0xf8
mov rcx, rax
call fcn.140167fd0
nop
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1c]
test eax, eax
je 0x140167222
mov rax, qword [rsp + 0x50]
add rax, 0x118
mov rcx, rax
call fcn.1400da570
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rax, qword [rsp + 0x50]
add rax, 0x118
mov rcx, rax
call fcn.140167fd0
nop
add rsp, 0x48
ret
Function at 0x14017b6e0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2b0
mov rax, qword [0x140320740]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov edx, 8
lea rcx, [rsp + 0x80]
call fcn.14017cdc0
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.140179a60
mov edx, 8
lea rcx, [rsp + 0x78]
call fcn.14017cdc0
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.140179a60
mov dword [rsp + 0x88], 1
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x2d0]
call fcn.1400da570
mov r9, rax
lea r8, str.___s
mov edx, 0x104
lea rcx, [rsp + 0x90]
call fcn.14017d170
lea rcx, [rsp + 0x80]
call fcn.14017a030
mov r8, rax
lea rdx, str.systemCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14017b7ec
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x78]
call fcn.140179e20
lea rcx, [rsp + 0x80]
call fcn.140179e20
mov eax, dword [rsp + 0x40]
jmp 0x14017b962
lea rcx, [rsp + 0x78]
call fcn.14017a030
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x2c8]
call fcn.1400da570
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x80]
call fcn.14017a020
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14017b867
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x78]
call fcn.140179e20
lea rcx, [rsp + 0x80]
call fcn.140179e20
mov eax, dword [rsp + 0x44]
jmp 0x14017b962
lea rax, [rsp + 0x90]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
inc qword [rsp + 0x38]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
cmp word [rax + rcx*2], 0
jne 0x14017b87d
mov rax, qword [rsp + 0x38]
lea rax, [rax + rax + 2]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x78]
call fcn.14017a020
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], ecx
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14017b90b
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x78]
call fcn.140179e20
lea rcx, [rsp + 0x80]
call fcn.140179e20
mov eax, dword [rsp + 0x48]
jmp 0x14017b962
lea rcx, [rsp + 0x78]
call fcn.14017a020
mov dword [rsp + 0x28], 4
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x20], rcx
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x78]
call fcn.140179e20
lea rcx, [rsp + 0x80]
call fcn.140179e20
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1402164b0
add rsp, 0x2b0
pop rdi
ret
Function at 0x14017c120
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov rax, qword [0x140320740]
xor rax, rsp
mov qword [rsp + 0xe8], rax
lea rax, [rsp + 0xb8]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov r8, qword [rsp + 0x108]
lea rdx, str._registrymachineSYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0xc8]
call fcn.140178330
nop
call fcn.140150dd0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0xc8]
call fcn.1400da570
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x30], rax
lea rdx, [0x1402bc9a0]
lea rcx, [rsp + 0x58]
call fcn.1400d13c0
nop
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
call fcn.140173e90
nop
lea rcx, [rsp + 0x58]
call fcn.1400d12d0
nop
call fcn.140150dd0
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x40], rax
lea rdx, [0x1402bc9b8]
lea rcx, [rsp + 0x78]
call fcn.1400d13c0
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
call fcn.140179990
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x78]
call fcn.1400d12d0
nop
mov r8, qword [rsp + 0x108]
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x98]
call fcn.140178330
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.1400da570
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea rcx, [rsp + 0x98]
call fcn.1400da5e0
nop
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0xc8]
call fcn.1400da5e0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.1402164b0
add rsp, 0xf0
pop rdi
ret
Function at 0x1401913a0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov rax, qword [0x140320740]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0xb0], 0
lea rax, [rsp + 0xb4]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_46
rep stosb byte [rdi], al
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
nop
movzx eax, word [rsp + 0xb0]
test eax, eax
jne 0x14019143c
mov rax, qword [rsp + 0x100]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140190ea0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x100]
add rax, 0x10
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call fcn.140190b10
lea rcx, [rsp + 0x40]
call fcn.1401910e0
nop
jmp 0x1401914e7
mov dword [rsp + 0xa0], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0xa0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
nop
cmp dword [rsp + 0xa0], 1
jne 0x1401914a9
mov rax, qword [rsp + 0x100]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140190e00
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x100]
add rax, 0x10
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.140190ab0
lea rcx, [rsp + 0x50]
call fcn.140191090
nop
jmp 0x1401914e7
mov rax, qword [rsp + 0x100]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140190d60
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x100]
add rax, 0x10
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.140190a60
lea rcx, [rsp + 0x60]
call fcn.140191040
nop
mov rax, qword [rsp + 0x100]
add rax, 0x10
mov rcx, rax
call fcn.14013a5f0
mov rcx, rax
call fcn.14013f6e0
movzx eax, byte [rax + 5]
test eax, eax
jne 0x14019151c
mov rax, qword [rsp + 0x100]
mov byte [rax + 0x18], 1
jmp 0x1401915df
mov dword [rsp + 0xa4], 0
mov dword [rsp + 0xa8], 0
call fcn.140150dd0
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xa4]
mov qword [rsp + 0x70], rax
lea rdx, [0x1402bdf58]
lea rcx, [rsp + 0x80]
call fcn.1400d13c0
nop
mov rax, qword [rsp + 0x100]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x70]
mov r8, rax
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call fcn.140190f40
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x80]
call fcn.1400d12d0
cmp dword [rsp + 0x34], 0
je 0x1401915df
mov eax, dword [rsp + 0xa4]
and eax, 1
test eax, eax
je 0x1401915c7
mov dword [rsp + 0x30], 1
jmp 0x1401915cf
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x100]
movzx ecx, byte [rsp + 0x30]
mov byte [rax + 0x18], cl
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1402164b0
add rsp, 0xf0
pop rdi
ret
Function at 0x140194510
Capabilities:
Connect pipe
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rax, qword [0x140320740]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x60]
add rax, 0x38
mov rcx, rax
call fcn.14014f6b0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov rax, qword [rsp + 0x60]
mov byte [rax + 0x60], 1
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x60]
test eax, eax
je 0x140194606
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x60]
add rax, 0x38
mov rcx, rax
call fcn.14014f6b0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401945c7
mov rax, qword [rsp + 0x60]
mov byte [rax + 0x60], 0
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x48], 0
jmp 0x140194606
cmp dword [rsp + 0x44], 0
je 0x1401945d5
cmp dword [rsp + 0x44], 2
jne 0x1401945ec
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140194640
nop
jmp 0x140194601
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140195430
nop
jmp 0x140194556
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402164b0
add rsp, 0x50
pop rdi
ret
Function at 0x140194640
Capabilities:
Create pipe

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x100
mov rax, qword [0x140320740]
xor rax, rsp
mov qword [rsp + 0xf8], rax
lea rax, [rsp + 0xd8]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WLDAP32.dll_Ordinal_32
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x110]
add rax, 0x38
mov rcx, rax
call fcn.14014f6c0
movzx eax, al
test eax, eax
jne 0x14019472b
mov rax, qword [rsp + 0x110]
add rax, 0x18
mov r8, rax
lea rdx, [0x1402be108]
lea rcx, [rsp + 0x90]
call fcn.140178330
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.1400da570
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 1
mov r8d, 4
mov edx, 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rcx, qword [rsp + 0x110]
add rcx, 0x38
mov rdx, rax
call fcn.140165640
lea rcx, [rsp + 0x90]
call fcn.1400da5e0
nop
call fcn.14013cdb0
mov qword [rsp + 0x58], rax
lea rdx, [0x1402be11c]
lea rcx, [rsp + 0x70]
call fcn.1400da6d0
nop
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
call fcn.14017a450
nop
lea rcx, [rsp + 0x70]
call fcn.1400da5e0
nop
call fcn.14013cdb0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax]
call fcn.140147cb0
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x120]
mov r8, qword [rsp + 0x118]
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
call fcn.14017b1d0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x140194856
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_27
rep stosb byte [rdi], al
lea rcx, [rsp + 0xc8]
call fcn.140192b70
nop
call fcn.14013cdb0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax]
call fcn.140147cb0
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x110]
add rax, 0x18
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8, rax
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x68]
call fcn.14017af00
test eax, eax
jl 0x140194848
mov rax, qword [rsp + 0x110]
add rax, 8
lea rdx, [rsp + 0xc8]
mov rcx, rax
call fcn.140192530
nop
lea rcx, [rsp + 0xb0]
call fcn.140192eb0
nop
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1402164b0
add rsp, 0x100
pop rdi
ret
Function at 0x140196140
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x60], 0
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x48], 0
je 0x14019617c
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x48]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x48], 0
mov rax, qword [rsp + 0x40]
add rax, 0x38
mov qword [rsp + 0x28], rax
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.140168350
nop
mov dword [rsp + 0x20], 0
jmp 0x1401961ab
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 4
jge 0x1401961c3
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call fcn.140194a90
nop
jmp 0x1401961a1
mov rax, qword [rsp + 0x40]
add rax, 8
mov rcx, rax
call fcn.140196060
movzx eax, al
test eax, eax
jne 0x140196221
mov rcx, qword [rsp + 0x40]
call fcn.1401953b0
test eax, eax
jge 0x140196221
mov rax, qword [rsp + 0x40]
add rax, 8
mov rcx, rax
call fcn.140195ef0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x50], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x58], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x40], 0
add rsp, 0x38
ret
Function at 0x1401981a0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov rax, qword [0x140320740]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x20], 1
mov edx, Ordinal_27
mov rcx, qword [rsp + 0x98]
call fcn.140197db0
mov rcx, qword [rsp + 0x98]
call fcn.1401974a0
nop
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov edx, 8
lea rcx, [rsp + 0x50]
call fcn.140152530
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14014d700
nop
lea rcx, [rsp + 0x50]
call fcn.14014f6c0
movzx eax, al
test eax, eax
jne 0x14019826c
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x50]
call fcn.14014ef90
nop
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14019825f
and dword [rsp + 0x20], 0xfffffffe
mov rcx, qword [rsp + 0x98]
call fcn.140197570
nop
mov rax, qword [rsp + 0x98]
jmp 0x14019836b
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_32
rep stosb byte [rdi], al
mov dword [rsp + 0x58], Ordinal_33
lea rcx, [rsp + 0x50]
call fcn.14014f6b0
lea rdx, [rsp + 0x58]
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
mov dword [rsp + 0x24], eax
jmp 0x1401982bd
lea rcx, [rsp + 0x50]
call fcn.14014f6b0
lea rdx, [rsp + 0x58]
mov rcx, rax
call sub.KERNEL32.dll_Thread32Next
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140198332
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
call fcn.140147cd0
cmp dword [rsp + 0x64], eax
je 0x1401982dc
jmp 0x1401982a2
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140197050
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x98]
call fcn.140196f60
nop
lea rcx, [rsp + 0x40]
call fcn.140139a30
nop
jmp 0x1401982a2
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x50]
call fcn.14014ef90
nop
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x140198363
and dword [rsp + 0x20], 0xfffffffe
mov rcx, qword [rsp + 0x98]
call fcn.140197570
nop
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1402164b0
add rsp, 0x80
pop rdi
ret
Function at 0x14019c970
Capabilities:
Check for debugger via api
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x140320740]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x38], 0
je 0x14019c9b8
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call fcn.140147cd0
mov rcx, qword [rsp + 0x50]
cmp dword [rcx + 0x38], eax
je 0x14019c9b8
mov rcx, qword [rsp + 0x50]
call fcn.14019c910
nop
jmp 0x14019c9d7
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call fcn.140147cd0
mov rcx, qword [rsp + 0x50]
cmp dword [rcx + 0x38], eax
jne 0x14019c9d7
xor eax, eax
jmp 0x14019ca95
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call fcn.14015da80
mov rcx, rax
call fcn.14013f6e0
cmp dword [rax], 2
jne 0x14019ca04
mov eax, 0xc0000024
jmp 0x14019ca95
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call fcn.140152cc0
lea rdx, [rsp + 0x34]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
nop
cmp dword [rsp + 0x34], 1
jne 0x14019ca2f
mov eax, 0xc0000718
jmp 0x14019ca95
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x40], 0
je 0x14019ca42
mov eax, 0xc0000129
jmp 0x14019ca95
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
lea r8, [0x14019ce90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x40], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x40], 0
je 0x14019ca88
mov dword [rsp + 0x30], 0
jmp 0x14019ca91
call fcn.14013fbf0
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1402164b0
add rsp, 0x48
ret
Function at 0x1401a30a0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140320740]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [0x1403e86f8]
xor eax, eax
mov edx, dword [rsp + 0x20]
lock cmpxchg dword [rcx], edx
test eax, eax
jne 0x1401a315c
call fcn.1401a3560
nop
lea rdx, str.SeDebugPrivilege
lea rcx, [rsp + 0x28]
call fcn.1400da6d0
nop
lea rcx, [rsp + 0x28]
call fcn.1401a3360
nop
lea rcx, [rsp + 0x28]
call fcn.1400da5e0
nop
lea rdx, str.SeLoadDriverPrivilege
lea rcx, [rsp + 0x48]
call fcn.1400da6d0
nop
lea rcx, [rsp + 0x48]
call fcn.1401a3360
nop
lea rcx, [rsp + 0x48]
call fcn.1400da5e0
nop
call fcn.1401a37d0
lea rcx, [rsp + 0x68]
call fcn.1401c91d0
lea rdx, [0x1403e8700]
lea rcx, [rsp + 0x68]
call fcn.1401c9300
call fcn.14018d100
mov rcx, rax
call fcn.14018d0a0
nop
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1402164b0
add rsp, 0x88
ret

Function at 0x1401a3180
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x2c0
mov rax, qword [0x140320740]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401a3336
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rsp + 0x78], 0x208
mov dword [rsp + 0x7c], 1
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x7c]
xor r8d, r8d
lea rdx, str.BuildLabEx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401a332a
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x80]
call fcn.1400da6d0
nop
xor r8d, r8d
mov dx, reloc.WLDAP32.dll_Ordinal_46
lea rcx, [rsp + 0x80]
call fcn.1401a5260
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
inc rax
mov r8, rax
mov dx, reloc.WLDAP32.dll_Ordinal_46
lea rcx, [rsp + 0x80]
call fcn.1401a5260
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x40], rax
jbe 0x1401a331c
cmp qword [rsp + 0x30], 0xffffffffffffffff
je 0x1401a331c
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
dec rax
mov rcx, qword [rsp + 0x30]
inc rcx
mov r9, rax
mov r8, rcx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x80]
call fcn.14015dd20
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.1400da570
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call fcn.140264ec8
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x50]
call fcn.1400da5e0
nop
lea rcx, [rsp + 0x80]
call fcn.1400da5e0
mov eax, dword [rsp + 0x38]
jmp 0x1401a3338
lea rcx, [rsp + 0x80]
call fcn.1400da5e0
nop
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
xor eax, eax
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1402164b0
add rsp, 0x2c0
pop rdi
ret
Function at 0x1401a7590
Capabilities:
Get system information on windows

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rax, qword [0x140320740]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x80]
lea rcx, vtable.blackbone::Native.0
mov qword [rax], rcx
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x80]
add rax, 0x10
mov rcx, rax
call fcn.1401a7790
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_46
rep stosb byte [rdi], al
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x34]
mov dword [rax + 0x18], ecx
movzx eax, byte [rsp + 0x90]
test eax, eax
je 0x1401a7664
mov rax, qword [rsp + 0x80]
mov byte [rax + 0x14], 1
mov rax, qword [rsp + 0x80]
mov byte [rax + 0x15], 1
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x10], 0
mov rax, qword [rsp + 0x80]
mov byte [rax + 0x16], 1
jmp 0x1401a776e
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
lea rdx, [rsp + 0x2c]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [rsp + 0x28], 1
jne 0x1401a76b0
mov dword [rsp + 0x20], 1
jmp 0x1401a76b8
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x80]
movzx ecx, byte [rsp + 0x20]
mov byte [rax + 0x14], cl
cmp dword [rsp + 0x2c], 1
jne 0x1401a76d9
mov dword [rsp + 0x24], 1
jmp 0x1401a76e1
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x80]
movzx ecx, byte [rsp + 0x24]
mov byte [rax + 0x15], cl
cmp dword [rsp + 0x28], 1
jne 0x1401a7710
cmp dword [rsp + 0x2c], 1
jne 0x1401a7710
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x10], 0
jmp 0x1401a776e
cmp dword [rsp + 0x28], 0
jne 0x1401a772f
cmp dword [rsp + 0x2c], 0
jne 0x1401a772f
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x10], 1
jmp 0x1401a776e
cmp dword [rsp + 0x28], 1
jne 0x1401a7753
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x10], 2
mov rax, qword [rsp + 0x80]
mov byte [rax + 0x17], 1
jmp 0x1401a776e
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x10], 3
mov rax, qword [rsp + 0x80]
mov byte [rax + 0x17], 1
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1402164b0
add rsp, 0x70
pop rdi
ret