joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180013b60
Capabilities:
Copy file

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x58
mov qword [rbp - 0x28], 0xfffffffffffffffe
cmp dword [0x1800d758c], 0
jne 0x180013b99
mov dword [0x1800d758c], 1
xor r8d, r8d
mov edx, 0x104
lea rcx, [0x1800d7590]
call fcn.18002e660
call fcn.18000e050
mov rbx, rax
mov r8d, 1
lea rdx, [0x1800d1be0]
lea rcx, [rbp - 0x20]
call fcn.1800240d0
nop
mov rcx, qword [0x18007db48]
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x28], rcx
lea rcx, [rbp + 0x30]
call fcn.180022270
mov r9, qword [str.baksda64.sys]
mov r8, rbx
lea rdx, [0x180092920]
lea rcx, [rbp + 0x30]
call fcn.180021990
lea rcx, [rbp + 0x28]
call fcn.180022270
mov r9, qword [str.sdagent64.dll]
lea r8, [0x1800d7590]
lea rdx, [0x180092920]
lea rcx, [rbp + 0x28]
call fcn.180021990
xor r11d, r11d
mov qword [rbp - 0x38], r11
mov qword [rbp - 0x30], r11
mov dword [rbp + 0x20], r11d
mov dword [rbp + 0x18], r11d
lea r8, [rbp + 0x20]
lea rdx, [rbp - 0x38]
mov rcx, qword [rbp + 0x30]
call fcn.180010930
lea r8, [rbp + 0x18]
lea rdx, [rbp - 0x30]
mov rcx, qword [rbp + 0x28]
call fcn.180010930
mov r11d, dword [rbp + 0x18]
cmp dword [rbp + 0x20], r11d
jne 0x180013c5a
mov rax, qword [rbp - 0x38]
cmp rax, qword [rbp - 0x30]
je 0x180013c6c
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop
lea rcx, [rbp + 0x28]
call fcn.180020de0
nop
lea rcx, [rbp + 0x30]
call fcn.180020de0
nop
lea rcx, [rbp - 0x20]
call fcn.180024110
add rsp, 0x58
pop rbx
pop rbp
ret

Function at 0x180015040
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rsi, rdx
mov rbx, rcx
lea rdx, [rcx + 8]
mov r8d, 1
lea rcx, [rsp + 0x38]
call fcn.1800240d0
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
je 0x1800150cf
test rsi, rsi
je 0x1800150cf
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r11d, r11d
mov dword [rsp + 0x60], r11d
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx + rcx - 2]
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x60]
mov rdx, rsi
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rcx, [rsp + 0x38]
call fcn.180024110
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x180021b10
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_FindResourceExW]
test rax, rax
je 0x180021b7b
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rax
test rax, rax
je 0x180021b7b
xor ebp, ebp
mov eax, ebp
movzx ecx, word [rdx]
add rdx, 2
cmp ebx, eax
je 0x180021b92
inc eax
lea rdx, [rdx + rcx*2]
cmp eax, 0x10
jl 0x180021b65
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.180031840
mov word [rbx + rsi], bp
mov eax, edi
jmp 0x180021b7d

Function at 0x1800241c0
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 0x1800241ee
or r9d, 0x20019
mov r8d, r9d
call fcn.180024120
mov rbx, rax
jmp 0x1800241f1
mov rbx, rcx
test rbx, rbx
je 0x180024297
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_RegQueryValueExW]
test eax, eax
jne 0x18002428a
cmp dword [rsp + 0x30], 4
jne 0x18002428a
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_RegQueryValueExW]
test eax, eax
jne 0x18002428a
cmp rbx, rdi
je 0x180024275
mov rcx, rbx
call fcn.1800241a0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x180024297
mov rcx, rbx
call fcn.1800241a0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x1800242b0
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 0x1800242de
or r9d, 0x20019
mov r8d, r9d
call fcn.180024120
mov rbx, rax
jmp 0x1800242e1
mov rbx, rcx
test rbx, rbx
je 0x18002437f
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_RegQueryValueExW]
test eax, eax
jne 0x180024372
cmp dword [rsp + 0x30], 3
jne 0x180024372
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x78], eax
jb 0x180024372
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_RegQueryValueExW]
test eax, eax
jne 0x180024372
cmp rbx, rdi
je 0x18002435d
mov rcx, rbx
call fcn.1800241a0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x18002437f
mov rcx, rbx
call fcn.1800241a0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x1800243a0
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 0x1800243ce
or r9d, 0x20019
mov r8d, r9d
call fcn.180024120
mov rbx, rax
jmp 0x1800243d1
mov rbx, rcx
mov qword [rsp + 0x50], rdi
test rbx, rbx
je 0x180024483
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_RegQueryValueExW]
test eax, eax
jne 0x180024476
cmp dword [rsp + 0x30], 3
jne 0x180024476
mov ecx, dword [rsp + 0x58]
call fcn.180030188
mov rdi, rax
test rax, rax
je 0x180024476
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_RegQueryValueExW]
test eax, eax
jne 0x18002446e
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 0x180024467
mov rcx, rbx
call fcn.1800241a0
mov eax, 1
jmp 0x180024485
mov rcx, rdi
call fcn.180030110
cmp rbx, rsi
je 0x180024483
mov rcx, rbx
call fcn.1800241a0
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 0x1800244a0
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 0x1800244ce
or r9d, 0x20019
mov r8d, r9d
call fcn.180024120
mov rbx, rax
jmp 0x1800244d1
mov rbx, rcx
mov qword [rsp + 0x50], rsi
test rbx, rbx
je 0x1800245c0
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_RegQueryValueExW]
test eax, eax
jne 0x1800245b3
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x18002452a
cmp eax, 2
je 0x18002452a
cmp eax, 6
je 0x18002452a
cmp eax, 7
jne 0x1800245b3
mov ecx, dword [rsp + 0x58]
add ecx, 2
call fcn.180030188
mov r8d, dword [rsp + 0x58]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rsi, rax
call fcn.180031f40
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_RegQueryValueExW]
test eax, eax
jne 0x18002459a
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
call fcn.180020f60
cmp rbx, rdi
je 0x18002458b
mov rcx, rbx
call fcn.1800241a0
mov rcx, rsi
call fcn.180030110
mov eax, 1
jmp 0x1800245c2
mov rcx, rsi
call fcn.180030110
mov rcx, qword [rsp + 0x70]
lea rdx, [0x1800926d0]
call fcn.180020f60
cmp rbx, rdi
je 0x1800245c0
mov rcx, rbx
call fcn.1800241a0
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 0x180024880
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 0x1800248ae
or r9d, 0x20006
mov r8d, r9d
call fcn.180024150
mov rbx, rax
jmp 0x1800248b1
mov rbx, rcx
test rbx, rbx
je 0x180024910
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_RegSetValueExW]
test eax, eax
jne 0x180024903
cmp rbx, rdi
je 0x1800248ee
mov rcx, rbx
call fcn.1800241a0
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp rbx, rdi
je 0x180024910
mov rcx, rbx
call fcn.1800241a0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x180024930
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 0x18002495e
or r9d, 0x20006
mov r8d, r9d
call fcn.180024150
mov rbx, rax
jmp 0x180024961
mov rbx, rcx
test rbx, rbx
je 0x1800249d8
mov rdx, qword [rsp + 0x60]
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rsp + 0x40], rdi
mov rdi, rdx
mov r9d, 1
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx]
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdi, qword [rsp + 0x40]
test eax, eax
jne 0x1800249cb
cmp rbx, rsi
je 0x1800249b6
mov rcx, rbx
call fcn.1800241a0
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp rbx, rsi
je 0x1800249d8
mov rcx, rbx
call fcn.1800241a0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rsi
ret
Function at 0x1800249f0
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_RegQueryInfoKeyW]
test eax, eax
jne 0x180024b7c
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x60], rdi
cmp dword [rsp + 0x98], eax
je 0x180024b52
mov eax, dword [rsp + 0x90]
mov ecx, 0x104
cmp eax, ecx
cmovb eax, ecx
mov dword [rsp + 0x90], eax
lea ecx, [rax + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180030188
mov rbx, rax
test rax, rax
je 0x180024b78
nop word [rax + rax]
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov rcx, rbx
inc r8d
add r8, r8
call fcn.180031f40
mov r9d, dword [rsp + 0x90]
mov r8, rbx
xor edx, edx
mov rcx, rbp
inc r9d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x180024b70
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
or r8d, 0x2001f
call fcn.180024120
mov rdi, rax
test rax, rax
je 0x180024b70
mov edx, esi
mov rcx, rax
call fcn.1800249f0
mov rcx, rdi
test eax, eax
je 0x180024b6b
call fcn.1800241a0
mov r11, qword [0x1800d2618]
test r11, r11
je 0x180024b2d
test esi, esi
je 0x180024b2d
xor r9d, r9d
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call r11
jmp 0x180024b39
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x180024b70
dec dword [rsp + 0x98]
jne 0x180024aa0
mov rcx, rbx
call fcn.180030110
mov eax, 1
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
pop rsi
pop rbp
ret
call fcn.1800241a0
mov rcx, rbx
call fcn.180030110
xor eax, eax
jmp 0x180024b57
xor eax, eax
add rsp, 0x68
pop rsi
pop rbp
ret
Function at 0x180024b90
Capabilities:
Delete registry key
Delete registry value

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, 0x20
mov esi, r9d
mov rbp, r8
mov r12, rdx
mov rdi, rcx
test rdx, rdx
je 0x180024bcf
mov r8d, r9d
or r8d, 0x2001f
call fcn.180024120
mov rbx, rax
jmp 0x180024bd2
mov rbx, rcx
test rbx, rbx
je 0x180024c69
mov rcx, rbx
test rbp, rbp
je 0x180024c04
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x180024c5c
cmp rbx, rdi
je 0x180024bfd
mov rcx, rbx
call fcn.1800241a0
mov eax, 1
jmp 0x180024c6b
mov edx, esi
call fcn.1800249f0
test eax, eax
je 0x180024c5c
cmp rbx, rdi
je 0x180024c1c
mov rcx, rbx
call fcn.1800241a0
mov rax, qword [0x1800d2618]
test rax, rax
je 0x180024c45
test esi, esi
je 0x180024c45
xor r9d, r9d
mov r8d, esi
mov rdx, r12
mov rcx, rdi
call rax
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x180024c6b
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x180024c6b
cmp rbx, rdi
je 0x180024c69
mov rcx, rbx
call fcn.1800241a0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov r9d, dword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x180024b90

Function at 0x180024e50
Capabilities:
Delete registry key
Delete registry value

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, 0x20
mov esi, r9d
mov rbp, r8
mov r12, rdx
mov rdi, rcx
test rdx, rdx
je 0x180024bcf
mov r8d, r9d
or r8d, 0x2001f
call fcn.180024120
mov rbx, rax
jmp 0x180024bd2
mov rbx, rcx
test rbx, rbx
je 0x180024c69
mov rcx, rbx
test rbp, rbp
je 0x180024c04
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x180024c5c
cmp rbx, rdi
je 0x180024bfd
mov rcx, rbx
call fcn.1800241a0
mov eax, 1
jmp 0x180024c6b
mov edx, esi
call fcn.1800249f0
test eax, eax
je 0x180024c5c
cmp rbx, rdi
je 0x180024c1c
mov rcx, rbx
call fcn.1800241a0
mov rax, qword [0x1800d2618]
test rax, rax
je 0x180024c45
test esi, esi
je 0x180024c45
xor r9d, r9d
mov r8d, esi
mov rdx, r12
mov rcx, rdi
call rax
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x180024c6b
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x180024c6b
cmp rbx, rdi
je 0x180024c69
mov rcx, rbx
call fcn.1800241a0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov r9d, dword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x180024b90

Function at 0x180024e60
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov r8, rdx
xor edx, edx
jmp fcn.180024e50
Function at 0x180024ec0
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 0x180024ef3
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
or r8d, 0x20019
call fcn.180024120
mov rsi, rax
jmp 0x180024ef6
mov rsi, qword [rcx]
test rsi, rsi
je 0x180024f92
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_RegQueryValueExW]
test eax, eax
jne 0x180024f6f
test edi, edi
je 0x180024f6a
dec edi
je 0x180024f52
sub edi, 2
je 0x180024f48
dec edi
jne 0x180024f6f
cmp dword [rsp + 0x68], 4
sete bl
jmp 0x180024f6f
cmp dword [rsp + 0x68], 3
sete bl
jmp 0x180024f6f
mov eax, dword [rsp + 0x68]
cmp eax, 1
je 0x180024f6a
cmp eax, 2
je 0x180024f6a
cmp eax, 6
je 0x180024f6a
cmp eax, 7
jne 0x180024f6f
mov ebx, 1
cmp rsi, qword [rbp]
je 0x180024f7d
mov rcx, rsi
call fcn.1800241a0
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 0x180024ec0

Function at 0x180025000
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.180022720
test rbx, rbx
je 0x180025050
or edi, 0x20019
mov rdx, rbx
mov rcx, r13
mov r8d, edi
call fcn.180024120
mov rsi, rax
jmp 0x180025053
mov rsi, r13
mov qword [rsp + 0x70], r12
test rsi, rsi
je 0x18002515a
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_RegQueryValueExW]
test eax, eax
jne 0x18002514d
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x1800250ac
cmp eax, 2
je 0x1800250ac
cmp eax, 6
je 0x1800250ac
cmp eax, 7
jne 0x18002514d
mov ecx, dword [rsp + 0x78]
add ecx, 2
call fcn.180030188
mov r8d, dword [rsp + 0x78]
xor edx, edx
add r8d, 2
mov rcx, rax
mov r12, rax
call fcn.180031f40
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_RegQueryValueExW]
test eax, eax
jne 0x180025145
mov rbx, r12
cmp word [r12], ax
je 0x180025129
nop dword [rax]
mov edx, dword [rbp + 8]
mov r8, rbx
mov rcx, rbp
call fcn.1800228e0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
cmp word [rbx + rcx*2], ax
lea rbx, [rbx + rcx*2]
jne 0x180025100
cmp rsi, r13
je 0x180025136
mov rcx, rsi
call fcn.1800241a0
mov rcx, r12
call fcn.180030110
mov eax, 1
jmp 0x18002515c
mov rcx, r12
call fcn.180030110
cmp rsi, r13
je 0x18002515a
mov rcx, rsi
call fcn.1800241a0
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 0x180025180
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push r14
sub rsp, 0x58
mov r14, rcx
test rdx, rdx
je 0x1800251a8
or r9d, 0x20006
mov r8d, r9d
call fcn.180024150
mov rbx, rax
jmp 0x1800251ab
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 0x18002530b
mov rsi, qword [rsp + 0x90]
xor r12d, r12d
mov r15d, 2
mov edi, r12d
cmp dword [rsi + 8], r12d
jle 0x18002521c
nop word [rax + rax]
lea rdx, [rsp + 0x78]
mov r8d, edi
mov rcx, rsi
call fcn.180024fe0
mov rcx, qword [rax]
mov eax, dword [rcx - 8]
lea rcx, [rsp + 0x78]
lea r15d, [r15 + rax*2 + 2]
call fcn.180020de0
inc edi
cmp edi, dword [rsi + 8]
jl 0x1800251f0
mov ecx, r15d
mov edi, r15d
call fcn.180030188
mov rbp, rax
test rax, rax
je 0x18002530b
mov r8d, edi
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x38], r13
call fcn.180031f40
mov r13, rbp
cmp dword [rsi + 8], r12d
jle 0x1800252ad
nop
lea rdx, [rsp + 0x78]
mov r8d, r12d
mov rcx, rsi
call fcn.180024fe0
mov rdx, r13
mov rcx, qword [rax]
nop word [rax + rax]
movzx eax, word [rcx]
add rdx, 2
add rcx, 2
mov word [rdx - 2], ax
test ax, ax
jne 0x180025270
lea rcx, [rsp + 0x78]
call fcn.180020de0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
inc r12d
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
lea r13, [r13 + rcx*2]
cmp r12d, dword [rsi + 8]
jl 0x180025250
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_RegSetValueExW]
mov r13, qword [rsp + 0x38]
test eax, eax
jne 0x1800252f6
cmp rbx, r14
je 0x1800252e7
mov rcx, rbx
call fcn.1800241a0
mov rcx, rbp
call fcn.180030110
mov eax, 1
jmp 0x18002530d
mov rcx, rbp
call fcn.180030110
cmp rbx, r14
je 0x18002530b
mov rcx, rbx
call fcn.1800241a0
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 0x180025330
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x70
mov rsi, r9
mov r12, rcx
test rdx, rdx
je 0x180025359
or r8d, 0x20019
call fcn.180024120
mov rdi, rax
jmp 0x18002535c
mov rdi, rcx
or rbp, 0xffffffffffffffff
xor edx, edx
mov rcx, rsi
mov r8d, ebp
mov qword [rsp + 0x90], rbx
call fcn.180022720
test rdi, rdi
je 0x180025494
xor ebx, ebx
lea rax, [rsp + 0x98]
xor r9d, r9d
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x98], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x180025487
cmp dword [rsp + 0x60], ebx
jbe 0x180025487
mov eax, dword [rsp + 0x98]
mov ecx, 0x104
cmp eax, ecx
cmovb eax, ecx
mov dword [rsp + 0x98], eax
lea ecx, [rax + 1]
mov eax, 2
mul rcx
cmovo rax, rbp
mov rcx, rax
call fcn.180030188
mov rbp, rax
test rax, rax
je 0x180025487
cmp dword [rsp + 0x60], ebx
jbe 0x18002546b
mov r8d, dword [rsp + 0x98]
xor edx, edx
mov rcx, rbp
inc r8d
add r8, r8
call fcn.180031f40
mov r9d, dword [rsp + 0x98]
mov r8, rbp
mov edx, ebx
mov rcx, rdi
inc r9d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x180025463
mov edx, dword [rsi + 8]
mov r8, rbp
mov rcx, rsi
call fcn.1800228e0
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x180025420
mov rcx, rbp
call fcn.180030110
cmp rdi, r12
je 0x180025480
mov rcx, rdi
call fcn.1800241a0
mov eax, 1
jmp 0x180025496
cmp rdi, r12
je 0x180025494
mov rcx, rdi
call fcn.1800241a0
xor eax, eax
mov rbx, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xa0]
add rsp, 0x70
pop r12
pop rdi
pop rsi
ret
mov r9, r8
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x180025330
mov r8, rdx
xor edx, edx
jmp 0x1800256e0