joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005ff74
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], r9
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 8], 0
lea rax, [rbp - 8]
xor esi, esi
mov qword [r11 - 0x38], rax
lea r9, [rbp - 0x10]
mov qword [rbp + 0x38], rsi
call fcn.140069934
mov r14, qword [rbp - 8]
mov edi, eax
test eax, eax
jns 0x14005ffbb
mov ecx, eax
jmp 0x1400600ff
mov rcx, qword [rbp - 0x10]
mov rdx, r14
call fcn.140067a38
mov edi, eax
test eax, eax
js 0x14005ffb4
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140060050
lea rdx, [rbp + 0x38]
call fcn.1400781e4
mov edi, eax
test eax, eax
jns 0x14005fff5
mov ecx, eax
call fcn.140078308
mov rsi, qword [rbp + 0x38]
jmp 0x140060104
mov rsi, qword [rbp + 0x38]
lea rdx, [rbp + 0x28]
mov rcx, rsi
call fcn.140076fc4
mov edi, eax
test eax, eax
jns 0x140060012
mov ecx, eax
call fcn.140078308
mov ebx, dword [rbp + 0x28]
mov ecx, edi
call fcn.140078324
test edi, edi
jns 0x140060024
mov ecx, edi
jmp 0x14006003f
mov rcx, qword [rbp - 0x10]
mov r9, rsi
mov rdx, r14
mov dword [rsp + 0x20], ebx
call fcn.14006d858
mov edi, eax
test eax, eax
jns 0x140060044
mov ecx, eax
call fcn.140078308
mov ecx, edi
call fcn.140078324
jmp 0x1400600f9
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x20], rax
and qword [rbp + 0x38], rbx
xor r8d, r8d
mov rdx, r14
mov qword [rbp - 8], rbx
lea r9d, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400600b5
xor edi, edi
mov rbx, qword [rbp + 0x38]
and qword [rbp + 0x38], rsi
mov qword [rbp - 8], rbx
mov ecx, edi
call fcn.140078324
lea rcx, [rbp + 0x38]
call fcn.140068d58
test edi, edi
js 0x1400600e2
lea rdx, str.ReferralId
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1400600d0
xor edi, edi
jmp 0x1400600e9
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
je 0x14006007d
mov ecx, edi
call fcn.140078308
jmp 0x140060089
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
je 0x1400600e9
mov ecx, edi
call fcn.140078308
mov ecx, edi
call fcn.140078324
lea rcx, [rbp - 8]
call fcn.140068d58
test edi, edi
jns 0x140060104
mov ecx, edi
call fcn.140078308
mov ecx, edi
call fcn.140078324
test rsi, rsi
je 0x14006012c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rsi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140078324
test r14, r14
je 0x14006014d
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.140078324
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x140065270
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
mov rdi, r8
and dword [rcx], ebx
mov rsi, rcx
cmp qword [rcx + 0x18], rbx
jne 0x1400652a4
mov edi, 0xc004f07a
mov ecx, edi
call fcn.140078308
jmp 0x140065360
xor ecx, ecx
call fcn.140078324
xor ecx, ecx
call fcn.140078324
mov edx, 0x40
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x1400652ce
mov edi, 0x8007000e
jmp 0x140065298
movups xmm0, xmmword [rdi]
mov dword [rbp + 0x20], 0x10000
mov edx, 4
movups xmm1, xmmword [rdi + 0x10]
mov dword [rax], edx
lea rcx, [0x140020fa0]
lea rax, [rbp + 0x20]
xor r9d, r9d
mov qword [rbx + 8], rax
lea r8d, [rdx + 0x3c]
movups xmmword [rbx + 0x10], xmm0
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rbx + 0x20], xmm1
movups xmmword [rbx + 0x30], xmm0
mov rax, qword [rsi + 0x18]
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 0x38], rcx
lea rcx, [rbp + 0x38]
mov qword [rbp - 0x10], rax
lea rax, [rsi + 4]
mov qword [rbp - 0x30], rcx
lea ecx, [r8 + 0x79]
mov dword [rbp - 0x20], edx
lea rdx, [rbp - 0x40]
mov qword [rbp - 8], rax
mov dword [rbp + 0x28], SafeArrayGetElement
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x40], 3
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, dword [rbp + 0x38]
test edi, edi
js 0x140065298
mov ecx, dword [rbp + 0x28]
mov dword [rsi], ecx
mov ecx, edi
call fcn.140078324
test rbx, rbx
je 0x140065375
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006789c
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 0x140067916
xor esi, esi
mov rdi, qword [rbp - 0x20]
and qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rdi
mov ecx, esi
call fcn.140078324
lea rcx, [rbp - 0x20]
call fcn.140068d58
test esi, esi
jns 0x140067931
mov ecx, esi
jmp 0x1400679e9
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
je 0x1400678ef
mov ecx, esi
call fcn.140078308
jmp 0x1400678fb
and dword [rbp + 0x30], ebx
lea rax, [rbp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rdx, [0x1403a89d0]
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14006796f
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x14006790f
test rbx, rbx
jne 0x1400679ad
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x1400679a3
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 0x140067934
mov esi, 0x8007000e
jmp 0x14006790f
mov esi, 0x8000ffff
jmp 0x14006790f
cmp dword [rbp + 0x20], 4
je 0x1400679bd
mov esi, 0x8007000d
jmp 0x14006790f
xor edi, edi
cmp dword [rbp + 0x30], 4
je 0x1400679d5
mov esi, 0x8007000d
mov ecx, esi
mov edi, esi
call fcn.140078308
jmp 0x1400679da
mov eax, dword [rbx]
mov dword [r14], eax
mov ecx, edi
call fcn.140078324
mov esi, edi
test edi, edi
jns 0x1400679ee
mov ecx, edi
call fcn.140078308
mov ecx, esi
call fcn.140078324
test rbx, rbx
je 0x140067a0e
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.140068d58
lea rcx, [rbp - 0x18]
call fcn.140068d58
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 0x140067c4c
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 - 0x10], rdi
mov r15, r9
mov qword [rbp - 8], rdi
mov r12, r8
mov r14, rdx
mov rsi, rcx
cmp rcx, 0xffffffff80000001
jne 0x140067c91
and qword [rbp - 0x10], rbx
xor ecx, ecx
call fcn.140078324
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 0x140067ceb
xor esi, esi
mov rdi, qword [rbp - 0x18]
and qword [rbp - 0x18], rbx
mov qword [rbp - 8], rdi
mov ecx, esi
call fcn.140078324
lea rcx, [rbp - 0x18]
call fcn.140068d58
test esi, esi
jns 0x140067d03
mov ecx, esi
call fcn.140078308
jmp 0x140067daf
movzx esi, ax
or esi, r14d
test eax, eax
cmovle esi, eax
test esi, esi
je 0x140067cbf
mov ecx, esi
call fcn.140078308
jmp 0x140067ccb
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
je 0x140067d3a
movzx esi, ax
or esi, r14d
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x140067cdf
test rbx, rbx
jne 0x140067d78
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x140067d6e
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 0x140067d06
mov esi, 0x8007000e
jmp 0x140067cdf
mov esi, 0x8000ffff
jmp 0x140067cdf
cmp dword [rbp - 0x20], 1
je 0x140067d88
mov esi, 0x8007000d
jmp 0x140067cdf
mov edx, dword [rbp + 0x30]
lea r9, [rbp - 0x1c]
mov r8, r15
mov rcx, rbx
call fcn.140076cac
mov esi, eax
test eax, eax
jns 0x140067da7
mov ecx, eax
jmp 0x140067ce1
cmp dword [rbp - 0x1c], 0
je 0x140067daf
xor ebx, ebx
mov ecx, esi
call fcn.140078324
test rbx, rbx
je 0x140067dcf
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.140068d58
lea rcx, [rbp - 8]
call fcn.140068d58
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 0x140067dfc
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 - 0x10], rdi
mov r15, r9
mov qword [rbp - 8], rdi
mov r12, r8
mov r14, rdx
mov rsi, rcx
cmp rcx, 0xffffffff80000001
jne 0x140067e41
and qword [rbp - 0x10], rbx
xor ecx, ecx
call fcn.140078324
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 0x140067e96
xor esi, esi
mov rdi, qword [rbp - 0x18]
and qword [rbp - 0x18], rbx
mov qword [rbp - 8], rdi
mov ecx, esi
call fcn.140078324
lea rcx, [rbp - 0x18]
call fcn.140068d58
test esi, esi
jns 0x140067eae
mov ecx, esi
jmp 0x140067f5f
movzx esi, ax
or esi, r14d
test eax, eax
cmovle esi, eax
test esi, esi
je 0x140067e6f
mov ecx, esi
call fcn.140078308
jmp 0x140067e7b
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
je 0x140067ee5
movzx esi, ax
or esi, r14d
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x140067e8f
test rbx, rbx
jne 0x140067f23
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x140067f19
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 0x140067eb1
mov esi, 0x8007000e
jmp 0x140067e8f
mov esi, 0x8000ffff
jmp 0x140067e8f
cmp dword [rbp - 0x20], 4
je 0x140067f33
mov esi, 0x8007000d
jmp 0x140067e8f
xor edi, edi
cmp dword [rbp + 0x30], 4
je 0x140067f4b
mov esi, 0x8007000d
mov ecx, esi
mov edi, esi
call fcn.140078308
jmp 0x140067f50
mov eax, dword [rbx]
mov dword [r15], eax
mov ecx, edi
call fcn.140078324
mov esi, edi
test edi, edi
jns 0x140067f64
mov ecx, edi
call fcn.140078308
mov ecx, esi
call fcn.140078324
test rbx, rbx
je 0x140067f84
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.140068d58
lea rcx, [rbp - 8]
call fcn.140068d58
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 0x1400680a8
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 [0x140418d28]
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 0x1400680f0
mov ecx, 0x80070057
mov ebx, ecx
call fcn.140078308
jmp 0x14006816c
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 0x140068153
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140068141
mov ebx, 0x80004005
jmp 0x14006814f
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
jmp 0x1400680e9
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140068130
mov ecx, dword [rbp - 0x20]
mov dword [rdi], ecx
mov ecx, ebx
call fcn.140078324
lea rcx, [rbp - 0x18]
call fcn.140068dc8
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14035a4e0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14006d5ac
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 r12, r9
mov rsi, r8
mov ebp, edx
mov r15, rcx
test r9, r9
jne 0x14006d5ec
mov ebx, 0x80070057
mov ecx, ebx
call fcn.140078308
jmp 0x14006d7a4
lea edi, [rdx + 2]
mov r14d, 0x80070216
cmp edi, ebp
jb 0x14006d5fe
mov ebx, r13d
jmp 0x14006d60d
mov ecx, r14d
mov ebx, r14d
call fcn.140078308
mov edi, dword [rsp + 0x68]
mov ecx, ebx
call fcn.140078324
test ebx, ebx
js 0x14006d5e0
mov eax, 0xaaaaaaab
mov ebx, r13d
mul edi
shr edx, 1
je 0x14006d645
mov ecx, edx
shl ecx, 2
mov eax, ecx
shr eax, 2
cmp eax, edx
je 0x14006d641
mov ecx, r14d
mov ebx, r14d
call fcn.140078308
jmp 0x14006d648
mov edi, ecx
jmp 0x14006d648
mov edi, r13d
mov ecx, ebx
call fcn.140078324
test ebx, ebx
js 0x14006d5e0
test rsi, rsi
jne 0x14006d68a
lea eax, [rdi + 1]
cmp eax, edi
jb 0x14006d668
mov dword [r12], eax
mov ebx, r13d
jmp 0x14006d673
mov ecx, r14d
mov ebx, r14d
call fcn.140078308
mov ecx, ebx
call fcn.140078324
test ebx, ebx
js 0x14006d5e0
mov ebx, r13d
jmp 0x14006d7a4
lea r14d, [rdi + 1]
cmp r14d, edi
jb 0x14006d698
mov ebx, r13d
jmp 0x14006d6a9
mov ecx, 0x80070216
mov ebx, ecx
call fcn.140078308
mov r14d, dword [rsp + 0x68]
mov ecx, ebx
call fcn.140078324
test ebx, ebx
js 0x14006d5e0
cmp dword [r12], r14d
jae 0x14006d6c8
mov ebx, 0x8007007a
jmp 0x14006d5e0
mov eax, r14d
lea r9, [rsi + rax*2]
test ebp, ebp
jle 0x14006d797
lea r8, [rsi + 6]
lea rdi, [0x1403a8780]
mov r11b, byte [r15]
xor edx, edx
inc r15
mov word [rsp + 0x68], dx
cmp ebp, 1
jbe 0x14006d707
mov cl, byte [r15]
inc r15
cmp ebp, 2
jbe 0x14006d70b
mov dl, byte [r15]
inc r15
jmp 0x14006d70b
mov cl, byte [rsp + 0x69]
cmp r8, r9
jae 0x14006d7ca
movzx r10d, cl
movzx ecx, r11b
shl ecx, 4
movzx eax, r11b
shr rax, 2
movzx eax, byte [rax + rdi]
mov word [rsi], ax
mov eax, r10d
shr rax, 4
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rcx + rdi]
mov word [rsi + 2], ax
cmp ebp, 1
jbe 0x14006d761
mov ecx, r10d
movzx eax, dl
shr rax, 6
shl ecx, 2
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rcx + rdi]
jmp 0x14006d766
mov eax, 0x3d
mov word [rsi + 4], ax
cmp ebp, 2
jbe 0x14006d77b
movzx eax, dl
and eax, 0x3f
movzx ecx, byte [rax + rdi]
jmp 0x14006d780
mov ecx, 0x3d
mov word [rsi + 6], cx
add r8, 8
add rsi, 8
add ebp, 0xfffffffd
test ebp, ebp
jg 0x14006d6e2
cmp rsi, r9
jae 0x14006d7ca
mov word [rsi], r13w
mov dword [r12], r14d
mov ecx, ebx
call fcn.140078324
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
mov ebx, ecx
jmp 0x14006d5e2
Function at 0x14006d858
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
xor ebx, ebx
mov r14, r9
and qword [rbp - 0x10], rbx
mov rsi, rdx
and qword [rbp + 0x20], rbx
mov rdi, rcx
mov qword [rbp - 8], rbx
cmp rcx, 0xffffffff80000001
jne 0x14006d89d
and qword [rbp - 0x10], rbx
xor ecx, ecx
call fcn.140078324
and qword [rbp + 0x30], rbx
lea rax, [rbp + 0x30]
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, 0x80070000
test eax, eax
jne 0x14006d924
xor edi, edi
mov rbx, qword [rbp + 0x30]
and qword [rbp + 0x30], 0
mov qword [rbp - 8], rbx
mov ecx, edi
call fcn.140078324
lea rcx, [rbp + 0x30]
call fcn.140068d58
test edi, edi
js 0x14006d949
and qword [rbp + 0x20], 0
xor ecx, ecx
call fcn.140078324
mov eax, dword [rbp + 0x40]
lea rdx, str.ReferralId
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14006d93b
xor edi, edi
jmp 0x14006d950
movzx edi, ax
or edi, esi
test eax, eax
cmovle edi, eax
test edi, edi
je 0x14006d8ca
mov ecx, edi
call fcn.140078308
jmp 0x14006d8d7
movzx edi, ax
or edi, esi
test eax, eax
cmovle edi, eax
test edi, edi
je 0x14006d950
mov ecx, edi
call fcn.140078308
mov ecx, edi
call fcn.140078324
lea rcx, [rbp + 0x20]
call fcn.14006e948
lea rcx, [rbp - 0x10]
call fcn.140068d58
lea rcx, [rbp - 8]
call fcn.140068d58
mov rbx, qword [rsp + 0x68]
mov eax, edi
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret

Function at 0x14006d988
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
xor esi, esi
mov r14, r9
mov qword [rax - 0x28], rsi
lea rax, [rax - 0x28]
mov ebx, esi
mov qword [rsp + 0x20], rax
mov qword [rax + 8], rbx
xor r8d, r8d
lea r9d, [rsi + 1]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006d9fe
mov edi, esi
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rsi
mov ecx, edi
call fcn.140078324
lea rcx, [rsp + 0x30]
call fcn.140068d58
test edi, edi
jns 0x14006da19
mov ecx, edi
call fcn.140078308
jmp 0x14006da65
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
je 0x14006d9d1
mov ecx, edi
call fcn.140078308
jmp 0x14006d9e0
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rdx, [0x1403aad30]
mov qword [rsp + 0x20], rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14006da5d
cmp eax, 2
je 0x14006da62
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
je 0x14006da62
jmp 0x14006d9f5
mov esi, 1
mov dword [r14], esi
mov ecx, edi
call fcn.140078324
lea rcx, [rsp + 0x38]
call fcn.140068d58
mov rbx, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14006dec8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140418d28]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r14d, r14d
mov dword [rbp + 0x17], 0x25002f
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x29], r14
mov rsi, rdx
mov dword [rbp + 0x1b], 0x2e0058
mov dword [rbp + 0x1f], 0x580025
mov dword [rbp + 0x23], 0x25002e
mov dword [rbp + 0x27], 0x2e0058
mov dword [rbp + 0x2b], 0x580025
mov dword [rbp + 0x2f], 0x25002e
mov dword [rbp + 0x33], 0x58
call fcn.140070ad8
mov rbx, qword [rbp - 0x29]
mov edi, eax
test eax, eax
js 0x14006df89
lea rdx, [rbp - 0x21]
mov rcx, rbx
call fcn.140070594
mov edi, eax
test eax, eax
js 0x14006df89
mov edx, dword [rbp - 0x15]
mov rcx, rsi
mov r8d, dword [rbp - 0x19]
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.140077544
mov edi, eax
test eax, eax
jns 0x14006df90
mov ecx, eax
call fcn.140078308
mov ecx, edi
call fcn.140078324
test rbx, rbx
je 0x14006dfb8
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.140078324
mov eax, edi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14035a4e0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x140070750
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], r8
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
xor ebx, ebx
lea rax, [rbp + 0x30]
and qword [rbp - 8], rbx
mov rsi, r9
and qword [rbp + 0x20], rbx
xor r8d, r8d
and qword [rbp + 0x30], rbx
mov rcx, 0xffffffff80000003
lea r9d, [rbx + 2]
mov qword [rbp - 0x10], rbx
mov qword [r11 - 0x38], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400707fa
xor edi, edi
mov rbx, qword [rbp + 0x30]
and qword [rbp + 0x30], 0
mov qword [rbp - 0x10], rbx
mov ecx, edi
call fcn.140078324
lea rcx, [rbp + 0x30]
call fcn.140068d58
test edi, edi
js 0x140070827
and qword [rbp + 0x20], 0
xor ecx, ecx
call fcn.140078324
mov eax, dword [rbp + 0x40]
lea rdx, [0x1403aad30]
mov dword [rsp + 0x28], eax
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140070815
xor edi, edi
jmp 0x14007082e
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
je 0x1400707a0
mov ecx, edi
call fcn.140078308
jmp 0x1400707ad
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
je 0x14007082e
mov ecx, edi
call fcn.140078308
mov ecx, edi
call fcn.140078324
lea rcx, [rbp + 0x20]
call fcn.14006e948
lea rcx, [rbp - 8]
call fcn.140068d58
lea rcx, [rbp - 0x10]
call fcn.140068d58
mov rbx, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret