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

Disassembly:
sub esp, 0x290
push esi
mov esi, dword [esp + 0x298]
push edi
test esi, esi
je 0x10004e81
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x10004e4b
push eax
push 0
call edi
push eax
call fcn.1000b040
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10004e5d
push eax
push 0
call edi
push eax
call fcn.1000b040
mov eax, dword [esi + 8]
test eax, eax
je 0x10004e6f
push eax
push 0
call edi
push eax
call fcn.1000b040
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10004e81
push eax
push 0
call edi
push eax
call fcn.1000b040
cmp dword [esp + 0x2a0], 0
jne 0x100050a4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
jne 0x10004ea7
mov eax, dword [0x100017b8]
push 0x10001e1c
push eax
call ebx
push 0x20a
lea ecx, [esp + 0x94]
push ecx
call sub.NTDLL.dll_RtlZeroMemory
mov dword [esp + 0xc], 0x20a
mov dword [esp + 0x10], 1
mov eax, 0x10001dfc
test esi, esi
je 0x10004ed7
mov eax, 0x10001e10
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push eax
mov eax, dword [0x100017b8]
push eax
call edi
test eax, eax
je 0x10004f7d
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x94]
push 0x10001e08
push edx
mov dword [esp + 0x24], 0x740068
mov dword [esp + 0x28], 0x700074
mov dword [esp + 0x2c], 0x2f003a
mov dword [esp + 0x30], 0x35002f
mov dword [esp + 0x34], 0x32002e
mov dword [esp + 0x38], 0x320035
mov dword [esp + 0x3c], 0x32002e
mov dword [esp + 0x40], 0x2e0033
mov dword [esp + 0x44], 0x340039
mov dword [esp + 0x48], 0x61002f
mov dword [esp + 0x4c], 0x690070
mov dword [esp + 0x50], 0x2f
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [esp + 0xc], eax
test esi, esi
je 0x10005057
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x98]
push edx
call fcn.1000f3f0
add esp, 0xc
test eax, eax
je 0x100050a3
mov edx, dword [esp + 0x28]
xor ecx, ecx
mov eax, 4
cmp dword [esp + 0x24], eax
mov dword [esi + 4], edx
mov edx, dword [esp + 0x44]
sete cl
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi], ecx
mov ecx, dword [esp + 0x68]
mov dword [esi + 8], ecx
mov dword [esi + 0x10], edx
mov eax, dword [0x100017b8]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0x10001df0
push eax
mov dword [esp + 0x2c], 0
call edi
test eax, eax
je 0x10005024
mov eax, 0xc
movzx eax, al
pop ebx
pop edi
mov byte [esi + 0x18], al
pop esi
add esp, 0x290
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10005045
cmp eax, 0xfe
jbe 0x10005014
pop ebx
mov eax, 0xfe
pop edi
mov byte [esi + 0x18], al
pop esi
add esp, 0x290
ret
pop ebx
mov eax, 0xc
pop edi
mov byte [esi + 0x18], al
pop esi
add esp, 0x290
ret
lea ecx, [esp + 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [0x100017b8]
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x94]
push eax
push 1
push 0
push 0x10001e10
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [0x100017b8]
push 0x10001dfc
push edx
call ebx
mov eax, dword [0x100017b8]
push 0x10001df0
push eax
call ebx
pop ebx
pop edi
pop esi
add esp, 0x290
ret