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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415390
push 0x411cc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x27c
push ebx
push esi
push edi
push str.RegEnumKeyExA
push 0x418228
mov ebx, dword [sym.imp.KERNEL32_LoadLibraryA]
call ebx
push eax
mov edi, dword [sym.imp.KERNEL32_GetProcAddress]
call edi
mov dword [ebp - 0x30], eax
push str.RegQueryValueExA
push 0x418228
call ebx
push eax
call edi
mov dword [ebp - 0x150], eax
push str.wsprintfA
push str.User32.DLL
call ebx
push eax
call edi
mov esi, eax
mov dword [ebp - 0x48], esi
push 0x418308
push 0x418228
call ebx
push eax
call edi
mov edx, eax
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x288], 0x52
mov byte [ebp - 0x287], 0x45
mov byte [ebp - 0x286], 0x47
mov byte [ebp - 0x285], 0x5f
mov byte [ebp - 0x284], 0x53
mov byte [ebp - 0x283], 0x5a
mov byte [ebp - 0x282], bl
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x170]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x14c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x27c]
rep stosd dword es:[edi], eax
mov cl, 0x25
mov byte [ebp - 0x2c], cl
mov byte [ebp - 0x2b], 0x2d
mov byte [ebp - 0x2a], 0x32
mov byte [ebp - 0x29], 0x34
mov al, 0x73
mov byte [ebp - 0x28], al
mov byte [ebp - 0x27], 0x20
mov byte [ebp - 0x26], cl
mov byte [ebp - 0x25], 0x2d
mov byte [ebp - 0x24], 0x31
mov byte [ebp - 0x23], 0x35
mov byte [ebp - 0x22], al
mov byte [ebp - 0x21], 0x20
mov byte [ebp - 0x20], cl
mov byte [ebp - 0x1f], al
mov byte [ebp - 0x1e], 0x20
mov byte [ebp - 0x1d], 0xd
mov byte [ebp - 0x1c], 0x6e
mov byte [ebp - 0x1b], bl
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x280]
push eax
push 0x20019
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 8]
push eax
call edx
test eax, eax
je 0x406d36
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 4], 0xffffffff
call fcn.004070e9
mov eax, dword [ebp - 0x3c]
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.0x406d58.5
jmp dword [eax*4 + 0x407128]
mov ecx, dword [ebp + 0x14]
lea eax, [ecx - 1]
cmp eax, 6
ja case.0x406d58.5
jmp dword [eax*4 + 0x407138]
mov dword [ebp - 0x34], 0x104
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x14c]
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 [ebp - 0x150]
test eax, eax
jne case.0x406d58.5
lea ecx, [ebp - 0x14c]
push ecx
call fcn.00406ba0
add esp, 4
mov edi, eax
jmp 0x406e22
mov dword [ebp - 0x34], 0x104
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x14c]
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 [ebp - 0x150]
test eax, eax
jne case.0x406d58.5
lea esi, [ebp - 0x14c]
mov dword [ebp - 0x40], esi
mov ebx, dword [sym.imp.MSVCRT_strchr]
mov edi, dword [sym.imp.MSVCRT_strncat]
cmp byte [esi], 0
je 0x406e1c
push 0x104
push esi
lea edx, [ebp - 0x27c]
push edx
call edi
push 0x104
push 0x4182e4
lea eax, [ebp - 0x27c]
push eax
call edi
push 0
push esi
call ebx
add esp, 0x20
inc eax
mov esi, eax
mov dword [ebp - 0x40], esi
jmp 0x406de5
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 - 0x3c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004070e9
mov eax, dword [ebp - 0x3c]
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 - 0x34], 4
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x174]
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 [ebp - 0x150]
test eax, eax
jne case.0x406d58.5
mov edx, dword [ebp - 0x174]
push edx
push 0x419000
mov eax, dword [ebp + 0x18]
push eax
call esi
add esp, 0xc
jmp case.0x406d42.3
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x34], ecx
lea edx, [ebp - 0x34]
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 [ebp - 0x150]
test eax, eax
jne case.0x406d58.5
jmp case.0x406d42.3
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x14c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x34], 0x104
mov eax, ebx
inc ebx
mov dword [ebp - 0x178], ebx
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x14c]
push edx
push eax
mov eax, dword [ebp - 0x280]
push eax
call dword [ebp - 0x30]
test eax, eax
jne case.0x406d58.5
lea ecx, [ebp - 0x14c]
push ecx
push str.__s__r_n
lea edx, [ebp - 0x27c]
push edx
call esi
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, dword [ebp + 0x18]
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 - 0x3c], 1
mov esi, dword [ebp - 0x48]
jmp case.0x406d42.1
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x170]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x14c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x27c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x38], 0x20
mov dword [ebp - 0x34], 0x104
mov eax, ebx
inc ebx
mov dword [ebp - 0x178], ebx
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x14c]
push edx
lea ecx, [ebp + 0x14]
push ecx
push 0
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x170]
push ecx
push eax
mov edx, dword [ebp - 0x280]
push edx
call dword [sym.imp.ADVAPI32_RegEnumValueA]
test eax, eax
jne case.0x406d58.5
mov eax, dword [ebp + 0x14]
dec eax
cmp eax, 6
ja case.0x406ff4.5
jmp dword [eax*4 + 0x407154]
lea ecx, [ebp - 0x14c]
push ecx
lea edx, [ebp - 0x288]
push edx
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x27c]
push edx
call esi
add esp, 0x14
jmp case.0x406ff4.5
lea eax, [ebp - 0x14c]
push eax
push str.REG_EXPAND_SZ
lea ecx, [ebp - 0x170]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x27c]
push eax
call esi
add esp, 0x14
jmp case.0x406ff4.5
lea ecx, [ebp - 0x14c]
push ecx
lea edx, [ebp - 0x14c]
push edx
push str.REG_DWORD
lea eax, [ebp - 0x170]
push eax
push str.__24s___15s_0x_x__d___r_n
lea ecx, [ebp - 0x27c]
push ecx
call esi
add esp, 0x18
jmp case.0x406ff4.5
push str.REG_MULTI_SZ
lea edx, [ebp - 0x170]
push edx
push str.__24s___15s__r_n
lea eax, [ebp - 0x27c]
push eax
jmp 0x4070a9
push str.REG_BINARY
lea ecx, [ebp - 0x170]
push ecx
push str.__24s___15s__r_n
lea edx, [ebp - 0x27c]
push edx
call esi
add esp, 0x10
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, dword [ebp + 0x18]
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 - 0x3c], 1
mov esi, dword [ebp - 0x48]
jmp case.0x406d42.2