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

Disassembly:
push ebp
lea ebp, [esp - 0x48]
sub esp, 0x48
push 0xffffffffffffffff
push 0x10091118
push 0x10055d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffd38
push ebx
push esi
push edi
cmp dword [ebp + 0x50], 0
je 0x10047c74
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp + 0x50]
movzx eax, word [edx + ecx]
test eax, eax
jne 0x10047c7b
xor eax, eax
jmp 0x1004849d
lea ecx, [ebp - 0x50]
call fcn.1004c100
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp + 0x58]
push edx
call fcn.10040590
test eax, eax
jne 0x10047cab
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x50]
call fcn.1004c150
mov eax, dword [ebp - 0x30]
jmp 0x1004849d
call fcn.100402c0
mov dword [ebp + 0x40], 0
cmp dword [ebp + 0x64], 0
je 0x10047cce
mov eax, dword [ebp + 0x64]
push eax
call fcn.10055cec
add esp, 4
mov dword [ebp - 0x1c], eax
jmp 0x10047cd5
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + 0x14], ecx
cmp dword [ebp + 0x68], 0
je 0x10047cf2
mov edx, dword [ebp + 0x68]
push edx
call fcn.10055cec
add esp, 4
mov dword [ebp + 0xc], eax
jmp 0x10047cf9
mov dword [ebp + 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp + 4], eax
mov ecx, dword [ebp + 4]
shl ecx, 1
mov edx, dword [ebp + 0x14]
lea eax, [ecx + edx*2 + 0x29e]
mov dword [ebp + 0x3c], eax
mov ecx, dword [ebp + 0x3c]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp + 0x44], eax
cmp dword [ebp + 0x44], 0
je 0x1004848b
mov dword [ebp + 0x30], 0
cmp dword [ebp + 0x5c], 0xfffffffe
jne 0x10047d3f
call fcn.1003ccb0
mov dword [ebp + 0x5c], eax
mov edx, dword [ebp + 0x44]
mov eax, dword [ebp + 0x3c]
mov dword [edx], eax
mov ecx, dword [ebp + 0x44]
mov edx, dword [ebp + 0x5c]
mov dword [ecx + 0x2c], edx
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x60]
mov dword [eax + 0x30], ecx
push 0x13
call fcn.10043c50
test eax, eax
jne 0x10047d75
mov edx, dword [ebp + 0x44]
mov eax, dword [edx + 0x30]
or eax, 0x10000000
mov ecx, dword [ebp + 0x44]
mov dword [ecx + 0x30], eax
push 0x14
call fcn.10043c50
test eax, eax
je 0x10047d91
mov edx, dword [ebp + 0x44]
mov eax, dword [edx + 0x30]
or eax, 0x20000000
mov ecx, dword [ebp + 0x44]
mov dword [ecx + 0x30], eax
push 0xc
call fcn.10043c50
add eax, 0x10000
mov edx, dword [ebp + 0x44]
mov dword [edx + 0x34], eax
lea ecx, [ebp - 0x50]
call fcn.1004c610
push eax
mov eax, dword [ebp + 0x44]
add eax, 0x88
push eax
call fcn.1005618d
add esp, 8
mov ecx, dword [ebp + 0x44]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x290], edx
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 4]
mov dword [eax + 0x294], ecx
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp + 0x44]
lea edx, [ecx + eax + 0x298]
mov dword [ebp + 0x24], edx
cmp dword [ebp + 0x64], 0
je 0x10047e02
mov eax, dword [ebp + 0x64]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.1005618d
add esp, 8
jmp 0x10047e13
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov edx, dword [ebp + 0x24]
mov word [edx + eax], cx
mov eax, dword [ebp + 0x44]
mov ecx, dword [eax + 0x290]
mov edx, dword [ebp + 0x44]
lea eax, [edx + ecx*2 + 0x29a]
mov dword [ebp + 0x24], eax
cmp dword [ebp + 0x68], 0
je 0x10047e41
mov ecx, dword [ebp + 0x68]
push ecx
mov edx, dword [ebp + 0x24]
push edx
call fcn.1005618d
add esp, 8
jmp 0x10047e52
mov eax, 2
imul ecx, eax, 0
xor edx, edx
mov eax, dword [ebp + 0x24]
mov word [eax + ecx], dx
movzx ecx, byte [ebp + 0x54]
test ecx, ecx
jne 0x10047eb8
mov edx, dword [ebp + 0x7c]
mov dword [edx], 0
mov eax, dword [ebp + 0x78]
mov dword [eax], 0
mov ecx, dword [ebp + 0x74]
mov byte [ecx], 0
push 4
mov edx, dword [ebp + 0x7c]
push edx
mov eax, dword [ebp + 0x44]
push eax
push 0x22e01c
mov ecx, dword [ebp + 0x50]
push ecx
call fcn.10048770
add esp, 0x14
test eax, eax
je 0x10047eaf
mov edx, dword [ebp + 0x74]
mov byte [edx], 1
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
shl ecx, 2
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [ebp + 0x78]
mov dword [edx], eax
jmp 0x10047eb8
mov eax, dword [ebp + 0x7c]
mov dword [eax], 0
mov ecx, dword [ebp + 0x60]
and ecx, 2
je 0x10048237
push 0x40
lea edx, [ebp - 0x90]
push edx
push 0x1007d290
call fcn.1004ae20
lea eax, [ebp - 0x20]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x90]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10048235
lea edx, [ebp + 0x38]
push edx
push 0xf003f
push 0
mov eax, dword [ebp + 0x50]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004822b
movzx edx, byte [ebp + 0x54]
test edx, edx
je 0x10047f43
push 0
push 0
mov eax, dword [ebp + 0x44]
push eax
push 0x22e000
mov ecx, dword [ebp + 0x50]
push ecx
call fcn.10048770
add esp, 0x14
mov dword [ebp + 0x30], eax
jmp 0x10047f6a
mov edx, dword [ebp + 0x7c]
mov eax, dword [edx]
shl eax, 2
push eax
mov ecx, dword [ebp + 0x78]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x44]
push eax
push 0x22e004
mov ecx, dword [ebp + 0x50]
push ecx
call fcn.10048770
add esp, 0x14
mov dword [ebp + 0x30], eax
cmp dword [ebp + 0x30], 0
jne 0x10047f7c
movzx edx, byte [ebp + 0x54]
test edx, edx
jne 0x10048221
mov dword [ebp + 0x28], 1
jmp 0x10047f8e
mov eax, dword [ebp + 0x28]
add eax, 1
mov dword [ebp + 0x28], eax
cmp dword [ebp + 0x28], 0x3e8
jae 0x10048221
mov ecx, dword [ebp + 0x28]
push ecx
push str.DLL__03d
lea edx, [ebp - 0x90]
push edx
call fcn.10044140
add esp, 0xc
lea eax, [ebp + 0x3c]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x90]
push ecx
mov edx, dword [ebp + 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100481c0
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x3c]
cmp ecx, dword [eax]
jne 0x100481be
mov edx, dword [ebp + 0x3c]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp + 0x34], eax
lea eax, [ebp + 0x3c]
push eax
mov ecx, dword [ebp + 0x34]
push ecx
push 0
push 0
lea edx, [ebp - 0x90]
push edx
mov eax, dword [ebp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1004801d
mov dword [ebp + 0x10], 1
jmp 0x10048024
mov dword [ebp + 0x10], 0
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x20], ecx
cmp dword [ebp + 0x20], 0
je 0x10048078
push 0x14
mov edx, dword [ebp + 0x44]
add edx, 0x18
push edx
mov eax, dword [ebp + 0x34]
add eax, 0x18
push eax
call fcn.10055450
add esp, 0xc
mov ecx, dword [ebp + 0x44]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x44]
push eax
mov ecx, dword [ebp + 0x34]
push ecx
call fcn.100561ad
add esp, 0xc
test eax, eax
jne 0x1004806b
mov dword [ebp + 8], 1
jmp 0x10048072
mov dword [ebp + 8], 0
mov edx, dword [ebp + 8]
mov dword [ebp + 0x20], edx
mov eax, dword [ebp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp + 0x20], 0
je 0x100481be
movzx ecx, byte [ebp + 0x54]
test ecx, ecx
jne 0x100481bc
lea edx, [ebp - 0x90]
push edx
mov eax, dword [ebp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x100481bc
mov ecx, dword [ebp + 0x28]
add ecx, 1
mov dword [ebp + 0x2c], ecx
jmp 0x100480c5
mov edx, dword [ebp + 0x2c]
add edx, 1
mov dword [ebp + 0x2c], edx
cmp dword [ebp + 0x2c], 0x3e8
jae 0x100481bc
mov eax, dword [ebp + 0x2c]
sub eax, 1
push eax
push str.DLL__03d
lea ecx, [ebp - 0x90]
push ecx
call fcn.10044140
add esp, 0xc
mov edx, dword [ebp + 0x2c]
push edx
push str.DLL__03d
lea eax, [ebp - 0xd0]
push eax
call fcn.10044140
add esp, 0xc
lea ecx, [ebp + 0x3c]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0xd0]
push edx
mov eax, dword [ebp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10048129
jmp 0x100481bc
mov ecx, dword [ebp + 0x3c]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp + 0x34], eax
lea edx, [ebp + 0x3c]
push edx
mov eax, dword [ebp + 0x34]
push eax
push 0
push 0
lea ecx, [ebp - 0xd0]
push ecx
mov edx, dword [ebp + 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10048198
mov eax, dword [ebp + 0x3c]
push eax
mov ecx, dword [ebp + 0x34]
push ecx
push 3
push 0
lea edx, [ebp - 0x90]
push edx
mov eax, dword [ebp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10048198
lea ecx, [ebp - 0xd0]
push ecx
mov edx, dword [ebp + 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x10048198
mov dword [ebp], 1
jmp 0x1004819f
mov dword [ebp], 0
mov eax, dword [ebp]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x24], 0
jne 0x100481b7
jmp 0x100481bc
jmp 0x100480bc
jmp 0x10048221
jmp 0x1004821c
movzx edx, byte [ebp + 0x54]
test edx, edx
je 0x1004821a
push 0x104
lea eax, [ebp - 0x2d8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x100000
mov ecx, dword [ebp + 0x44]
add ecx, 0x18
push ecx
lea edx, [ebp - 0x2d8]
push edx
call fcn.10047540
add esp, 0xc
test eax, eax
je 0x1004821a
mov eax, dword [ebp + 0x44]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x44]
push edx
push 3
push 0
lea eax, [ebp - 0x90]
push eax
mov ecx, dword [ebp + 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x10048221
jmp 0x10047f85
mov edx, dword [ebp + 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10048284
movzx ecx, byte [ebp + 0x54]
test ecx, ecx
je 0x1004825d
push 0
push 0
mov edx, dword [ebp + 0x44]
push edx
push 0x22e000
mov eax, dword [ebp + 0x50]
push eax
call fcn.10048770
add esp, 0x14
mov dword [ebp + 0x30], eax
jmp 0x10048284
mov ecx, dword [ebp + 0x7c]
mov edx, dword [ecx]
shl edx, 2
push edx
mov eax, dword [ebp + 0x78]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x44]
push edx
push 0x22e004
mov eax, dword [ebp + 0x50]
push eax
call fcn.10048770
add esp, 0x14
mov dword [ebp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
cmp dword [ebp + 0x6c], 0
je 0x10048464
mov ecx, dword [ebp + 0x44]
mov edx, dword [ecx]
add edx, 0x24
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp + 0x40], eax
cmp dword [ebp + 0x40], 0
je 0x10048464
mov eax, dword [ebp + 0x44]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x44]
push edx
mov eax, dword [ebp + 0x40]
add eax, 0x24
push eax
call fcn.10055450
add esp, 0xc
lea ecx, [ebp - 0x38]
push ecx
push 4
mov edx, dword [ebp + 0x40]
push edx
push 0x100476e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0x18], 0
je 0x1004845a
push 0xa0
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 0x40]
mov dword [ecx], eax
mov edx, dword [ebp + 0x50]
push edx
push 0x50
mov eax, dword [ebp + 0x40]
mov ecx, dword [eax]
push ecx
call fcn.10053320
add esp, 0xc
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x6c]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x70]
mov dword [ecx + 8], edx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp + 0x40]
mov dword [ecx + 0x20], eax
cmp dword [0x100e0d90], 0
jne 0x10048371
mov dword [0x100e0d90], 1
push 0x100e0d94
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x100e0dac], eax
push 0x100e0d94
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edx, dword [0x100e0db8]
cmp edx, dword [0x100e0db4]
jne 0x100483f3
mov eax, dword [0x100e0db4]
add eax, 0x10
mov dword [0x100e0db4], eax
mov ecx, dword [0x100e0db4]
shl ecx, 2
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp + 0x1c], eax
cmp dword [0x100e0db0], 0
je 0x100483eb
cmp dword [ebp + 0x1c], 0
je 0x100483de
mov edx, dword [0x100e0db8]
shl edx, 2
push edx
mov eax, dword [0x100e0db0]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.10055450
add esp, 0xc
mov edx, dword [0x100e0db0]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0x1c]
mov dword [0x100e0db0], eax
cmp dword [0x100e0db0], 0
je 0x1004842a
mov ecx, dword [0x100e0db8]
mov edx, dword [0x100e0db0]
mov eax, dword [ebp + 0x40]
mov dword [edx + ecx*4], eax
mov ecx, dword [0x100e0db8]
add ecx, 1
mov dword [0x100e0db8], ecx
mov edx, dword [0x100e0dac]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebp - 4], 0xffffffff
call fcn.10048438
jmp 0x10048444
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10048464
mov edx, dword [ebp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp + 0x30]
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x50]
call fcn.1004c150
mov eax, dword [ebp - 0x2c]
jmp 0x1004849d
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x50]
call fcn.1004c150
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add ebp, 0x48
mov esp, ebp
pop ebp
ret