Function at 0x522f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb8
lea eax, [esp + 0x74]
lea ecx, [esp + 0x30]
push 0x62a994
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call fcn.0056e650
add esp, 0x14
movzx ebx, byte [esp + 0x38]
cmp bl, 3
je 0x523018
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x28]
test eax, eax
mov dword [esp + 0x18], eax
je 0x523018
mov ecx, dword [esi]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
xor ecx, 2
mov dword [esp], eax
mov dword [esp + 4], edi
or ecx, dword [esi + 4]
jne 0x523022
movdqu xmm0, xmmword [esi + 8]
xor eax, eax
cmp bl, 2
mov dword [esp + 8], ebx
lea ecx, [esp + 0x30]
lea edx, [esp + 0x14]
setne al
mov dword [esp + 0x14], eax
pshufd xmm1, xmm0, 0x44
pshufd xmm2, xmm0, 0xee
pxor xmm1, xmmword [str.uespemosarenegylmodnarodsetybdet]
pxor xmm2, xmmword [0x6039a0]
movdqu xmmword [esp + 0x30], xmm1
movdqu xmmword [esp + 0x40], xmm2
movdqu xmmword [esp + 0x50], xmm0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
push 4
call fcn.00424d00
mov eax, dword [esp + 0xc]
add esp, 4
cmp al, 2
jne 0x52305b
movzx eax, byte [esp]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
push 4
jmp 0x52306b
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
cmp bl, 2
mov edx, 0x5635bc91
setne cl
xor ecx, 0x84222325
mov eax, ecx
mul edx
cmp bl, 2
mov edi, eax
jne 0x52336b
movzx eax, byte [esp]
xor eax, edi
imul edx, eax, 0xffffbc91
mov al, 2
mov dword [esp + 8], eax
jmp 0x523331
test al, al
je 0x523522
mov edx, dword [esp]
lea ecx, [esp + 0x30]
push edi
call fcn.00424d00
add esp, 4
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
movdqu xmm0, xmmword [esp + 0x38]
movdqu xmm3, xmmword [esp + 0x30]
shl eax, 0x18
xor edx, ecx
movdqa xmm5, xmm0
or eax, dword [esp + 0x64]
movd xmm4, edx
movd xmm2, edx
psrlq xmm5, 0x33
xor esi, eax
movd xmm1, esi
punpckldq xmm2, xmm1
punpcklqdq xmm1, xmm4
punpcklqdq xmm2, xmm3
shufps xmm1, xmm0, 0xe2
movaps xmm4, xmm1
paddq xmm2, xmm0
psllq xmm1, 0x10
psllq xmm0, 0xd
pshufd xmm3, xmm2, 0xff
psrlq xmm4, 0x30
movsd xmm0, xmm1
movdqa xmm1, xmm2
movd edx, xmm3
movsd xmm5, xmm4
orpd xmm0, xmm5
movd xmm3, edx
shufps xmm1, xmm3, 0x4e
xorpd xmm0, xmm2
shufps xmm1, xmm2, 0x42
movapd xmm2, xmm0
movapd xmm3, xmm0
psrlq xmm2, 0x2b
psrlq xmm3, 0x2f
paddq xmm1, xmm0
movsd xmm3, xmm2
movdqa xmm2, xmm0
psllq xmm0, 0x11
movd esi, xmm1
psllq xmm2, 0x15
xor esi, ecx
movsd xmm0, xmm2
pshufd xmm2, xmm1, 0xff
movd edx, xmm2
pshufd xmm2, xmm1, 0x55
orpd xmm0, xmm3
movd xmm3, esi
movd edi, xmm2
xor edx, 0xff
xorpd xmm0, xmm1
xor edi, eax
movd xmm2, edx
movd xmm4, edi
shufpd xmm1, xmm2, 1
punpcklqdq xmm4, xmm3
movapd xmm3, xmm0
shufps xmm1, xmm0, 0xe2
shufps xmm3, xmm4, 0x24
movaps xmm4, xmm0
paddq xmm1, xmm3
psrlq xmm4, 0x33
pshufd xmm2, xmm1, 0xff
movd eax, xmm2
movaps xmm2, xmm0
psrlq xmm2, 0x30
movd xmm3, eax
movsd xmm4, xmm2
movaps xmm2, xmm0
psllq xmm0, 0xd
psllq xmm2, 0x10
movsd xmm0, xmm2
movdqa xmm2, xmm1
orpd xmm0, xmm4
shufps xmm2, xmm3, 0x4e
xorpd xmm0, xmm1
shufps xmm2, xmm1, 0x42
movapd xmm1, xmm0
movapd xmm3, xmm0
paddq xmm2, xmm0
psrlq xmm1, 0x2b
psrlq xmm3, 0x2f
movsd xmm3, xmm1
movdqa xmm1, xmm0
psllq xmm0, 0x11
psllq xmm1, 0x15
movsd xmm0, xmm1
pshufd xmm1, xmm2, 0xff
movd eax, xmm1
orpd xmm0, xmm3
movdqa xmm3, xmm2
movd xmm1, eax
xorpd xmm0, xmm2
shufps xmm3, xmm1, 0x4e
movapd xmm4, xmm0
shufps xmm3, xmm2, 0x42
psrlq xmm4, 0x33
paddq xmm3, xmm0
pshufd xmm1, xmm3, 0xff
movd eax, xmm1
movdqa xmm1, xmm0
psrlq xmm1, 0x30
movd xmm2, eax
movsd xmm4, xmm1
movdqa xmm1, xmm0
psllq xmm0, 0xd
psllq xmm1, 0x10
movsd xmm0, xmm1
movdqa xmm1, xmm3
orpd xmm0, xmm4
shufps xmm1, xmm2, 0x4e
xorpd xmm0, xmm3
shufps xmm1, xmm3, 0x42
movapd xmm2, xmm0
movapd xmm3, xmm0
paddq xmm1, xmm0
psrlq xmm2, 0x2b
psrlq xmm3, 0x2f
movsd xmm3, xmm2
movdqa xmm2, xmm0
psllq xmm0, 0x11
psllq xmm2, 0x15
movsd xmm0, xmm2
pshufd xmm2, xmm1, 0xff
orpd xmm0, xmm3
movd eax, xmm2
xorpd xmm0, xmm1
movd xmm3, eax
pshufd xmm2, xmm0, 0xff
movd eax, xmm2
pshufd xmm2, xmm0, 0xee
movd edx, xmm2
movapd xmm2, xmm1
shufpd xmm2, xmm3, 1
mov ecx, edx
shufps xmm2, xmm1, 0x42
shld ecx, eax, 0xd
shld eax, edx, 0xd
movd edx, xmm0
paddq xmm2, xmm0
pshufd xmm0, xmm0, 0x55
movd xmm1, ecx
movd esi, xmm0
movd xmm0, eax
shld esi, edx, 0x10
shl edx, 0x10
punpckldq xmm1, xmm0
movd xmm3, esi
movd xmm0, edx
punpckldq xmm0, xmm3
punpcklqdq xmm0, xmm1
pxor xmm0, xmm2
pshufd xmm1, xmm0, 0xee
paddq xmm1, xmm2
movdqa xmm2, xmm0
psrlq xmm0, 0x2f
psrlq xmm2, 0x2b
pshufd xmm0, xmm0, 0xee
movd eax, xmm1
pshufd xmm1, xmm1, 0x55
pxor xmm0, xmm2
movd ecx, xmm1
movd edx, xmm0
xor edx, ecx
xor edx, eax
mov esi, dword [ebp + 8]
movzx eax, word [esi + 0x38]
and edx, 0x7fff
mov edi, dword [esi + 0x18]
mov ebx, dword [esi + 0x20]
mov dword [esp + 0x20], 0
mov ecx, edx
mov dword [esp + 0xc], edx
movzx eax, ax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], eax
and ecx, eax
mov eax, dword [esi + 0x1c]
mov esi, ecx
mov dword [esp + 0x1c], eax
jmp 0x5233e5
imul eax, ecx, 0x9ffaac08
test bl, bl
mov dword [esp + 0xc], edi
lea esi, [edx + eax - 0x3d29b2dc]
je 0x523567
mov ebx, dword [esp + 4]
mov al, 1
test ebx, ebx
je 0x5235b5
mov edi, dword [esp]
mov edx, dword [esp + 0xc]
mov dword [esp + 8], eax
nop dword [eax]
movzx ecx, byte [edi]
imul esi, esi, 0x1b3
inc edi
xor ecx, edx
mov edx, 0x1b3
mov eax, ecx
shl ecx, 8
mul edx
add ecx, edx
mov edx, eax
add esi, ecx
dec ebx
jne 0x5233a0
jmp 0x52332e
xor eax, eax
cmp eax, dword [esp + 4]
jae 0x52350e
nop word cs:[eax + eax]
nop dword [eax]
inc dword [esp + 0x20]
inc esi
cmp esi, dword [esp + 0x1c]
mov eax, 0
cmovae esi, eax
jb 0x5233fe
cmp dword [esp + 0x1c], 0
je 0x523520
movzx ecx, word [edi + esi*4]
xor eax, eax
cmp ecx, 0xffff
je 0x52301a
movzx edx, word [edi + esi*4 + 2]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
mov ecx, esi
mov ebx, edx
and ebx, edi
sub esi, ebx
and esi, edi
cmp dword [esp + 0x20], esi
ja 0x52301a
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x28]
mov esi, ecx
cmp dx, ax
jne 0x5233e0
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x18], eax
jbe 0x5235cf
mov ebx, dword [esp + 0x24]
imul ecx, eax, 0x34
cmp dword [ebx + ecx + 0x20], 0
lea edx, [ebx + ecx + 0x20]
mov dword [esp + 0x10], edx
je 0x5234a8
cmp byte [esp + 8], 2
je 0x5233e0
mov eax, dword [esp + 0x10]
cmp byte [esp + 8], 0
mov ecx, dword [eax + 8]
je 0x5234c5
cmp ecx, dword [esp + 4]
jne 0x5233e0
push dword [esp + 4]
push dword [esp + 4]
mov eax, dword [esp + 0x18]
push dword [eax + 4]
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x5233e0
jmp 0x52350e
cmp byte [esp + 8], 2
jne 0x5233e0
mov ecx, dword [esp]
mov eax, dword [esp + 0x10]
cmp byte [eax + 4], cl
jne 0x5233e0
jmp 0x52350e
cmp ecx, dword [esp + 4]
jne 0x5233e0
cmp dword [esp + 4], 0
je 0x5233c6
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
xor eax, eax
nop word cs:[eax + eax]
nop dword [eax]
mov edx, dword [esp]
movzx edx, byte [edx + eax]
movzx edx, byte [edx + 0x62a994]
cmp dl, byte [ecx + eax]
jne 0x5233c8
inc eax
cmp dword [esp + 4], eax
jne 0x5234f0
mov eax, 1
jmp 0x52301a
jmp 0x523520
test edi, edi
je 0x523073
mov ebx, dword [esp + 4]
mov esi, dword [esp]
lea edi, [esp + 0x14]
nop word cs:[eax + eax]
nop
movzx eax, byte [esi]
inc esi
lea ecx, [esp + 0x30]
mov edx, edi
movzx eax, byte [eax + 0x62a994]
mov byte [esp + 0x14], al
push 1
call fcn.00424d00
add esp, 4
dec ebx
jne 0x523540
jmp 0x523073
mov edi, dword [esp + 4]
test edi, edi
je 0x5235bb
mov ebx, dword [esp]
mov edx, dword [esp + 0xc]
nop word cs:[eax + eax]
movzx eax, byte [ebx]
imul esi, esi, 0x1b3
inc ebx
movzx ecx, byte [eax + 0x62a994]
xor ecx, edx
mov edx, 0x1b3
mov eax, ecx
shl ecx, 8
mul edx
add ecx, edx
mov edx, eax
add esi, ecx
dec edi
jne 0x523580
mov dword [esp + 8], 0
jmp 0x52332e
mov dword [esp + 8], eax
jmp 0x5235c3
mov dword [esp + 8], 0
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0xc]
jmp 0x523331
push 0x62a948
push dword [esp + 0x1c]
push eax
call fcn.005a0c50
add esp, 0xc
ud2