Function at 0x412fd2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov ebx, ecx
lea eax, [esp + 0x7c]
lea esi, [esp + 0x38]
mov ecx, esi
push 0x4e175a
push eax
push dword [ebp + 8]
call fcn.0041d7d4
add esp, 0xc
movzx eax, byte [esi + 8]
cmp eax, 3
jne 0x413012
mov dword [ebx], 2
jmp 0x41358d
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x28]
mov dword [esp + 0x28], ecx
test ecx, ecx
mov dword [esp + 0x34], ebx
je 0x413101
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [edx]
xor eax, 2
or eax, dword [edx + 4]
jne 0x413108
mov eax, dword [edx + 8]
mov ebx, edx
mov edx, dword [edx + 0xc]
mov esi, dword [ebx + 0x10]
mov edi, eax
xor edi, 0x70736575
lea ecx, [esp + 0x38]
mov dword [ecx], edi
mov edi, edx
xor edi, 0x736f6d65
mov dword [ecx + 4], edi
mov edi, eax
xor edi, 0x6e657261
mov dword [ecx + 8], edi
mov edi, edx
xor edi, 0x6c796765
mov dword [ecx + 0xc], edi
mov edi, esi
xor edi, 0x6e646f6d
mov dword [ecx + 0x10], edi
mov edi, dword [ebx + 0x14]
mov ebx, edi
xor ebx, 0x646f7261
mov dword [ecx + 0x14], ebx
mov ebx, esi
xor ebx, 0x79746573
mov dword [ecx + 0x18], ebx
mov ebx, edi
xor ebx, 0x74656462
mov dword [ecx + 0x1c], ebx
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
mov dword [ecx + 0x28], esi
mov dword [ecx + 0x2c], edi
xor eax, eax
mov ebx, dword [esp + 0x18]
cmp bl, 2
setne al
lea edx, [esp + 0x24]
mov dword [edx], eax
xorps xmm0, xmm0
movups xmmword [ecx + 0x30], xmm0
push 4
call fcn.00417114
add esp, 4
cmp bl, 2
jne 0x413188
movzx eax, byte [esp + 0x10]
lea edx, [esp + 0x24]
mov dword [edx], eax
lea ecx, [esp + 0x38]
push 4
jmp 0x41319c
xor eax, eax
jmp 0x413581
xor eax, eax
cmp byte [esp + 0x18], 2
setne al
mov dword [esp + 0x38], eax
mov esi, 0xcbf29ce4
mov eax, 0x84222325
xor edi, edi
movzx ecx, byte [esp + edi + 0x38]
xor ecx, eax
mov eax, ecx
mov edx, 0x1b3
mul edx
shl ecx, 8
add ecx, edx
imul esi, esi, 0x1b3
add esi, ecx
inc edi
cmp edi, 4
jne 0x413122
mov edx, eax
mov eax, dword [esp + 0x18]
cmp al, 2
jne 0x4133a6
movzx eax, byte [esp + 0x10]
mov dword [esp + 0x38], eax
xor edi, edi
mov ebx, 0x1b3
mov eax, edx
movzx ecx, byte [esp + edi + 0x38]
xor ecx, eax
mov eax, ecx
mul ebx
shl ecx, 8
add ecx, edx
imul esi, esi, 0x1b3
add esi, ecx
inc edi
cmp edi, 4
jne 0x413165
jmp 0x41345c
test bl, bl
je 0x4133e6
lea ecx, [esp + 0x38]
mov edx, dword [esp + 0x10]
push dword [esp + 0x14]
call fcn.00417114
add esp, 4
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov edx, dword [esp + 0x70]
shl edx, 0x18
or edx, dword [esp + 0x6c]
mov dword [esp + 8], edx
mov esi, dword [esp + 0x68]
mov dword [esp + 0x20], esi
mov ecx, dword [esp + 0x54]
xor ecx, edx
mov edx, dword [esp + 0x50]
xor edx, esi
mov esi, dword [esp + 0x38]
add esi, eax
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x3c]
adc ebx, edi
mov dword [esp + 4], ebx
mov eax, dword [esp]
shld eax, edi, 0xd
mov esi, dword [esp]
shld edi, esi, 0xd
xor edi, ebx
mov esi, dword [esp + 0xc]
xor eax, esi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
add eax, edx
mov dword [esp], eax
mov ebx, dword [esp + 0x44]
adc ebx, ecx
mov eax, edx
shld eax, ecx, 0x10
shrd edx, ecx, 0x10
xor edx, ebx
xor eax, dword [esp]
add dword [esp + 4], eax
adc esi, edx
mov ecx, eax
shld ecx, edx, 0x15
shrd eax, edx, 0xb
xor eax, esi
mov dword [esp + 0x2c], eax
xor ecx, dword [esp + 4]
mov eax, dword [esp + 0x30]
add dword [esp], eax
adc ebx, edi
mov edx, eax
shld edx, edi, 0x11
mov dword [esp + 0x1c], edx
shrd eax, edi, 0xf
mov edi, esi
xor edi, dword [esp + 8]
mov esi, dword [esp + 0x20]
xor dword [esp + 4], esi
xor eax, ebx
mov edx, dword [esp + 0x1c]
xor edx, dword [esp]
xor ebx, 0xff
mov dword [esp + 8], ebx
add dword [esp + 4], edx
adc edi, eax
mov dword [esp + 0xc], edi
mov ebx, edx
shld ebx, eax, 0xd
shrd edx, eax, 0x13
xor edx, edi
mov dword [esp + 0x1c], edx
xor ebx, dword [esp + 4]
mov edx, dword [esp + 8]
add edx, ecx
mov dword [esp + 8], edx
mov edi, dword [esp]
mov eax, dword [esp + 0x2c]
adc edi, eax
mov dword [esp], edi
mov esi, ecx
shld esi, eax, 0x10
shrd ecx, eax, 0x10
xor ecx, edi
xor esi, edx
mov edx, dword [esp + 0xc]
add edx, esi
mov edi, dword [esp + 4]
adc edi, ecx
mov dword [esp + 4], edi
mov eax, esi
shld eax, ecx, 0x15
shrd esi, ecx, 0xb
xor esi, edi
mov ecx, edx
mov dword [esp + 0xc], edx
xor eax, edx
add dword [esp + 8], ebx
mov edi, dword [esp]
mov edx, dword [esp + 0x1c]
adc edi, edx
mov dword [esp], edi
mov ecx, ebx
shld ecx, edx, 0x11
shrd ebx, edx, 0xf
xor ebx, edi
mov edi, dword [esp + 8]
xor ecx, edi
add dword [esp + 0xc], ecx
adc dword [esp + 4], ebx
mov edx, ecx
shld edx, ebx, 0xd
shrd ecx, ebx, 0x13
xor ecx, dword [esp + 4]
mov ebx, dword [esp + 0xc]
xor edx, ebx
add dword [esp], eax
adc edi, esi
mov dword [esp + 8], edi
mov edi, eax
shld edi, esi, 0x10
shrd eax, esi, 0x10
xor eax, dword [esp + 8]
xor edi, dword [esp]
add dword [esp + 4], edi
adc ebx, eax
mov dword [esp + 0xc], ebx
mov esi, edi
shld esi, eax, 0x15
shrd edi, eax, 0xb
xor edi, ebx
xor esi, dword [esp + 4]
add dword [esp], edx
mov eax, dword [esp + 8]
adc eax, ecx
mov dword [esp + 8], eax
mov ebx, edx
shld ebx, ecx, 0x11
shrd edx, ecx, 0xf
xor edx, eax
xor ebx, dword [esp]
mov ecx, dword [esp + 4]
add ecx, ebx
adc dword [esp + 0xc], edx
mov eax, ebx
shld eax, edx, 0xd
xor eax, ecx
shrd ebx, edx, 0x13
xor ebx, dword [esp + 0xc]
mov edx, dword [esp + 8]
add edx, esi
mov ecx, dword [esp]
adc ecx, edi
shrd esi, edi, 0x10
xor esi, ecx
shr esi, 0xb
add edx, eax
adc ecx, ebx
shr ebx, 0xf
xor ebx, esi
xor ebx, ecx
xor ebx, edx
mov edx, ebx
jmp 0x41345e
test al, al
mov ecx, dword [ebp + 0xc]
je 0x413422
mov eax, dword [esp + 0x14]
test eax, eax
je 0x413461
xor edi, edi
mov ebx, dword [esp + 0x10]
mov eax, edx
movzx ecx, byte [ebx + edi]
xor ecx, eax
mov eax, ecx
mov edx, 0x1b3
mul edx
shl ecx, 8
add ecx, edx
imul esi, esi, 0x1b3
add esi, ecx
inc edi
cmp dword [esp + 0x14], edi
jne 0x4133c1
jmp 0x41345c
mov edi, dword [esp + 0x14]
test edi, edi
mov esi, dword [esp + 0x10]
je 0x4131a4
xor ebx, ebx
movzx eax, byte [esi + ebx]
mov al, byte [eax + 0x4e175a]
mov byte [esp + 0x24], al
lea ecx, [esp + 0x38]
lea edx, [esp + 0x24]
push 1
call fcn.00417114
add esp, 4
inc ebx
cmp edi, ebx
jne 0x4133f8
jmp 0x4131a4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x413461
xor edi, edi
mov ebx, dword [esp + 0x10]
mov eax, edx
movzx ecx, byte [ebx + edi]
movzx ecx, byte [ecx + 0x4e175a]
xor ecx, eax
mov eax, ecx
mov edx, 0x1b3
mul edx
shl ecx, 8
add ecx, edx
imul esi, esi, 0x1b3
add esi, ecx
inc edi
cmp dword [esp + 0x14], edi
jne 0x413432
mov edx, eax
mov ecx, dword [ebp + 0xc]
mov ebx, edx
and ebx, 0x7fff
movzx eax, word [ecx + 0x38]
movzx eax, ax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
and ebx, eax
mov edx, dword [ecx + 0x18]
mov esi, dword [ecx + 0x1c]
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x20], eax
xor edi, edi
mov dword [esp + 0x1c], edx
mov eax, ebx
mov ebx, eax
xor eax, eax
cmp ebx, esi
jae 0x41348f
movzx ecx, word [edx + ebx*4]
xor eax, eax
cmp ecx, 0xffff
je 0x413103
mov dword [esp], ecx
movzx ecx, word [edx + ebx*4 + 2]
mov edx, ecx
mov eax, dword [esp + 0xc]
and edx, eax
mov dword [esp + 4], edi
mov edi, ebx
sub edi, edx
and edi, eax
cmp dword [esp + 4], edi
mov edi, dword [esp + 4]
ja 0x413577
cmp cx, word [esp + 8]
mov edx, dword [esp + 0x14]
jne 0x41356c
mov ecx, dword [esp]
cmp dword [esp + 0x28], ecx
jbe 0x413595
imul eax, ecx, 0x34
mov ecx, dword [esp + 0x20]
add eax, ecx
add eax, 0x20
cmp dword [eax], 0
je 0x413526
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x413538
cmp ecx, 2
je 0x41356c
cmp dword [eax + 8], edx
jne 0x41356c
push edx
push dword [esp + 0x14]
push dword [eax + 4]
call fcn.004b6b8a
add esp, 0xc
test eax, eax
jne 0x41356c
jmp 0x41357b
cmp byte [esp + 0x18], 2
jne 0x41356c
mov ecx, dword [esp + 0x10]
cmp byte [eax + 4], cl
jne 0x41356c
jmp 0x41357b
cmp dword [eax + 8], edx
jne 0x41356c
test edx, edx
je 0x41357b
mov edi, dword [eax + 4]
xor eax, eax
mov ecx, dword [esp + 0x10]
movzx edx, byte [ecx + eax]
mov cl, byte [edi + eax]
cmp cl, byte [edx + 0x4e175a]
jne 0x413562
inc eax
cmp dword [esp + 0x14], eax
jne 0x413546
jmp 0x41357b
cmp eax, dword [esp + 0x14]
mov edi, dword [esp + 4]
jae 0x41357b
inc edi
inc ebx
mov edx, dword [esp + 0x1c]
jmp 0x41348d
xor eax, eax
jmp 0x413581
xor eax, eax
inc eax
mov edx, dword [esp]
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
mov dword [ecx + 4], ebx
mov dword [ecx + 8], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp + 0x28]
push 0x4e358c
call fcn.004cb900