Function at 0x5ba350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 0
call fcn.005b39d0
xor edi, edi
mov dword [ebp - 0x14], eax
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x28], edi
call fcn.005ba230
push dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 0x18], ebx
call fcn.005346e0
add esp, 0xc
mov dword [ebp - 0x24], eax
xor esi, esi
mov dword [ebp - 8], edi
test ebx, ebx
je 0x5ba77d
test eax, eax
jle 0x5ba77d
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0xff
push dword [ebp + 0x18]
call fcn.005e26d0
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
push eax
push esi
call fcn.005ba210
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
jne 0x5ba3f4
push 0x126
push 0x67973c
push 0x64
push 0x66
push 0x35
call fcn.00529800
jmp 0x5ba77a
mov ecx, dword [edi + 8]
mov eax, dword [ebp - 0x24]
cmp dword [ecx], eax
je 0x5ba418
push 0x12b
push 0x67973c
push 0x68
push 0x66
push 0x35
call fcn.00529800
jmp 0x5ba77a
mov eax, dword [edi + 0xc]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x40], ecx
mov edi, dword [eax + 8]
mov ebx, dword [eax]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x3c], ebx
call fcn.00559270
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x5ba442
push 0x135
jmp 0x5ba767
push eax
call fcn.005592e0
push dword [ebp - 0x10]
call fcn.00559200
push dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
call fcn.00559200
add esp, 0xc
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x5ba476
push 0x13e
push 0x67973c
push 3
jmp 0x5ba76e
push 0x142
push 0x67973c
push ebx
call fcn.0051afa0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
push 0x143
add eax, eax
push 0x67973c
push eax
mov dword [ebp - 0x38], eax
call fcn.0051afa0
push 0x144
push 0x67973c
push dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
call fcn.0051afa0
add esp, 0x24
mov dword [ebp - 0x28], eax
cmp dword [ebp - 8], esi
je 0x5ba762
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x5ba762
test eax, eax
je 0x5ba762
push dword [ebp - 0x14]
call fcn.0054a800
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x5ba4f6
push 0x14d
jmp 0x5ba767
mov eax, dword [ebp - 4]
push dword [ebp - 0x10]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [ebp - 0x14]
call fcn.0054a940
add esp, 0x14
test eax, eax
je 0x5ba754
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0055c850
add esp, 4
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
push eax
push dword [ebp - 0x14]
call fcn.0054a7b0
add esp, 0x18
test eax, eax
je 0x5ba754
push dword [ebp - 0x10]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.0054a540
add esp, 0x14
test eax, eax
je 0x5ba754
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x2c]
call fcn.0051db70
add esp, 0xc
test eax, eax
js 0x5ba746
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
add ecx, eax
push eax
push ecx
push dword [ebp - 0x30]
mov dword [ebp - 0x14], ecx
call fcn.0051db70
add esp, 0xc
test eax, eax
js 0x5ba746
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0xc]
push ebx
push dword [ebp - 8]
call fcn.005b9690
add esp, 0x1c
test eax, eax
je 0x5ba746
xor esi, esi
test ebx, ebx
je 0x5ba698
mov edx, dword [ebp - 8]
cmp ebx, 0x20
jb 0x5ba66e
mov ecx, dword [ebp + 0x18]
lea eax, [edx - 1]
dec ecx
add eax, ebx
add ecx, ebx
cmp dword [ebp + 0x18], eax
ja 0x5ba5e5
cmp ecx, edx
jae 0x5ba66e
lea eax, [edi - 1]
add eax, ebx
cmp dword [ebp + 0x18], eax
ja 0x5ba5f3
cmp ecx, edi
jae 0x5ba66e
mov eax, ebx
and eax, 0x8000001f
jns 0x5ba601
dec eax
or eax, 0xffffffe0
inc eax
mov ecx, dword [ebp + 0x18]
mov edx, ebx
sub edx, eax
mov ebx, edi
mov eax, dword [ebp - 8]
add ecx, 0x10
sub ebx, eax
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp + 0x18]
sub ebx, eax
mov dword [ebp - 0x30], ebx
mov ebx, edi
sub ebx, dword [ebp + 0x18]
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x2c], ebx
nop dword [eax + eax]
movups xmm0, xmmword [eax]
mov ebx, dword [ebp - 0x30]
add esi, 0x20
lea eax, [eax + 0x20]
lea ecx, [ecx + 0x20]
movups xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [ebx + eax - 0x20], xmm1
mov ebx, dword [ebp - 0x2c]
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [ebx + ecx - 0x20]
mov ebx, dword [ebp - 0x3c]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp esi, edx
jne 0x5ba630
mov edi, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
cmp esi, ebx
je 0x5ba698
sub edi, edx
lea ecx, [esi + edx]
mov dword [ebp - 0x20], edi
mov edi, dword [ebp + 0x18]
sub edi, edx
mov edx, ebx
sub edx, esi
mov esi, dword [ebp - 0x20]
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + edi - 1], al
sub edx, 1
jne 0x5ba686
call fcn.005219f0
mov esi, eax
test esi, esi
jne 0x5ba6ad
push 0x167
jmp 0x5ba767
push dword [ebp + 0xc]
push esi
call fcn.00521610
add esp, 8
test eax, eax
je 0x5ba738
mov edi, dword [ebp - 0x18]
push edi
push dword [ebp - 0xc]
push esi
call fcn.005217e0
add esp, 0xc
test eax, eax
je 0x5ba738
push ebx
push dword [ebp + 0x18]
push esi
call fcn.005217e0
add esp, 0xc
test eax, eax
je 0x5ba738
push edi
push dword [ebp - 0x14]
push esi
call fcn.005217e0
add esp, 0xc
test eax, eax
je 0x5ba738
mov edi, dword [ebp - 0x28]
push 0
push edi
push esi
call fcn.005214d0
add esp, 0xc
test eax, eax
je 0x5ba738
push dword [ebp - 0x24]
push dword [ebp - 0x40]
push edi
call fcn.00548eb0
add esp, 0xc
test eax, eax
je 0x5ba727
push 0x175
push 0x67973c
push 0x66
jmp 0x5ba76e
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp - 4]
mov dword [ebp - 0x34], 1
mov dword [eax], ebx
jmp 0x5ba78f
push 0x170
push 0x67973c
push 6
jmp 0x5ba76e
push 0x15e
push 0x67973c
push 0x44
jmp 0x5ba76e
push 0x156
push 0x67973c
push 0x10
jmp 0x5ba76e
push 0x147
push 0x67973c
push 0x41
push 0x66
push 0x35
call fcn.00529800
mov edi, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0
push dword [ebp + 0x18]
call fcn.005e26d0
add esp, 0xc
push 0x180
push 0x67973c
push dword [ebp - 8]
call fcn.0051aea0
push 0x181
push 0x67973c
push dword [ebp - 0xc]
call fcn.0051aea0
push 0x182
push 0x67973c
push dword [ebp - 0x28]
call fcn.0051aea0
push dword [ebp - 0x1c]
call fcn.0054a510
push dword [ebp - 0x10]
call fcn.005591d0
push edi
call fcn.005ba1e0
push esi
call fcn.005219d0
mov eax, dword [ebp - 0x34]
add esp, 0x34
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret