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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x4e
push 0
push 0
dec ecx
jne 0x1007cd2f
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x24]
xor eax, eax
push ebp
push 0x1007d451
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x24]
call fcn.1007dec2
test al, al
je 0x1007d3e3
call fcn.10083962
push ebx
call sub.KERNEL32.dll_lstrlenW
add eax, eax
add eax, 0x29a
add eax, 2
push eax
push esi
call sub.KERNEL32.dll_lstrlenW
add eax, eax
pop edx
add edx, eax
add edx, 2
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1007d3e3
cmp edi, dword [0x1009abe8]
jne 0x1007cdce
call fcn.1007ad1e
mov edi, eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x2c], edi
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x20]
mov dword [eax + 0x30], edx
cmp byte [0x1009ac34], 0
jne 0x1007cdf8
mov eax, dword [ebp - 0x14]
or dword [eax + 0x30], 0x10000000
cmp byte [0x1009ac38], 0
je 0x1007ce0b
mov eax, dword [ebp - 0x14]
or dword [eax + 0x30], 0x20000000
mov eax, dword [0x1009ac1c]
add eax, 0x10000
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x88
push eax
call sub.KERNEL32.dll_lstrcpyW
push ebx
call sub.KERNEL32.dll_lstrlenW
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x290], eax
push esi
call sub.KERNEL32.dll_lstrlenW
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x294], eax
test ebx, ebx
je 0x1007ce5e
push ebx
mov eax, dword [ebp - 0x14]
add eax, 0x298
push eax
call sub.KERNEL32.dll_lstrcpyW
test esi, esi
je 0x1007ce81
push esi
mov eax, dword [ebp - 0x14]
add eax, 0x298
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x290]
add edx, edx
add eax, edx
add eax, 2
push eax
call sub.KERNEL32.dll_lstrcpyW
xor eax, eax
mov dword [ebp - 0x4c], eax
cmp byte [ebp - 5], 0
jne 0x1007cef6
mov eax, dword [ebp + 8]
mov edx, dword [0x10067f3e]
call fcn.10067596
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
lea eax, [ebp - 0x4c]
push eax
push 4
lea eax, [ebp - 0x25c]
mov edx, dword [ebp - 4]
call fcn.10066b32
mov eax, dword [ebp - 0x25c]
push eax
call fcn.1007bd82
mov edx, eax
mov ecx, dword [ebp - 0x14]
pop eax
call fcn.1007bd96
test al, al
je 0x1007cef1
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp + 8]
mov ecx, 1
mov edx, dword [0x10067f3e]
call fcn.1006758a
add esp, 4
jmp 0x1007cef6
xor eax, eax
mov dword [ebp - 0x4c], eax
test byte [ebp + 0x20], 2
je 0x1007d20e
lea eax, [ebp - 0x30]
push eax
push 0xf003f
push 0
lea edx, [ebp - 0x260]
mov eax, dword [0x1009ad8c]
call fcn.10069b16
mov eax, dword [ebp - 0x260]
call fcn.1006688a
push eax
push SysFreeString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x1007d277
lea eax, [ebp - 0x34]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x1007d203
cmp byte [ebp - 5], 0
je 0x1007cf8d
push 0
push 0
lea eax, [ebp - 0x264]
mov edx, dword [ebp - 4]
call fcn.10066b32
mov eax, dword [ebp - 0x264]
push eax
call fcn.1007bd0a
mov edx, eax
mov ecx, dword [ebp - 0x14]
pop eax
call fcn.1007bd96
mov byte [ebp - 0xd], al
jmp 0x1007cfc2
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x4c]
shl eax, 2
push eax
lea eax, [ebp - 0x268]
mov edx, dword [ebp - 4]
call fcn.10066b32
mov eax, dword [ebp - 0x268]
push eax
call fcn.1007bd1e
mov edx, eax
mov ecx, dword [ebp - 0x14]
pop eax
call fcn.1007bd96
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x1007cfd2
cmp byte [ebp - 5], 0
jne 0x1007d1fa
mov ebx, 1
lea eax, [ebp - 0x26c]
push eax
mov cl, 0x30
mov edx, 3
mov eax, ebx
call fcn.1006969e
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x3c]
mov edx, 0x1007d46e
call fcn.100666d6
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x3c]
call fcn.1006688a
mov edi, eax
push edi
mov eax, dword [ebp - 0x34]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x1007d1a0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x18]
jne 0x1007d1ed
mov eax, dword [ebp - 0x18]
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push esi
push 0
push 0
push edi
mov eax, dword [ebp - 0x34]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
sete byte [ebp - 0x29]
cmp byte [ebp - 0x29], 0
je 0x1007d081
mov eax, dword [ebp - 0x14]
push esi
lea edi, [esi + 0x18]
lea esi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.1007cc36
mov byte [ebp - 0x29], al
push esi
call sub.KERNEL32.dll_LocalFree
cmp byte [ebp - 0x29], 0
je 0x1007d1ed
cmp byte [ebp - 5], 0
jne 0x1007d1fa
mov eax, dword [ebp - 0x3c]
call fcn.1006688a
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.ADVAPI32.dll_RegDeleteValueA
test eax, eax
jne 0x1007d1fa
lea edi, [ebx + 1]
cmp edi, 0x3e7
ja 0x1007d1fa
lea eax, [ebp - 0x270]
push eax
mov cl, 0x30
mov edx, 3
mov eax, edi
call fcn.1006969e
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x40]
mov edx, 0x1007d46e
call fcn.100666d6
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x40]
call fcn.1006688a
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x1007d1fa
mov eax, dword [ebp - 0x18]
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push esi
push 0
push 0
mov eax, dword [ebp - 0x40]
call fcn.1006688a
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x1007d171
mov eax, dword [ebp - 0x18]
push eax
push esi
push 3
push 0
mov eax, dword [ebp - 0x3c]
call fcn.1006688a
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
test eax, eax
jne 0x1007d171
mov eax, dword [ebp - 0x40]
call fcn.1006688a
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.ADVAPI32.dll_RegDeleteValueA
test eax, eax
je 0x1007d175
xor eax, eax
jmp 0x1007d177
mov al, 1
mov byte [ebp - 0x35], al
push esi
call sub.KERNEL32.dll_LocalFree
cmp byte [ebp - 0x35], 0
je 0x1007d1fa
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
call fcn.100664ce
inc edi
cmp edi, 0x3e8
jne 0x1007d0c4
jmp 0x1007d1fa
cmp byte [ebp - 5], 0
je 0x1007d1fa
push 0x104
lea eax, [ebp - 0x256]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x18]
lea eax, [ebp - 0x256]
mov ecx, 0x100000
call fcn.1007cc76
test al, al
je 0x1007d1fa
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 3
push 0
push edi
mov eax, dword [ebp - 0x34]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
jmp 0x1007d1fa
inc ebx
cmp ebx, 0x3e8
jne 0x1007cfd7
mov eax, dword [ebp - 0x34]
push eax
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [ebp - 0x30]
push eax
call sub.ADVAPI32.dll_RegCloseKey
jmp 0x1007d277
cmp byte [ebp - 5], 0
je 0x1007d242
push 0
push 0
lea eax, [ebp - 0x274]
mov edx, dword [ebp - 4]
call fcn.10066b32
mov eax, dword [ebp - 0x274]
push eax
call fcn.1007bd0a
mov edx, eax
mov ecx, dword [ebp - 0x14]
pop eax
call fcn.1007bd96
mov byte [ebp - 0xd], al
jmp 0x1007d277
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x4c]
shl eax, 2
push eax
lea eax, [ebp - 0x278]
mov edx, dword [ebp - 4]
call fcn.10066b32
mov eax, dword [ebp - 0x278]
push eax
call fcn.1007bd1e
mov edx, eax
mov ecx, dword [ebp - 0x14]
pop eax
call fcn.1007bd96
mov byte [ebp - 0xd], al
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x28], eax
cmp dword [ebp + 0x14], 0
je 0x1007d3d1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, 0x2c0
sub eax, 0x29a
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
test ebx, ebx
je 0x1007d3d1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebx + 0x24]
mov eax, dword [ebp - 0x14]
call fcn.100655f6
lea eax, [ebp - 0x48]
push eax
push 4
push ebx
push 0x1007c5de
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x1007d3cb
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.10066b32
mov eax, dword [ebp + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 8], eax
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.KERNEL32.dll_CreateEventA
mov dword [ebx + 0x20], eax
cmp byte [0x1009b6bc], 0
jne 0x1007d32e
mov byte [0x1009b6bc], 1
push 0x1009c770
call sub.KERNEL32.dll_InitializeCriticalSection
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.KERNEL32.dll_CreateEventA
mov dword [0x1009b6c0], eax
push 0x1009c770
call sub.KERNEL32.dll_EnterCriticalSection
xor eax, eax
push ebp
push 0x1007d3b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x1009b6c4]
call fcn.100673ce
cmp eax, dword [0x1009b6c8]
jne 0x1007d379
mov eax, dword [0x1009b6c8]
add eax, 0x10
push eax
mov eax, 0x1009b6c4
mov ecx, 1
mov edx, dword [0x1007c59e]
call fcn.1006758a
add esp, 4
mov eax, dword [0x1009b6c4]
mov edx, dword [0x1009b6c8]
mov dword [eax + edx*4], ebx
inc dword [0x1009b6c8]
mov eax, dword [0x1009b6c0]
push eax
call sub.KERNEL32.dll_ResetEvent
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1007d3b7
push 0x1009c770
call sub.KERNEL32.dll_LeaveCriticalSection
ret
push ebx
call sub.KERNEL32.dll_LocalFree
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.dll_LocalFree
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1007d458
lea eax, [ebp - 0x278]
mov edx, 2
call fcn.10066a22
lea eax, [ebp - 0x270]
mov edx, 2
call fcn.1006645a
lea eax, [ebp - 0x268]
mov edx, 2
call fcn.10066a22
lea eax, [ebp - 0x260]
call fcn.10066436
lea eax, [ebp - 0x25c]
call fcn.10066a0a
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.1006645a
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.1006645a
ret