joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006ac30
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14006ac60
xor eax, eax
jmp 0x14006ad23
mov rbp, rbx
cmp word [rax], si
je 0x14006ac85
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14006ac6c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14006ac68
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14006aab0
movsxd r14, eax
test eax, eax
jne 0x14006acc3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14006ac59
mov rcx, r14
call fcn.14005ad44
mov rdi, rax
test rax, rax
jne 0x14006acdc
xor ecx, ecx
call fcn.14005ad08
jmp 0x14006acb8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14006aab0
test eax, eax
jne 0x14006ad0d
mov rcx, rdi
call fcn.14005ad08
jmp 0x14006ad17
xor ecx, ecx
call fcn.14005ad08
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14006ad40
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14006adc7
mov rsi, rbx
cmp word [rax], bp
je 0x14006ad86
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14006ad70
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14006ad6c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14005ad44
mov rdi, rax
test rax, rax
je 0x14006adb4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14007be40
mov rbp, rdi
xor ecx, ecx
call fcn.14005ad08
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14006f29c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14005e7ec
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14006f33d
cmp ebx, dword [rsp + 0x30]
je 0x14006f336
test esi, esi
je 0x14006f336
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14006f311
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14006f31e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14006f2fb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14006f322
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14006f33f
mov eax, 1
jmp 0x14006f33f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400771b8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400469fc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140077242
cmp byte [rbp - 0x21], r15b
je 0x14007723d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140077278
call fcn.140061fd4
test eax, eax
jne 0x140077264
cmp byte [rbp - 0x21], r15b
je 0x14007725c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140077278
cmp byte [rbp - 0x21], r15b
je 0x140077275
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400677f0
test eax, eax
jne 0x140077318
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400469fc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400772b7
cmp byte [rbp - 0x21], r15b
je 0x1400772ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400772ec
call fcn.140061fd4
test eax, eax
jne 0x1400772d8
cmp byte [rbp - 0x21], r15b
je 0x1400772d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400772ec
cmp byte [rbp - 0x21], r15b
je 0x1400772e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400677f0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140077318
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14007731b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140077329
mov rcx, rdi
call fcn.14005ad08
cmp byte [rbp + 0x3f], r15b
je 0x140077338
mov rcx, qword [rbp + 0x27]
call fcn.14005ad08
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140078fac
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140075d28
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140075d28
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400790fc
cmp rax, 0xffffffffffffffff
je 0x1400790fc
xor edi, edi
test rbp, rbp
jle 0x1400790a7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14006095c
mov rbx, rax
test rax, rax
jne 0x140079034
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14007909d
mov edx, 0x8000
mov ecx, r14d
call fcn.140057500
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400666cc
cmp eax, 0xffffffff
je 0x14007907d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140079044
mov edx, r15d
mov ecx, r14d
call fcn.140057500
jmp 0x14007909d
cmp byte [rsi + 0x38], dil
je 0x140079094
cmp dword [rsi + 0x34], 5
jne 0x140079094
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14007909d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14005ad08
jmp 0x140079110
jns 0x140079110
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140075d28
cmp rax, 0xffffffffffffffff
jne 0x1400790c8
cmp byte [rsi + 0x30], dil
je 0x140079110
mov edi, dword [rsi + 0x2c]
jmp 0x140079110
mov ecx, r14d
call fcn.14006be04
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140079110
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140079110
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140079109
mov eax, dword [rsi + 0x2c]
jmp 0x14007910e
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140075d28
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14007bc20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14007bc48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14007bc48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x10003250
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x260
mov rax, qword [0x10022028]
xor rax, rsp
mov qword [rsp + 0x258], rax
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov byte [rsp + 0x150], 0
lea rax, [rsp + 0x151]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov byte [rsp + 0x50], 0
lea rax, [rsp + 0x51]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
cmp dword [rsp + 0x270], 4
jge 0x100032cc
lea rcx, [0x1001cd38]
call fcn.10001bb0
mov rax, qword [rsp + 0x278]
mov rax, qword [rax + 0x10]
movsx eax, byte [rax]
cmp eax, 0x7b
jne 0x100032f1
lea rax, [0x1001cb9c]
mov qword [rsp + 0x250], rax
jmp 0x10003300
lea rax, [0x1001cd58]
mov qword [rsp + 0x250], rax
mov rax, qword [rsp + 0x278]
mov r9, qword [rax + 0x10]
mov r8, qword [rsp + 0x250]
mov edx, 0x100
lea rcx, [rsp + 0x150]
call fcn.1000ec40
lea r9, [rsp + 0x150]
lea r8, [0x1001cd60]
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.1000ec40
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x10003384
mov edx, dword [rsp + 0x38]
lea rcx, str.ERROR:_Cannot_open_AppID_registry_key.
call fcn.10001eb0
lea rdx, str.LAUNCHING_USER
mov rax, qword [rsp + 0x278]
mov rcx, qword [rax + 0x18]
call fcn.10009f10
test eax, eax
jne 0x100033e3
lea rdx, [0x1001cda8]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 2
jne 0x100033c7
mov dword [rsp + 0x38], 0
jmp 0x100033de
cmp dword [rsp + 0x38], 0
je 0x100033de
mov edx, dword [rsp + 0x38]
lea rcx, str.ERROR:_Cannot_remove_RunAs_registry_value.
call fcn.10001eb0
jmp 0x100034b5
lea rdx, str.INTERACTIVE_USER
mov rax, qword [rsp + 0x278]
mov rcx, qword [rax + 0x18]
call fcn.10009f10
test eax, eax
je 0x10003459
cmp dword [rsp + 0x270], 5
jge 0x10003415
lea rcx, str.Invalid_number_of_arguments.
call fcn.10001bb0
mov rax, qword [rsp + 0x278]
mov r8, qword [rax + 0x20]
mov rax, qword [rsp + 0x278]
mov rdx, qword [rax + 0x18]
mov rax, qword [rsp + 0x278]
mov rcx, qword [rax + 0x10]
call fcn.1000c130
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x10003459
mov edx, dword [rsp + 0x38]
lea rcx, str.ERROR:_Cannot_set_RunAs_password.
call fcn.10001eb0
mov rax, qword [rsp + 0x278]
mov rcx, qword [rax + 0x18]
call fcn.1000ec80
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x278]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.RunAs
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x100034b5
mov edx, dword [rsp + 0x38]
lea rcx, str.ERROR:_Cannot_set_RunAs_registry_value.
call fcn.10001eb0
cmp qword [rsp + 0x30], 0
je 0x100034c8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.1000e5b0
add rsp, 0x260
pop rdi
ret
Function at 0x10009f40
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x260
mov rax, qword [0x10022028]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x240], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x248], 0
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 0x1ff
rep stosb byte [rdi], al
mov dword [rsp + 0x34], 0
lea rax, [rsp + 0x240]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREPoliciesMicrosoftWindows_NTDCOM
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000a084
mov dword [rsp + 0x248], 0x200
lea rax, [rsp + 0x248]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [0x1001cf70]
mov rcx, qword [rsp + 0x240]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 2
je 0x1000a020
lea rcx, str.WARNING:_Machine_wide_Access_Group_Policy_may_override_these_settings___n
call fcn.1000e400
mov dword [rsp + 0x248], 0x200
lea rax, [rsp + 0x248]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [0x1001cfe0]
mov rcx, qword [rsp + 0x240]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 2
je 0x1000a076
lea rcx, str.WARNING:_Machine_wide_Launch_Activate_Group_Policy_may_override_these_settings___n
call fcn.1000e400
mov rcx, qword [rsp + 0x240]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1000e5b0
add rsp, 0x260
pop rdi
ret

Function at 0x1000b3c0
Capabilities:
Set registry value

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 dword [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
lea r9, [0x1001d1c7]
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
je 0x1000b447
jmp 0x1000b486
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x5c], eax
cmp qword [rsp + 0x50], 0
je 0x1000b499
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x5c]
add rsp, 0x68
ret
Function at 0x1000b4b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0x78], 0
jne 0x1000b4fb
mov eax, 0xa0
jmp 0x1000b660
cmp qword [rsp + 0x80], 0
je 0x1000b514
mov rax, qword [rsp + 0x80]
mov dword [rax], 0
mov rax, qword [rsp + 0x78]
mov qword [rax], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1000b568
cmp dword [rsp + 0x40], 2
jne 0x1000b55f
jmp 0x1000b5f0
mov eax, dword [rsp + 0x40]
jmp 0x1000b660
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1000b5a9
cmp dword [rsp + 0x40], 0x7a
je 0x1000b5a9
jmp 0x1000b5f0
mov eax, dword [rsp + 0x30]
mov rcx, rax
call fcn.1000dca0
mov rcx, qword [rsp + 0x78]
mov qword [rcx], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1000b649
mov rax, qword [rsp + 0x78]
cmp qword [rax], 0
je 0x1000b60f
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax]
call fcn.1000dc60
mov rax, qword [rsp + 0x78]
mov qword [rax], 0
cmp qword [rsp + 0x80], 0
je 0x1000b649
mov rcx, qword [rsp + 0x78]
call fcn.1000a7a0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1000b649
mov rax, qword [rsp + 0x80]
mov dword [rax], 1
cmp qword [rsp + 0x38], 0
je 0x1000b65c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x1000c3d0
Capabilities:
Manipulate user privileges

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x10022028]
xor rax, rsp
mov qword [rsp + 0x298], rax
mov qword [rsp + 0x280], 0
mov dword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov qword [rsp + 0x30], 0
mov word [rsp + 0x288], 0
lea rax, [rsp + 0x28a]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov word [rsp + 0x80], 0
lea rax, [rsp + 0x82]
mov rdi, rax
xor eax, eax
mov ecx, 0x1fe
rep stosb byte [rdi], al
mov dword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x2b8]
call fcn.1000ec80
add rax, 1
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x2b8]
mov r8d, 0x100
lea rdx, [rsp + 0x80]
xor ecx, ecx
call fcn.1000fd60
lea r9, [rsp + 0x280]
mov r8d, 0x810
lea rdx, [rsp + 0x38]
xor ecx, ecx
call sub.ADVAPI32.dll_LsaOpenPolicy
mov dword [rsp + 0x68], eax
mov ecx, dword [rsp + 0x68]
call sub.ADVAPI32.dll_LsaNtStatusToWinError
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1000c4d5
jmp 0x1000c563
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x2b0]
call fcn.1000cd00
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1000c4f6
jmp 0x1000c563
lea rcx, [rsp + 0x80]
call fcn.1000f7d0
shl rax, 1
mov word [rsp + 0x288], ax
movzx eax, word [rsp + 0x288]
add rax, 2
mov word [rsp + 0x28a], ax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x290], rax
mov r9d, 1
lea r8, [rsp + 0x288]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x280]
call sub.ADVAPI32.dll_LsaAddAccountRights
mov dword [rsp + 0x68], eax
mov ecx, dword [rsp + 0x68]
call sub.ADVAPI32.dll_LsaNtStatusToWinError
mov dword [rsp + 0x68], eax
cmp qword [rsp + 0x30], 0
je 0x1000c575
mov rcx, qword [rsp + 0x30]
call fcn.1000dc60
cmp qword [rsp + 0x280], 0
je 0x1000c58d
mov rcx, qword [rsp + 0x280]
call sub.ADVAPI32.dll_LsaClose
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x298]
xor rcx, rsp
call fcn.1000e5b0
add rsp, 0x2a0
pop rdi
ret
Function at 0x1000cd00
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov rax, qword [0x10022028]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x154], 0
mov byte [rsp + 0x50], 0
lea rax, [rsp + 0x51]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov dword [rsp + 0x158], 0
mov dword [rsp + 0x150], 0
mov dword [rsp + 0x154], 0
mov dword [rsp + 0x158], 0xff
mov rdx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x180]
call fcn.1000c990
test eax, eax
je 0x1000cd91
xor eax, eax
jmp 0x1000cea2
lea rax, [rsp + 0x15c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x158]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x154]
mov rax, qword [rsp + 0x188]
mov r8, qword [rax]
mov rdx, qword [rsp + 0x180]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x150], eax
cmp dword [rsp + 0x150], 0x7a
je 0x1000cdf9
jmp 0x1000ce9b
mov dword [rsp + 0x150], 0
mov eax, dword [rsp + 0x154]
mov rcx, rax
call fcn.1000dca0
mov rcx, qword [rsp + 0x188]
mov qword [rcx], rax
cmp qword [rsp + 0x188], 0
jne 0x1000ce38
mov dword [rsp + 0x150], 0xe
jmp 0x1000ce9b
mov dword [rsp + 0x158], 0xff
lea rax, [rsp + 0x15c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x158]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x154]
mov rax, qword [rsp + 0x188]
mov r8, qword [rax]
mov rdx, qword [rsp + 0x180]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x1000ce9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x150], eax
mov eax, dword [rsp + 0x150]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1000e5b0
add rsp, 0x170
pop rdi
ret

Function at 0x1000cf60
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0xe0
mov rax, qword [0x10022028]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x30], 0x9c
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 0x98
rep stosb byte [rdi], al
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000d00e
cmp dword [rsp + 0x34], 5
jne 0x1000cfff
cmp dword [rsp + 0x38], 1
jae 0x1000cfc3
mov dword [rsp + 0x20], 1
jmp 0x1000cffd
cmp dword [rsp + 0x38], 1
jne 0x1000cfe1
movzx eax, word [rsp + 0xc4]
cmp eax, 2
jge 0x1000cfdf
mov dword [rsp + 0x20], 1
jmp 0x1000cffd
cmp dword [rsp + 0x38], 2
jne 0x1000cffd
movzx eax, word [rsp + 0xc4]
cmp eax, 1
jge 0x1000cffd
mov dword [rsp + 0x20], 1
jmp 0x1000d00e
cmp dword [rsp + 0x34], 5
jae 0x1000d00e
mov dword [rsp + 0x20], 1
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1000e5b0
add rsp, 0xe0
pop rdi
ret
Function at 0x100131b7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x10022028]
jne 0x1000e5ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1000e5c6
repz ret
ror rcx, 0x10
jmp 0x10013110
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x10023c00]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x10023cf8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10013195
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x10023c00]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x100131b7
mov rax, qword [rsp + 0x88]
mov qword [0x10023cf8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x10023c98], rax
mov rax, qword [0x10023cf8]
mov qword [0x10023b70], rax
mov rax, qword [rsp + 0x90]
mov qword [0x10023c80], rax
mov dword [0x10023b60], 0xc0000409
mov dword [0x10023b64], 1
mov rax, qword [0x10022028]
mov qword [rsp + 0x68], rax
mov rax, qword [0x10022030]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x10023bf8], eax
mov ecx, 1
call fcn.10016880
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1001e3e0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x10023bf8], 0
jne 0x1001323e
mov ecx, 1
call fcn.10016880
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret