joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140061c1c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
and qword [rbp + 0x1f], 0
xorps xmm0, xmm0
and qword [rbp + 0x47], 0
mov rbx, rcx
xorps xmm1, xmm1
movdqa xmmword [rbp + 7], xmm0
xor eax, eax
movdqa xmmword [rbp + 0x27], xmm0
lea rcx, [rbp - 0x39]
movdqa xmmword [rbp + 0x37], xmm1
mov qword [rbp - 0x39], rax
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x140061c92
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140061c7d
mov ebx, 0x80004005
jmp 0x140061c8b
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
jmp 0x140061d51
lea rdx, [0x14044ed50]
mov qword [rbp - 0x21], 3
lea rcx, [0x140427418]
call fcn.1400f7eec
lea rax, [0x14001171c]
mov qword [rbp - 1], rbx
mov qword [rbp - 0x19], rax
lea rdx, [rbp - 0x21]
xor r9d, r9d
lea rax, [rbp + 0x77]
mov qword [rbp - 0x11], rax
mov ecx, 0xb9
lea rax, [rbp + 7]
mov qword [rbp - 9], rax
lea r8d, [r9 + 0x28]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x77]
test ebx, ebx
js 0x140061c8b
mov rcx, qword [rbp + 0x37]
mov rdx, rdi
call fcn.140082960
mov ebx, eax
test eax, eax
jns 0x140061d12
lea rdx, [0x140448fc8]
lea rcx, [0x140431fdc]
call fcn.1400f7b8c
jmp 0x140061c8b
mov rcx, qword [rbp + 0x3f]
lea rdx, [rdi + 8]
call fcn.140082960
lea rdx, [0x140450550]
mov ebx, eax
lea rcx, [0x140430a80]
call fcn.1400f823c
test ebx, ebx
js 0x140061c8b
mov rcx, qword [rbp + 0x47]
lea rdx, [rdi + 0x10]
call fcn.140082960
mov ebx, eax
test eax, eax
jns 0x140061d56
mov ecx, eax
call fcn.140082a8c
cmp dword [0x140448890], 5
jbe 0x140061dd7
movabs rdx, 0x400000000000
test qword [0x1404488a0], rdx
je 0x140061dd7
mov rax, qword [0x1404488a8]
and rax, rdx
cmp rax, qword [0x1404488a8]
jne 0x140061dd7
mov rcx, qword [rbp - 0x39]
call fcn.140081938
lea rdx, [0x14044b9c0]
mov qword [rbp - 0x31], rax
lea rcx, [0x14043b4a8]
mov dword [rbp + 0x7f], ebx
mov qword [rbp - 0x29], 0x1000000
call fcn.1400f8590
lea rax, [rbp - 0x31]
mov qword [rsp + 0x30], rax
lea rdx, [0x14043c6dd]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
call fcn.1400014e0
mov ecx, ebx
call fcn.140082b34
lea rdx, [0x14044c034]
lea rcx, [0x14042c994]
call fcn.1400f6768
lea rcx, [rbp + 7]
call fcn.140061870
lea r11, [rsp + 0xd0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400634fc
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x80
and dword [rbp - 0x30], 0
lea rcx, [rbp + 0x38]
and dword [rbp - 0x2c], 0
xor eax, eax
and qword [rbp - 0x28], 0
mov rdi, rdx
mov qword [rbp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x140063580
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x14044bec0]
mov edi, eax
lea rcx, [0x140434734]
call fcn.1400f6e28
test edi, edi
jne 0x14006356b
lea rdx, [0x14044cb80]
lea rcx, [0x14042d398]
call fcn.1400f74d8
mov ebx, 0x80004005
jmp 0x140063579
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
mov ecx, ebx
jmp 0x140063631
test rdi, rdi
jne 0x14006358c
mov ebx, 0x80070057
jmp 0x140063579
lea rax, [0x14000f9dc]
mov qword [rbp - 0x20], 3
lea rdx, [0x14044bac8]
mov qword [rbp - 0x18], rax
lea rcx, [0x14043b560]
call fcn.1400f7830
xor r9d, r9d
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x20]
lea rax, [rbp - 0x30]
mov ecx, 0xb9
mov qword [rbp - 8], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
lea rdx, [0x14044f1c0]
lea rcx, [0x140437298]
call fcn.1400f7184
mov ebx, dword [rbp + 0x20]
test ebx, ebx
js 0x140063579
lea rdx, [0x14044f788]
lea rcx, [0x14042fc28]
call fcn.1400f6ac8
cmp dword [rbp - 0x2c], 0
jg 0x140063614
mov ebx, 0x8000ffff
jmp 0x140063579
mov rax, qword [rbp - 0x28]
mov r8d, 0x7fffffff
mov rdx, rdi
mov rcx, qword [rax]
call fcn.140072514
mov ebx, eax
test eax, eax
jns 0x140063636
mov ecx, eax
call fcn.140082a8c
cmp dword [0x140448890], 5
jbe 0x1400636a4
movabs rdx, 0x400000000000
test qword [0x1404488a0], rdx
je 0x1400636a4
mov rax, qword [0x1404488a8]
and rax, rdx
cmp rax, qword [0x1404488a8]
jne 0x1400636a4
mov rcx, qword [rbp + 0x38]
call fcn.140081938
mov qword [rbp - 0x40], rax
lea rdx, [0x14043c543]
lea rax, [rbp - 0x40]
mov dword [rbp + 0x30], ebx
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x38], 0x1000000
call fcn.1400014e0
mov ecx, ebx
call fcn.140082b34
xor edx, edx
lea rcx, [rbp - 0x30]
call fcn.1400824bc
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x1400636d3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
add rsp, 0x80
pop rdi
pop rbx
pop rbp
ret
Function at 0x140068f04
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
xor ebx, ebx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 8]
mov qword [rbp + 0x48], rbx
call fcn.140073cbc
mov r14, qword [rbp - 0x10]
mov edi, eax
test eax, eax
jns 0x140068f4a
mov ecx, eax
jmp 0x14006908b
mov rsi, qword [rbp - 8]
mov rdx, r14
mov rcx, rsi
call fcn.14006ff30
mov edi, eax
test eax, eax
js 0x140068f43
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x140068fe3
lea rdx, [rbp + 0x48]
call fcn.140082960
mov edi, eax
test eax, eax
jns 0x140068f87
mov ecx, eax
call fcn.140082a8c
mov rbx, qword [rbp + 0x48]
jmp 0x140069090
mov rbx, qword [rbp + 0x48]
lea rdx, [rbp + 0x38]
mov rcx, rbx
call fcn.1400816d0
mov edi, eax
test eax, eax
jns 0x140068fa4
mov ecx, eax
call fcn.140082a8c
mov r15d, dword [rbp + 0x38]
mov ecx, edi
call fcn.140082b34
test edi, edi
jns 0x140068fb7
mov ecx, edi
jmp 0x140068fd2
mov r9, rbx
mov dword [rsp + 0x20], r15d
mov rdx, r14
mov rcx, rsi
call fcn.140076888
mov edi, eax
test eax, eax
jns 0x140068fd7
mov ecx, eax
call fcn.140082a8c
mov ecx, edi
call fcn.140082b34
jmp 0x140069085
and qword [rbp - 0x10], rbx
lea rax, [rbp + 0x48]
and qword [rbp + 0x48], rbx
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r15d, 0x80070000
test eax, eax
jne 0x140069023
mov rsi, qword [rbp + 0x48]
xor edi, edi
and qword [rbp + 0x48], rbx
mov qword [rbp - 0x10], rsi
jmp 0x140069037
movzx edi, ax
or edi, r15d
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.140082a8c
xor esi, esi
mov ecx, edi
call fcn.140082b34
lea rcx, [rbp + 0x48]
call fcn.140072b58
test edi, edi
js 0x14006906e
lea rdx, str.ReferralId
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x140069063
xor edi, edi
jmp 0x140069075
movzx edi, ax
or edi, r15d
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.140082a8c
mov ecx, edi
call fcn.140082b34
lea rcx, [rbp - 0x10]
call fcn.140072b58
test edi, edi
jns 0x140069090
mov ecx, edi
call fcn.140082a8c
mov ecx, edi
call fcn.140082b34
test rbx, rbx
je 0x1400690b8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140082b34
test r14, r14
je 0x1400690d9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r14 - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140082b34
mov rbx, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006f574
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
xor edi, edi
xor ebx, ebx
and qword [rbp - 8], rdi
mov r15, r9
mov qword [rbp - 0x10], rdi
mov r12, r8
mov r14, rdx
mov rsi, rcx
cmp rcx, 0xffffffff80000001
jne 0x14006f5b5
xor ecx, ecx
call fcn.140082b34
and qword [rbp - 0x18], rbx
lea rax, [rbp - 0x18]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14d, 0x80070000
test eax, eax
jne 0x14006f5f1
mov rdi, qword [rbp - 0x18]
and qword [rbp - 0x18], rbx
xor esi, esi
mov qword [rbp - 0x10], rdi
jmp 0x14006f603
movzx esi, ax
or esi, r14d
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.140082a8c
mov ecx, esi
call fcn.140082b34
lea rcx, [rbp - 0x18]
call fcn.140072b58
test esi, esi
js 0x14006f6b9
and dword [rbp + 0x30], ebx
lea rax, [rbp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x20]
mov rdx, r12
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14006f6ae
test rbx, rbx
jne 0x14006f67b
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x14006f674
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14006f61e
mov esi, 0x8007000e
jmp 0x14006f6b9
mov esi, 0x8000ffff
jmp 0x14006f6b9
cmp dword [rbp - 0x20], 1
je 0x14006f688
mov esi, 0x8007000d
jmp 0x14006f6b9
mov edx, dword [rbp + 0x30]
lea r9, [rbp - 0x1c]
mov r8, r15
mov rcx, rbx
call fcn.140081470
mov esi, eax
test eax, eax
jns 0x14006f6a4
mov ecx, eax
jmp 0x14006f6bb
cmp dword [rbp - 0x1c], 0
je 0x14006f6c0
xor ebx, ebx
jmp 0x14006f6c0
movzx esi, ax
or esi, r14d
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.140082a8c
mov ecx, esi
call fcn.140082b34
test rbx, rbx
je 0x14006f6e0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, [rbp - 8]
call fcn.140072b58
lea rcx, [rbp - 0x10]
call fcn.140072b58
lea r11, [rsp + 0x50]
mov eax, esi
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 0x14006f714
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
xor edi, edi
xor ebx, ebx
and qword [rbp - 8], rdi
mov r15, r9
mov qword [rbp - 0x10], rdi
mov r12, r8
mov r14, rdx
mov rsi, rcx
cmp rcx, 0xffffffff80000001
jne 0x14006f755
xor ecx, ecx
call fcn.140082b34
and qword [rbp - 0x18], rbx
lea rax, [rbp - 0x18]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14d, 0x80070000
test eax, eax
jne 0x14006f791
mov rdi, qword [rbp - 0x18]
and qword [rbp - 0x18], rbx
xor esi, esi
mov qword [rbp - 0x10], rdi
jmp 0x14006f7a3
movzx esi, ax
or esi, r14d
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.140082a8c
mov ecx, esi
call fcn.140082b34
lea rcx, [rbp - 0x18]
call fcn.140072b58
test esi, esi
js 0x14006f861
and dword [rbp + 0x30], ebx
lea rax, [rbp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x20]
mov rdx, r12
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14006f856
test rbx, rbx
jne 0x14006f81b
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x14006f814
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14006f7be
mov esi, 0x8007000e
jmp 0x14006f861
mov esi, 0x8000ffff
jmp 0x14006f861
cmp dword [rbp - 0x20], 4
je 0x14006f828
mov esi, 0x8007000d
jmp 0x14006f861
xor edi, edi
cmp dword [rbp + 0x30], 4
je 0x14006f840
mov esi, 0x8007000d
mov ecx, esi
mov edi, esi
call fcn.140082a8c
jmp 0x14006f845
mov eax, dword [rbx]
mov dword [r15], eax
mov ecx, edi
call fcn.140082b34
mov esi, edi
test edi, edi
jns 0x14006f868
mov ecx, edi
jmp 0x14006f863
movzx esi, ax
or esi, r14d
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.140082a8c
mov ecx, esi
call fcn.140082b34
test rbx, rbx
je 0x14006f888
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, [rbp - 8]
call fcn.140072b58
lea rcx, [rbp - 0x10]
call fcn.140072b58
lea r11, [rsp + 0x50]
mov eax, esi
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 0x14006fd9c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x18], r8
mov qword [r11 + 8], rcx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
xor edi, edi
lea rax, [rbp - 0x20]
and qword [rbp - 0x10], rdi
mov r14, r9
xor ebx, ebx
mov qword [rbp - 0x18], rdi
and qword [rbp - 0x20], rbx
xor r8d, r8d
lea r9d, [rdi + 1]
mov qword [r11 - 0x48], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006fdfd
mov rdi, qword [rbp - 0x20]
and qword [rbp - 0x20], rbx
xor esi, esi
mov qword [rbp - 0x18], rdi
jmp 0x14006fe12
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.140082a8c
mov ecx, esi
call fcn.140082b34
lea rcx, [rbp - 0x20]
call fcn.140072b58
test esi, esi
js 0x14006fed7
and dword [rbp + 0x30], ebx
lea rax, [rbp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rdx, str.VLActivationType
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14006fec9
test rbx, rbx
jne 0x14006fe8e
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x14006fe87
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14006fe2d
mov esi, 0x8007000e
jmp 0x14006fed7
mov esi, 0x8000ffff
jmp 0x14006fed7
cmp dword [rbp + 0x20], 4
je 0x14006fe9b
mov esi, 0x8007000d
jmp 0x14006fed7
xor edi, edi
cmp dword [rbp + 0x30], 4
je 0x14006feb3
mov esi, 0x8007000d
mov ecx, esi
mov edi, esi
call fcn.140082a8c
jmp 0x14006feb8
mov eax, dword [rbx]
mov dword [r14], eax
mov ecx, edi
call fcn.140082b34
mov esi, edi
test edi, edi
jns 0x14006fede
mov ecx, edi
jmp 0x14006fed9
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.140082a8c
mov ecx, esi
call fcn.140082b34
test rbx, rbx
je 0x14006fefe
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, [rbp - 0x10]
call fcn.140072b58
lea rcx, [rbp - 0x18]
call fcn.140072b58
lea r11, [rsp + 0x50]
mov eax, esi
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140071830
Capabilities:
Get system information on windows

Disassembly:
mov dword [rsp + 0x10], edx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x70
and qword [rbp - 0x50], 0
mov rbx, r8
and dword [rcx], 0
mov rdi, rcx
cmp qword [rcx + 0x18], 0
jne 0x14007185d
mov ebx, 0xc004f07a
jmp 0x14007191f
xor ecx, ecx
call fcn.140082b34
xor ecx, ecx
call fcn.140082b34
mov eax, 0x40
mov edx, eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, rax
test rax, rax
je 0x14007191a
movups xmm0, xmmword [rbx]
mov dword [rbp + 0x20], 0x10000
mov edx, 4
movups xmm1, xmmword [rbx + 0x10]
mov dword [rax], edx
xor r9d, r9d
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x20]
mov qword [rcx + 8], rax
lea r8d, [rdx + 0x38]
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rcx + 0x20], xmm1
movups xmmword [rcx + 0x30], xmm0
mov rax, qword [rdi + 0x18]
mov qword [rbp - 0x24], rcx
lea rcx, [0x140015b5c]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 0x40], rcx
lea rcx, [rbp + 0x38]
mov qword [rbp - 0x1c], rax
lea rax, [rdi + 4]
mov qword [rbp - 0x38], rcx
lea ecx, [r8 + 0x7d]
mov dword [rbp - 0x28], edx
lea rdx, [rbp - 0x48]
mov qword [rbp - 0x14], rax
mov dword [rbp + 0x28], SafeArrayGetElement
mov qword [rbp - 0x48], 3
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x38]
test ebx, ebx
js 0x14007191f
mov eax, dword [rbp + 0x28]
mov dword [rdi], eax
jmp 0x140071926
mov ebx, 0x8007000e
mov ecx, ebx
call fcn.140082a8c
mov ecx, ebx
call fcn.140082b34
lea rcx, [rbp - 0x50]
call fcn.140072d80
mov eax, ebx
add rsp, 0x70
pop rdi
pop rbx
pop rbp
ret

Function at 0x140072414
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 [0x140448b38]
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 0x14007245c
mov ecx, 0x80070057
mov ebx, ecx
call fcn.140082a8c
jmp 0x1400724d8
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 0x1400724bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400724ad
mov ebx, 0x80004005
jmp 0x1400724bb
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
jmp 0x140072455
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x14007249c
mov ecx, dword [rbp - 0x20]
mov dword [rdi], ecx
mov ecx, ebx
call fcn.140082b34
lea rcx, [rbp - 0x18]
call fcn.140072df8
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140389660
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140076888
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r15d, r15d
mov r14, r9
mov qword [rbp - 8], r15
mov ebx, r15d
mov qword [rbp + 0x30], rbx
mov rsi, rdx
mov qword [rbp - 0x10], r15
mov rdi, rcx
cmp rcx, 0xffffffff80000001
jne 0x1400768cb
xor ecx, ecx
call fcn.140082b34
lea rax, [rbp + 0x40]
mov qword [rbp + 0x40], r15
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140076905
mov rbx, qword [rbp + 0x40]
mov edi, r15d
mov qword [rbp + 0x30], rbx
mov rsi, rbx
mov qword [rbp + 0x40], r15
jmp 0x14007691d
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.140082a8c
mov rsi, r15
mov ecx, edi
call fcn.140082b34
lea rcx, [rbp + 0x40]
call fcn.140072b58
test edi, edi
js 0x14007697b
xor ecx, ecx
call fcn.140082b34
mov eax, dword [rbp + 0x50]
lea rdx, str.ReferralId
mov dword [rsp + 0x28], eax
test rbx, rbx
mov r9d, 1
mov qword [rsp + 0x20], r14
cmove rsi, r15
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14007696d
mov edi, r15d
jmp 0x140076982
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.140082a8c
mov ecx, edi
call fcn.140082b34
lea rcx, [rbp - 0x10]
call fcn.140078854
lea rcx, [rbp - 8]
call fcn.140072b58
lea rcx, [rbp + 0x30]
call fcn.140072b58
mov rbx, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400769c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], r8
mov qword [r11 + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
xor edi, edi
lea rax, [r11 - 0x28]
mov r14, r9
mov qword [r11 - 0x20], rdi
xor r8d, r8d
mov qword [r11 - 0x28], rdi
mov rcx, 0xffffffff80000003
mov qword [r11 - 0x38], rax
lea r9d, [rdi + 1]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140076a17
mov rsi, qword [rsp + 0x30]
mov ebx, edi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rdi
jmp 0x140076a2f
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140082a8c
mov rsi, rdi
mov ecx, ebx
call fcn.140082b34
lea rcx, [rsp + 0x30]
call fcn.140072b58
test ebx, ebx
jns 0x140076a4d
mov ecx, ebx
call fcn.140082a8c
jmp 0x140076a95
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rdx, [0x1403d9660]
mov qword [rsp + 0x20], rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140076a8d
cmp eax, 2
je 0x140076a92
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140076a44
mov edi, 1
mov dword [r14], edi
mov ecx, ebx
call fcn.140082b34
lea rcx, [rsp + 0x38]
call fcn.140072b58
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140076e80
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov rdi, r9
mov ebp, edx
mov r15, rcx
test rcx, rcx
jne 0x140076ebd
mov ecx, 0x80070057
mov ebx, ecx
call fcn.140082a8c
jmp 0x14007706b
mov r12, qword [rsp + 0x70]
test r12, r12
je 0x140076eac
lea esi, [rdx + 2]
mov r14d, 0x80070216
cmp esi, ebp
jb 0x140076ed9
mov ebx, r13d
jmp 0x140076ee4
mov ecx, r14d
mov ebx, r14d
call fcn.140082a8c
mov ecx, ebx
call fcn.140082b34
test ebx, ebx
jns 0x140076ef3
mov ecx, ebx
jmp 0x140076eb3
mov eax, 0xaaaaaaab
mov ebx, r13d
mul esi
shr edx, 1
je 0x140076f22
lea ecx, [rdx*4]
mov eax, ecx
shr eax, 2
cmp eax, edx
je 0x140076f1e
mov ecx, r14d
mov ebx, r14d
call fcn.140082a8c
jmp 0x140076f25
mov esi, ecx
jmp 0x140076f25
mov esi, r13d
mov ecx, ebx
call fcn.140082b34
test ebx, ebx
js 0x140076eef
lea r14d, [rsi + 1]
test rdi, rdi
jne 0x140076f66
cmp r14d, esi
jb 0x140076f47
mov dword [r12], r14d
mov ebx, r13d
jmp 0x140076f53
mov ecx, 0x80070216
mov ebx, ecx
call fcn.140082a8c
mov ecx, ebx
call fcn.140082b34
test ebx, ebx
js 0x140076eef
mov ebx, r13d
jmp 0x14007706b
cmp r14d, esi
jb 0x140076f70
mov ebx, r13d
jmp 0x140076f7c
mov ecx, 0x80070216
mov ebx, ecx
call fcn.140082a8c
mov ecx, ebx
call fcn.140082b34
test ebx, ebx
js 0x140076eef
cmp dword [r12], r14d
jae 0x140076f9b
mov ebx, 0x8007007a
jmp 0x140076eef
lea r9, [rdi + r14*2]
test ebp, ebp
jle 0x14007705e
lea r8, [rdi + 6]
lea rsi, [0x1403da230]
movzx r11d, byte [r15]
mov r10b, r13b
inc r15
mov dl, r13b
cmp ebp, 1
jbe 0x140076fd5
mov r10b, byte [r15]
inc r15
cmp ebp, 2
jbe 0x140076fd5
mov dl, byte [r15]
inc r15
cmp r8, r9
jae 0x140077092
mov rax, r11
movzx ecx, r10b
shr rax, 2
shr rcx, 4
movzx edx, dl
movzx eax, byte [rax + rsi]
mov word [rdi], ax
mov rax, r11
shl rax, 4
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rcx + rsi]
mov word [rdi + 2], ax
cmp ebp, 1
jbe 0x14007702b
mov ecx, edx
movzx eax, r10b
shl rax, 2
shr rcx, 6
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rcx + rsi]
jmp 0x140077030
mov eax, 0x3d
mov word [rdi + 4], ax
cmp ebp, 2
jbe 0x140077042
and edx, 0x3f
movzx eax, byte [rdx + rsi]
jmp 0x140077047
mov eax, 0x3d
mov word [rdi + 6], ax
add r8, 8
add rdi, 8
add ebp, 0xfffffffd
test ebp, ebp
jg 0x140076fb2
cmp rdi, r9
jae 0x140077092
mov word [rdi], r13w
mov dword [r12], r14d
mov ecx, ebx
call fcn.140082b34
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, 0x8000ffff
jmp 0x140076eb1