Function at 0x1006468
Capabilities:
Create process on windows
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x1012d50]
push 0x103
push 0x1012e08
push dword [0x10131a0]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10064a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1006982
push ebx
xor ebx, ebx
push esi
mov word [0x101300e], bx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xc0], 0x10013e4
mov dword [ebp - 0xb4], ebx
push edi
mov eax, dword [ebp - 0xc0]
push dword [eax]
mov esi, 0x1011020
push 0x10018a0
push 0x28
push 0x1013150
call fcn.01005ad6
add esp, 0x10
cmp eax, ebx
jl 0x100697f
mov ecx, dword [ebp - 0xb4]
mov ecx, dword [ecx + 0x1011148]
cmp ecx, ebx
je 0x1006508
push ecx
push 0x28
push 0x1012d68
call fcn.01004215
cmp eax, ebx
jl 0x100697f
mov eax, dword [ebp - 0xb4]
push dword [eax + 0x101114c]
push 0x64
push 0x1013010
call fcn.01004215
cmp eax, ebx
jl 0x100697f
cmp dword [0x1011020], ebx
je 0x1006611
lea ecx, [esi + 4]
cmp dword [ecx], ebx
je 0x1006609
cmp dword [esi + 8], ebx
je 0x1006609
mov eax, dword [esi]
mov esi, ecx
mov ecx, dword [esi]
push ecx
push eax
lea eax, [ebp - 0xa4]
push 0x50
push eax
add esi, 4
call fcn.01005ad6
add esp, 0x10
cmp eax, ebx
jl 0x100697f
push ebx
lea eax, [ebp - 0xc8]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
lea eax, [ebp - 0xa4]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10065be
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esi]
push 1
push ebx
push ebx
push dword [ebp - 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10065c4
inc dword [ebp - 0xa8]
add esi, 4
mov eax, dword [esi]
cmp eax, ebx
je 0x10065fa
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esi + 4]
push 1
push ebx
push dword [esi]
push dword [ebp - 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10065fa
inc dword [ebp - 0xa8]
push dword [ebp - 0xc8]
add esi, 8
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi], ebx
jne 0x100653c
cmp dword [0x10131b0], ebx
je 0x100686b
push ebx
lea eax, [ebp - 0xb0]
push 1
push eax
mov dword [ebp - 0xb0], ebx
call fcn.010062ac
add esp, 0xc
test eax, eax
jne 0x100681e
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xac], 0x2001f
mov dword [ebp - 0xcc], ebx
xor esi, esi
call fcn.01005350
movzx eax, al
cmp eax, ebx
mov dword [ebp - 0xc4], eax
je 0x1006677
mov dword [ebp - 0xac], 0x2011f
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xe4], 0xc
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xe0], eax
xor edi, edi
push esi
inc edi
push edi
lea ecx, [ebp - 0xd0]
call fcn.01005b7d
cmp esi, ebx
je 0x10066ad
mov dword [ebp - 0xcc], edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xe4]
push eax
push dword [ebp - 0xac]
mov edi, 0x80000002
push ebx
push ebx
push ebx
push 0x1001838
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0xb0], eax
jne 0x1006721
cmp dword [ebp - 0xc4], ebx
je 0x100670f
push ebx
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xe4]
push eax
push 0x2001f
push ebx
push ebx
push ebx
push 0x1001838
push edi
call esi
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], ebx
jne 0x1006721
mov dword [ebp - 0xcc], 1
cmp dword [ebp - 0xd0], 2
je 0x1006736
push dword [ebp - 0xd0]
call fcn.010045dc
pop ecx
xor esi, esi
inc esi
cmp dword [ebp - 0xcc], ebx
je 0x1006693
cmp dword [ebp - 0xb0], ebx
jne 0x100681e
push 0x5c
mov edi, 0x1012e08
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x10067c5
cmp esi, edi
je 0x10067c5
push edi
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp - 0xc4], ebx
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push ebx
push 0x1001810
jne 0x10067a8
push dword [ebp - 0xb8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10067a1
inc dword [ebp - 0xa8]
mov word [esi], 0x5c
jmp 0x10067fe
push dword [ebp - 0xbc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10067be
inc dword [ebp - 0xa8]
mov word [esi], 0x5c
jmp 0x10067cb
inc dword [ebp - 0xa8]
cmp dword [ebp - 0xc4], ebx
je 0x10067fe
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push ebx
push 0x10017f8
push dword [ebp - 0xb8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10067fe
inc dword [ebp - 0xa8]
push dword [ebp - 0xb8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
cmp dword [ebp - 0xbc], ebx
je 0x1006824
push dword [ebp - 0xbc]
call esi
jmp 0x1006824
inc dword [ebp - 0xa8]
call fcn.010053ed
test al, al
je 0x1006843
push 0x1011110
call fcn.01006302
neg al
pop ecx
sbb eax, eax
inc eax
add dword [ebp - 0xa8], eax
call fcn.010053ed
test al, al
jne 0x1006855
call fcn.01005350
test al, al
je 0x100686b
push 0x1011134
call fcn.01006302
neg al
pop ecx
sbb eax, eax
inc eax
add dword [ebp - 0xa8], eax
xor esi, esi
lea eax, [ebp - 0xac]
inc esi
push eax
mov dword [ebp - 0xac], esi
call fcn.0100439d
pop ecx
lea eax, [ebp - 0xd4]
push eax
push dword [ebp - 0xac]
push ebx
push 0x10017dc
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100694b
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xd8]
push eax
push ebx
push ebx
push 0x10017b0
push dword [ebp - 0xd4]
mov dword [ebp - 0xac], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100693f
cmp dword [ebp - 0xd8], esi
jne 0x100693f
push 0x11
pop ecx
lea edi, [ebp - 0x138]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x138]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push ebx
push 0x1001794
mov dword [ebp - 0x138], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x100693f
push 0xffffffffffffffff
push dword [ebp - 0xf4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xf4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xf0]
call esi
push dword [ebp - 0xd4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [ebp - 0xc0], 0x10
add dword [ebp - 0xb4], 4
cmp dword [ebp - 0xc0], 0x10013f4
jl 0x10064c2
cmp dword [ebp - 0xa8], ebx
je 0x1006978
mov eax, 0x80040201
jmp 0x100697f
call fcn.0100525d
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0100f222
leave
ret