joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140074ad8
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov rdi, r9
mov ebp, edx
mov rsi, rcx
test rcx, rcx
jne 0x140074b14
mov ecx, 0x80070057
mov ebx, ecx
call fcn.140075fa0
jmp 0x140074c85
mov r14, qword [rsp + 0x70]
test r14, r14
je 0x140074b03
lea r8, [rsp + 0x60]
mov edx, 2
mov ecx, ebp
call fcn.14008e650
mov ebx, eax
test eax, eax
jns 0x140074b39
mov ecx, eax
jmp 0x140074b0a
mov eax, 0xaaaaaaab
lea r8, [rsp + 0x60]
mul dword [rsp + 0x60]
mov ecx, edx
mov edx, 4
shr ecx, 1
call fcn.14008e7a4
mov ebx, eax
test eax, eax
js 0x140074b35
mov ecx, dword [rsp + 0x60]
mov edx, 1
test rdi, rdi
jne 0x140074b7f
mov r8, r14
call fcn.14008e650
mov ebx, eax
test eax, eax
js 0x140074b35
mov ebx, r15d
jmp 0x140074c85
lea r8, [rsp + 0x50]
call fcn.14008e650
mov ebx, eax
test eax, eax
js 0x140074b35
mov r8d, dword [rsp + 0x50]
cmp dword [r14], r8d
jae 0x140074ba5
mov ebx, 0x8007007a
mov ecx, ebx
jmp 0x140074b0a
lea r11, [rdi + r8*2]
mov rax, r8
test ebp, ebp
jle 0x140074c79
lea rdx, [rdi + 6]
lea r13, [0x1403fb0e0]
mov al, byte [rsi]
xor r9d, r9d
inc rsi
mov word [rsp + 0x60], r9w
cmp ebp, 1
jbe 0x140074be5
mov r10b, byte [rsi]
inc rsi
cmp ebp, 2
jbe 0x140074bea
mov r9b, byte [rsi]
inc rsi
jmp 0x140074bea
mov r10b, byte [rsp + 0x61]
cmp rdx, r11
jae 0x140074ca5
movzx ecx, al
mov eax, ecx
shl rcx, 4
shr rax, 2
movzx eax, byte [rax + r13]
mov word [rdi], ax
movzx eax, r10b
shr rax, 4
or rax, rcx
and eax, 0x3f
movzx eax, byte [rax + r13]
mov word [rdi + 2], ax
cmp ebp, 1
jbe 0x140074c41
movzx ecx, r9b
shr rcx, 6
movzx eax, r10b
shl rax, 2
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rcx + r13]
jmp 0x140074c46
mov eax, 0x3d
mov word [rdi + 4], ax
cmp ebp, 2
jbe 0x140074c5d
movzx eax, r9b
and eax, 0x3f
movzx ecx, byte [rax + r13]
jmp 0x140074c62
mov ecx, 0x3d
mov word [rdi + 6], cx
add rdx, 8
add rdi, 8
add ebp, 0xfffffffd
test ebp, ebp
jg 0x140074bbf
cmp rdi, r11
jae 0x140074ca5
mov word [rdi], r15w
mov dword [r14], r8d
mov ecx, ebx
call fcn.140083bac
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
mov ecx, 0x8000ffff
jmp 0x140074b08

Function at 0x14007609c
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x20
mov rcx, rdx
xor ebx, ebx
lea rdx, [rax + 0x20]
mov qword [rax + 0x20], rbx
mov dword [rax + 8], ebx
mov rdi, r8
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x1400760e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140075438
mov ecx, eax
mov ebx, eax
call fcn.140075fa0
jmp 0x1400760fd
mov rdx, qword [rsp + 0x48]
lea r8, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1400760c9
mov eax, dword [rsp + 0x30]
mov dword [rdi], eax
mov ecx, ebx
call fcn.140083bac
lea rcx, [rsp + 0x48]
call fcn.140072d40
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140077e30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x1f]
sub rsp, 0xf0
mov rax, qword [0x140422d38]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rax, qword [rbp + 0x7f]
mov rdi, r9
mov qword [rbp - 0x79], rcx
mov r12, r8
lea rcx, [rsp + 0x48]
mov qword [rbp - 0x71], rax
mov rbx, rdx
call fcn.14011bd8c
lea rcx, [rbp - 0x69]
call fcn.14011bd8c
xor r13d, r13d
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x30], r13
call fcn.140106d10
cmp dword [rdi + 0xc], 2
mov dword [rbp - 0x59], 0x4f004f
mov dword [rbp - 0x55], 0x42
mov dword [rbp - 0x51], 0x4f004f
mov dword [rbp - 0x4d], 0x54
mov dword [rbp - 0x39], 0x410056
mov dword [rbp - 0x35], 0x49004c
mov dword [rbp - 0x31], 0x490044
mov dword [rbp - 0x2d], 0x590054
mov word [rbp - 0x29], r13w
mov dword [rbp - 0x49], 0x4f004e
mov dword [rbp - 0x45], 0x45004e
mov word [rbp - 0x41], r13w
mov dword [rbp - 0x21], 0x73006d
mov dword [rbp - 0x1d], 0x740066
mov dword [rbp - 0x19], 0x73003a
mov dword [rbp - 0x15], 0x2f006c
mov dword [rbp - 0x11], 0x690074
mov dword [rbp - 0xd], 0x65006d
mov dword [rbp - 9], 0x2f0072
mov dword [rbp - 5], 0x730025
mov dword [rbp - 1], 0x25002f
mov dword [rbp + 3], 0x2f0073
mov dword [rbp + 7], 0x730025
mov dword [rbp + 0xb], 0x25002f
mov dword [rbp + 0xf], 0x73
je 0x140077f71
cmp dword [rdi + 0xc], 6
je 0x140077f67
cmp dword [rdi + 0xc], 9
je 0x140077f5d
mov ebx, 0x80070057
mov ecx, ebx
call fcn.140075fa0
jmp 0x14007804a
mov rdi, qword [rdi + 0x48]
lea r14, [rbp - 0x39]
jmp 0x140077f79
lea r14, [rbp - 0x59]
lea rdi, [rbp - 0x49]
jmp 0x140077f79
mov rdi, qword [rdi + 0x40]
lea r14, [rbp - 0x51]
mov edx, 0x3b
lea r8, [rsp + 0x48]
mov rcx, rbx
call fcn.140091948
mov ebx, eax
test eax, eax
jns 0x140077f95
mov ecx, eax
jmp 0x140077f53
test rdi, rdi
je 0x14007803d
mov esi, r13d
cmp dword [rsp + 0x4c], r13d
jle 0x14007803d
mov r13, qword [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.140107cb4
mov r9, qword [rbp - 0x79]
lea rdx, [rbp - 0x21]
movsxd rax, esi
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rdi
mov r8, r14
mov rax, qword [r13 + rax*8]
mov qword [rsp + 0x20], rax
call fcn.14007408c
mov ebx, eax
test eax, eax
js 0x140077f91
test r12, r12
je 0x140078000
mov rdx, r12
lea rcx, [rsp + 0x38]
call fcn.140073f9c
mov ebx, eax
test eax, eax
js 0x140077f91
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x30]
call fcn.140076c68
mov ebx, eax
test eax, eax
js 0x140077f91
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x69]
call fcn.140073f90
mov ebx, eax
test eax, eax
js 0x140077f91
inc esi
cmp esi, dword [rsp + 0x4c]
jl 0x140077fb1
mov rcx, qword [rbp - 0x71]
lea rdx, [rbp - 0x69]
call fcn.140072f7c
mov ecx, ebx
call fcn.140083bac
lea rcx, [rsp + 0x38]
call fcn.140072338
lea rcx, [rsp + 0x30]
call fcn.140072cc8
lea rcx, [rbp - 0x69]
call fcn.140071f60
lea rcx, [rsp + 0x48]
call fcn.140071f60
mov eax, ebx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14006f500
add rsp, 0xf0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400790bc
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140422d38]
xor rax, rsp
mov qword [rbp + 0x190], rax
and qword [rsp + 0x68], 0
lea r9, [rsp + 0x68]
mov r8d, 0x2000000
mov qword [rsp + 0x70], rdx
mov rsi, rcx
call fcn.140070ac0
mov dword [rsp + 0x60], eax
mov edi, eax
test eax, eax
js 0x1400791d7
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x64]
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x58], rdi
xor r8d, r8d
mov qword [rsp + 0x50], rdi
xor edx, edx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ecx, eax
lea rdx, [rsp + 0x60]
call fcn.140075580
test eax, eax
jne 0x1400791b2
mov edi, dword [rsp + 0x60]
mov ecx, edi
jmp 0x1400791d9
mov rcx, qword [rsp + 0x68]
lea r8, [rbp - 0x80]
dec eax
mov r9d, 0x105
mov edx, eax
mov dword [rsp + 0x64], eax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ecx, eax
lea rdx, [rsp + 0x60]
call fcn.140075580
test eax, eax
je 0x140079165
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp - 0x80]
call fcn.1400790bc
mov dword [rsp + 0x60], eax
mov edi, eax
test eax, eax
js 0x1400791d7
mov eax, dword [rsp + 0x64]
test eax, eax
jne 0x14007916d
lea rcx, [rsp + 0x68]
call fcn.140073338
mov rdx, qword [rsp + 0x70]
mov rcx, rsi
call fcn.140199bfc
mov edi, eax
test eax, eax
jns 0x1400791de
mov ecx, eax
call fcn.140075fa0
mov ecx, edi
call fcn.140083bac
lea rcx, [rsp + 0x68]
call fcn.140072d18
mov eax, edi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14006f500
lea r11, [rsp + 0x2a0]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140079720
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
sub rsp, 0x20
and qword [rsp + 0x48], 0
lea r9, [rsp + 0x48]
mov r8d, 2
call fcn.140070ac0
mov dword [rsp + 0x40], eax
mov ebx, eax
test eax, eax
jns 0x14007974e
mov ecx, eax
jmp 0x140079776
mov rcx, qword [rsp + 0x48]
lea rdx, str.ReferralId
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
lea rdx, [rsp + 0x40]
call fcn.140075580
mov ebx, dword [rsp + 0x40]
test eax, eax
jne 0x14007977b
mov ecx, ebx
call fcn.140075fa0
mov ecx, ebx
call fcn.140083bac
lea rcx, [rsp + 0x48]
call fcn.140072d18
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140079d08
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140422d38]
xor rax, rsp
mov qword [rsp + 0x240], rax
and qword [rsp + 0x20], 0
mov rsi, rdx
mov ebx, 0x104
lea rdx, [rsp + 0x30]
mov r8d, ebx
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test eax, eax
jne 0x140079d6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140075438
mov ebx, eax
mov ecx, eax
call fcn.140075fa0
jmp 0x140079dc6
cmp edi, ebx
ja 0x140079d85
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140076c68
mov ebx, eax
test eax, eax
jns 0x140079dc6
jmp 0x140079d63
mov rdx, rdi
lea r8, [rsp + 0x20]
call fcn.14008e4dc
mov ebx, eax
test eax, eax
js 0x140079d63
mov rbp, qword [rsp + 0x20]
mov r8d, edi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140079d54
cmp eax, edi
je 0x140079dbd
mov ebx, 0x8007007a
mov ecx, ebx
jmp 0x140079d65
and qword [rsp + 0x20], 0
mov qword [rsi], rbp
mov ecx, ebx
call fcn.140083bac
lea rcx, [rsp + 0x20]
call fcn.140072cc8
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14006f500
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14007aab0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov rax, qword [0x140422d38]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor esi, esi
mov dword [rbp + 0x27], 0x25002f
lea rcx, [rbp - 0x19]
mov qword [rbp - 0x19], rsi
mov rdi, rdx
mov dword [rbp + 0x2b], 0x2e0058
mov dword [rbp + 0x2f], 0x580025
mov dword [rbp + 0x33], 0x25002e
mov dword [rbp + 0x37], 0x2e0058
mov dword [rbp + 0x3b], 0x580025
mov dword [rbp + 0x3f], 0x25002e
mov dword [rbp + 0x43], 0x58
call fcn.14007aed0
mov ebx, eax
test eax, eax
js 0x14007ab6e
mov rcx, qword [rbp - 0x19]
lea rdx, [rbp - 0x11]
call fcn.14007b96c
mov ebx, eax
test eax, eax
js 0x14007ab6e
mov edx, dword [rbp - 5]
mov rcx, rdi
mov r8d, dword [rbp - 9]
movzx eax, dx
shr edx, 0x10
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
lea rdx, str._d._d._d._d
movzx r9d, r8w
shr r8d, 0x10
call fcn.14008e590
mov ebx, eax
test eax, eax
jns 0x14007ab75
mov ecx, eax
call fcn.140075fa0
mov ecx, ebx
call fcn.140083bac
lea rcx, [rbp - 0x19]
call fcn.140072cc8
mov eax, ebx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14006f500
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14007b378
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
push rsi
push rdi
push r14
sub rsp, 0x40
and qword [rax - 0x28], 0
mov r14, rdx
and qword [rax + 0x18], 0
lea rdx, [rax - 0x28]
call fcn.140079d08
mov ebx, eax
test eax, eax
jns 0x14007b3b4
mov ecx, eax
call fcn.140075fa0
jmp 0x14007b42c
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_GetFileVersionInfoSizeExW]
mov esi, eax
test eax, eax
jne 0x14007b3dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140075438
mov ebx, eax
jmp 0x14007b3ab
mov rcx, rsi
call fcn.14006ff20
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400731fc
mov rdi, qword [rsp + 0x70]
test rdi, rdi
jne 0x14007b405
mov ebx, 0x8007000e
mov ecx, ebx
jmp 0x14007b3ad
mov r8d, dword [rsp + 0x78]
mov r9d, esi
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_GetFileVersionInfoExW]
test eax, eax
je 0x14007b3cc
and qword [rsp + 0x70], 0
mov qword [r14], rdi
mov ecx, ebx
call fcn.140083bac
lea rcx, [rsp + 0x70]
call fcn.1400726b8
lea rcx, [rsp + 0x30]
call fcn.140072cc8
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14007f9f0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rbx, rcx
mov rdi, rdx
lea rcx, [rbp - 0x19]
call fcn.1400712dc
lea rax, [0x14001edc0]
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x41], rax
lea rdx, [rbp - 0x49]
mov esi, 3
lea rax, [rbp + 0x67]
mov qword [rbp - 0x39], rax
mov r15d, 0xb9
lea rax, [rbp - 0x19]
mov qword [rbp - 0x49], rsi
xor r9d, r9d
mov qword [rbp - 0x31], rax
lea r14d, [rsi + 0x25]
mov ecx, r15d
mov r8d, r14d
call sub.ntdll.dll_NtQuerySystemInformation
lea rdx, [0x1404291d8]
lea rcx, [0x14040e1a0]
call fcn.14006cf50
mov ebx, dword [rbp + 0x67]
lea rdx, [0x140423050]
lea rcx, [0x14040f540]
call fcn.14006e060
test ebx, ebx
jns 0x14007fa8f
mov ecx, ebx
jmp 0x14007fb86
lea rax, [0x14001fe00]
mov qword [rbp - 0x49], rsi
mov qword [rbp - 0x41], rax
lea rdx, [0x14042528c]
lea rax, [rbp + 0x77]
mov qword [rbp - 0x39], rax
lea rcx, [0x140417338]
lea rax, [rbp - 0x19]
mov qword [rbp - 0x31], rax
call fcn.14006d290
xor r9d, r9d
lea rdx, [rbp - 0x49]
mov r8, r14
mov rcx, r15
call sub.ntdll.dll_NtQuerySystemInformation
mov rcx, qword [rbp + 0x77]
mov rdx, rdi
call fcn.140076c68
mov ebx, eax
test eax, eax
js 0x14007fb84
lea rax, [0x14001fac0]
mov qword [rbp - 0x49], rsi
mov qword [rbp - 0x41], rax
lea rdx, [rbp - 0x49]
lea rax, [rbp + 0x7f]
xor r9d, r9d
mov qword [rbp - 0x39], rax
mov r8, r14
lea rax, [rbp - 0x19]
mov rcx, r15
mov qword [rbp - 0x31], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov rcx, qword [rbp + 0x7f]
lea rdx, [rdi + 8]
call fcn.140076c68
mov ebx, eax
test eax, eax
js 0x14007fb84
lea rax, [0x14001f780]
mov qword [rbp - 0x49], rsi
mov qword [rbp - 0x41], rax
lea rdx, [0x1404257f4]
lea rax, [rbp - 0x21]
lea rcx, [0x14040ab80]
mov qword [rbp - 0x39], rax
call fcn.14006e3c0
lea rax, [rbp - 0x19]
xor r9d, r9d
mov r8, r14
mov qword [rbp - 0x31], rax
lea rdx, [rbp - 0x49]
mov rcx, r15
call sub.ntdll.dll_NtQuerySystemInformation
mov rcx, qword [rbp - 0x21]
lea rdx, [rdi + 0x10]
call fcn.140076c68
mov ebx, eax
test eax, eax
jns 0x14007fb8b
mov ecx, eax
call fcn.140075fa0
mov ecx, ebx
call fcn.140083bac
lea rcx, [rbp - 0x19]
call fcn.140072158
lea rdx, [0x140427ddc]
lea rcx, [0x1404060f8]
call fcn.14006dce0
mov eax, ebx
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400812e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x18], 0
mov rsi, r9
and qword [rbp - 0x10], 0
lea r9, [rbp - 0x18]
xor ebx, ebx
mov rcx, 0xffffffff80000002
mov qword [rbp - 0x20], rbx
call fcn.140070a48
mov dword [rbp + 0x20], eax
mov edi, eax
test eax, eax
jns 0x14008132c
mov ecx, eax
jmp 0x1400813d5
and dword [rbp + 0x30], ebx
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, [0x1403b6da0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
lea rdx, [rbp + 0x20]
call fcn.140075580
test eax, eax
je 0x1400813d0
test rbx, rbx
jne 0x14008139a
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x140081393
mov ecx, eax
call fcn.140073e30
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.1400731fc
mov rbx, qword [rbp - 0x20]
test rbx, rbx
jne 0x14008132f
mov edi, 0x8007000e
jmp 0x1400813d3
mov edi, 0x8000ffff
jmp 0x1400813d3
cmp dword [rbp + 0x40], 4
je 0x1400813a7
mov edi, 0x8007000d
jmp 0x1400813d3
mov edx, dword [rbp + 0x30]
lea r9, [rbp + 0x20]
mov r8, rsi
mov rcx, rbx
call fcn.140076cd4
mov edi, eax
test eax, eax
js 0x140081325
cmp dword [rbp + 0x20], 0
je 0x1400813da
and qword [rbp - 0x20], 0
jmp 0x1400813da
mov edi, dword [rbp + 0x20]
mov ecx, edi
call fcn.140075fa0
mov ecx, edi
call fcn.140083bac
lea rcx, [rbp - 0x20]
call fcn.1401d43ac
lea rcx, [rbp - 0x10]
call fcn.140072d18
lea rcx, [rbp - 0x18]
call fcn.140072d18
mov rbx, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008141c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 8], 0
xor ebx, ebx
and qword [rbp - 0x10], 0
mov r15, r9
mov qword [rbp - 0x18], rbx
mov r12, r8
mov r14, rdx
mov rsi, rcx
cmp rcx, 0xffffffff80000001
jne 0x14008147b
lea rdx, [rbp - 0x10]
call fcn.140070a30
mov edi, eax
test eax, eax
jns 0x140081470
mov ecx, eax
jmp 0x14008153e
mov rax, qword [rbp - 0x10]
test rax, rax
cmovne rsi, rax
lea r9, [rbp - 8]
mov r8d, 1
mov rdx, r14
mov rcx, rsi
call fcn.140070ac0
mov dword [rbp + 0x50], eax
mov edi, eax
test eax, eax
js 0x140081469
and dword [rbp + 0x30], ebx
mov rcx, qword [rbp - 8]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
lea rdx, [rbp + 0x50]
call fcn.140075580
test eax, eax
je 0x140081539
test rbx, rbx
jne 0x140081503
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x1400814fc
mov ecx, eax
call fcn.140073e30
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.1400731fc
mov rbx, qword [rbp - 0x18]
test rbx, rbx
jne 0x14008149c
mov edi, 0x8007000e
jmp 0x14008153c
mov edi, 0x8000ffff
jmp 0x14008153c
cmp dword [rbp - 0x20], 4
je 0x140081510
mov edi, 0x8007000d
jmp 0x14008153c
mov edx, dword [rbp + 0x30]
lea r9, [rbp + 0x50]
mov r8, r15
mov rcx, rbx
call fcn.140076cd4
mov edi, eax
test eax, eax
js 0x140081469
cmp dword [rbp + 0x50], 0
je 0x140081543
and qword [rbp - 0x18], 0
jmp 0x140081543
mov edi, dword [rbp + 0x50]
mov ecx, edi
call fcn.140075fa0
mov ecx, edi
call fcn.140083bac
lea rcx, [rbp - 0x18]
call fcn.1401d43ac
lea rcx, [rbp - 0x10]
call fcn.140072d18
lea rcx, [rbp - 8]
call fcn.140072d18
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400815a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 8], 0
xor ebx, ebx
and qword [rbp - 0x10], 0
mov r15, r9
mov qword [rbp - 0x18], rbx
mov r12, r8
mov r14, rdx
mov rsi, rcx
cmp rcx, 0xffffffff80000001
jne 0x1400815ff
lea rdx, [rbp - 0x10]
call fcn.140070a30
mov edi, eax
test eax, eax
jns 0x1400815f4
mov ecx, eax
jmp 0x1400816c2
mov rax, qword [rbp - 0x10]
test rax, rax
cmovne rsi, rax
lea r9, [rbp - 8]
mov r8d, 1
mov rdx, r14
mov rcx, rsi
call fcn.140070ac0
mov dword [rbp + 0x50], eax
mov edi, eax
test eax, eax
js 0x1400815ed
and dword [rbp + 0x30], ebx
mov rcx, qword [rbp - 8]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
lea rdx, [rbp + 0x50]
call fcn.140075580
test eax, eax
je 0x1400816bd
test rbx, rbx
jne 0x140081687
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x140081680
mov ecx, eax
call fcn.140073e30
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.1400731fc
mov rbx, qword [rbp - 0x18]
test rbx, rbx
jne 0x140081620
mov edi, 0x8007000e
jmp 0x1400816c0
mov edi, 0x8000ffff
jmp 0x1400816c0
cmp dword [rbp - 0x20], 1
je 0x140081694
mov edi, 0x8007000d
jmp 0x1400816c0
mov edx, dword [rbp + 0x30]
lea r9, [rbp + 0x50]
mov r8, r15
mov rcx, rbx
call fcn.140076d08
mov edi, eax
test eax, eax
js 0x1400815ed
cmp dword [rbp + 0x50], 0
je 0x1400816c7
and qword [rbp - 0x18], 0
jmp 0x1400816c7
mov edi, dword [rbp + 0x50]
mov ecx, edi
call fcn.140075fa0
mov ecx, edi
call fcn.140083bac
lea rcx, [rbp - 0x18]
call fcn.1401d43ac
lea rcx, [rbp - 0x10]
call fcn.140072d18
lea rcx, [rbp - 8]
call fcn.140072d18
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret

Function at 0x140081704
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
xor edi, edi
mov rsi, r9
lea r9, [rax - 0x18]
mov qword [rax - 0x18], rdi
mov rcx, 0xffffffff80000003
lea r8d, [rdi + 1]
call fcn.140070ac0
mov dword [rsp + 0x60], eax
mov ebx, eax
test eax, eax
jns 0x14008174c
mov ecx, eax
call fcn.140075fa0
jmp 0x14008179d
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, [0x1403b9100]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140081796
cmp eax, 2
je 0x14008179b
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140075580
mov ebx, dword [rsp + 0x60]
test eax, eax
jne 0x14008179b
mov ecx, ebx
jmp 0x140081745
mov edi, 1
mov dword [rsi], edi
mov ecx, ebx
call fcn.140083bac
lea rcx, [rsp + 0x30]
call fcn.140072d18
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140083018
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140422d38]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov word [rbp - 0xc], 0x500
mov dword [rbp - 0x10], ebx
mov rdi, rdx
mov qword [rbp - 0x18], rbx
test rdx, rdx
jne 0x140083060
mov ecx, 0x80070057
mov ebx, ecx
call fcn.140075fa0
jmp 0x1400830cc
lea rax, [rbp - 0x18]
mov dword [rbp - 0x20], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
mov r8d, 0x20
mov dword [rsp + 0x38], ebx
mov dl, 2
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
jne 0x1400830b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140075438
mov ebx, eax
mov ecx, eax
jmp 0x140083059
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1400830a0
mov eax, dword [rbp - 0x20]
mov dword [rdi], eax
mov ecx, ebx
call fcn.140083bac
lea rcx, [rbp - 0x18]
call fcn.140072d40
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14006f500
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x1400831cc
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x140422d38]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x110
call fcn.140383e9c
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140083231
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140075438
mov ecx, eax
mov ebx, eax
call fcn.140075fa0
jmp 0x140083248
cmp dword [rsp + 0x30], 2
jne 0x140083244
cmp dword [rsp + 0x24], 6
mov eax, 1
jae 0x140083246
mov eax, ebx
mov dword [rdi], eax
mov ecx, ebx
call fcn.140083bac
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14006f500
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret