joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800159a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
shr edx, 4
mov rsi, r9
inc dx
movzx r9d, r8w
mov rdi, rcx
movzx r8d, dx
mov edx, 6
and ebx, 0xf
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
test rax, rax
je 0x180015a03
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180015a03
xor edx, edx
nop dword [rax + rax]
movzx ecx, word [rax]
cmp ebx, edx
je 0x180015a15
inc edx
lea rax, [rax + rcx*2 + 2]
cmp edx, 0x10
jl 0x1800159f0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rbx, dword [rsp + 0x50]
lea rdx, [rax + 2]
mov rcx, rsi
mov r8, rbx
call fcn.180015890
test eax, eax
jne 0x180015a33
mov byte [rbx + rsi - 1], al
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
dec eax
add rsp, 0x20
pop rdi
ret

Function at 0x180015ef0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
shr edx, 4
mov rsi, r9
inc dx
movzx r9d, r8w
mov rdi, rcx
movzx r8d, dx
mov edx, 6
and ebx, 0xf
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
test rax, rax
je 0x180015f5b
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rax
test rax, rax
je 0x180015f5b
xor ebp, ebp
mov eax, ebp
movzx ecx, word [rdx]
add rdx, 2
cmp ebx, eax
je 0x180015f72
inc eax
lea rdx, [rdx + rcx*2]
cmp eax, 0x10
jl 0x180015f45
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edi, dword [rsp + 0x50]
dec edi
cmp ecx, edi
cmovle edi, ecx
movsxd rcx, edi
lea rbx, [rcx + rcx]
mov rcx, rsi
mov r8, rbx
call fcn.18003a360
mov word [rbx + rsi], bp
mov eax, edi
jmp 0x180015f5d

Function at 0x1800203e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x18002040e
or r9d, 0x20019
mov r8d, r9d
call fcn.180020340
mov rbx, rax
jmp 0x180020411
mov rbx, rcx
test rbx, rbx
je 0x1800204b7
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1800204aa
cmp dword [rsp + 0x30], 4
jne 0x1800204aa
mov eax, dword [rsp + 0x58]
mov ecx, 4
mov rdx, rsi
cmp eax, ecx
cmova eax, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x58]
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1800204aa
cmp rbx, rdi
je 0x180020495
mov rcx, rbx
call fcn.1800203c0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x1800204b7
mov rcx, rbx
call fcn.1800203c0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x1800204d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x1800204fe
or r9d, 0x20019
mov r8d, r9d
call fcn.180020340
mov rbx, rax
jmp 0x180020501
mov rbx, rcx
test rbx, rbx
je 0x18002059f
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180020592
cmp dword [rsp + 0x30], 3
jne 0x180020592
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x78], eax
jb 0x180020592
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180020592
cmp rbx, rdi
je 0x18002057d
mov rcx, rbx
call fcn.1800203c0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x18002059f
mov rcx, rbx
call fcn.1800203c0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x1800205c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x40
mov rbp, r8
mov rsi, rcx
test rdx, rdx
je 0x1800205ee
or r9d, 0x20019
mov r8d, r9d
call fcn.180020340
mov rbx, rax
jmp 0x1800205f1
mov rbx, rcx
mov qword [rsp + 0x50], rdi
test rbx, rbx
je 0x1800206a3
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180020696
cmp dword [rsp + 0x30], 3
jne 0x180020696
mov ecx, dword [rsp + 0x58]
call fcn.180039e84
mov rdi, rax
test rax, rax
je 0x180020696
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18002068e
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rdi
mov eax, dword [rsp + 0x58]
mov dword [rcx], eax
cmp rbx, rsi
je 0x180020687
mov rcx, rbx
call fcn.1800203c0
mov eax, 1
jmp 0x1800206a5
mov rcx, rdi
call fcn.1800390b8
cmp rbx, rsi
je 0x1800206a3
mov rcx, rbx
call fcn.1800203c0
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret
Function at 0x1800206c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x40
mov rbp, r8
mov rdi, rcx
test rdx, rdx
je 0x1800206ee
or r9d, 0x20019
mov r8d, r9d
call fcn.180020340
mov rbx, rax
jmp 0x1800206f1
mov rbx, rcx
mov qword [rsp + 0x50], rsi
test rbx, rbx
je 0x1800207e0
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1800207d3
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x18002074a
cmp eax, 2
je 0x18002074a
cmp eax, 6
je 0x18002074a
cmp eax, 7
jne 0x1800207d3
mov ecx, dword [rsp + 0x58]
add ecx, 2
call fcn.180039e84
mov r8d, dword [rsp + 0x58]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rsi, rax
call fcn.180038130
lea r11, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1800207ba
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
call fcn.1800168e0
cmp rbx, rdi
je 0x1800207ab
mov rcx, rbx
call fcn.1800203c0
mov rcx, rsi
call fcn.1800390b8
mov eax, 1
jmp 0x1800207e2
mov rcx, rsi
call fcn.1800390b8
mov rcx, qword [rsp + 0x70]
lea rdx, [0x1800b4458]
call fcn.1800168e0
cmp rbx, rdi
je 0x1800207e0
mov rcx, rbx
call fcn.1800203c0
xor eax, eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x180020800
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rdi
mov rax, qword [0x1800e7b20]
xor rax, rbp
mov qword [rbp + 8], rax
mov r13, r8
mov r12, rcx
test rdx, rdx
je 0x180020848
or r9d, 0x20019
mov r8d, r9d
call fcn.180020340
mov rbx, rax
jmp 0x18002084b
mov rbx, rcx
test rbx, rbx
je 0x180020a3d
call fcn.18002cb70
test eax, eax
je 0x180020966
test r13, r13
je 0x1800208c5
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9d, [rax + 1]
lea ecx, [r9 + r9]
movsxd rdx, ecx
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x18002088d
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.18003ac00
sub rsp, rax
lea rsi, [rsp + 0x30]
test rsi, rsi
je 0x1800208c5
mov dword [rsp + 0x28], r9d
xor edi, edi
mov r8, r13
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov word [rsi], di
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x1800208c9
xor edi, edi
mov esi, edi
lea rax, [rbp]
lea r9, [rbp + 4]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180020a30
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x18002090d
cmp eax, 2
je 0x18002090d
cmp eax, 6
je 0x18002090d
cmp eax, 7
jne 0x180020a30
mov ecx, dword [rbp]
add ecx, 2
call fcn.180039e84
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rdi, rax
call fcn.180038130
lea r11, [rbp]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180020a18
mov rcx, qword [rbp + 0x50]
mov rdx, rdi
call fcn.180018240
jmp 0x1800209fc
lea rax, [rbp]
lea r9, [rbp + 4]
xor edi, edi
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r13
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180020a30
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x1800209ac
cmp eax, 2
je 0x1800209ac
cmp eax, 6
je 0x1800209ac
cmp eax, 7
jne 0x180020a30
mov ecx, dword [rbp]
add ecx, 2
call fcn.180039e84
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rdi, rax
call fcn.180038130
lea r11, [rbp]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, r13
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180020a18
mov rcx, qword [rbp + 0x50]
mov rdx, rdi
call fcn.18001ac80
cmp rbx, r12
je 0x180020a09
mov rcx, rbx
call fcn.1800203c0
mov rcx, rdi
call fcn.1800390b8
mov eax, 1
jmp 0x180020a3f
mov rcx, rdi
call fcn.1800390b8
mov rcx, qword [rbp + 0x50]
lea rdx, [0x1800b4458]
call fcn.18001ac80
cmp rbx, r12
je 0x180020a3d
mov rcx, rbx
call fcn.1800203c0
xor eax, eax
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.180038100
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
lea rsp, [rbp + 0x10]
pop r13
pop r12
pop rbp
ret
Function at 0x180020a70
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x180020a9e
or r9d, 0x20006
mov r8d, r9d
call fcn.180020370
mov rbx, rax
jmp 0x180020aa1
mov rbx, rcx
test rbx, rbx
je 0x180020b00
lea rax, [rsp + 0x60]
mov r9d, 4
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x180020af3
cmp rbx, rdi
je 0x180020ade
mov rcx, rbx
call fcn.1800203c0
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp rbx, rdi
je 0x180020b00
mov rcx, rbx
call fcn.1800203c0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x180020b20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x180020b4e
or r9d, 0x20006
mov r8d, r9d
call fcn.180020370
mov rbx, rax
jmp 0x180020b51
mov rbx, rcx
test rbx, rbx
je 0x180020bb0
mov eax, dword [rsp + 0x68]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x180020ba3
cmp rbx, rdi
je 0x180020b8e
mov rcx, rbx
call fcn.1800203c0
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp rbx, rdi
je 0x180020bb0
mov rcx, rbx
call fcn.1800203c0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x180020bd0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x30
mov rbp, r8
mov rsi, rcx
test rdx, rdx
je 0x180020bfe
or r9d, 0x20006
mov r8d, r9d
call fcn.180020370
mov rbx, rax
jmp 0x180020c01
mov rbx, rcx
test rbx, rbx
je 0x180020c74
mov rdx, qword [rsp + 0x60]
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rsp + 0x40], rdi
mov rdi, rdx
lea r9d, [rax + 1]
repne scasb al, byte [rdi]
xor r8d, r8d
not rcx
and ecx, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rdx
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rdi, qword [rsp + 0x40]
test eax, eax
jne 0x180020c67
cmp rbx, rsi
je 0x180020c52
mov rcx, rbx
call fcn.1800203c0
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp rbx, rsi
je 0x180020c74
mov rcx, rbx
call fcn.1800203c0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rsi
ret
Function at 0x180020c90
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbp
push rsi
sub rsp, 0x68
xor eax, eax
mov esi, edx
xor r9d, r9d
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], rax
lea rax, [r11 + 0x18]
xor r8d, r8d
xor edx, edx
mov qword [r11 - 0x50], rax
lea rax, [r11 + 0x20]
mov rbp, rcx
mov qword [r11 - 0x58], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x180020e09
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x60], rdi
cmp dword [rsp + 0x98], eax
je 0x180020ddf
mov eax, dword [rsp + 0x90]
mov ecx, 0x104
cmp eax, ecx
cmovb eax, ecx
mov dword [rsp + 0x90], eax
lea ecx, [rax + 1]
call fcn.180039e84
mov rbx, rax
test rax, rax
je 0x180020e05
nop word [rax + rax]
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov rcx, rbx
inc r8d
call fcn.180038130
mov r9d, dword [rsp + 0x90]
mov r8, rbx
xor edx, edx
mov rcx, rbp
inc r9d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x180020dfd
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
or r8d, 0x2001f
call fcn.180020340
mov rdi, rax
test rax, rax
je 0x180020dfd
mov edx, esi
mov rcx, rax
call fcn.180020c90
mov rcx, rdi
test eax, eax
je 0x180020df8
call fcn.1800203c0
mov r11, qword [0x1801008c0]
test r11, r11
je 0x180020dba
test esi, esi
je 0x180020dba
xor r9d, r9d
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call r11
jmp 0x180020dc6
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x180020dfd
dec dword [rsp + 0x98]
jne 0x180020d30
mov rcx, rbx
call fcn.1800390b8
mov eax, 1
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
pop rsi
pop rbp
ret
call fcn.1800203c0
mov rcx, rbx
call fcn.1800390b8
xor eax, eax
jmp 0x180020de4
xor eax, eax
add rsp, 0x68
pop rsi
pop rbp
ret

Function at 0x180020f20
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x60
mov rbp, r9
mov rdi, rcx
test rdx, rdx
je 0x180020f56
or r8d, 0x20019
call fcn.180020340
mov rbx, rax
jmp 0x180020f59
mov rbx, rcx
mov rsi, qword [rsp + 0x90]
xor r12d, r12d
test rbx, rbx
je 0x180020fc7
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x180020fba
cmp rbx, rdi
je 0x180020fb3
mov rcx, rbx
call fcn.1800203c0
mov eax, 1
jmp 0x180020fd0
cmp rbx, rdi
je 0x180020fc7
mov rcx, rbx
call fcn.1800203c0
mov dword [rbp], r12d
xor eax, eax
mov dword [rsi], r12d
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x180021460
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x40
mov rbp, qword [rsp + 0x90]
mov r14, r8
mov rbx, rdx
mov r13, rcx
or r8d, 0xffffffff
xor edx, edx
mov rcx, rbp
mov edi, r9d
call fcn.18001b800
test rbx, rbx
je 0x1800214b0
or edi, 0x20019
mov rdx, rbx
mov rcx, r13
mov r8d, edi
call fcn.180020340
mov rsi, rax
jmp 0x1800214b3
mov rsi, r13
mov qword [rsp + 0x70], r12
test rsi, rsi
je 0x1800215b7
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1800215aa
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x18002150c
cmp eax, 2
je 0x18002150c
cmp eax, 6
je 0x18002150c
cmp eax, 7
jne 0x1800215aa
mov ecx, dword [rsp + 0x78]
add ecx, 2
call fcn.180039e84
mov r8d, dword [rsp + 0x78]
xor edx, edx
add r8d, 2
mov rcx, rax
mov r12, rax
call fcn.180038130
lea rdx, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x28], rdx
xor r8d, r8d
mov rcx, rsi
mov rdx, r14
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1800215a2
mov rbx, r12
cmp byte [r12], al
je 0x180021586
nop dword [rax]
mov edx, dword [rbp + 8]
mov r8, rbx
mov rcx, rbp
call fcn.18001ba00
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
mov eax, ecx
add rbx, rax
cmp byte [rbx], 0
jne 0x180021560
cmp rsi, r13
je 0x180021593
mov rcx, rsi
call fcn.1800203c0
mov rcx, r12
call fcn.1800390b8
mov eax, 1
jmp 0x1800215b9
mov rcx, r12
call fcn.1800390b8
cmp rsi, r13
je 0x1800215b7
mov rcx, rsi
call fcn.1800203c0
xor eax, eax
mov r12, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x180021a80
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push r14
sub rsp, 0x58
mov r14, rcx
test rdx, rdx
je 0x180021aa8
or r9d, 0x20006
mov r8d, r9d
call fcn.180020370
mov rbx, rax
jmp 0x180021aab
mov rbx, rcx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x30], r15
test rbx, rbx
je 0x180021c04
mov rsi, qword [rsp + 0x90]
xor r12d, r12d
mov r15d, 1
mov edi, r12d
cmp dword [rsi + 8], r12d
jle 0x180021b1c
nop word [rax + rax]
lea rdx, [rsp + 0x78]
mov r8d, edi
mov rcx, rsi
call fcn.1800213c0
mov rcx, qword [rax]
mov eax, dword [rcx - 8]
lea rcx, [rsp + 0x78]
lea r15d, [r15 + rax + 1]
call fcn.180016760
inc edi
cmp edi, dword [rsi + 8]
jl 0x180021af0
mov ecx, r15d
mov edi, r15d
call fcn.180039e84
mov rbp, rax
test rax, rax
je 0x180021c04
mov r8d, edi
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x38], r13
call fcn.180038130
mov r13, rbp
cmp dword [rsi + 8], r12d
jle 0x180021ba6
nop
lea rdx, [rsp + 0x78]
mov r8d, r12d
mov rcx, rsi
call fcn.1800213c0
mov rdx, r13
mov rcx, qword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
inc rdx
inc rcx
mov byte [rdx - 1], al
test al, al
jne 0x180021b70
lea rcx, [rsp + 0x78]
call fcn.180016760
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r13
inc r12d
repne scasb al, byte [rdi]
not rcx
mov eax, ecx
add r13, rax
cmp r12d, dword [rsi + 8]
jl 0x180021b50
mov rdx, qword [rsp + 0x80]
mov r9d, 7
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov r13, qword [rsp + 0x38]
test eax, eax
jne 0x180021bef
cmp rbx, r14
je 0x180021be0
mov rcx, rbx
call fcn.1800203c0
mov rcx, rbp
call fcn.1800390b8
mov eax, 1
jmp 0x180021c06
mov rcx, rbp
call fcn.1800390b8
cmp rbx, r14
je 0x180021c04
mov rcx, rbx
call fcn.1800203c0
xor eax, eax
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x70]
add rsp, 0x58
pop r14
pop rbx
ret
Function at 0x180022b80
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rbx, rcx
jne 0x180022b98
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [rbx + 0x28]
mov r9d, dword [rbx + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rbx + 0x10]
lea rdx, [rsp + 0x20]
lea ecx, [r8 + 2]
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [rbx + 0x34]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180022bea
mov rcx, qword [rbx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [rbx + 0x18], 0
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x180022e40
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rbx, rcx
jne 0x180022ef0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
mov edi, dword [rcx + 0x38]
mov esi, 4
test edi, edi
je 0x180022e8e
call fcn.18002cc20
test eax, eax
je 0x180022e8e
mov rcx, rbx
call fcn.180022db0
lea ecx, [rdi - 0x2000]
cmp eax, ecx
jbe 0x180022e87
add edi, eax
mov esi, 0x10004
jmp 0x180022e90
xor edi, edi
lea rax, [rbx + 8]
lea r8, [0x180022d10]
mov edx, edi
mov qword [rsp + 0x28], rax
mov r9, rbx
xor ecx, ecx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x180022ef0
mov edx, dword [rbx + 0x3c]
mov dword [rbx + 0x18], 1
test edx, edx
je 0x180022edb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x180027ad0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x1800e7b20]
xor rax, rsp
mov qword [rsp + 0xc0], rax
cmp dword [0x180100968], 0
mov ebx, ecx
jne 0x180027b53
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x90
mov dword [0x180100968], 1
call fcn.180038130
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
jne 0x180027b43
cmp dword [rsp + 0x24], 5
jb 0x180027b43
mov rax, qword [str.GlobalOCULAR_]
mov qword [0x180100960], rax
jmp 0x180027b5a
mov rax, qword [str.OCULAR_]
mov qword [0x180100960], rax
jmp 0x180027b5a
mov rax, qword [0x180100960]
test ebx, ebx
cmovne rax, qword [str.OCULAR_]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180038100
add rsp, 0xd0
pop rbx
ret