Function at 0x1005cf90
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101143ad
mov eax, dword fs:[0]
push eax
sub esp, 0x6bc
mov eax, dword [0x1015e404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x6bc], edi
call fcn.10002000
mov ecx, eax
test ecx, ecx
je 0x1005d500
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6b0], eax
push 0x101484a4
lea ecx, [ebp - 0x6b0]
mov dword [ebp - 4], 0
call fcn.10002420
test al, al
jne 0x1005d014
push 0
push 0x101484a4
lea ecx, [ebp - 0x6b0]
call fcn.10001c80
push esi
mov dword [ebp - 4], 1
call fcn.10054290
add esp, 4
mov dword [ebp - 0x6b4], eax
lea ecx, [ebp - 0x6b8]
push dword [eax + 8]
call fcn.100024e0
mov eax, dword [ebp - 0x6b8]
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], 0
jne 0x1005d0a5
lea eax, [ebp - 0x6b0]
mov ecx, edi
push eax
call fcn.10001970
mov edx, dword [ebp - 0x6b8]
or esi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005d07a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x6b0]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1005d4e2
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x1005d4e2
push 0x208
lea eax, [ebp - 0x29c]
push 0
push eax
call fcn.100dd9d0
push 0x208
lea eax, [ebp - 0x6ac]
push 0
push eax
call fcn.100dd9d0
add esp, 0x18
lea eax, [ebp - 0x6ac]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x6ac]
push eax
call ebx
test esi, esi
jle 0x1005d10e
nop dword [eax + eax]
lea eax, [ebp - 0x6ac]
push eax
call ebx
sub esi, 1
jne 0x1005d100
push dword [ebp - 0x6b8]
lea eax, [ebp - 0x6ac]
push eax
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x29c]
push eax
call esi
test eax, eax
je 0x1005d1f3
call fcn.10002000
mov ecx, eax
test ecx, ecx
je 0x1005d50a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6b4], eax
lea eax, [ebp - 0x29c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x6b4]
call fcn.10002420
test al, al
jne 0x1005d1a2
lea ecx, [ebp - 0x29c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005d180
sub ecx, edx
lea eax, [ebp - 0x29c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6b4]
call fcn.10001c80
lea eax, [ebp - 0x6b0]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x6b4]
push eax
call fcn.10029de0
mov edx, dword [ebp - 0x6b4]
or esi, 0xffffffff
add esp, 8
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005d1e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x6b0]
mov ecx, edi
push eax
call fcn.10001970
jmp 0x1005d49f
mov eax, dword [ebp - 0x6b4]
cmp dword [eax], 2
jne 0x1005d48e
mov dword [ebp - 0x94], 0x4f0053
mov dword [ebp - 0x90], 0x540046
mov dword [ebp - 0x8c], 0x410057
mov dword [ebp - 0x88], 0x450052
mov dword [ebp - 0x84], 0x4d005c
mov dword [ebp - 0x80], 0x630069
mov dword [ebp - 0x7c], 0x6f0072
mov dword [ebp - 0x78], 0x6f0073
mov dword [ebp - 0x74], 0x740066
mov dword [ebp - 0x70], 0x57005c
mov dword [ebp - 0x6c], 0x6e0069
mov dword [ebp - 0x68], 0x6f0064
mov dword [ebp - 0x64], 0x730077
mov dword [ebp - 0x60], 0x43005c
mov dword [ebp - 0x5c], 0x720075
mov dword [ebp - 0x58], 0x650072
mov dword [ebp - 0x54], 0x74006e
mov dword [ebp - 0x50], 0x650056
mov dword [ebp - 0x4c], 0x730072
mov dword [ebp - 0x48], 0x6f0069
mov dword [ebp - 0x44], 0x5c006e
mov dword [ebp - 0x40], 0x700041
mov dword [ebp - 0x3c], 0x200070
mov dword [ebp - 0x38], 0x610050
mov dword [ebp - 0x34], 0x680074
mov dword [ebp - 0x30], 0x5c0073
mov dword [ebp - 0x2c], 0x61004d
mov dword [ebp - 0x28], 0x740073
mov dword [ebp - 0x24], 0x720065
mov dword [ebp - 0x20], 0x440050
mov dword [ebp - 0x1c], 0x2e0046
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
mov dword [ebp - 0x6c8], 0
mov dword [ebp - 0x6c4], 0
mov dword [ebp - 0x6c0], 0
push 0x20219
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 5
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x6c8]
call fcn.10005360
test eax, eax
je 0x1005d362
lea eax, [ebp - 0x6b0]
mov ecx, edi
push eax
call fcn.10001970
mov eax, dword [ebp - 0x6c8]
test eax, eax
je 0x1005d49c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1005d49c
push 0x208
lea eax, [ebp - 0x4a4]
push 0
push eax
call fcn.100dd9d0
mov ebx, dword [ebp - 0x6c8]
lea eax, [ebp - 0x6b4]
add esp, 0xc
mov dword [ebp - 0x6b4], 0x208
push eax
lea eax, [ebp - 0x4a4]
push eax
lea eax, [ebp - 0x6bc]
push eax
push 0
lea eax, [ebp - 0x94]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1005d3dc
mov eax, dword [ebp - 0x6bc]
cmp eax, 1
je 0x1005d3c1
cmp eax, 2
jne 0x1005d3dc
mov eax, dword [ebp - 0x6b4]
test eax, eax
je 0x1005d3fe
test al, 1
jne 0x1005d3dc
shr eax, 1
cmp word [ebp + eax*2 - 0x4a6], 0
je 0x1005d407
lea eax, [ebp - 0x6b0]
mov ecx, edi
push eax
call fcn.10001970
test ebx, ebx
je 0x1005d49c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1005d49c
xor eax, eax
mov word [ebp - 0x4a4], ax
lea eax, [ebp - 0x4a4]
push eax
call esi
test eax, eax
je 0x1005d47f
lea eax, [ebp - 0x4a4]
push eax
lea ecx, [ebp - 0x6b4]
call fcn.100024e0
lea eax, [ebp - 0x6b0]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x6b4]
push eax
call fcn.10029de0
mov edx, dword [ebp - 0x6b4]
or esi, 0xffffffff
add esp, 8
mov byte [ebp - 4], 5
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005d464
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x6b0]
mov ecx, edi
push eax
call fcn.10001970
test ebx, ebx
je 0x1005d49f
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1005d49f
mov byte [ebp - 4], 2
test ebx, ebx
je 0x1005d48e
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x6b0]
mov ecx, edi
push eax
call fcn.10001970
or esi, 0xffffffff
mov edx, dword [ebp - 0x6b8]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005d4c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6b0]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1005d4e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10067a9c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100017c0
push 0x80004005
call fcn.100017c0
int3