joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001030
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
movdqu xmmword [rbp - 0x10], xmm0
movdqu xmmword [rbp - 0x20], xmm1
push rcx
push rsi
push rdi
mov rsi, rcx
movzx rcx, byte [rsi + 0x1f0]
add rsi, 0
mov rdi, rdx
movdqu xmm0, xmmword [rsi]
movdqu xmm1, xmmword [rdi]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0x10]
aesenc xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0x20]
aesenc xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0x30]
aesenc xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0x40]
aesenc xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0x50]
aesenc xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0x60]
aesenc xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0x70]
aesenc xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0x80]
aesenc xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0x90]
aesenc xmm1, xmm0
cmp rcx, 0xa
je 0x180001103
movdqu xmm0, xmmword [rsi + 0xa0]
aesenc xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0xb0]
aesenc xmm1, xmm0
cmp rcx, 0xc
je 0x180001103
movdqu xmm0, xmmword [rsi + 0xc0]
aesenc xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0xd0]
aesenc xmm1, xmm0
shl rcx, 4
movdqu xmm0, xmmword [rsi + rcx]
aesenclast xmm1, xmm0
mov rdi, r8
movdqu xmmword [rdi], xmm1
pop rdi
pop rsi
pop rcx
movdqu xmm0, xmmword [rbp - 0x10]
movdqu xmm1, xmmword [rbp - 0x20]
mov rsp, rbp
pop rbp
ret

Function at 0x180001130
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
movdqu xmmword [rbp - 0x10], xmm0
movdqu xmmword [rbp - 0x20], xmm1
push rcx
push rsi
push rdi
mov rsi, rcx
movzx rcx, byte [rsi + 0x1f0]
add rsi, 0xf0
mov rdi, rdx
movdqu xmm0, xmmword [rsi]
movdqu xmm1, xmmword [rdi]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0x10]
aesdec xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0x20]
aesdec xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0x30]
aesdec xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0x40]
aesdec xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0x50]
aesdec xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0x60]
aesdec xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0x70]
aesdec xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0x80]
aesdec xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0x90]
aesdec xmm1, xmm0
cmp rcx, 0xa
je 0x180001206
movdqu xmm0, xmmword [rsi + 0xa0]
aesdec xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0xb0]
aesdec xmm1, xmm0
cmp rcx, 0xc
je 0x180001206
movdqu xmm0, xmmword [rsi + 0xc0]
aesdec xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0xd0]
aesdec xmm1, xmm0
shl rcx, 4
movdqu xmm0, xmmword [rsi + rcx]
aesdeclast xmm1, xmm0
mov rdi, r8
movdqu xmmword [rdi], xmm1
pop rdi
pop rsi
pop rcx
movdqu xmm0, xmmword [rbp - 0x10]
movdqu xmm1, xmmword [rbp - 0x20]
mov rsp, rbp
pop rbp
ret
Function at 0x180002400
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.180001720
mov r11d, eax
lea edx, [rax*4]
movsxd r9, edx
test edx, edx
jle 0x18000247d
lea r8, [rbx + 8]
xor r10d, r10d
lea r8, [r8 + r9*4]
lea rcx, [rbx + 8]
nop
mov edx, dword [rcx - 8]
add r10, 4
mov eax, dword [r8 - 8]
lea r8, [r8 - 0x10]
mov dword [rcx - 8], eax
lea rcx, [rcx + 0x10]
mov eax, dword [r8 + 0xc]
sub r9, 4
mov dword [r8 + 8], edx
mov edx, dword [rcx - 0x14]
mov dword [rcx - 0x14], eax
mov eax, dword [r8 + 0x10]
mov dword [r8 + 0xc], edx
mov edx, dword [rcx - 0x10]
mov dword [rcx - 0x10], eax
mov eax, dword [r8 + 0x14]
mov dword [r8 + 0x10], edx
mov edx, dword [rcx - 0xc]
mov dword [rcx - 0xc], eax
mov dword [r8 + 0x14], edx
cmp r10, r9
jl 0x180002430
cmp r11d, 1
jle 0x180002637
mov qword [rsp + 0x30], rdi
lea r10d, [r11 - 1]
lea rdi, [0x180000000]
add rbx, 4
nop dword [rax + rax]
mov r9d, dword [rbx + 0x10]
lea rbx, [rbx + 0x10]
mov r8d, dword [rbx - 4]
movzx eax, byte [rbx - 2]
movzx ecx, byte [rdi + rax*4 + 0x14c2c0]
mov eax, r8d
shr rax, 0x18
mov edx, dword [rdi + rcx*4 + 0x14b6c0]
movzx eax, byte [rdi + rax*4 + 0x14c2c0]
xor edx, dword [rdi + rax*4 + 0x14b2c0]
movzx eax, byte [rbx - 3]
movzx ecx, byte [rdi + rax*4 + 0x14c2c0]
movzx eax, r8b
xor edx, dword [rdi + rcx*4 + 0x14bac0]
movzx ecx, byte [rdi + rax*4 + 0x14c2c0]
mov eax, r9d
shr eax, 0x10
xor edx, dword [rdi + rcx*4 + 0x14bec0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx - 4], edx
movzx edx, byte [rdi + rcx*4 + 0x14c2c0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x14b6c0]
movzx eax, byte [rdi + rcx*4 + 0x14c2c0]
xor r8d, dword [rdi + rax*4 + 0x14bac0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x14c2c0]
movzx eax, r9b
mov r9d, dword [rbx + 4]
xor r8d, dword [rdi + rcx*4 + 0x14b2c0]
movzx ecx, byte [rdi + rax*4 + 0x14c2c0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x14bec0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx], r8d
movzx edx, byte [rdi + rcx*4 + 0x14c2c0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x14b6c0]
movzx eax, byte [rdi + rcx*4 + 0x14c2c0]
xor r8d, dword [rdi + rax*4 + 0x14bac0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x14c2c0]
movzx eax, r9b
mov r9d, dword [rbx + 8]
xor r8d, dword [rdi + rcx*4 + 0x14b2c0]
movzx ecx, byte [rdi + rax*4 + 0x14c2c0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x14bec0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx + 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x14c2c0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x14b6c0]
movzx eax, byte [rdi + rcx*4 + 0x14c2c0]
xor r8d, dword [rdi + rax*4 + 0x14bac0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x14c2c0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x14b2c0]
movzx ecx, byte [rdi + rax*4 + 0x14c2c0]
xor r8d, dword [rdi + rcx*4 + 0x14bec0]
mov dword [rbx + 8], r8d
sub r10, 1
jne 0x1800024a0
mov rdi, qword [rsp + 0x30]
mov eax, r11d
add rsp, 0x20
pop rbx
ret
Function at 0x180004950
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
mov dword [rsp + 0x28], 0x200
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1800049c3
lea r9, [rsp + 0x20]
mov r8d, 1
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_NetUserGetInfo]
test eax, eax
jne 0x1800049c3
mov rcx, qword [rsp + 0x20]
xor edx, edx
cmp dword [rcx + 0x14], 2
sete dl
mov dword [rbx], edx
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov eax, 1
jmp 0x1800049c5
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x240
pop rbx
ret

Function at 0x1800049e0
Capabilities:
Get user security identifier

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x70
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x40]
mov dword [rdx], ebx
mov rsi, rdx
mov qword [rsp + 0x28], rax
mov r15, rcx
mov qword [rsp + 0x20], rbx
mov rdx, rcx
mov dword [rsp + 0x44], ebx
xor r8d, r8d
mov dword [rsp + 0x40], ebx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x180004b24
mov ecx, eax
lea rdx, [0x1801423a8]
call fcn.18010fb14
mov rdi, rax
test rax, rax
je 0x180004a90
mov ecx, dword [rsp + 0x40]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
lea rdx, [0x1801423a8]
cmovo rax, rcx
mov rcx, rax
call fcn.18010fb14
mov rbp, rax
test rax, rax
jne 0x180004a97
mov rcx, rdi
call sym.SafeBase64.dll_SafeBase_free
xor eax, eax
jmp 0x180004b68
lea rax, [rsp + 0x58]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x40]
mov rdx, r15
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x180004b14
mov rcx, rdi
mov qword [rsp + 0xb0], r14
call qword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180004b0c
mov ecx, dword [r14]
mov dword [rsp + 0x50], ebx
mov word [rsp + 0x54], 0x500
sub ecx, ebx
jne 0x180004b03
movzx ecx, word [r14 + 4]
movzx eax, word [rsp + 0x54]
sub ecx, eax
mov eax, ebx
test ecx, ecx
sete al
mov dword [rsi], eax
mov r14, qword [rsp + 0xb0]
mov rcx, rdi
call sym.SafeBase64.dll_SafeBase_free
mov rcx, rbp
call sym.SafeBase64.dll_SafeBase_free
cmp dword [rsi], ebx
je 0x180004b2f
mov eax, 1
jmp 0x180004b68
lea r9, [rsp + 0x48]
mov r8d, 1
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_NetUserGetInfo]
mov edi, eax
test eax, eax
jne 0x180004b61
mov rcx, qword [rsp + 0x48]
mov edx, ebx
cmp dword [rcx + 0x14], 2
sete dl
mov dword [rsi], edx
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x70
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180004b80
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x490
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x480], rax
xor ebx, ebx
mov dword [rsp + 0x70], 0
mov dword [rcx], ebx
mov rsi, rcx
mov word [rsp + 0x74], 0x500
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x60]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180004cb6
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x78]
mov r9d, 0x400
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x80]
mov qword [rsp + 0x4a8], rdi
lea edx, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rsp + 0x60]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
mov rdi, qword [rsp + 0x4a8]
je 0x180004cb6
lea rax, [rsp + 0x68]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x48], ebx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x40], ebx
mov dl, 2
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x180004cb6
cmp dword [rsp + 0x80], ebx
jbe 0x180004ca4
mov rcx, qword [rsp + 0x68]
mov edx, ebx
add rdx, rdx
mov rdx, qword [rsp + rdx*8 + 0x88]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x180004c9e
inc ebx
cmp ebx, dword [rsp + 0x80]
jb 0x180004c65
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, 1
jmp 0x180004cb8
mov dword [rsi], 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, 1
jmp 0x180004cb8
xor eax, eax
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18010faf0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop rsi
ret

Function at 0x180004e80
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor ebx, ebx
mov word [rsp + 0x6c], 0x500
lea rax, [rsp + 0x60]
mov dword [rcx], ebx
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov dword [rsp + 0x48], ebx
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov r9d, 0x220
mov dword [rsp + 0x30], ebx
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x180004f1c
mov rdx, qword [rsp + 0x60]
mov r8, rdi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
mov ecx, 1
cmovne ebx, ecx
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180004f1a
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18010faf0
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
Function at 0x180004f40
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x170
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor ebx, ebx
mov dword [rsp + 0x40], 0x114
mov dword [rcx], ebx
mov rdi, rcx
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov r8d, 0x110
call fcn.180113150
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180004ff5
cmp dword [rsp + 0x44], 6
jb 0x180004ff5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x30]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180004ff5
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
lea r9d, [rbx + 4]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
lea edx, [rbx + 0x14]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x180004fe6
mov eax, dword [rsp + 0x38]
mov ebx, 1
mov dword [rdi], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x180004ff7
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.18010faf0
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rdi
ret

Function at 0x180005020
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor edi, edi
mov dword [rsp + 0x40], 0x114
mov dword [rdx], edi
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x38], rdi
xor edx, edx
mov dword [rsp + 0x30], edi
mov r8d, 0x110
lea rcx, [rsp + 0x44]
call fcn.180113150
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1800050d4
cmp dword [rsp + 0x44], 6
jb 0x1800050d4
lea r8, [rsp + 0x38]
mov rcx, rbx
lea edx, [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1800050d4
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [rdi + 0x19]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1800050fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1800050fb
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.18010faf0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov edx, dword [rsp + 0x30]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x38]
mov rbx, rax
test rax, rax
je 0x1800050ce
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r8, rbx
mov qword [rsp + 0x20], rax
mov edx, 0x19
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x18000514c
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov edi, 1
mov ecx, dword [rax]
mov dword [rsi], ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
jmp 0x1800050d6
Function at 0x180005170
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp sym.SafeBase64.dll_GetProcessIntegrityLevel

Function at 0x180005210
Capabilities:
Create process on windows
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x310
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x300], rax
xor ebx, ebx
mov word [rsp + 0xe4], 0x500
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov dword [rsp + 0x48], ebx
lea rcx, [rsp + 0xe0]
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov r9d, 0x220
mov dword [rsp + 0x30], ebx
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0xe8], ebx
mov dword [rsp + 0xe0], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea esi, [rbx + 1]
test eax, eax
je 0x180005356
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0xe8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x60]
test eax, eax
cmovne ebx, esi
test rcx, rcx
je 0x1800052c7
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test ebx, ebx
je 0x180005356
cmp dword [rsp + 0xe8], 0
jne 0x180005356
mov r8d, 0x104
lea rdx, [rsp + 0xf0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x180005352
xor edx, edx
mov dword [rsp + 0x70], 0x70
lea rcx, [rsp + 0x74]
lea r8d, [rdx + 0x6c]
call fcn.180113150
lea rax, str.runas
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x70]
lea rax, [rsp + 0xf0]
mov dword [rsp + 0xa0], esi
mov qword [rsp + 0x88], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x180005356
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x180005356
xor eax, eax
jmp 0x180005358
mov eax, esi
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.18010faf0
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x180005380
Capabilities:
Create process on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rdx
mov rsi, r8
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x70]
call fcn.180113150
lea rax, str.runas
mov dword [rsp + 0x20], 0x70
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x24], 0x500
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x50], 1
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0xa0
pop rdi
pop rsi
pop rbx
ret
Function at 0x180005720
Capabilities:
Compare security identifiers

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x90
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], rdi
mov rax, qword [0x180185680]
xor rax, rbp
mov qword [rbp + 0x20], rax
mov r15d, ecx
mov dword [rbp + 0x18], 0
mov word [rbp + 0x1c], 0x500
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor r8d, r8d
lea r9, [rbp + 8]
mov rcx, rax
lea edx, [r8 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x1800057ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x1800058e5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 8]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1800058e5
mov rcx, qword [rbp + 8]
lea rax, [rbp]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r9 + 2]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1800058e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1800058e5
mov r9d, dword [rbp]
lea rcx, [r9 + 0xf]
cmp rcx, r9
ja 0x1800057f6
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.180110950
sub rsp, rcx
lea rsi, [rsp + 0x60]
test rsi, rsi
je 0x1800058e5
mov rcx, qword [rbp + 8]
lea rax, [rbp]
mov r8, rsi
mov qword [rsp + 0x20], rax
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1800058e5
xor edi, edi
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x18]
mov dword [rsp + 0x48], edi
mov r9d, 0x220
mov dword [rsp + 0x40], edi
mov dl, 2
mov dword [rsp + 0x38], edi
lea r8d, [rdi + 0x20]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1800058e5
mov ebx, edi
cmp dword [rsi], edi
jbe 0x1800058d7
nop dword [rax]
mov rdx, qword [rbp + 0x10]
mov ecx, ebx
add rcx, rcx
mov r14d, ebx
mov rcx, qword [rsi + rcx*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1800058af
inc ebx
cmp ebx, dword [rsi]
jb 0x180005880
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, edi
jmp 0x1800058e7
test r15d, r15d
je 0x1800058d2
mov rcx, qword [rbp + 0x10]
lea rax, [r14 + 1]
add rax, rax
mov edi, dword [rsi + rax*8]
shr edi, 2
and edi, 1
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, edi
jmp 0x1800058e7
mov edi, 1
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, edi
jmp 0x1800058e7
xor eax, eax
mov rcx, qword [rbp + 0x20]
xor rcx, rbp
call fcn.18010faf0
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
mov rdi, qword [rbp + 0x60]
lea rsp, [rbp + 0x30]
pop r15
pop r14
pop rbp
ret
Function at 0x180005910
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor edi, edi
mov dword [rsp + 0x40], 0x200
mov rbx, rcx
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 1]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800059a1
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.CurrentDomain
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r9, [rsp + 0x38]
mov r8d, 1
mov rdx, rbx
lea rcx, [rsp + 0x50]
call qword [sym.imp.NETAPI32.dll_NetUserGetInfo]
test eax, eax
jne 0x1800059d3
mov rcx, qword [rsp + 0x38]
mov ebx, dword [rcx + 0x14]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp ebx, 2
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.18010faf0
mov rbx, qword [rsp + 0x478]
add rsp, 0x460
pop rdi
ret

Function at 0x180005c00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [0x180196890]
mov ebx, 1
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x3c], 4
test eax, eax
jg 0x180005c3f
call fcn.1800ebe30
test eax, eax
je 0x180005c58
mov eax, dword [0x180196890]
shl eax, 8
or eax, dword [0x180196894]
shl eax, 8
or eax, dword [0x180196888]
cmp eax, 0x60000
jge 0x180005c6d
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x50
pop rbx
ret
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180005cdc
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rdx, str.EnableLUA
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x38]
test eax, eax
cmovne ecx, ebx
mov dword [rsp + 0x38], ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [rsp + 0x38], eax
setne al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x50
pop rbx
ret