joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005b640
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rdi
sub rsp, 0xd0
mov rax, qword [0x140211040]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x31]
call fcn.14005b890
mov rcx, rax
call fcn.14005ef60
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x32]
call fcn.14005b930
mov rcx, rax
call fcn.14005ef40
mov qword [rsp + 0x38], rax
mov dword [rsp + 0xb8], 0
mov dword [rsp + 0xbc], 4
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14005b7f7
lea rax, [rsp + 0xbc]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14005b788
mov dword [rsp + 0xb8], 0
mov dword [rsp + 0xbc], 4
mov eax, dword [rsp + 0xbc]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [rsp + 0x30], 0
jmp 0x14005b7e8
cmp dword [rsp + 0xb8], 1
jne 0x14005b7e3
mov dword [rsp + 0xb8], 0
mov dword [rsp + 0xbc], 4
mov eax, dword [rsp + 0xbc]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [rsp + 0x30], 0
jmp 0x14005b7e8
mov byte [rsp + 0x30], 1
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140165580
add rsp, 0xd0
pop rdi
ret
Function at 0x14005bef0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rax, qword [0x140211040]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x14005bf37
xor eax, eax
jmp 0x14005bfb9
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
nop
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x290]
call fcn.14005f050
test eax, eax
jne 0x14005bf6f
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
jmp 0x14005bfb9
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14005bfac
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x290]
call fcn.14005f050
test eax, eax
jne 0x14005bfaa
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
jmp 0x14005bfb9
jmp 0x14005bf6f
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140165580
add rsp, 0x288
ret
Function at 0x14005bfe0
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x110
mov rax, qword [0x140211040]
xor rax, rsp
mov qword [rsp + 0x100], rax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x40]
call fcn.14005c210
mov rcx, rax
call fcn.14005ee60
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.14005f170
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14005bef0
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x88]
call fcn.140038e30
nop
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x41]
call fcn.14005c2e0
mov rcx, rax
call fcn.14005eec0
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x42]
call fcn.14005c2b0
mov rcx, rax
call fcn.14005ee00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
mov r8d, dword [rsp + 0x44]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14005c13a
mov dword [rsp + 0xf8], 0
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
call qword [rsp + 0x50]
test eax, eax
jne 0x14005c17a
lea rax, [rsp + 0x43]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x43]
call fcn.14005c310
mov rcx, rax
call fcn.14005eec0
mov rcx, rax
call fcn.140031800
nop
xor al, al
jmp 0x14005c17c
mov al, 1
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140165580
add rsp, 0x110
pop rdi
ret
Function at 0x14005d310
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
call fcn.1400122c0
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x70], 0x44
mov byte [rsp + 0x71], 0
mov byte [rsp + 0x72], 0x65
mov byte [rsp + 0x73], 0
mov byte [rsp + 0x74], 0x76
mov byte [rsp + 0x75], 0
mov byte [rsp + 0x76], 0x69
mov byte [rsp + 0x77], 0
mov byte [rsp + 0x78], 0x63
mov byte [rsp + 0x79], 0
mov byte [rsp + 0x7a], 0x65
mov byte [rsp + 0x7b], 0
mov byte [rsp + 0x7c], 0x5c
mov byte [rsp + 0x7d], 0
mov byte [rsp + 0x7e], Ordinal_79
mov byte [rsp + 0x7f], 0
mov byte [rsp + 0x80], 0x61
mov byte [rsp + 0x81], 0
mov byte [rsp + 0x82], WSAStartup
mov byte [rsp + 0x83], 0
mov byte [rsp + 0x84], 0
mov byte [rsp + 0x85], 0
lea rax, [rsp + 0x86]
mov r8, rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.140018940
lea rcx, [rsp + 0x38]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x50]
lea rcx, [rsp + 0x38]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rsp + 0x28]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call fcn.14005efc0
nop
mov rax, qword [rsp + 0xb0]
add rax, 0x18
mov rcx, rax
call fcn.14003b050
nop
mov rax, qword [rsp + 0xb0]
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x14007e430
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov eax, dword [rsp + 0x40]
not eax
mov dword [rsp], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
lea rax, [0x1401dd880]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x38]
dec rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x10], 0
je 0x14007e4be
mov eax, dword [rsp]
shr eax, 8
mov ecx, dword [rsp]
and ecx, 0xff
mov rdx, qword [rsp + 8]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x18]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov eax, dword [rsp + 4]
mov dword [rsp], eax
jmp 0x14007e462
mov eax, dword [rsp]
not eax
add rsp, 0x28
ret

Function at 0x14007e4d0
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov eax, dword [rsp + 0x40]
not eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
lea rax, [0x1401dd880]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x38], 0
je 0x14007e5d4
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x38]
dec rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x18], 0
je 0x14007e5cf
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov byte [rsp + 2], al
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
movzx eax, byte [rsp + 2]
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 0x23
jne 0x14007e5a4
cmp qword [rsp + 0x38], 2
jb 0x14007e5a4
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14007e5a4
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14007e5a4
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp + 1]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x14007e517
jmp 0x14007e666
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov byte [rsp + 3], al
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
movzx eax, byte [rsp + 3]
mov byte [rsp], al
movzx eax, byte [rsp]
test eax, eax
je 0x14007e666
movzx eax, byte [rsp]
cmp eax, 0x23
jne 0x14007e63c
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14007e63c
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14007e63c
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x14007e5d4
mov eax, dword [rsp + 4]
not eax
add rsp, 0x28
ret
Function at 0x1400c5810
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
sub rsp, 0x48
call fcn.1400c57d0
mov qword [rsp + 0x28], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
add rax, 0x2c
mov r9d, 4
mov r8, rax
mov edx, 0x20001004
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1400c5872
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x2c], 0
add rsp, 0x48
ret

Function at 0x1400c5c20
Capabilities:
Log keystrokes via polling

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x1400c5c46
mov dword [rsp + 0x20], 1
jmp 0x1400c5c4e
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x1400dd9a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x3d30]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
movss xmm0, dword [rax + 0x3d38]
movss dword [rsp + 0x24], xmm0
mov rax, qword [rsp + 0x50]
movss xmm0, dword [rsp + 0x24]
divss xmm0, dword [rax + 0x14]
movss dword [rsp + 0x3c], xmm0
xorps xmm2, xmm2
xorps xmm1, xmm1
mov rcx, qword [rsp + 0x70]
call fcn.1400133f0
xorps xmm0, xmm0
movss dword [rsp + 0x20], xmm0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x30], rax
jae 0x1400ddaef
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xa
jne 0x1400ddab1
movss xmm1, dword [rsp + 0x20]
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax]
call fcn.1400a7dd0
mov rax, qword [rsp + 0x70]
movss dword [rax], xmm0
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
mov rax, qword [rsp + 0x70]
movss dword [rax + 4], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x20], xmm0
movzx eax, byte [rsp + 0xa0]
test eax, eax
je 0x1400ddaac
jmp 0x1400ddaef
jmp 0x1400dda22
cmp dword [rsp + 0x28], 0xd
jne 0x1400ddabd
jmp 0x1400dda22
movzx edx, word [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.1400d6520
mulss xmm0, dword [rsp + 0x3c]
movss dword [rsp + 0x40], xmm0
movss xmm0, dword [rsp + 0x20]
addss xmm0, dword [rsp + 0x40]
movss dword [rsp + 0x20], xmm0
jmp 0x1400dda22
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [rax]
jbe 0x1400ddb0e
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rsp + 0x20]
movss dword [rax], xmm0
cmp qword [rsp + 0x98], 0
je 0x1400ddb4a
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
movaps xmm2, xmm0
movss xmm1, dword [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.1400133f0
mov rax, qword [rax]
mov rcx, qword [rsp + 0x98]
mov qword [rcx], rax
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [0x1401fd374]
ja 0x1400ddb6e
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
ucomiss xmm0, dword [0x1401fd374]
jp 0x1400ddb88
jne 0x1400ddb88
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
mov rax, qword [rsp + 0x70]
movss dword [rax + 4], xmm0
cmp qword [rsp + 0x90], 0
je 0x1400ddba3
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x1400fdce0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140211040]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rax, [0x140213ce0]
mov qword [rsp + 0x38], rax
mov edx, 8
lea rcx, [rsp + 0x48]
call fcn.140014d20
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call fcn.14003b9a0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call fcn.14003b970
nop
jmp 0x1400fdd3a
lea rcx, [rsp + 0x48]
call fcn.14003b3a0
nop
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14003b3e0
movzx eax, al
test eax, eax
je 0x1400fde46
lea rcx, [rsp + 0x48]
call fcn.14003b3c0
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x1400fde41
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x293
jne 0x1400fdd91
mov dword [rsp + 0x20], 6
cmp dword [rsp + 0x20], 0x292
jne 0x1400fdda3
mov dword [rsp + 0x20], 5
cmp dword [rsp + 0x20], 0x291
jne 0x1400fddb5
mov dword [rsp + 0x20], 4
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 1
test eax, eax
je 0x1400fddfb
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax]
test eax, eax
jne 0x1400fdde1
mov dword [rsp + 0x30], 1
jmp 0x1400fdde9
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
jmp 0x1400fde46
mov dl, 1
mov ecx, dword [rsp + 0x20]
call fcn.140093f90
movzx eax, al
test eax, eax
je 0x1400fde41
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax]
test eax, eax
jne 0x1400fde27
mov dword [rsp + 0x34], 1
jmp 0x1400fde2f
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx ecx, byte [rsp + 0x34]
mov byte [rax], cl
jmp 0x1400fde46
jmp 0x1400fdd2f
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140165580
add rsp, 0x68
ret
Function at 0x1401144b0
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x140211040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x78], 0
mov qword [rsp + 0x68], 0
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x71], 0
mov byte [rsp + 0x72], 0
mov byte [rsp + 0x73], 0
mov byte [rsp + 0x74], 0
mov byte [rsp + 0x75], 5
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, reloc.WLDAP32.dll_Ordinal_32
mov dl, 2
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14011457e
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140114572
mov dword [rsp + 0x78], 0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop
cmp dword [rsp + 0x78], 1
jne 0x14011458f
mov dword [rsp + 0x60], 1
jmp 0x140114597
mov dword [rsp + 0x60], 0
movzx eax, byte [rsp + 0x60]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140165580
add rsp, 0x98
ret

Function at 0x1401149a0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x140211040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r8d, 4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x98]
call fcn.140038de0
mov r8d, 4
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140114a56
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, Ordinal_41
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140114a4a
cmp dword [rsp + 0x4c], 1
jne 0x140114a4a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x140114a63
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140165580
add rsp, 0x88
ret
Function at 0x1401152b0
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov rax, qword [0x140211040]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov r8, qword [rsp + 0xe8]
lea rdx, str.sc_stop
lea rcx, [rsp + 0x48]
call fcn.1401169c0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea r8, [0x1401f8018]
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0xa8]
call fcn.1401168d0
nop
lea rcx, [rsp + 0x48]
call fcn.140038e30
nop
lea rcx, [rsp + 0xa8]
call fcn.140038de0
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wsystem]
nop
mov r8, qword [rsp + 0xe8]
lea rdx, str.sc_delete
lea rcx, [rsp + 0x88]
call fcn.1401169c0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea r8, str.__nul_2_1
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x68]
call fcn.1401168d0
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0xa8]
call fcn.140106530
lea rcx, [rsp + 0x68]
call fcn.140038e30
nop
lea rcx, [rsp + 0x88]
call fcn.140038e30
nop
lea rcx, [rsp + 0xa8]
call fcn.140038de0
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wsystem]
nop
lea rcx, [rsp + 0xa8]
call fcn.140038e30
nop
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140165580
add rsp, 0xd8
ret
Function at 0x1401153f0
Capabilities:
Delete registry key
Unload driver

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x140211040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov dl, 1
mov ecx, 0xa
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x14011548f
lea rdx, str.Failed_to_adjust_privilege:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140060410
mov qword [rsp + 0x38], rax
lea rdx, [0x140114350]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov qword [rsp + 0x40], rax
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_int____ptr64]
mov qword [rsp + 0x48], rax
lea rdx, [fcn.140060800]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor al, al
jmp 0x14011556f
mov r8, qword [rsp + 0xc8]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x80]
call fcn.1401169c0
lea rcx, [rsp + 0x80]
call fcn.140038de0
mov rdx, rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x140115558
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140115558
mov rcx, qword [rsp + 0xc8]
call fcn.140038de0
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov byte [rsp + 0x30], 1
lea rcx, [rsp + 0x80]
call fcn.140038e30
movzx eax, byte [rsp + 0x30]
jmp 0x14011556f
mov byte [rsp + 0x31], 0
lea rcx, [rsp + 0x80]
call fcn.140038e30
movzx eax, byte [rsp + 0x31]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140165580
add rsp, 0xb8
ret