joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002cdd0
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp + 0x47], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rdi, rcx
lea rcx, [rbp - 0x39]
call fcn.1800272c0
mov r11, qword [0x1800f5df0]
mov qword [rbp - 0x29], r11
mov qword [rbp - 0x21], r11
mov qword [rbp - 0x19], r11
mov qword [rbp - 0x11], r11
mov qword [rbp - 9], r11
mov qword [rbp - 1], r11
mov qword [rbp + 0x27], r11
mov qword [rbp + 0x2f], r11
mov qword [rbp + 0x37], r11
mov edx, reloc.OLEAUT32.dll_SafeArrayCreate
lea rcx, [rbp - 0x49]
call fcn.180027270
nop
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x49]
lea rcx, [0x1801515d8]
call fcn.180022d00
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x18002cf09
lea rdx, str.SetGlobalInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801521a0], rax
lea rdx, str.SetPolicyInfo
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801521a8], rax
lea rdx, str.SetCommonCfgInfo
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801521b0], rax
lea rdx, str.SetSDGlobalInfo2
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801521b8], rax
lea rdx, str.SetSDLocalInfoTick
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801521c0], rax
lea rdx, str.SetSecurityAreaInfo
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801521c8], rax
lea rdx, str.SetUserInfo
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801521d0], rax
jmp 0x18002cf10
mov rax, qword [0x1801521d0]
cmp qword [0x1801521a0], 0
je 0x18002cf58
cmp qword [0x1801521a8], 0
je 0x18002cf58
cmp qword [0x1801521b0], 0
je 0x18002cf58
cmp qword [0x1801521c0], 0
je 0x18002cf58
cmp qword [0x1801521b8], 0
je 0x18002cf58
cmp qword [0x1801521c8], 0
je 0x18002cf58
test rax, rax
je 0x18002cf58
mov ebx, 1
jmp 0x18002cf5a
xor ebx, ebx
mov dword [rdi + 8], ebx
lea rcx, [rbp - 0x49]
call fcn.180027260
nop
lea rcx, [rbp + 0x37]
call fcn.180040610
nop
lea rcx, [rbp + 0x2f]
call fcn.180040610
nop
lea rcx, [rbp + 0x27]
call fcn.180040610
nop
lea rcx, [rbp - 1]
call fcn.180040610
nop
lea rcx, [rbp - 9]
call fcn.180040610
nop
lea rcx, [rbp - 0x11]
call fcn.180040610
nop
lea rcx, [rbp - 0x19]
call fcn.180040610
nop
lea rcx, [rbp - 0x21]
call fcn.180040610
nop
lea rcx, [rbp - 0x29]
call fcn.180040610
nop
lea rcx, [rbp - 0x39]
call fcn.180027260
mov eax, ebx
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x180038150
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
xor edi, edi
lea rbx, [rcx + 0x110]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [rbx - 0x10], 0
jg 0x18003818b
mov edx, dword [rbx]
test edx, edx
je 0x18003818b
sub eax, edx
cmp eax, 0x493e0
ja 0x1800381a6
inc edi
add rbx, 4
cmp edi, 4
jb 0x180038170
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [rsp + 0x30]
movsxd rcx, edi
xchg dword [rsi + rcx*4 + 0x110], eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18003df30
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 0x18003df93
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18003df93
xor edx, edx
nop dword [rax + rax]
movzx ecx, word [rax]
cmp ebx, edx
je 0x18003dfa5
inc edx
lea rax, [rax + rcx*2 + 2]
cmp edx, 0x10
jl 0x18003df80
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.18003de30
test eax, eax
jne 0x18003dfc3
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 0x18003e440
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 0x18003e4ab
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rax
test rax, rax
je 0x18003e4ab
xor ebp, ebp
mov eax, ebp
movzx ecx, word [rdx]
add rdx, 2
cmp ebx, eax
je 0x18003e4c2
inc eax
lea rdx, [rdx + rcx*2]
cmp eax, 0x10
jl 0x18003e495
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.180070320
mov word [rbx + rsi], bp
mov eax, edi
jmp 0x18003e4ad
Function at 0x180048800
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea rbp, [rcx + 0x20]
mov r13, rcx
mov r15d, r9d
mov rcx, rbp
mov r12d, edx
call fcn.180047960
xor esi, esi
add r13, 8
mov rcx, r13
mov r14d, esi
mov edi, esi
call fcn.1800482f0
mov ebx, eax
test eax, eax
jle 0x18004886b
nop
mov edx, edi
mov rcx, r13
call fcn.180048320
cmp dword [rax], r12d
je 0x1800488c6
cmp dword [rax + 4], 1
jne 0x1800488be
inc edi
cmp edi, ebx
jl 0x180048850
xor eax, eax
mov dword [rsp + 0x20], r12d
mov qword [rsp + 0x2c], rax
mov qword [rsp + 0x34], rax
mov dword [rsp + 0x3c], eax
mov qword [rsp + 0x24], rax
mov rax, qword [rsp + 0x80]
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x38], rax
test r14d, r14d
je 0x1800488d4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x24], 2
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rsi, rax
mov qword [rsp + 0x28], rax
jmp 0x1800488e1
mov r14d, 1
jmp 0x18004886b
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x10]
xor eax, eax
jmp 0x180048918
mov dword [rsp + 0x24], 1
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.1800487e0
mov r11, qword [rbp]
mov rcx, rbp
call qword [r11 + 0x10]
test rsi, rsi
je 0x180048913
or edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x180048bb0
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 0x180048bde
or r9d, 0x20019
mov r8d, r9d
call fcn.180048b10
mov rbx, rax
jmp 0x180048be1
mov rbx, rcx
test rbx, rbx
je 0x180048c87
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 0x180048c7a
cmp dword [rsp + 0x30], 4
jne 0x180048c7a
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 0x180048c7a
cmp rbx, rdi
je 0x180048c65
mov rcx, rbx
call fcn.180048b90
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x180048c87
mov rcx, rbx
call fcn.180048b90
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x180048ca0
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 0x180048cce
or r9d, 0x20019
mov r8d, r9d
call fcn.180048b10
mov rbx, rax
jmp 0x180048cd1
mov rbx, rcx
test rbx, rbx
je 0x180048d6f
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 0x180048d62
cmp dword [rsp + 0x30], 3
jne 0x180048d62
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x78], eax
jb 0x180048d62
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 0x180048d62
cmp rbx, rdi
je 0x180048d4d
mov rcx, rbx
call fcn.180048b90
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x180048d6f
mov rcx, rbx
call fcn.180048b90
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x180048d90
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 0x180048dbe
or r9d, 0x20019
mov r8d, r9d
call fcn.180048b10
mov rbx, rax
jmp 0x180048dc1
mov rbx, rcx
mov qword [rsp + 0x50], rdi
test rbx, rbx
je 0x180048e73
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 0x180048e66
cmp dword [rsp + 0x30], 3
jne 0x180048e66
mov ecx, dword [rsp + 0x58]
call fcn.18006f3c0
mov rdi, rax
test rax, rax
je 0x180048e66
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 0x180048e5e
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 0x180048e57
mov rcx, rbx
call fcn.180048b90
mov eax, 1
jmp 0x180048e75
mov rcx, rdi
call fcn.18006f310
cmp rbx, rsi
je 0x180048e73
mov rcx, rbx
call fcn.180048b90
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 0x180048e90
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 0x180048ebe
or r9d, 0x20019
mov r8d, r9d
call fcn.180048b10
mov rbx, rax
jmp 0x180048ec1
mov rbx, rcx
mov qword [rsp + 0x50], rsi
test rbx, rbx
je 0x180048fb0
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 0x180048fa3
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x180048f1a
cmp eax, 2
je 0x180048f1a
cmp eax, 6
je 0x180048f1a
cmp eax, 7
jne 0x180048fa3
mov ecx, dword [rsp + 0x58]
add ecx, 2
call fcn.18006f3c0
mov r8d, dword [rsp + 0x58]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rsi, rax
call fcn.18006f140
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 0x180048f8a
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
call fcn.18003ee30
cmp rbx, rdi
je 0x180048f7b
mov rcx, rbx
call fcn.180048b90
mov rcx, rsi
call fcn.18006f310
mov eax, 1
jmp 0x180048fb2
mov rcx, rsi
call fcn.18006f310
mov rcx, qword [rsp + 0x70]
lea rdx, [0x1800e2938]
call fcn.18003ee30
cmp rbx, rdi
je 0x180048fb0
mov rcx, rbx
call fcn.180048b90
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 0x180048fd0
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 [0x1801345d0]
xor rax, rbp
mov qword [rbp + 8], rax
mov r13, r8
mov r12, rcx
test rdx, rdx
je 0x180049018
or r9d, 0x20019
mov r8d, r9d
call fcn.180048b10
mov rbx, rax
jmp 0x18004901b
mov rbx, rcx
test rbx, rbx
je 0x18004920d
call fcn.18009fed0
test eax, eax
je 0x180049136
test r13, r13
je 0x180049095
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 0x18004905d
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1800724d0
sub rsp, rax
lea rsi, [rsp + 0x30]
test rsi, rsi
je 0x180049095
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 0x180049099
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 0x180049200
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x1800490dd
cmp eax, 2
je 0x1800490dd
cmp eax, 6
je 0x1800490dd
cmp eax, 7
jne 0x180049200
mov ecx, dword [rbp]
add ecx, 2
call fcn.18006f3c0
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rdi, rax
call fcn.18006f140
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 0x1800491e8
mov rcx, qword [rbp + 0x50]
mov rdx, rdi
call fcn.180040790
jmp 0x1800491cc
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 0x180049200
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x18004917c
cmp eax, 2
je 0x18004917c
cmp eax, 6
je 0x18004917c
cmp eax, 7
jne 0x180049200
mov ecx, dword [rbp]
add ecx, 2
call fcn.18006f3c0
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rdi, rax
call fcn.18006f140
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 0x1800491e8
mov rcx, qword [rbp + 0x50]
mov rdx, rdi
call fcn.1800431a0
cmp rbx, r12
je 0x1800491d9
mov rcx, rbx
call fcn.180048b90
mov rcx, rdi
call fcn.18006f310
mov eax, 1
jmp 0x18004920f
mov rcx, rdi
call fcn.18006f310
mov rcx, qword [rbp + 0x50]
lea rdx, [0x1800e2938]
call fcn.1800431a0
cmp rbx, r12
je 0x18004920d
mov rcx, rbx
call fcn.180048b90
xor eax, eax
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.18006f110
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 0x180049240
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 0x18004926e
or r9d, 0x20006
mov r8d, r9d
call fcn.180048b40
mov rbx, rax
jmp 0x180049271
mov rbx, rcx
test rbx, rbx
je 0x1800492d0
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 0x1800492c3
cmp rbx, rdi
je 0x1800492ae
mov rcx, rbx
call fcn.180048b90
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp rbx, rdi
je 0x1800492d0
mov rcx, rbx
call fcn.180048b90
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1800492f0
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 0x18004931e
or r9d, 0x20006
mov r8d, r9d
call fcn.180048b40
mov rbx, rax
jmp 0x180049321
mov rbx, rcx
test rbx, rbx
je 0x180049380
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 0x180049373
cmp rbx, rdi
je 0x18004935e
mov rcx, rbx
call fcn.180048b90
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp rbx, rdi
je 0x180049380
mov rcx, rbx
call fcn.180048b90
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1800493a0
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 0x1800493ce
or r9d, 0x20006
mov r8d, r9d
call fcn.180048b40
mov rbx, rax
jmp 0x1800493d1
mov rbx, rcx
test rbx, rbx
je 0x180049444
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 0x180049437
cmp rbx, rsi
je 0x180049422
mov rcx, rbx
call fcn.180048b90
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp rbx, rsi
je 0x180049444
mov rcx, rbx
call fcn.180048b90
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rsi
ret
Function at 0x180049460
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 0x1800495d9
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x60], rdi
cmp dword [rsp + 0x98], eax
je 0x1800495af
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.18006f3c0
mov rbx, rax
test rax, rax
je 0x1800495d5
nop word [rax + rax]
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov rcx, rbx
inc r8d
call fcn.18006f140
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 0x1800495cd
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
or r8d, 0x2001f
call fcn.180048b10
mov rdi, rax
test rax, rax
je 0x1800495cd
mov edx, esi
mov rcx, rax
call fcn.180049460
mov rcx, rdi
test eax, eax
je 0x1800495c8
call fcn.180048b90
mov r11, qword [0x1801526c0]
test r11, r11
je 0x18004958a
test esi, esi
je 0x18004958a
xor r9d, r9d
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call r11
jmp 0x180049596
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x1800495cd
dec dword [rsp + 0x98]
jne 0x180049500
mov rcx, rbx
call fcn.18006f310
mov eax, 1
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
pop rsi
pop rbp
ret
call fcn.180048b90
mov rcx, rbx
call fcn.18006f310
xor eax, eax
jmp 0x1800495b4
xor eax, eax
add rsp, 0x68
pop rsi
pop rbp
ret
Function at 0x1800495f0
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 0x18004962f
mov r8d, r9d
or r8d, 0x2001f
call fcn.180048b10
mov rbx, rax
jmp 0x180049632
mov rbx, rcx
test rbx, rbx
je 0x1800496c9
mov rcx, rbx
test rbp, rbp
je 0x180049664
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x1800496bc
cmp rbx, rdi
je 0x18004965d
mov rcx, rbx
call fcn.180048b90
mov eax, 1
jmp 0x1800496cb
mov edx, esi
call fcn.180049460
test eax, eax
je 0x1800496bc
cmp rbx, rdi
je 0x18004967c
mov rcx, rbx
call fcn.180048b90
mov rax, qword [0x1801526c0]
test rax, rax
je 0x1800496a5
test esi, esi
je 0x1800496a5
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 0x1800496cb
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x1800496cb
cmp rbx, rdi
je 0x1800496c9
mov rcx, rbx
call fcn.180048b90
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 0x1800495f0

Function at 0x1800496f0
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 0x180049726
or r8d, 0x20019
call fcn.180048b10
mov rbx, rax
jmp 0x180049729
mov rbx, rcx
mov rsi, qword [rsp + 0x90]
xor r12d, r12d
test rbx, rbx
je 0x180049797
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 0x18004978a
cmp rbx, rdi
je 0x180049783
mov rcx, rbx
call fcn.180048b90
mov eax, 1
jmp 0x1800497a0
cmp rbx, rdi
je 0x180049797
mov rcx, rbx
call fcn.180048b90
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