Function at 0x45f530
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb9f3
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x52610c]
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, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x174], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x45f5a0
mov eax, dword [esi]
jmp 0x45f5a2
mov eax, esi
push 0
push 0x507250
mov ecx, esi
mov byte [eax], 0
call fcn.00409af0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
push 0
push 0x507250
mov dword [ebp - 0x170], 1
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
call fcn.00409af0
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.004b9940
movaps xmm0, xmmword [0x50c9d0]
add esp, 0xc
mov dword [ebp - 0x168], 0
xor ecx, ecx
movups xmmword [ebp - 0x160], xmm0
mov dword [ebp - 0x150], 0x4170454d
mov word [ebp - 0x14c], 0x4854
mov byte [ebp - 0x14a], 0
movzx eax, byte [ebp + ecx - 0x15f]
xor al, byte [ebp - 0x160]
mov byte [ebp + ecx - 0x149], al
movzx eax, byte [ebp + ecx - 0x15e]
xor al, byte [ebp - 0x160]
mov byte [ebp + ecx - 0x148], al
movzx eax, byte [ebp + ecx - 0x15d]
xor al, byte [ebp - 0x160]
mov byte [ebp + ecx - 0x147], al
add ecx, 3
cmp ecx, 0x15
jb 0x45f642
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x168]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x149]
mov byte [ebp - 0x134], 0
push eax
push SysReAllocString
call ebx
test eax, eax
sete al
test al, al
je 0x45f79e
mov eax, dword [edi]
lea ecx, [ebp - 0x148]
push ecx
mov ecx, edi
mov dword [ebp - 0x16c], 0x103
call dword [eax + 8]
cmp dword [eax + 0x14], 0x10
jb 0x45f6df
mov eax, dword [eax]
lea ecx, [ebp - 0x16c]
push ecx
lea ecx, [ebp - 0x114]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x168]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [ebp - 0x134]
sete bl
cmp eax, 0x10
jb 0x45f721
inc eax
lea ecx, [ebp - 0x148]
push eax
push dword [ebp - 0x148]
call fcn.004099a0
test bl, bl
je 0x45f798
mov eax, dword [ebp - 0x16c]
cmp eax, 0x104
jae 0x45f918
mov byte [ebp + eax - 0x114], 0
cmp byte [ebp - 0x114], 0
jne 0x45f74b
xor ecx, ecx
jmp 0x45f75d
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45f754
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00409af0
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push 0
cmovae eax, dword [ebp - 0x12c]
push eax
call fcn.004c33ef
add esp, 8
cmp eax, 0xffffffff
jne 0x45fa0f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
movaps xmm0, xmmword [0x50ca60]
xor ecx, ecx
movups xmmword [ebp - 0x164], xmm0
mov dword [ebp - 0x154], 0x474b6d76
mov dword [ebp - 0x150], 0x5e4b7a4f
mov word [ebp - 0x14c], 0x42
nop dword [eax + eax]
movzx eax, byte [ebp + ecx - 0x163]
xor al, byte [ebp - 0x164]
mov byte [ebp + ecx - 0x14a], al
movzx eax, byte [ebp + ecx - 0x162]
xor al, byte [ebp - 0x164]
mov byte [ebp + ecx - 0x149], al
movzx eax, byte [ebp + ecx - 0x161]
xor al, byte [ebp - 0x164]
mov byte [ebp + ecx - 0x148], al
movzx eax, byte [ebp + ecx - 0x160]
xor al, byte [ebp - 0x164]
mov byte [ebp + ecx - 0x147], al
movzx eax, byte [ebp + ecx - 0x15f]
xor al, byte [ebp - 0x164]
mov byte [ebp + ecx - 0x146], al
movzx eax, byte [ebp + ecx - 0x15e]
xor al, byte [ebp - 0x164]
mov byte [ebp + ecx - 0x145], al
add ecx, 6
cmp ecx, 0x18
jb 0x45f7d0
lea eax, [ebp - 0x168]
mov byte [ebp - 0x132], 0
push eax
push 0x20019
push 0
lea eax, [ebp - 0x14a]
push eax
push SysReAllocString
call ebx
test eax, eax
sete al
test al, al
je 0x45f96a
mov eax, dword [edi]
lea ecx, [ebp - 0x148]
push ecx
mov ecx, edi
mov dword [ebp - 0x16c], 0x103
call dword [eax + 8]
cmp dword [eax + 0x14], 0x10
jb 0x45f8aa
mov eax, dword [eax]
lea ecx, [ebp - 0x16c]
push ecx
lea ecx, [ebp - 0x114]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x168]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [ebp - 0x134]
sete bl
cmp eax, 0x10
jb 0x45f8ec
inc eax
lea ecx, [ebp - 0x148]
push eax
push dword [ebp - 0x148]
call fcn.004099a0
test bl, bl
je 0x45f96a
mov eax, dword [ebp - 0x16c]
shr eax, 1
cmp eax, 0x104
jae 0x45f918
mov byte [ebp + eax - 0x114], 0
cmp byte [ebp - 0x114], 0
jne 0x45f91d
xor ecx, ecx
jmp 0x45f92f
call fcn.004a0ca5
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45f926
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00409af0
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push 0
cmovae eax, dword [ebp - 0x12c]
push eax
call fcn.004c33ef
add esp, 8
cmp eax, 0xffffffff
jne 0x45fa0f
mov eax, dword [edi]
lea ecx, [ebp - 0x148]
push ecx
mov ecx, edi
call dword [eax + 0x18]
mov edi, eax
lea eax, [ebp - 0x12c]
cmp eax, edi
je 0x45f9c9
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x45f9a2
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.004099a0
push edi
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
call fcn.00407660
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x134]
cmp eax, 0x10
jb 0x45f9eb
inc eax
lea ecx, [ebp - 0x148]
push eax
push dword [ebp - 0x148]
call fcn.004099a0
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push 0
cmovae eax, dword [ebp - 0x12c]
push eax
call fcn.004c33ef
add esp, 8
cmp eax, 0xffffffff
je 0x45fa25
lea eax, [ebp - 0x12c]
cmp esi, eax
je 0x45fa25
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00409690
mov eax, dword [ebp - 0x168]
test eax, eax
je 0x45fa40
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x168], 0
mov ecx, dword [ebp - 0x118]
cmp ecx, 0x10
jb 0x45fa5e
inc ecx
push ecx
push dword [ebp - 0x12c]
lea ecx, [ebp - 0x12c]
call fcn.004099a0
mov eax, esi
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.004a0535
mov esp, ebp
pop ebp
ret 4