Function at 0x40956e
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4173f8
push 0x415d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2b0
push ebx
push esi
push edi
push str.RegOpenKeyExA
mov esi, str.ADVAPI32.dll
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call ebx
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x170], 0x25
mov byte [ebp - 0x16f], 0x2d
mov byte [ebp - 0x16e], 0x32
mov byte [ebp - 0x16d], 0x34
mov byte [ebp - 0x16c], 0x73
mov byte [ebp - 0x16b], 0x20
mov byte [ebp - 0x16a], 0x25
mov byte [ebp - 0x169], 0x2d
mov byte [ebp - 0x168], 0x31
mov byte [ebp - 0x167], 0x35
mov byte [ebp - 0x166], 0x73
mov byte [ebp - 0x165], 0x20
mov byte [ebp - 0x164], 0x30
mov byte [ebp - 0x163], 0x78
mov byte [ebp - 0x162], 0x25
mov byte [ebp - 0x161], 0x78
mov byte [ebp - 0x160], 0x28
mov byte [ebp - 0x15f], 0x25
mov byte [ebp - 0x15e], 0x64
mov byte [ebp - 0x15d], 0x29
mov byte [ebp - 0x15c], 0x20
mov byte [ebp - 0x15b], 0xd
mov byte [ebp - 0x15a], 0xa
mov byte [ebp - 0x2b4], 0x25
mov byte [ebp - 0x2b3], 0x2d
mov byte [ebp - 0x2b2], 0x32
mov byte [ebp - 0x2b1], 0x34
mov byte [ebp - 0x2b0], 0x73
mov byte [ebp - 0x2af], 0x20
mov byte [ebp - 0x2ae], 0x25
mov byte [ebp - 0x2ad], 0x2d
mov byte [ebp - 0x2ac], 0x31
mov byte [ebp - 0x2ab], 0x35
mov byte [ebp - 0x2aa], 0x73
mov byte [ebp - 0x2a9], 0x20
mov byte [ebp - 0x2a8], 0xd
mov byte [ebp - 0x2a7], 0xa
mov byte [ebp - 0x48], 0x25
mov byte [ebp - 0x47], 0x2d
mov byte [ebp - 0x46], 0x32
mov byte [ebp - 0x45], 0x34
mov byte [ebp - 0x44], 0x73
mov byte [ebp - 0x43], 0x20
mov byte [ebp - 0x42], 0x25
mov byte [ebp - 0x41], 0x2d
mov byte [ebp - 0x40], 0x31
mov byte [ebp - 0x3f], 0x35
mov byte [ebp - 0x3e], 0x73
mov byte [ebp - 0x3d], 0x20
mov byte [ebp - 0x3c], 0xd
mov byte [ebp - 0x3b], 0xa
push str.RegQueryValueExA
push esi
call ebx
push eax
call edi
mov dword [ebp - 0x174], eax
push str.wsprintfA
push str.USER32.dll
call ebx
push eax
call edi
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x19c], eax
mov byte [ebp - 0x2bc], 0x52
mov byte [ebp - 0x2bb], 0x45
mov byte [ebp - 0x2ba], 0x47
mov byte [ebp - 0x2b9], 0x5f
mov byte [ebp - 0x2b8], 0x53
mov byte [ebp - 0x2b7], 0x5a
and byte [ebp - 0x2b6], al
push 0x20
push eax
lea eax, [ebp - 0x194]
push eax
call sub.MSVCRT.dll_memset
mov esi, 0x104
push esi
push 0
lea eax, [ebp - 0x158]
push eax
call sub.MSVCRT.dll_memset
push esi
push 0
lea eax, [ebp - 0x2a0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0x24
mov byte [ebp - 0x2c], 0x25
mov byte [ebp - 0x2b], 0x2d
mov byte [ebp - 0x2a], 0x32
mov byte [ebp - 0x29], 0x34
mov byte [ebp - 0x28], 0x73
mov byte [ebp - 0x27], 0x20
mov byte [ebp - 0x26], 0x25
mov byte [ebp - 0x25], 0x2d
mov byte [ebp - 0x24], 0x31
mov byte [ebp - 0x23], 0x35
mov byte [ebp - 0x22], 0x73
mov byte [ebp - 0x21], 0x20
mov byte [ebp - 0x20], 0x25
mov byte [ebp - 0x1f], 0x73
mov byte [ebp - 0x1e], 0x20
mov byte [ebp - 0x1d], 0xd
mov byte [ebp - 0x1c], 0x6e
and byte [ebp - 0x1b], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x2a4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp - 0x50]
test eax, eax
je 0x4097f1
or dword [ebp - 0x38], 0xffffffff
jmp 0x409b2a
mov eax, dword [ebp + 0x24]
xor ecx, ecx
sub eax, ecx
je 0x4099d0
dec eax
je 0x409957
dec eax
je 0x40980e
dec eax
jmp 0x409ae1
push 0x20
push ecx
lea eax, [ebp - 0x194]
push eax
call sub.MSVCRT.dll_memset
push esi
push 0
lea eax, [ebp - 0x158]
push eax
call sub.MSVCRT.dll_memset
push esi
push 0
lea eax, [ebp - 0x2a0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0x24
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x30], esi
mov eax, dword [ebp - 0x19c]
inc dword [ebp - 0x19c]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x158]
push ecx
lea ecx, [ebp + 0x14]
push ecx
push 0
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x194]
push ecx
push eax
push dword [ebp - 0x2a4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x409b2a
mov eax, dword [ebp + 0x14]
dec eax
je 0x409912
dec eax
je 0x409904
dec eax
je 0x4098e5
dec eax
je 0x4098b5
sub eax, 3
jne 0x409938
push str.REG_MULTI_SZ
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x2b4]
jmp 0x4098f4
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x158]
push eax
push str.REG_DWORD
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x2a0]
push eax
call dword [ebp - 0x54]
add esp, 0x18
jmp 0x409938
push str.REG_BINARY
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2a0]
push eax
call dword [ebp - 0x54]
add esp, 0x10
jmp 0x409938
lea eax, [ebp - 0x158]
push eax
push str.REG_EXPAND_SZ
jmp 0x409920
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2a0]
push eax
call dword [ebp - 0x54]
add esp, 0x14
lea eax, [ebp - 0x2a0]
push eax
push dword [ebp + 0x18]
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
mov dword [ebp - 0x38], 1
xor ecx, ecx
jmp 0x40980e
push esi
push ecx
lea eax, [ebp - 0x158]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp - 0x19c]
inc dword [ebp - 0x19c]
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x158]
push eax
push ecx
push dword [ebp - 0x2a4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x409b2a
lea eax, [ebp - 0x158]
push eax
push str.__s__r_n
lea eax, [ebp - 0x2a0]
push eax
call dword [ebp - 0x54]
lea eax, [ebp - 0x2a0]
push eax
push dword [ebp + 0x18]
call sub.MSVCRT.dll_strcat
add esp, 0x14
mov dword [ebp - 0x38], 1
xor ecx, ecx
jmp 0x409957
mov edx, dword [ebp + 0x14]
cmp edx, ecx
jbe 0x409b2a
cmp edx, 2
jbe 0x409ae5
cmp edx, 3
je 0x409abe
push 4
pop eax
cmp edx, eax
je 0x409a85
cmp edx, 7
jne 0x409b2a
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp + 0x14]
push eax
push ecx
push dword [ebp + 0x10]
push dword [ebp - 0x2a4]
call dword [ebp - 0x174]
test eax, eax
jne 0x409b2a
lea eax, [ebp - 0x158]
mov dword [ebp - 0x4c], eax
cmp byte [eax], 0
je 0x409a6f
push esi
push eax
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.MSVCRT.dll_strncat]
push esi
push 0x41b444
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.MSVCRT.dll_strncat]
push 0
push dword [ebp - 0x4c]
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 0x20
inc eax
mov dword [ebp - 0x4c], eax
jmp 0x409a34
lea eax, [ebp - 0x2a0]
push eax
push dword [ebp + 0x18]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x409b23
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp + 0x14]
push eax
push ecx
push dword [ebp + 0x10]
push dword [ebp - 0x2a4]
call dword [ebp - 0x174]
test eax, eax
jne 0x409b2a
push dword [ebp - 0x198]
push 0x41b1f4
push dword [ebp + 0x18]
call dword [ebp - 0x54]
jmp 0x409b20
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp + 0x14]
push eax
push ecx
push dword [ebp + 0x10]
push dword [ebp - 0x2a4]
call dword [ebp - 0x174]
test eax, eax
jne 0x409b2a
jmp 0x409b23
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp + 0x14]
push eax
push ecx
push dword [ebp + 0x10]
push dword [ebp - 0x2a4]
call dword [ebp - 0x174]
test eax, eax
jne 0x409b2a
lea eax, [ebp - 0x158]
push eax
call fcn.00409543
push eax
push dword [ebp + 0x18]
call sub.MSVCRT.dll_strcpy
add esp, 0xc
mov dword [ebp - 0x38], 1
or dword [ebp - 4], 0xffffffff
call fcn.00409b51
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret