Function at 0x40a040
Capabilities:
Contain obfuscated stackstrings
Parse pe header
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428548
push 0x414c48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x24], esi
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x154]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x27c]
rep stosd dword es:[edi], eax
mov cl, 0x52
mov byte [ebp - 0x134], cl
mov dl, 0x45
mov byte [ebp - 0x133], dl
mov bl, 0x47
mov byte [ebp - 0x132], bl
mov al, 0x5f
mov byte [ebp - 0x131], al
mov byte [ebp - 0x130], 0x53
mov byte [ebp - 0x12f], 0x5a
mov byte [ebp - 0x12e], 0
mov byte [ebp - 0x164], cl
mov byte [ebp - 0x163], dl
mov byte [ebp - 0x162], bl
mov byte [ebp - 0x161], al
mov byte [ebp - 0x160], dl
mov byte [ebp - 0x15f], 0x58
mov byte [ebp - 0x15e], 0x50
mov byte [ebp - 0x15d], 0x41
mov byte [ebp - 0x15c], 0x4e
mov byte [ebp - 0x15b], 0x44
mov byte [ebp - 0x15a], al
mov byte [ebp - 0x159], 0x53
mov byte [ebp - 0x158], 0x5a
mov byte [ebp - 0x157], 0
mov byte [ebp - 0x174], cl
mov byte [ebp - 0x173], dl
mov byte [ebp - 0x172], bl
mov byte [ebp - 0x171], al
mov byte [ebp - 0x170], 0x44
mov byte [ebp - 0x16f], 0x57
mov byte [ebp - 0x16e], 0x4f
mov byte [ebp - 0x16d], cl
mov byte [ebp - 0x16c], 0x44
mov byte [ebp - 0x16b], 0
mov byte [ebp - 0x290], cl
mov byte [ebp - 0x28f], dl
mov byte [ebp - 0x28e], bl
mov byte [ebp - 0x28d], al
mov byte [ebp - 0x28c], 0x4d
mov byte [ebp - 0x28b], 0x55
mov byte [ebp - 0x28a], 0x4c
mov byte [ebp - 0x289], 0x54
mov byte [ebp - 0x288], 0x49
mov byte [ebp - 0x287], al
mov byte [ebp - 0x286], 0x53
mov byte [ebp - 0x285], 0x5a
mov byte [ebp - 0x284], 0
mov byte [ebp - 0x29c], cl
mov byte [ebp - 0x29b], dl
mov byte [ebp - 0x29a], bl
mov byte [ebp - 0x299], al
mov byte [ebp - 0x298], 0x42
mov byte [ebp - 0x297], 0x49
mov byte [ebp - 0x296], 0x4e
mov byte [ebp - 0x295], 0x41
mov byte [ebp - 0x294], cl
mov byte [ebp - 0x293], 0x59
mov byte [ebp - 0x292], 0
mov dword [ebp - 4], esi
lea eax, [ebp - 0x280]
push eax
push 0x20019
push esi
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a24d
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 4], 0xffffffff
call fcn.0040a5e3
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x24]
cmp eax, 3
ja case.0x40a26d.5
jmp dword [eax*4 + 0x40a610]
mov eax, dword [ebp + 0x14]
dec eax
cmp eax, 6
ja case.0x40a26d.5
jmp dword [eax*4 + 0x40a620]
mov dword [ebp - 0x1c], 0x104
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x280]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x40a26d.5
lea eax, [ebp - 0x12c]
push eax
call fcn.0040a010
add esp, 4
mov edi, eax
jmp 0x40a331
mov dword [ebp - 0x1c], 0x104
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x280]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x40a26d.5
lea esi, [ebp - 0x12c]
mov dword [ebp - 0x28], esi
cmp byte [esi], 0
je 0x40a32b
push 0x104
push esi
lea edx, [ebp - 0x27c]
push edx
call fcn.00414df0
push 0x104
push 0x43180c
lea eax, [ebp - 0x27c]
push eax
call fcn.00414df0
push 0
push esi
call fcn.00414d30
add esp, 0x20
inc eax
mov esi, eax
jmp 0x40a2eb
lea edi, [ebp - 0x27c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
call fcn.0040a5e3
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1c], 4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x168]
push ecx
lea edx, [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x280]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x40a26d.5
mov edx, dword [ebp - 0x168]
push edx
push 0x432b18
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp case.0x40a259.3
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x280]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x40a26d.5
jmp case.0x40a259.3
mov ebx, dword [ebp + 0x18]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0x104
mov eax, esi
inc esi
mov dword [ebp - 0x178], esi
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x12c]
push edx
push eax
mov eax, dword [ebp - 0x280]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne case.0x40a26d.5
lea ecx, [ebp - 0x12c]
push ecx
push str.__s__r_n
lea edx, [ebp - 0x27c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edi, [ebp - 0x27c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x24], 1
mov esi, dword [ebp - 0x178]
jmp 0x40a3f3
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x154]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x27c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x1c], 0x104
mov eax, esi
inc esi
mov dword [ebp - 0x178], esi
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x12c]
push edx
lea ecx, [ebp + 0x14]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x154]
push ecx
push eax
mov edx, dword [ebp - 0x280]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne case.0x40a26d.5
mov eax, dword [ebp + 0x14]
dec eax
cmp eax, 6
ja case.0x40a519.5
jmp dword [eax*4 + 0x40a63c]
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0x154]
push eax
push str.__24s___15s__s__r_n
lea ecx, [ebp - 0x27c]
push ecx
call ebx
add esp, 0x14
jmp case.0x40a519.5
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x154]
push ecx
push str.__24s___15s__s__r_n
lea edx, [ebp - 0x27c]
push edx
call ebx
add esp, 0x14
jmp case.0x40a519.5
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x174]
push edx
lea eax, [ebp - 0x154]
push eax
push str.__24s___15s_0x_x__d___r_n
lea ecx, [ebp - 0x27c]
push ecx
call ebx
add esp, 0x18
jmp case.0x40a519.5
lea edx, [ebp - 0x290]
jmp 0x40a5ad
lea edx, [ebp - 0x29c]
push edx
lea eax, [ebp - 0x154]
push eax
push str.__24s___15s__r_n
lea ecx, [ebp - 0x27c]
push ecx
call ebx
add esp, 0x10
lea edx, [ebp - 0x27c]
push edx
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x24], 1
jmp 0x40a49a