Function at 0x5013c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x114
mov eax, dword [0x55c640]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x134]
xorps xmm0, xmm0
push ebx
mov ebx, dword [esp + 0x134]
push ebp
mov ebp, dword [esp + 0x134]
push esi
mov esi, dword [esp + 0x124]
mov ecx, esi
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x144]
push edi
mov edi, dword [esp + 0x12c]
mov edx, edi
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14c]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], 0
movdqu xmmword [esp + 0x64], xmm0
mov dword [esp + 0x9c], 0
movdqu xmmword [esp + 0x74], xmm0
mov dword [esp + 0xa0], 0
movdqu xmmword [esp + 0x84], xmm0
movq qword [esp + 0x94], xmm0
lea esp, [esp]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [esp + eax*4 + 0x64]
dec edx
jne 0x501460
cmp dword [esp + 0x64], edi
jne 0x501492
mov dword [ebp], edx
mov dword [ebx], edx
xor eax, eax
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00484516
add esp, 0x114
ret
mov eax, dword [ebx]
mov ecx, 1
lea esp, [esp]
cmp dword [esp + ecx*4 + 0x64], 0
jne 0x5014ad
inc ecx
cmp ecx, 0xf
jbe 0x5014a0
cmp eax, ecx
mov dword [esp + 0x14], ecx
mov edx, 0xf
cmovb eax, ecx
jmp 0x5014c0
cmp dword [esp + edx*4 + 0x64], 0
jne 0x5014ca
dec edx
jne 0x5014c0
cmp eax, edx
mov dword [esp + 0x2c], edx
mov ebp, 1
cmova eax, edx
shl ebp, cl
mov dword [esp + 0x18], eax
mov dword [ebx], eax
cmp ecx, edx
jae 0x5014f5
sub ebp, dword [esp + ecx*4 + 0x64]
js 0x501603
inc ecx
add ebp, ebp
cmp ecx, edx
jb 0x5014e4
lea ebx, [edx*4]
mov eax, dword [esp + ebx + 0x64]
sub ebp, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x60], ebp
js 0x501603
add eax, ebp
xor ecx, ecx
mov dword [esp + ebx + 0x64], eax
mov dword [esp + 0xa8], ecx
dec edx
je 0x501541
xor eax, eax
jmp 0x501530
add ecx, dword [esp + eax + 0x68]
lea eax, [eax + 4]
mov dword [esp + eax + 0xa8], ecx
dec edx
jne 0x501530
mov ebx, dword [esp + 0x48]
xor ecx, ecx
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x501562
mov eax, dword [esp + edx*4 + 0xa4]
mov dword [ebx + eax*4], ecx
inc eax
mov dword [esp + edx*4 + 0xa4], eax
inc ecx
cmp ecx, edi
jb 0x501547
mov ebx, dword [esp + 0x34]
xor edi, edi
or ecx, 0xffffffff
mov dword [esp + 0x24], edi
xor ebp, ebp
mov dword [esp + 0x10], ecx
xor esi, esi
mov dword [esp + 0xe4], edi
mov eax, dword [esp + ebx + 0xa4]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x5c], eax
neg ebx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xa4], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebp
cmp eax, dword [esp + 0x2c]
jg 0x501853
lea ecx, [esp + 0x64]
mov edi, esi
lea ecx, [ecx + eax*4]
mov dword [esp + 0x30], ecx
mov ecx, dword [ecx]
test ecx, ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x10]
je 0x50183a
mov eax, dword [esp + 0x28]
lea edx, [eax + 1]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x18]
dec dword [esp + 0x44]
dec eax
mov dword [esp + 0x28], eax
lea eax, [ebx + edx]
cmp dword [esp + 0x14], eax
jle 0x501713
sub ebx, edx
mov ebp, ebx
jmp 0x501614
mov eax, 0xfffffffd
jmp 0x501479
mov ebp, dword [esp + 0x4c]
mov edi, dword [esp + 0x2c]
mov ebx, eax
add ebp, edx
mov dword [esp + 0x38], ebx
inc ecx
mov dword [esp + 0x4c], ebp
sub edi, ebx
mov dword [esp + 0x10], ecx
cmp edi, edx
mov eax, 1
cmova edi, edx
mov edx, dword [esp + 0x14]
sub edx, ebx
mov ecx, edx
shl eax, cl
cmp eax, dword [esp + 0x44]
jbe 0x501673
mov esi, dword [esp + 0x30]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x28]
add eax, ecx
cmp edx, edi
jae 0x501673
inc edx
cmp edx, edi
jae 0x501673
jmp 0x501660
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
add eax, eax
cmp eax, ecx
jbe 0x501673
inc edx
sub eax, ecx
cmp edx, edi
jb 0x501660
mov edi, dword [esp + 0x58]
mov ecx, edx
mov esi, 1
shl esi, cl
mov eax, dword [edi]
lea ecx, [eax + esi]
cmp ecx, 0x5a0
ja 0x501603
mov ebp, dword [esp + 0x54]
mov dword [edi], ecx
mov edi, dword [esp + 0x24]
lea ebp, [ebp + eax*8]
mov eax, dword [esp + 0x10]
mov ecx, eax
mov dword [esp + 0x34], ebp
mov dword [esp + eax*4 + 0xe4], ebp
test ecx, ecx
je 0x5016fc
mov eax, dword [esp + 0x18]
mov byte [esp + 0x3d], al
mov eax, dword [esp + 0x10]
mov byte [esp + 0x3c], dl
mov edx, edi
mov dword [esp + ecx*4 + 0xa4], edi
mov ecx, dword [esp + 0x4c]
shr edx, cl
mov ecx, dword [esp + eax*4 + 0xe0]
mov eax, ebp
sub eax, ecx
sar eax, 3
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + edx*8], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + edx*8 + 4], eax
mov ecx, dword [esp + 0x10]
jmp 0x501702
mov eax, dword [esp + 0x50]
mov dword [eax], ebp
mov edx, dword [esp + 0x18]
lea eax, [ebx + edx]
cmp dword [esp + 0x14], eax
jg 0x501610
mov edx, dword [esp + 0x14]
mov al, dl
mov ecx, dword [esp + 0x5c]
sub al, bl
mov byte [esp + 0x3d], al
mov eax, dword [esp + 0x48]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jb 0x501739
mov byte [esp + 0x3c], 0xc0
jmp 0x501781
mov ecx, dword [ecx]
mov eax, dword [esp + 0x130]
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jae 0x50175c
cmp ecx, 0x100
sbb al, al
and al, 0xa0
add al, 0x60
mov byte [esp + 0x3c], al
jmp 0x50177c
sub ecx, eax
mov eax, dword [esp + 0x138]
mov al, byte [eax + ecx*4]
add al, 0x50
mov byte [esp + 0x3c], al
mov eax, dword [esp + 0x134]
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x1c], ecx
add dword [esp + 0x20], 4
mov ecx, edx
mov eax, edi
sub ecx, ebx
mov edx, 1
shl edx, cl
mov ecx, ebx
shr eax, cl
cmp eax, esi
jae 0x5017c5
mov ebx, dword [esp + 0x1c]
lea ecx, [eax*8]
add ecx, ebp
lea edi, [edx*8]
mov ebp, dword [esp + 0x3c]
mov edi, edi
mov dword [ecx], ebp
add eax, edx
mov dword [ecx + 4], ebx
add ecx, edi
cmp eax, esi
jb 0x5017b0
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov eax, 1
lea ecx, [ecx - 1]
shl eax, cl
test edi, eax
je 0x5017df
xor edi, eax
shr eax, 1
test edi, eax
jne 0x5017d7
mov edx, dword [esp + 0x18]
xor edi, eax
mov ecx, ebx
mov dword [esp + 0x24], edi
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x10]
dec eax
and eax, edi
cmp eax, dword [esp + ecx*4 + 0xa4]
je 0x501826
dec ecx
sub ebx, edx
mov dword [esp + 0x10], ecx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
dec eax
and eax, edi
cmp eax, dword [esp + ecx*4 + 0xa4]
jne 0x501802
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x34]
test eax, eax
jne 0x5015e7
mov eax, dword [esp + 0x14]
add dword [esp + 0x30], 4
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x2c]
jg 0x501853
mov ecx, dword [esp + 0x30]
jmp 0x5015c6
cmp dword [esp + 0x60], 0
je 0x501477
cmp dword [esp + 0x2c], 1
je 0x501477
mov eax, 0xfffffffb
jmp 0x501479