Function at 0x50e0c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov ecx, dword [0x754040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
test esi, esi
cmove esi, edx
mov dword [ebp - 0x78], esi
pxor xmm0, xmm0
movdqu xmmword [ebp - 0x60], xmm0
mov ecx, dword [edx + 4]
mov dword [ebp - 0x70], ecx
cmp eax, 0xffffffff
jne 0x50e4b0
mov dword [ebp - 0x7c], ecx
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edi, dword [eax + 4]
test edi, edi
jle 0x50e551
mov edx, dword [eax]
mov eax, edi
cmp dword [edx + eax*4 - 4], 0
je 0x50e490
lea ecx, [eax - 1]
shl ecx, 5
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x64], edx
mov eax, dword [edx + eax*4 - 4]
xor edx, edx
test eax, eax
setne dl
mov esi, eax
shr esi, 0x10
cmp eax, 0x10000
cmovb esi, eax
mov eax, 0
setae al
shl eax, 4
mov dword [ebp - 0x68], eax
mov ecx, esi
shr ecx, 8
xor eax, eax
cmp esi, 0x100
cmovb ecx, esi
setae al
mov dword [ebp - 0x74], eax
mov esi, ecx
shr esi, 4
xor eax, eax
cmp ecx, 0x10
cmovb esi, ecx
setae al
mov dword [ebp - 0x80], eax
mov ecx, esi
shr ecx, 2
xor eax, eax
cmp esi, 4
cmovb ecx, esi
setae al
add edx, dword [ebp - 0x6c]
add edx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x74]
lea edx, [edx + esi*8]
mov esi, dword [ebp - 0x80]
lea edx, [edx + esi*4]
cmp ecx, 2
lea eax, [edx + eax*2]
sbb eax, 0xffffffff
dec eax
and eax, 7
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x50e589
test edi, edi
mov ecx, dword [ebp - 0x64]
jle 0x50e4a8
cmp dword [ecx + edi*4 - 4], 0
je 0x50e47b
lea esi, [edi - 1]
shl esi, 5
mov eax, dword [ecx + edi*4 - 4]
xor edx, edx
test eax, eax
setne dl
mov ecx, eax
shr ecx, 0x10
cmp eax, 0x10000
cmovb ecx, eax
mov eax, 0
setae al
shl eax, 4
mov dword [ebp - 0x64], eax
mov edi, ecx
shr edi, 8
xor eax, eax
cmp ecx, 0x100
cmovb edi, ecx
setae al
mov dword [ebp - 0x68], eax
mov eax, edi
shr eax, 4
xor ecx, ecx
cmp edi, 0x10
cmovb eax, edi
setae cl
mov dword [ebp - 0x74], ecx
mov edi, eax
shr edi, 2
xor ecx, ecx
cmp eax, 4
cmovb edi, eax
setae cl
or edx, esi
add edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x68]
lea eax, [edx + eax*8]
mov edx, dword [ebp - 0x74]
lea eax, [eax + edx*4]
lea eax, [eax + ecx*2]
cmp edi, 2
mov edi, eax
sbb edi, 0xffffffff
add edi, 7
shr edi, 3
movzx edx, byte [ebx]
mov ecx, dword [ebp - 0x6c]
shr edx, cl
test edx, edx
mov esi, dword [ebp - 0x70]
jne 0x50e522
xor edx, edx
test ecx, ecx
sete dl
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edx
sub edi, edx
lea eax, [esi + 2]
cmp edi, eax
jb 0x50e530
mov edx, esi
mov esi, dword [ebp - 0x7c]
test esi, esi
sets cl
add eax, esi
cmp edi, eax
setae al
or al, cl
je 0x50e530
add ebx, dword [ebp - 0x64]
cmp byte [ebx + edi - 1], 0xbc
jne 0x50e514
mov eax, edx
not eax
add edi, eax
push edi
mov esi, edx
call fcn.0050c4c0
add esp, 4
test eax, eax
je 0x50e548
mov ecx, esi
mov esi, eax
lea eax, [ebx + edi]
push dword [ebp - 0x78]
push ecx
mov dword [ebp - 0x78], eax
push eax
push edi
push esi
call fcn.00498a80
add esp, 0x14
test eax, eax
je 0x50e54a
test edi, edi
je 0x50e2fc
xor eax, eax
mov cl, byte [ebx + eax]
xor byte [esi + eax], cl
inc eax
cmp edi, eax
jne 0x50e2f1
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x50e310
mov cl, 8
sub cl, al
mov eax, 0xff
shr eax, cl
and byte [esi], al
neg dword [ebp - 0x64]
lea eax, [edi - 1]
xor ebx, ebx
mov edx, ebx
mov cl, byte [esi + ebx]
inc ebx
cmp edx, eax
jae 0x50e326
test cl, cl
je 0x50e318
cmp cl, 1
jne 0x50e4e9
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
mov eax, dword [ebp + 0x10]
js 0x50e34e
mov edx, dword [ebp - 0x68]
add edx, dword [ebp - 0x64]
not ecx
add ecx, edx
sub ecx, dword [ebp - 0x70]
cmp ecx, ebx
jne 0x50e4d8
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x20], xmm0
movdqu xmmword [ebp - 0x30], xmm0
movdqu xmmword [ebp - 0x40], xmm0
movdqu xmmword [ebp - 0x50], xmm0
test eax, eax
je 0x50e396
push dword [eax + 0x1c]
call fcn.0050c4c0
add esp, 4
mov dword [ebp - 0x64], eax
test eax, eax
je 0x50e54a
push 0
call fcn.0050c560
add esp, 4
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
sub edi, ebx
mov ecx, dword [eax + 0xc]
call dword [0x74e248]
lea eax, [ebp - 0x60]
push eax
call ecx
add esp, 4
lea eax, [ebp - 0x60]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
call dword [0x74e248]
push 8
push 0x6e2457
lea eax, [ebp - 0x60]
push eax
call ecx
add esp, 0xc
lea eax, [ebp - 0x60]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
call dword [0x74e248]
push dword [ebp - 0x70]
push dword [ebp + 0xc]
lea eax, [ebp - 0x60]
push eax
call ecx
add esp, 0xc
mov eax, esi
add eax, ebx
mov dword [ebp - 0x64], eax
lea ebx, [ebp - 0x60]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x10]
call dword [0x74e248]
push edi
push dword [ebp - 0x64]
push ebx
call ecx
add esp, 0xc
mov eax, dword [ebx]
mov ecx, dword [eax + 0x14]
call dword [0x74e248]
lea edi, [ebp - 0x50]
push edi
push ebx
call ecx
add esp, 8
mov eax, dword [ebx]
push dword [eax + 0x1c]
push dword [ebx + 4]
call fcn.0050c5a0
mov eax, dword [ebp - 0x70]
add esp, 8
xor ebx, ebx
inc ebx
test eax, eax
je 0x50e448
push eax
push dword [ebp - 0x78]
push edi
call fcn.00551eed
add esp, 0xc
test eax, eax
jne 0x50e4fa
push esi
call fcn.0050c560
add esp, 4
push dword [ebp - 0x5c]
call fcn.0050c560
add esp, 4
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x50e55c
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550b46
mov eax, ebx
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [edi - 1]
cmp edi, 1
mov edi, eax
jg 0x50e1cb
xor edi, edi
jmp 0x50e25d
lea ecx, [eax - 1]
cmp eax, 1
mov eax, ecx
jg 0x50e118
mov dword [ebp - 0x64], edx
xor eax, eax
jmp 0x50e1a9
jne 0x50e1d6
jmp 0x50e489
cmp eax, 0xfffffffe
jne 0x50e4bf
mov ecx, 0xfffffffe
jmp 0x50e0fd
mov ecx, eax
jge 0x50e0fd
push 0xe9
push 0x6e2417
push 0x8a
jmp 0x50e53c
push 0x11f
push 0x6e2417
push 0x8a
jmp 0x50e506
push 0x119
push 0x6e2417
push 0x8b
jmp 0x50e506
push 0x12b
push 0x6e2417
push 0x69
push 0
push 4
call fcn.00643740
add esp, 0x14
jmp 0x50e54a
push 0xfe
push 0x6e2417
push 0x7f
jmp 0x50e53c
push 0xf0
push 0x6e2417
push 0x7a
jmp 0x50e53c
push 0xfa
push 0x6e2417
push 0x71
push 0
push 4
call fcn.00643740
add esp, 0x14
xor esi, esi
xor ebx, ebx
jmp 0x50e448
je 0x50e572
mov edx, dword [eax]
mov eax, edi
jmp 0x50e123
mov ecx, dword [eax]
mov esi, dword [ebp - 0x58]
call dword [0x74e248]
push esi
call ecx
add esp, 4
jmp 0x50e467
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x6c], 7
test ecx, ecx
je 0x50e489
call dword [0x74e248]
push dword [ebp + 8]
call ecx
add esp, 4
mov edi, eax
jmp 0x50e25d