joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140069018
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 0x140069059
xor ecx, ecx
call fcn.140079c60
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 0x1400690b3
xor esi, esi
mov rdi, qword [rbp - 0x18]
and qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rdi
mov ecx, esi
call fcn.140079c60
lea rcx, [rbp - 0x18]
call fcn.140069f74
test esi, esi
jns 0x1400690cb
mov ecx, esi
call fcn.140079c40
jmp 0x140069177
movzx esi, ax
or esi, r14d
test eax, eax
cmovle esi, eax
test esi, esi
je 0x140069087
mov ecx, esi
call fcn.140079c40
jmp 0x140069093
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 0x140069102
movzx esi, ax
or esi, r14d
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x1400690a7
test rbx, rbx
jne 0x140069140
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x140069136
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 0x1400690ce
mov esi, 0x8007000e
jmp 0x1400690a7
mov esi, 0x8000ffff
jmp 0x1400690a7
cmp dword [rbp - 0x20], 1
je 0x140069150
mov esi, 0x8007000d
jmp 0x1400690a7
mov edx, dword [rbp + 0x30]
lea r9, [rbp - 0x1c]
mov r8, r15
mov rcx, rbx
call fcn.140078510
mov esi, eax
test eax, eax
jns 0x14006916f
mov ecx, eax
jmp 0x1400690a9
cmp dword [rbp - 0x1c], 0
je 0x140069177
xor ebx, ebx
mov ecx, esi
call fcn.140079c60
test rbx, rbx
je 0x140069197
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.140069f74
lea rcx, [rbp - 0x10]
call fcn.140069f74
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 0x1400691cc
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 0x14006920d
xor ecx, ecx
call fcn.140079c60
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 0x140069262
xor esi, esi
mov rdi, qword [rbp - 0x18]
and qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rdi
mov ecx, esi
call fcn.140079c60
lea rcx, [rbp - 0x18]
call fcn.140069f74
test esi, esi
jns 0x14006927a
mov ecx, esi
jmp 0x14006932b
movzx esi, ax
or esi, r14d
test eax, eax
cmovle esi, eax
test esi, esi
je 0x14006923b
mov ecx, esi
call fcn.140079c40
jmp 0x140069247
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 0x1400692b1
movzx esi, ax
or esi, r14d
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x14006925b
test rbx, rbx
jne 0x1400692ef
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x1400692e5
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 0x14006927d
mov esi, 0x8007000e
jmp 0x14006925b
mov esi, 0x8000ffff
jmp 0x14006925b
cmp dword [rbp - 0x20], 4
je 0x1400692ff
mov esi, 0x8007000d
jmp 0x14006925b
xor edi, edi
cmp dword [rbp + 0x30], 4
je 0x140069317
mov esi, 0x8007000d
mov ecx, esi
mov edi, esi
call fcn.140079c40
jmp 0x14006931c
mov eax, dword [rbx]
mov dword [r15], eax
mov ecx, edi
call fcn.140079c60
mov esi, edi
test edi, edi
jns 0x140069330
mov ecx, edi
call fcn.140079c40
mov ecx, esi
call fcn.140079c60
test rbx, rbx
je 0x140069350
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.140069f74
lea rcx, [rbp - 0x10]
call fcn.140069f74
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 0x140069480
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 [0x140436b28]
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 0x1400694c8
mov ecx, 0x80070057
mov ebx, ecx
call fcn.140079c40
jmp 0x140069544
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 0x14006952b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140069519
mov ebx, 0x80004005
jmp 0x140069527
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
jmp 0x1400694c1
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140069508
mov ecx, dword [rbp - 0x20]
mov dword [rdi], ecx
mov ecx, ebx
call fcn.140079c60
lea rcx, [rbp - 0x18]
call fcn.140069fec
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14037a9a0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14006ea24
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 0x14006ea64
mov ebx, 0x80070057
mov ecx, ebx
call fcn.140079c40
jmp 0x14006ec0e
lea edi, [rdx + 2]
mov r14d, 0x80070216
cmp edi, ebp
jae 0x14006ea7b
mov ecx, r14d
call fcn.140079c40
cmp edi, ebp
sbb ebx, ebx
and ebx, r14d
mov ecx, ebx
call fcn.140079c60
cmp edi, ebp
jb 0x14006ea58
mov eax, 0xaaaaaaab
mov ebx, r13d
mul edi
shr edx, 1
je 0x14006eab8
mov ecx, edx
shl ecx, 2
mov eax, ecx
shr eax, 2
cmp eax, edx
je 0x14006eab4
mov ecx, r14d
mov ebx, r14d
call fcn.140079c40
jmp 0x14006eabb
mov edi, ecx
jmp 0x14006eabb
mov edi, r13d
mov ecx, ebx
call fcn.140079c60
test ebx, ebx
js 0x14006ea58
lea r14d, [rdi + 1]
test rsi, rsi
jne 0x14006eb00
cmp r14d, edi
jb 0x14006eadd
mov dword [r12], r14d
mov ebx, r13d
jmp 0x14006eae9
mov ebx, 0x80070216
mov ecx, ebx
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
test ebx, ebx
js 0x14006ea58
mov ebx, r13d
jmp 0x14006ec0e
cmp r14d, edi
jae 0x14006eb12
mov ecx, 0x80070216
call fcn.140079c40
cmp r14d, edi
sbb ebx, ebx
and ebx, 0x80070216
mov ecx, ebx
call fcn.140079c60
cmp r14d, edi
jb 0x14006ea58
cmp dword [r12], r14d
jae 0x14006eb3a
mov ebx, 0x8007007a
jmp 0x14006ea58
lea r9, [rsi + r14*2]
test ebp, ebp
jle 0x14006ec01
lea rdx, [rsi + 6]
lea rdi, [0x1403ca650]
movzx r11d, byte [r15]
mov cl, r13b
inc r15
mov r8b, r13b
cmp ebp, 1
jbe 0x14006eb74
mov cl, byte [r15]
inc r15
cmp ebp, 2
jbe 0x14006eb74
mov r8b, byte [r15]
inc r15
cmp rdx, r9
jae 0x14006ec35
movzx r10d, cl
mov rax, r11
shr rax, 2
mov ecx, r10d
shr rcx, 4
movzx eax, byte [rax + rdi]
mov word [rsi], ax
mov rax, r11
shl rax, 4
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rcx + rdi]
mov word [rsi + 2], ax
cmp ebp, 1
jbe 0x14006ebca
mov ecx, r10d
movzx eax, r8b
shr rax, 6
shl ecx, 2
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rcx + rdi]
jmp 0x14006ebcf
mov eax, 0x3d
mov word [rsi + 4], ax
cmp ebp, 2
jbe 0x14006ebe5
movzx eax, r8b
and eax, 0x3f
movzx ecx, byte [rax + rdi]
jmp 0x14006ebea
mov ecx, 0x3d
mov word [rsi + 6], cx
add rdx, 8
add rsi, 8
add ebp, 0xfffffffd
test ebp, ebp
jg 0x14006eb51
cmp rsi, r9
jae 0x14006ec35
mov word [rsi], r13w
mov dword [r12], r14d
mov ecx, ebx
call fcn.140079c60
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 0x14006ea5a
Function at 0x14006ed1c
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 0x14006ed5f
xor ecx, ecx
call fcn.140079c60
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 0x14006ede7
mov edi, r15d
mov rbx, qword [rbp + 0x40]
mov qword [rbp + 0x30], rbx
mov rsi, rbx
mov qword [rbp + 0x40], r15
mov ecx, edi
call fcn.140079c60
lea rcx, [rbp + 0x40]
call fcn.140069f74
test edi, edi
js 0x14006ee17
xor ecx, ecx
call fcn.140079c60
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 0x14006ee05
mov edi, r15d
jmp 0x14006ee1e
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
je 0x14006ed88
mov ecx, edi
call fcn.140079c40
mov rsi, r15
jmp 0x14006ed97
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
je 0x14006ee1e
mov ecx, edi
call fcn.140079c40
mov ecx, edi
call fcn.140079c60
lea rcx, [rbp - 0x10]
call fcn.14006fca4
lea rcx, [rbp - 8]
call fcn.140069f74
lea rcx, [rbp + 0x30]
call fcn.140069f74
mov rbx, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x14006ee5c
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 0x14006eecf
mov ebx, edi
mov rsi, qword [rsp + 0x30]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rdi
mov ecx, ebx
call fcn.140079c60
lea rcx, [rsp + 0x30]
call fcn.140069f74
test ebx, ebx
jns 0x14006eeed
mov ecx, ebx
call fcn.140079c40
jmp 0x14006ef39
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
je 0x14006eea2
mov ecx, ebx
call fcn.140079c40
mov rsi, rdi
jmp 0x14006eeb1
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rdx, [0x1403c9520]
mov qword [rsp + 0x20], rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14006ef31
cmp eax, 2
je 0x14006ef36
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
je 0x14006ef36
jmp 0x14006eec6
mov edi, 1
mov dword [r14], edi
mov ecx, ebx
call fcn.140079c60
lea rcx, [rsp + 0x38]
call fcn.140069f74
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14006f39c
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 [0x140436b28]
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.140072008
mov rbx, qword [rbp - 0x29]
mov edi, eax
test eax, eax
js 0x14006f45d
lea rdx, [rbp - 0x21]
mov rcx, rbx
call fcn.140071a98
mov edi, eax
test eax, eax
js 0x14006f45d
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.140078d44
mov edi, eax
test eax, eax
jns 0x14006f464
mov ecx, eax
call fcn.140079c40
mov ecx, edi
call fcn.140079c60
test rbx, rbx
je 0x14006f48c
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.140079c60
mov eax, edi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14037a9a0
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 0x140071c58
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
and qword [rbp + 0x20], 0
lea rax, [rbp + 0x30]
and qword [rbp - 8], 0
mov rsi, r9
and qword [rbp - 0x10], 0
mov r9d, 2
and qword [rbp + 0x30], 0
xor r8d, r8d
mov rcx, 0xffffffff80000003
mov qword [r11 - 0x38], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140071d01
xor ebx, ebx
mov rdi, qword [rbp + 0x30]
and qword [rbp + 0x30], 0
mov qword [rbp + 0x20], rdi
mov ecx, ebx
call fcn.140079c60
lea rcx, [rbp + 0x30]
call fcn.140069f74
test ebx, ebx
js 0x140071d30
xor ecx, ecx
call fcn.140079c60
mov eax, dword [rbp + 0x40]
lea rdx, [0x1403c9520]
mov dword [rsp + 0x28], eax
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140071d1e
xor ebx, ebx
jmp 0x140071d37
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
je 0x140071cac
mov ecx, ebx
call fcn.140079c40
xor edi, edi
jmp 0x140071cb9
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
je 0x140071d37
mov ecx, ebx
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
lea rcx, [rbp - 0x10]
call fcn.14006fca4
lea rcx, [rbp - 8]
call fcn.140069f74
lea rcx, [rbp + 0x20]
call fcn.140069f74
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140071e0c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140436b28]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor ebx, ebx
lea rax, [rsp + 0x68]
and qword [rsp + 0x68], rbx
mov r9d, 0x2000000
xor r8d, r8d
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x20], rax
mov r15, rdx
mov r14, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r13d, 0x80070000
test eax, eax
jne 0x140071f51
xor edi, edi
mov rbx, qword [rsp + 0x68]
and qword [rsp + 0x68], 0
mov rsi, rbx
mov qword [rsp + 0x70], rbx
mov ecx, edi
call fcn.140079c60
lea rcx, [rsp + 0x68]
call fcn.140069f74
test edi, edi
js 0x140071fbb
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x60]
and qword [rsp + 0x50], 0
xor r9d, r9d
and qword [rsp + 0x48], 0
xor r8d, r8d
and qword [rsp + 0x40], 0
xor edx, edx
and qword [rsp + 0x38], 0
mov rcx, rsi
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140071f01
movzx edi, ax
or edi, r13d
test eax, eax
cmovle edi, eax
test edi, edi
jne 0x140071fbb
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140071f72
dec eax
lea r8, [rbp - 0x80]
mov edx, eax
mov dword [rsp + 0x60], eax
mov r9d, 0x105
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x140071f3b
movzx edi, ax
or edi, r13d
test eax, eax
cmovle edi, eax
test edi, edi
jne 0x140071fbb
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.140071e0c
mov edi, eax
test eax, eax
jns 0x140071f01
mov ecx, eax
jmp 0x140071fbd
movzx edi, ax
or edi, r13d
test eax, eax
cmovle edi, eax
test edi, edi
je 0x140071e79
mov ecx, edi
call fcn.140079c40
xor esi, esi
jmp 0x140071e8c
test rbx, rbx
je 0x140071f86
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x70], 0
mov rdx, r15
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x140071f9a
xor edi, edi
jmp 0x140071fb0
movzx edi, ax
or edi, r13d
test eax, eax
cmovle edi, eax
test edi, edi
je 0x140071fb0
mov ecx, edi
call fcn.140079c40
mov ecx, edi
call fcn.140079c60
test edi, edi
jns 0x140071fc2
mov ecx, edi
call fcn.140079c40
mov ecx, edi
call fcn.140079c60
lea rcx, [rsp + 0x70]
call fcn.140069f74
mov eax, edi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14037a9a0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x140074b74
Capabilities:
Set 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 r12d, r12d
mov r14, r9
mov qword [rbp - 0x10], r12
mov ebx, r12d
mov qword [rbp - 0x20], rbx
mov r15, r8
mov qword [rbp - 0x18], r12
mov rsi, rdx
mov rdi, rcx
cmp rcx, 0xffffffff80000001
jne 0x140074bbb
xor ecx, ecx
call fcn.140079c60
lea rax, [rbp + 0x30]
mov qword [rbp + 0x30], r12
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 0x140074c3f
mov edi, r12d
mov rbx, qword [rbp + 0x30]
mov qword [rbp - 0x20], rbx
mov rsi, rbx
mov qword [rbp + 0x30], r12
mov ecx, edi
call fcn.140079c60
lea rcx, [rbp + 0x30]
call fcn.140069f74
test edi, edi
js 0x140074c6f
xor ecx, ecx
call fcn.140079c60
mov eax, dword [rbp + 0x50]
test rbx, rbx
mov dword [rsp + 0x28], eax
mov r9d, 1
cmove rsi, r12
mov qword [rsp + 0x20], r14
mov rcx, rsi
xor r8d, r8d
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140074c5d
mov edi, r12d
jmp 0x140074c76
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
je 0x140074be4
mov ecx, edi
call fcn.140079c40
mov rsi, r12
jmp 0x140074bf3
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
je 0x140074c76
mov ecx, edi
call fcn.140079c40
mov ecx, edi
call fcn.140079c60
lea rcx, [rbp - 0x18]
call fcn.14006fca4
lea rcx, [rbp - 0x10]
call fcn.140069f74
lea rcx, [rbp - 0x20]
call fcn.140069f74
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 0x140076acc
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x140436b28]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x110
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140076b41
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140076b2a
mov ebx, 0x80004005
jmp 0x140076b38
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140079c40
jmp 0x140076b58
cmp dword [rsp + 0x30], 2
jne 0x140076b54
cmp dword [rsp + 0x24], 6
mov eax, 1
jae 0x140076b56
mov eax, ebx
mov dword [rdi], eax
mov ecx, ebx
call fcn.140079c60
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14037a9a0
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret
Function at 0x1400783a0
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 [0x140436b28]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r14, rdx
mov edi, 0x104
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov r8d, edi
mov qword [rsp + 0x20], rbx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
jne 0x140078418
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400783fe
mov edi, 0x80004005
jmp 0x14007840c
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.140079c40
jmp 0x1400784b5
cmp esi, edi
ja 0x140078462
mov r8d, 0x7fffffff
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140079840
mov edi, eax
test eax, eax
js 0x14007844e
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r8, r14
call fcn.140079998
mov edi, eax
test eax, eax
jns 0x140078455
mov ecx, eax
call fcn.140079c40
mov ecx, edi
call fcn.140079c60
test edi, edi
jns 0x1400784b5
jmp 0x14007840c
mov rdx, rsi
lea r8, [rsp + 0x20]
call fcn.140078684
mov edi, eax
test eax, eax
jns 0x140078483
mov ecx, eax
call fcn.140079c40
mov rbx, qword [rsp + 0x20]
jmp 0x1400784b5
mov rbx, qword [rsp + 0x20]
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400783ed
cmp eax, esi
je 0x1400784ad
mov edi, 0x8007007a
jmp 0x14007840c
mov rax, rbx
xor ebx, ebx
mov qword [r14], rax
mov ecx, edi
call fcn.140079c60
test rbx, rbx
je 0x1400784dd
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.140079c60
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14037a9a0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret