joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180019840
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 0x18001986e
or r9d, 0x20019
mov r8d, r9d
call fcn.1800196b0
mov rbx, rax
jmp 0x180019871
mov rbx, rcx
test rbx, rbx
je 0x18001990f
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 0x180019902
cmp dword [rsp + 0x30], 3
jne 0x180019902
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x78], eax
jb 0x180019902
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 0x180019902
cmp rbx, rdi
je 0x1800198ed
mov rcx, rbx
call fcn.180019730
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x18001990f
mov rcx, rbx
call fcn.180019730
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x180019930
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 0x18001995e
or r9d, 0x20019
mov r8d, r9d
call fcn.1800196b0
mov rbx, rax
jmp 0x180019961
mov rbx, rcx
mov qword [rsp + 0x50], rdi
test rbx, rbx
je 0x180019a13
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 0x180019a06
cmp dword [rsp + 0x30], 3
jne 0x180019a06
mov ecx, dword [rsp + 0x58]
call fcn.180029d7c
mov rdi, rax
test rax, rax
je 0x180019a06
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 0x1800199fe
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 0x1800199f7
mov rcx, rbx
call fcn.180019730
mov eax, 1
jmp 0x180019a15
mov rcx, rdi
call fcn.180029a70
cmp rbx, rsi
je 0x180019a13
mov rcx, rbx
call fcn.180019730
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 0x180019a30
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 0x180019a5e
or r9d, 0x20019
mov r8d, r9d
call fcn.1800196b0
mov rbx, rax
jmp 0x180019a61
mov rbx, rcx
mov qword [rsp + 0x50], rsi
test rbx, rbx
je 0x180019b50
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 0x180019b43
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x180019aba
cmp eax, 2
je 0x180019aba
cmp eax, 6
je 0x180019aba
cmp eax, 7
jne 0x180019b43
mov ecx, dword [rsp + 0x58]
add ecx, 2
call fcn.180029d7c
mov r8d, dword [rsp + 0x58]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rsi, rax
call fcn.180029630
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 0x180019b2a
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
call fcn.180010070
cmp rbx, rdi
je 0x180019b1b
mov rcx, rbx
call fcn.180019730
mov rcx, rsi
call fcn.180029a70
mov eax, 1
jmp 0x180019b52
mov rcx, rsi
call fcn.180029a70
mov rcx, qword [rsp + 0x70]
lea rdx, [0x1800a82b8]
call fcn.180010070
cmp rbx, rdi
je 0x180019b50
mov rcx, rbx
call fcn.180019730
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 0x180019b70
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 [0x1800d7110]
xor rax, rbp
mov qword [rbp + 8], rax
mov r13, r8
mov r12, rcx
test rdx, rdx
je 0x180019bb8
or r9d, 0x20019
mov r8d, r9d
call fcn.1800196b0
mov rbx, rax
jmp 0x180019bbb
mov rbx, rcx
test rbx, rbx
je 0x180019dad
call fcn.18001c810
test eax, eax
je 0x180019cd6
test r13, r13
je 0x180019c35
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 0x180019bfd
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.18002cb70
sub rsp, rax
lea rsi, [rsp + 0x30]
test rsi, rsi
je 0x180019c35
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 0x180019c39
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 0x180019da0
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x180019c7d
cmp eax, 2
je 0x180019c7d
cmp eax, 6
je 0x180019c7d
cmp eax, 7
jne 0x180019da0
mov ecx, dword [rbp]
add ecx, 2
call fcn.180029d7c
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rdi, rax
call fcn.180029630
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 0x180019d88
mov rcx, qword [rbp + 0x50]
mov rdx, rdi
call fcn.1800119d0
jmp 0x180019d6c
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 0x180019da0
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x180019d1c
cmp eax, 2
je 0x180019d1c
cmp eax, 6
je 0x180019d1c
cmp eax, 7
jne 0x180019da0
mov ecx, dword [rbp]
add ecx, 2
call fcn.180029d7c
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rdi, rax
call fcn.180029630
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 0x180019d88
mov rcx, qword [rbp + 0x50]
mov rdx, rdi
call fcn.180014410
cmp rbx, r12
je 0x180019d79
mov rcx, rbx
call fcn.180019730
mov rcx, rdi
call fcn.180029a70
mov eax, 1
jmp 0x180019daf
mov rcx, rdi
call fcn.180029a70
mov rcx, qword [rbp + 0x50]
lea rdx, [0x1800a82b8]
call fcn.180014410
cmp rbx, r12
je 0x180019dad
mov rcx, rbx
call fcn.180019730
xor eax, eax
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.180029600
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 0x180019de0
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 0x180019e0e
or r9d, 0x20006
mov r8d, r9d
call fcn.1800196e0
mov rbx, rax
jmp 0x180019e11
mov rbx, rcx
test rbx, rbx
je 0x180019e70
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 0x180019e63
cmp rbx, rdi
je 0x180019e4e
mov rcx, rbx
call fcn.180019730
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp rbx, rdi
je 0x180019e70
mov rcx, rbx
call fcn.180019730
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x180019e90
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 0x180019ebe
or r9d, 0x20006
mov r8d, r9d
call fcn.1800196e0
mov rbx, rax
jmp 0x180019ec1
mov rbx, rcx
test rbx, rbx
je 0x180019f20
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 0x180019f13
cmp rbx, rdi
je 0x180019efe
mov rcx, rbx
call fcn.180019730
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp rbx, rdi
je 0x180019f20
mov rcx, rbx
call fcn.180019730
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x180019f40
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 0x180019f6e
or r9d, 0x20006
mov r8d, r9d
call fcn.1800196e0
mov rbx, rax
jmp 0x180019f71
mov rbx, rcx
test rbx, rbx
je 0x180019fe4
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 0x180019fd7
cmp rbx, rsi
je 0x180019fc2
mov rcx, rbx
call fcn.180019730
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp rbx, rsi
je 0x180019fe4
mov rcx, rbx
call fcn.180019730
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rsi
ret
Function at 0x18001a000
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 0x18001a179
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x60], rdi
cmp dword [rsp + 0x98], eax
je 0x18001a14f
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.180029d7c
mov rbx, rax
test rax, rax
je 0x18001a175
nop word [rax + rax]
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov rcx, rbx
inc r8d
call fcn.180029630
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 0x18001a16d
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
or r8d, 0x2001f
call fcn.1800196b0
mov rdi, rax
test rax, rax
je 0x18001a16d
mov edx, esi
mov rcx, rax
call fcn.18001a000
mov rcx, rdi
test eax, eax
je 0x18001a168
call fcn.180019730
mov r11, qword [0x1800eef48]
test r11, r11
je 0x18001a12a
test esi, esi
je 0x18001a12a
xor r9d, r9d
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call r11
jmp 0x18001a136
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x18001a16d
dec dword [rsp + 0x98]
jne 0x18001a0a0
mov rcx, rbx
call fcn.180029a70
mov eax, 1
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
pop rsi
pop rbp
ret
call fcn.180019730
mov rcx, rbx
call fcn.180029a70
xor eax, eax
jmp 0x18001a154
xor eax, eax
add rsp, 0x68
pop rsi
pop rbp
ret

Function at 0x18001a290
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 0x18001a2c6
or r8d, 0x20019
call fcn.1800196b0
mov rbx, rax
jmp 0x18001a2c9
mov rbx, rcx
mov rsi, qword [rsp + 0x90]
xor r12d, r12d
test rbx, rbx
je 0x18001a337
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 0x18001a32a
cmp rbx, rdi
je 0x18001a323
mov rcx, rbx
call fcn.180019730
mov eax, 1
jmp 0x18001a340
cmp rbx, rdi
je 0x18001a337
mov rcx, rbx
call fcn.180019730
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 0x18001a610
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov edi, r9d
mov r12, r8
mov rbp, rcx
test rdx, rdx
je 0x18001a643
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
or r8d, 0x20019
call fcn.1800196b0
mov rsi, rax
jmp 0x18001a646
mov rsi, qword [rcx]
test rsi, rsi
je 0x18001a6e2
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rbx
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor ebx, ebx
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18001a6bf
test edi, edi
je 0x18001a6ba
dec edi
je 0x18001a6a2
sub edi, 2
je 0x18001a698
dec edi
jne 0x18001a6bf
cmp dword [rsp + 0x68], 4
sete bl
jmp 0x18001a6bf
cmp dword [rsp + 0x68], 3
sete bl
jmp 0x18001a6bf
mov eax, dword [rsp + 0x68]
cmp eax, 1
je 0x18001a6ba
cmp eax, 2
je 0x18001a6ba
cmp eax, 6
je 0x18001a6ba
cmp eax, 7
jne 0x18001a6bf
mov ebx, 1
cmp rsi, qword [rbp]
je 0x18001a6cd
mov rcx, rsi
call fcn.180019730
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
xor eax, eax
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
mov r9d, r8d
mov r8, rdx
xor edx, edx
jmp 0x18001a610

Function at 0x18001a7c0
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.180014f90
test rbx, rbx
je 0x18001a810
or edi, 0x20019
mov rdx, rbx
mov rcx, r13
mov r8d, edi
call fcn.1800196b0
mov rsi, rax
jmp 0x18001a813
mov rsi, r13
mov qword [rsp + 0x70], r12
test rsi, rsi
je 0x18001a917
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 0x18001a90a
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x18001a86c
cmp eax, 2
je 0x18001a86c
cmp eax, 6
je 0x18001a86c
cmp eax, 7
jne 0x18001a90a
mov ecx, dword [rsp + 0x78]
add ecx, 2
call fcn.180029d7c
mov r8d, dword [rsp + 0x78]
xor edx, edx
add r8d, 2
mov rcx, rax
mov r12, rax
call fcn.180029630
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 0x18001a902
mov rbx, r12
cmp byte [r12], al
je 0x18001a8e6
nop dword [rax]
mov edx, dword [rbp + 8]
mov r8, rbx
mov rcx, rbp
call fcn.180015190
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 0x18001a8c0
cmp rsi, r13
je 0x18001a8f3
mov rcx, rsi
call fcn.180019730
mov rcx, r12
call fcn.180029a70
mov eax, 1
jmp 0x18001a919
mov rcx, r12
call fcn.180029a70
cmp rsi, r13
je 0x18001a917
mov rcx, rsi
call fcn.180019730
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 0x18001ade0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push r14
sub rsp, 0x58
mov r14, rcx
test rdx, rdx
je 0x18001ae08
or r9d, 0x20006
mov r8d, r9d
call fcn.1800196e0
mov rbx, rax
jmp 0x18001ae0b
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 0x18001af64
mov rsi, qword [rsp + 0x90]
xor r12d, r12d
mov r15d, 1
mov edi, r12d
cmp dword [rsi + 8], r12d
jle 0x18001ae7c
nop word [rax + rax]
lea rdx, [rsp + 0x78]
mov r8d, edi
mov rcx, rsi
call fcn.18001a750
mov rcx, qword [rax]
mov eax, dword [rcx - 8]
lea rcx, [rsp + 0x78]
lea r15d, [r15 + rax + 1]
call fcn.18000fef0
inc edi
cmp edi, dword [rsi + 8]
jl 0x18001ae50
mov ecx, r15d
mov edi, r15d
call fcn.180029d7c
mov rbp, rax
test rax, rax
je 0x18001af64
mov r8d, edi
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x38], r13
call fcn.180029630
mov r13, rbp
cmp dword [rsi + 8], r12d
jle 0x18001af06
nop
lea rdx, [rsp + 0x78]
mov r8d, r12d
mov rcx, rsi
call fcn.18001a750
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 0x18001aed0
lea rcx, [rsp + 0x78]
call fcn.18000fef0
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 0x18001aeb0
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 0x18001af4f
cmp rbx, r14
je 0x18001af40
mov rcx, rbx
call fcn.180019730
mov rcx, rbp
call fcn.180029a70
mov eax, 1
jmp 0x18001af66
mov rcx, rbp
call fcn.180029a70
cmp rbx, r14
je 0x18001af64
mov rcx, rbx
call fcn.180019730
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 0x18001bd10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov edi, r9d
mov r12, r8
mov rbp, rcx
test rdx, rdx
je 0x18001a643
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
or r8d, 0x20019
call fcn.1800196b0
mov rsi, rax
jmp 0x18001a646
mov rsi, qword [rcx]
test rsi, rsi
je 0x18001a6e2
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rbx
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor ebx, ebx
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18001a6bf
test edi, edi
je 0x18001a6ba
dec edi
je 0x18001a6a2
sub edi, 2
je 0x18001a698
dec edi
jne 0x18001a6bf
cmp dword [rsp + 0x68], 4
sete bl
jmp 0x18001a6bf
cmp dword [rsp + 0x68], 3
sete bl
jmp 0x18001a6bf
mov eax, dword [rsp + 0x68]
cmp eax, 1
je 0x18001a6ba
cmp eax, 2
je 0x18001a6ba
cmp eax, 6
je 0x18001a6ba
cmp eax, 7
jne 0x18001a6bf
mov ebx, 1
cmp rsi, qword [rbp]
je 0x18001a6cd
mov rcx, rsi
call fcn.180019730
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
xor eax, eax
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
mov r9d, r8d
mov r8, rdx
xor edx, edx
jmp 0x18001a610

Function at 0x18001be20
Capabilities:
Get common file path
Get file version info

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x1800d7110]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov eax, dword [0x1800ef0e4]
test eax, eax
jne 0x18001bf48
mov byte [rsp + 0x150], al
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x151]
call fcn.180029630
mov edx, 0x104
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x18001bf42
mov byte [rsp + 0x40], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x41]
call fcn.180029630
lea r9, str.user32.dll
lea r8, [rsp + 0x150]
lea rdx, [0x1800a5a04]
lea rcx, [rsp + 0x40]
call fcn.18002971c
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [rsp + 0x24], eax
mov ecx, eax
call fcn.180029d7c
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18001bf42
mov r9, rax
mov r8d, dword [rsp + 0x24]
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x18001bf3a
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x28]
lea rdx, str.VarFileInfoTranslation
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x18001bf3a
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
mov dword [0x1800ef0e4], ecx
jmp 0x18001bf3a
mov rcx, rbx
call fcn.180029a70
mov eax, dword [0x1800ef0e4]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180029600
add rsp, 0x270
pop rbx
ret
Function at 0x18001c580
Capabilities:
Check os version
Get system information on windows

Disassembly:
push rdi
sub rsp, 0x150
mov rax, qword [0x1800d7110]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp dword [0x1800ef0e8], 0
jne 0x18001c724
lea rcx, [0x1800eef60]
mov edi, 1
mov dword [0x1800eef60], 0x94
mov dword [0x1800ef0e8], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
xor r11d, r11d
cmp dword [0x1800eef70], 2
sete r11b
mov dword [0x1800d6c48], r11d
test r11d, r11d
je 0x18001c708
lea rcx, [0x1800ef000]
mov qword [rsp + 0x160], rbx
mov dword [0x1800ef000], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetProductInfo
mov rcx, rbx
mov qword [0x1800eef58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1800ef0a0]
mov qword [0x1800ef0d0], rax
mov rax, qword [0x1800eef58]
test rax, rax
je 0x18001c65c
call rax
jmp 0x18001c662
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1800ef004]
cmp eax, 6
jae 0x18001c67b
cmp eax, 5
jne 0x18001c692
cmp dword [0x1800ef008], 2
jb 0x18001c692
mov eax, dword [0x1800eef50]
cmp word [0x1800ef0a0], 9
cmove eax, edi
mov dword [0x1800eef50], eax
lea rcx, str.Ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001c6c0
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x1800ef0d8], rax
jmp 0x18001c6c7
mov rbx, qword [0x1800ef0d8]
test rbx, rbx
je 0x18001c700
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x110
call fcn.180029630
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call rbx
mov ecx, dword [0x1800eef6c]
test eax, eax
cmove ecx, dword [rsp + 0x2c]
mov dword [0x1800eef6c], ecx
mov rbx, qword [rsp + 0x160]
lea rdx, [0x1800eef68]
lea rcx, [0x1800eef64]
call fcn.18001c440
call fcn.18001c180
mov eax, edi
jmp 0x18001c729
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180029600
add rsp, 0x150
pop rdi
ret

Function at 0x18001e010
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1800d7110]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov rsi, r8
mov edi, edx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.180029630
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x18001e074
lea r8, [rsp + 0x20]
mov r9, rsi
mov edx, edi
mov rcx, rbx
call fcn.18001dd40
jmp 0x18001e07a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x1800ef0ec], eax
test eax, eax
je 0x18001e08e
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180029600
add rsp, 0x140
pop rdi
pop rsi
pop rbx
ret
jmp 0x18001e010