Function at 0x180046bc0
Capabilities:
Create thread
Delete registry value
Query or enumerate registry value
Resume thread
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x388
cmp qword [rsp + 0x390], 0
je 0x180046bfe
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x390]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x180046c05
xor eax, eax
jmp 0x1800476ef
lea rcx, [rsp + 0xc0]
call fcn.18004d4c0
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x3a0]
call fcn.18003a370
test eax, eax
jne 0x180046c4f
mov dword [rsp + 0xa0], 0
lea rcx, [rsp + 0xc0]
call fcn.18004d520
mov eax, dword [rsp + 0xa0]
jmp 0x1800476ef
call fcn.180036930
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x3b8], 0
je 0x180046c7b
mov rcx, qword [rsp + 0x3b8]
call fcn.18005754c
mov dword [rsp + 0x74], eax
jmp 0x180046c83
mov dword [rsp + 0x74], 0
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x70], eax
cmp qword [rsp + 0x3c0], 0
je 0x180046ca9
mov rcx, qword [rsp + 0x3c0]
call fcn.18005754c
mov dword [rsp + 0x68], eax
jmp 0x180046cb1
mov dword [rsp + 0x68], 0
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x70]
shl eax, 1
mov eax, eax
mov ecx, dword [rsp + 0x64]
shl ecx, 1
mov ecx, ecx
lea rax, [rax + rcx + 0x29e]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800476d0
mov dword [rsp + 0x3c], 0
cmp dword [rsp + 0x3a8], 0xfffffffe
jne 0x180046d15
call fcn.1800415c0
mov dword [rsp + 0x3a8], eax
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x3a8]
mov dword [rax + 0x2c], ecx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x3b0]
mov dword [rax + 0x30], ecx
mov ecx, 0x13
call fcn.1800419a0
test rax, rax
jne 0x180046d61
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x30]
bts eax, 0x1c
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x30], eax
mov ecx, 0x14
call fcn.1800419a0
test rax, rax
je 0x180046d84
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x30]
bts eax, 0x1d
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x30], eax
mov ecx, 0xc
call fcn.1800419a0
add eax, 0x10000
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x34], eax
lea rcx, [rsp + 0xc0]
call fcn.18004da60
mov rcx, qword [rsp + 0x30]
add rcx, 0x88
mov rdx, rax
call fcn.180057530
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x70]
mov dword [rax + 0x290], ecx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x64]
mov dword [rax + 0x294], ecx
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x298]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x3b8], 0
je 0x180046e14
mov rdx, qword [rsp + 0x3b8]
mov rcx, qword [rsp + 0x78]
call fcn.180057530
jmp 0x180046e28
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x78]
mov word [rdx + rax], cx
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x290]
shl eax, 1
mov eax, eax
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x29a]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x3c0], 0
je 0x180046e68
mov rdx, qword [rsp + 0x3c0]
mov rcx, qword [rsp + 0x78]
call fcn.180057530
jmp 0x180046e7c
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x78]
mov word [rdx + rax], cx
movzx eax, byte [rsp + 0x398]
test eax, eax
jne 0x180046f24
mov rax, qword [rsp + 0x3e8]
mov dword [rax], 0
mov rax, qword [rsp + 0x3e0]
mov qword [rax], 0
mov rax, qword [rsp + 0x3d8]
mov byte [rax], 0
mov rax, qword [rsp + 0x30]
mov dword [rsp + 0x20], 4
mov r9, qword [rsp + 0x3e8]
mov r8, rax
mov edx, 0x22e01c
mov rcx, qword [rsp + 0x390]
call fcn.180047aa0
test eax, eax
je 0x180046f16
mov rax, qword [rsp + 0x3d8]
mov byte [rax], 1
mov rax, qword [rsp + 0x3e8]
mov eax, dword [rax]
shl rax, 2
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x3e0]
mov qword [rcx], rax
jmp 0x180046f24
mov rax, qword [rsp + 0x3e8]
mov dword [rax], 0
mov eax, dword [rsp + 0x3b0]
and eax, 2
test eax, eax
je 0x1800473c3
mov r8d, 0x40
lea rdx, [rsp + 0xf0]
lea rcx, [0x18007c9f0]
call fcn.1800493f0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rsp + 0xf0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800473c1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x390]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800473b3
movzx eax, byte [rsp + 0x398]
test eax, eax
je 0x180046feb
mov rax, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
mov edx, 0x22e000
mov rcx, qword [rsp + 0x390]
call fcn.180047aa0
mov dword [rsp + 0x3c], eax
jmp 0x180047026
mov rax, qword [rsp + 0x3e8]
mov eax, dword [rax]
shl rax, 2
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x3e0]
mov r9, qword [rax]
mov r8, rcx
mov edx, 0x22e004
mov rcx, qword [rsp + 0x390]
call fcn.180047aa0
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x18004703d
movzx eax, byte [rsp + 0x398]
test eax, eax
jne 0x1800473a8
mov dword [rsp + 0x44], 1
jmp 0x180047051
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x3e8
jae 0x1800473a8
mov r8d, dword [rsp + 0x44]
lea rdx, str.DLL__03d
lea rcx, [rsp + 0xf0]
call fcn.180041e80
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18004732b
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
cmp dword [rsp + 0x38], eax
jne 0x180047329
mov eax, dword [rsp + 0x38]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180047111
mov dword [rsp + 0x84], 1
jmp 0x18004711c
mov dword [rsp + 0x84], 0
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x180047185
mov rax, qword [rsp + 0x30]
add rax, 0x18
mov rcx, qword [rsp + 0x58]
add rcx, 0x18
mov r8d, 0x14
mov rdx, rax
call fcn.180052e30
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov r8d, eax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
call fcn.180056fe0
test eax, eax
jne 0x180047175
mov dword [rsp + 0x6c], 1
jmp 0x18004717d
mov dword [rsp + 0x6c], 0
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x60], eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [rsp + 0x60], 0
je 0x180047329
movzx eax, byte [rsp + 0x398]
test eax, eax
jne 0x180047327
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x180047327
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x40], eax
jmp 0x1800471dc
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x3e8
jae 0x180047327
mov eax, dword [rsp + 0x40]
dec eax
mov r8d, eax
lea rdx, str.DLL__03d
lea rcx, [rsp + 0xf0]
call fcn.180041e80
mov r8d, dword [rsp + 0x40]
lea rdx, str.DLL__03d
lea rcx, [rsp + 0x130]
call fcn.180041e80
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x130]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x180047255
jmp 0x180047327
mov eax, dword [rsp + 0x38]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x130]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1800472f2
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1800472f2
lea rdx, [rsp + 0x130]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x1800472f2
mov dword [rsp + 0x80], 1
jmp 0x1800472fd
mov dword [rsp + 0x80], 0
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0xa4], eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [rsp + 0xa4], 0
jne 0x180047322
jmp 0x180047327
jmp 0x1800471d2
jmp 0x1800473a8
jmp 0x1800473a3
movzx eax, byte [rsp + 0x398]
test eax, eax
je 0x1800473a1
mov r8d, 0x104
lea rdx, [rsp + 0x170]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rax, qword [rsp + 0x30]
add rax, 0x18
mov r8d, 0x100000
mov rdx, rax
lea rcx, [rsp + 0x170]
call fcn.180046280
test eax, eax
je 0x1800473a1
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x1800473a8
jmp 0x180047047
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180047435
movzx eax, byte [rsp + 0x398]
test eax, eax
je 0x1800473fa
mov rax, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
mov edx, 0x22e000
mov rcx, qword [rsp + 0x390]
call fcn.180047aa0
mov dword [rsp + 0x3c], eax
jmp 0x180047435
mov rax, qword [rsp + 0x3e8]
mov eax, dword [rax]
shl rax, 2
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x3e0]
mov r9, qword [rax]
mov r8, rcx
mov edx, 0x22e004
mov rcx, qword [rsp + 0x390]
call fcn.180047aa0
mov dword [rsp + 0x3c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x88], eax
cmp qword [rsp + 0x3c8], 0
je 0x180047697
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
add rax, 0x40
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180047697
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x48]
add rcx, 0x40
mov r8d, eax
mov rdx, qword [rsp + 0x30]
call fcn.180052e30
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, qword [rsp + 0x48]
lea r8, [0x1800464b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x18004768c
mov edx, 0xa0
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
mov r8, qword [rsp + 0x390]
mov edx, 0x50
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
call fcn.180054b48
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x3c8]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x3d0]
mov qword [rax + 0x10], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsp + 0x48]
mov qword [rcx + 0x38], rax
cmp dword [0x1800a5330], 0
jne 0x180047584
mov dword [0x1800a5330], 1
lea rcx, [0x1800a5338]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1800a5360], rax
lea rcx, [0x1800a5338]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov eax, dword [0x1800a5334]
cmp dword [0x1800a5370], eax
jne 0x180047625
mov eax, dword [0x1800a5334]
add eax, 0x10
mov dword [0x1800a5334], eax
mov eax, dword [0x1800a5334]
shl rax, 3
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x90], rax
cmp qword [0x1800a5368], 0
je 0x180047616
cmp qword [rsp + 0x90], 0
je 0x180047609
mov eax, dword [0x1800a5370]
shl rax, 3
mov r8, rax
mov rdx, qword [0x1800a5368]
mov rcx, qword [rsp + 0x90]
call fcn.180052e30
mov rcx, qword [0x1800a5368]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x90]
mov qword [0x1800a5368], rax
cmp qword [0x1800a5368], 0
je 0x180047661
mov eax, dword [0x1800a5370]
mov rcx, qword [0x1800a5368]
mov rdx, qword [rsp + 0x48]
mov qword [rcx + rax*8], rdx
mov eax, dword [0x1800a5370]
inc eax
mov dword [0x1800a5370], eax
mov rcx, qword [0x1800a5360]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
nop
lea rcx, [0x1800a5338]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180047697
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0xac], eax
lea rcx, [rsp + 0xc0]
call fcn.18004d520
mov eax, dword [rsp + 0xac]
jmp 0x1800476ef
mov dword [rsp + 0xa8], 0
lea rcx, [rsp + 0xc0]
call fcn.18004d520
mov eax, dword [rsp + 0xa8]
add rsp, 0x388
ret