joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002db30
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, r8
lea r8, [rsp + 0x30]
xor edi, edi
mov rcx, 0xffffffff80000002
mov rbx, r9
mov rsi, rdx
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x18002db83
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x18002dbc5
test rbx, rbx
je 0x18002db9a
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea edi, [rcx + rcx]
mov rcx, qword [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x18002dbe0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x40
mov rdi, r8
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov rbx, rdx
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x18002dc2d
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x18002dc61
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov r9d, 4
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18002dc70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, r8
lea r8, [rsp + 0x38]
xor ebx, ebx
mov rcx, 0xffffffff80000002
mov rsi, rdx
mov qword [rsp + 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x18002dcbf
lea r8, [rsp + 0x38]
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x18002dd59
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, dword [rsp + 0x68]
cmp r11d, 2
jb 0x18002dd4e
add r11d, 2
mov eax, 2
mov dword [rsp + 0x68], r11d
shr r11d, 1
mov ecx, r11d
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.18004b754
mov rbx, rax
test rax, rax
je 0x18002dd4e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x18002dd70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, r8
lea r8, [rsp + 0x38]
xor ebx, ebx
mov rcx, 0xffffffff80000002
mov rsi, rdx
mov qword [rsp + 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x18002ddbf
lea r8, [rsp + 0x38]
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x18002de3f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r11d, dword [rsp + 0x68]
cmp r11d, 1
jb 0x18002de34
inc r11d
mov ecx, r11d
mov dword [rsp + 0x68], r11d
call fcn.18004b754
mov rbx, rax
test rax, rax
je 0x18002de34
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18002de60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, r8
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov rbx, rdx
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x18002deb0
lea r8, [rsp + 0x38]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x18002def5
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1800313c0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rbp, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
mov rbx, r9
mov rsi, rdx
repne scasb al, byte [rdi]
mov eax, 0x1f3
not rcx
dec rcx
sub eax, ecx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
mov rcx, rbp
mov dword [rsp + 0x24], eax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rax
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x18003142a
lea eax, [rcx + 2]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov edx, 1
movsxd rdi, edi
mov dword [rsp + 0x20], edx
mov qword [rsp + 0x30], rdi
nop dword [rax + rax]
test byte [rsi], 0x10
je 0x18003156a
cmp byte [rsi + 0x2c], 0x2e
jne 0x180031469
movzx eax, byte [rsi + 0x2d]
cmp al, 0x2e
jne 0x180031461
cmp byte [rsi + 0x2e], 0
je 0x1800315a2
test al, al
je 0x1800315a2
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsi + 0x2c]
repne scasb al, byte [rdi]
not rcx
dec rcx
mov qword [rsp + 0x38], rcx
lea eax, [rcx + 1]
cmp dword [rsp + 0x24], eax
jb 0x180031598
mov rax, qword [rsp + 0x30]
mov r9, qword [rsp + 0x88]
lea rdx, [rsi + 0x2c]
mov r8d, 0x10002
mov rcx, rbp
mov byte [rax + rbp - 1], 0
call qword [rsp + 0x80]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasb al, byte [rdi]
xor ecx, ecx
movzx eax, byte [rsi + rcx + 0x2c]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x1800314c0
mov r9, qword [rsp + 0x88]
mov r8, qword [rsp + 0x80]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov rdx, rsi
repne scasb al, byte [rdi]
movzx eax, word [0x1800f6648]
mov rcx, rbp
mov word [rdi - 1], ax
movzx eax, byte [0x1800f664a]
mov byte [rdi + 1], al
call fcn.1800313c0
lea rcx, [rsi + 0x2c]
xor edx, edx
mov r8d, 0x104
call fcn.18004a760
mov eax, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x38]
lea rdx, [rax + rbp - 1]
lea rcx, [rsi + 0x2c]
call fcn.18004a5e0
mov rdi, qword [rsp + 0x30]
mov r9, qword [rsp + 0x88]
lea rdx, [rsi + 0x2c]
mov r8d, 0x20002
mov rcx, rbp
mov byte [rdi + rbp - 1], 0
call qword [rsp + 0x80]
mov byte [rdi + rbp - 1], 0x2a
mov edx, eax
mov dword [rsp + 0x20], eax
mov byte [rdi + rbp], 0
jmp 0x18003159d
lea rdx, [rsi + 0x2c]
mov r9, rbx
mov r8d, 1
mov rcx, rbp
mov byte [rdi + rbp - 1], 0
call qword [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
mov byte [rdi + rbp - 1], 0x2a
mov edx, eax
mov dword [rsp + 0x20], eax
jmp 0x1800315aa
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x88]
test edx, edx
je 0x1800315c8
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
test eax, eax
jne 0x180031440
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x20]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x180032060
Capabilities:
Check if file exists

Disassembly:
mov rcx, rdx
jmp 0x180032060
sub rsp, 0x28
test rcx, rcx
jne 0x180032070
xor eax, eax
add rsp, 0x28
ret
mov qword [rsp + 0x20], rbx
mov ebx, 1
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x180032094
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
cmove ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x1800386f0
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 0x180038753
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180038753
xor edx, edx
nop dword [rax + rax]
movzx ecx, word [rax]
cmp ebx, edx
je 0x180038765
inc edx
lea rax, [rax + rcx*2 + 2]
cmp edx, 0x10
jl 0x180038740
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.1800385e0
test eax, eax
jne 0x180038783
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 0x180038c00
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 0x180038c6b
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rax
test rax, rax
je 0x180038c6b
xor ebp, ebp
mov eax, ebp
movzx ecx, word [rdx]
add rdx, 2
cmp ebx, eax
je 0x180038c82
inc eax
lea rdx, [rdx + rcx*2]
cmp eax, 0x10
jl 0x180038c55
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.18004b380
mov word [rbx + rsi], bp
mov eax, edi
jmp 0x180038c6d

Function at 0x1800430f0
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 0x18004311e
or r9d, 0x20019
mov r8d, r9d
call fcn.180043050
mov rbx, rax
jmp 0x180043121
mov rbx, rcx
test rbx, rbx
je 0x1800431c7
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 0x1800431ba
cmp dword [rsp + 0x30], 4
jne 0x1800431ba
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 0x1800431ba
cmp rbx, rdi
je 0x1800431a5
mov rcx, rbx
call fcn.1800430d0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x1800431c7
mov rcx, rbx
call fcn.1800430d0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x1800431e0
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 0x18004320e
or r9d, 0x20019
mov r8d, r9d
call fcn.180043050
mov rbx, rax
jmp 0x180043211
mov rbx, rcx
test rbx, rbx
je 0x1800432af
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 0x1800432a2
cmp dword [rsp + 0x30], 3
jne 0x1800432a2
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x78], eax
jb 0x1800432a2
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 0x1800432a2
cmp rbx, rdi
je 0x18004328d
mov rcx, rbx
call fcn.1800430d0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x1800432af
mov rcx, rbx
call fcn.1800430d0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x1800432d0
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 0x1800432fe
or r9d, 0x20019
mov r8d, r9d
call fcn.180043050
mov rbx, rax
jmp 0x180043301
mov rbx, rcx
mov qword [rsp + 0x50], rdi
test rbx, rbx
je 0x1800433b3
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 0x1800433a6
cmp dword [rsp + 0x30], 3
jne 0x1800433a6
mov ecx, dword [rsp + 0x58]
call fcn.18004b754
mov rdi, rax
test rax, rax
je 0x1800433a6
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 0x18004339e
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 0x180043397
mov rcx, rbx
call fcn.1800430d0
mov eax, 1
jmp 0x1800433b5
mov rcx, rdi
call fcn.180049d70
cmp rbx, rsi
je 0x1800433b3
mov rcx, rbx
call fcn.1800430d0
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 0x1800433d0
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 0x1800433fe
or r9d, 0x20019
mov r8d, r9d
call fcn.180043050
mov rbx, rax
jmp 0x180043401
mov rbx, rcx
mov qword [rsp + 0x50], rsi
test rbx, rbx
je 0x1800434f0
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 0x1800434e3
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x18004345a
cmp eax, 2
je 0x18004345a
cmp eax, 6
je 0x18004345a
cmp eax, 7
jne 0x1800434e3
mov ecx, dword [rsp + 0x58]
add ecx, 2
call fcn.18004b754
mov r8d, dword [rsp + 0x58]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rsi, rax
call fcn.18004a760
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 0x1800434ca
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
call fcn.1800395f0
cmp rbx, rdi
je 0x1800434bb
mov rcx, rbx
call fcn.1800430d0
mov rcx, rsi
call fcn.180049d70
mov eax, 1
jmp 0x1800434f2
mov rcx, rsi
call fcn.180049d70
mov rcx, qword [rsp + 0x70]
lea rdx, [0x1800d4346]
call fcn.1800395f0
cmp rbx, rdi
je 0x1800434f0
mov rcx, rbx
call fcn.1800430d0
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 0x180043510
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 [0x180132920]
xor rax, rbp
mov qword [rbp + 8], rax
mov r13, r8
mov r12, rcx
test rdx, rdx
je 0x180043558
or r9d, 0x20019
mov r8d, r9d
call fcn.180043050
mov rbx, rax
jmp 0x18004355b
mov rbx, rcx
test rbx, rbx
je 0x18004374d
call fcn.180078b30
test eax, eax
je 0x180043676
test r13, r13
je 0x1800435d5
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 0x18004359d
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1800cba70
sub rsp, rax
lea rsi, [rsp + 0x30]
test rsi, rsi
je 0x1800435d5
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 0x1800435d9
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 0x180043740
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x18004361d
cmp eax, 2
je 0x18004361d
cmp eax, 6
je 0x18004361d
cmp eax, 7
jne 0x180043740
mov ecx, dword [rbp]
add ecx, 2
call fcn.18004b754
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rdi, rax
call fcn.18004a760
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 0x180043728
mov rcx, qword [rbp + 0x50]
mov rdx, rdi
call fcn.18003af50
jmp 0x18004370c
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 0x180043740
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x1800436bc
cmp eax, 2
je 0x1800436bc
cmp eax, 6
je 0x1800436bc
cmp eax, 7
jne 0x180043740
mov ecx, dword [rbp]
add ecx, 2
call fcn.18004b754
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rdi, rax
call fcn.18004a760
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 0x180043728
mov rcx, qword [rbp + 0x50]
mov rdx, rdi
call fcn.18003d960
cmp rbx, r12
je 0x180043719
mov rcx, rbx
call fcn.1800430d0
mov rcx, rdi
call fcn.180049d70
mov eax, 1
jmp 0x18004374f
mov rcx, rdi
call fcn.180049d70
mov rcx, qword [rbp + 0x50]
lea rdx, [0x1800d4346]
call fcn.18003d960
cmp rbx, r12
je 0x18004374d
mov rcx, rbx
call fcn.1800430d0
xor eax, eax
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.18004ac60
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 0x180043780
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 0x1800437ae
or r9d, 0x20006
mov r8d, r9d
call fcn.180043080
mov rbx, rax
jmp 0x1800437b1
mov rbx, rcx
test rbx, rbx
je 0x180043810
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 0x180043803
cmp rbx, rdi
je 0x1800437ee
mov rcx, rbx
call fcn.1800430d0
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp rbx, rdi
je 0x180043810
mov rcx, rbx
call fcn.1800430d0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x180043830
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 0x18004385e
or r9d, 0x20006
mov r8d, r9d
call fcn.180043080
mov rbx, rax
jmp 0x180043861
mov rbx, rcx
test rbx, rbx
je 0x1800438c0
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 0x1800438b3
cmp rbx, rdi
je 0x18004389e
mov rcx, rbx
call fcn.1800430d0
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp rbx, rdi
je 0x1800438c0
mov rcx, rbx
call fcn.1800430d0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1800438e0
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 0x18004390e
or r9d, 0x20006
mov r8d, r9d
call fcn.180043080
mov rbx, rax
jmp 0x180043911
mov rbx, rcx
test rbx, rbx
je 0x180043984
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 0x180043977
cmp rbx, rsi
je 0x180043962
mov rcx, rbx
call fcn.1800430d0
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp rbx, rsi
je 0x180043984
mov rcx, rbx
call fcn.1800430d0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rsi
ret