Function at 0x5b9410
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.0055b0e0
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.005b92f0
push dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 0x18], ebx
call fcn.00533790
add esp, 0xc
mov dword [ebp - 0x24], eax
xor esi, esi
mov dword [ebp - 8], edi
test ebx, ebx
je 0x5b983d
test eax, eax
jle 0x5b983d
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0xff
push dword [ebp + 0x18]
call fcn.005e1780
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
push eax
push esi
call fcn.005b92d0
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
jne 0x5b94b4
push 0x126
push 0x67873c
push 0x64
push 0x66
push 0x35
call fcn.005288a0
jmp 0x5b983a
mov ecx, dword [edi + 8]
mov eax, dword [ebp - 0x24]
cmp dword [ecx], eax
je 0x5b94d8
push 0x12b
push 0x67873c
push 0x68
push 0x66
push 0x35
call fcn.005288a0
jmp 0x5b983a
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.00558340
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x5b9502
push 0x135
jmp 0x5b9827
push eax
call fcn.005583b0
push dword [ebp - 0x10]
call fcn.005582d0
push dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
call fcn.005582d0
add esp, 0xc
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x5b9536
push 0x13e
push 0x67873c
push 3
jmp 0x5b982e
push 0x142
push 0x67873c
push ebx
call fcn.0051a0a0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
push 0x143
add eax, eax
push 0x67873c
push eax
mov dword [ebp - 0x38], eax
call fcn.0051a0a0
push 0x144
push 0x67873c
push dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
call fcn.0051a0a0
add esp, 0x24
mov dword [ebp - 0x28], eax
cmp dword [ebp - 8], esi
je 0x5b9822
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x5b9822
test eax, eax
je 0x5b9822
push dword [ebp - 0x14]
call fcn.005498b0
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x5b95b6
push 0x14d
jmp 0x5b9827
mov eax, dword [ebp - 4]
push dword [ebp - 0x10]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [ebp - 0x14]
call fcn.005499f0
add esp, 0x14
test eax, eax
je 0x5b9814
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.005b29e0
add esp, 4
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
push eax
push dword [ebp - 0x14]
call fcn.00549860
add esp, 0x18
test eax, eax
je 0x5b9814
push dword [ebp - 0x10]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.005495f0
add esp, 0x14
test eax, eax
je 0x5b9814
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x2c]
call fcn.0051cc40
add esp, 0xc
test eax, eax
js 0x5b9806
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.0051cc40
add esp, 0xc
test eax, eax
js 0x5b9806
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0xc]
push ebx
push dword [ebp - 8]
call fcn.005b8750
add esp, 0x1c
test eax, eax
je 0x5b9806
xor esi, esi
test ebx, ebx
je 0x5b9758
mov edx, dword [ebp - 8]
cmp ebx, 0x20
jb 0x5b972e
mov ecx, dword [ebp + 0x18]
lea eax, [edx - 1]
dec ecx
add eax, ebx
add ecx, ebx
cmp dword [ebp + 0x18], eax
ja 0x5b96a5
cmp ecx, edx
jae 0x5b972e
lea eax, [edi - 1]
add eax, ebx
cmp dword [ebp + 0x18], eax
ja 0x5b96b3
cmp ecx, edi
jae 0x5b972e
mov eax, ebx
and eax, 0x8000001f
jns 0x5b96c1
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 0x5b96f0
mov edi, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
cmp esi, ebx
je 0x5b9758
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 0x5b9746
call fcn.00520ac0
mov esi, eax
test esi, esi
jne 0x5b976d
push 0x167
jmp 0x5b9827
push dword [ebp + 0xc]
push esi
call fcn.005206e0
add esp, 8
test eax, eax
je 0x5b97f8
mov edi, dword [ebp - 0x18]
push edi
push dword [ebp - 0xc]
push esi
call fcn.005208b0
add esp, 0xc
test eax, eax
je 0x5b97f8
push ebx
push dword [ebp + 0x18]
push esi
call fcn.005208b0
add esp, 0xc
test eax, eax
je 0x5b97f8
push edi
push dword [ebp - 0x14]
push esi
call fcn.005208b0
add esp, 0xc
test eax, eax
je 0x5b97f8
mov edi, dword [ebp - 0x28]
push 0
push edi
push esi
call fcn.005205a0
add esp, 0xc
test eax, eax
je 0x5b97f8
push dword [ebp - 0x24]
push dword [ebp - 0x40]
push edi
call fcn.00547f40
add esp, 0xc
test eax, eax
je 0x5b97e7
push 0x175
push 0x67873c
push 0x66
jmp 0x5b982e
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp - 4]
mov dword [ebp - 0x34], 1
mov dword [eax], ebx
jmp 0x5b984f
push 0x170
push 0x67873c
push 6
jmp 0x5b982e
push 0x15e
push 0x67873c
push 0x44
jmp 0x5b982e
push 0x156
push 0x67873c
push 0x10
jmp 0x5b982e
push 0x147
push 0x67873c
push 0x41
push 0x66
push 0x35
call fcn.005288a0
mov edi, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0
push dword [ebp + 0x18]
call fcn.005e1780
add esp, 0xc
push 0x180
push 0x67873c
push dword [ebp - 8]
call fcn.00519f90
push 0x181
push 0x67873c
push dword [ebp - 0xc]
call fcn.00519f90
push 0x182
push 0x67873c
push dword [ebp - 0x28]
call fcn.00519f90
push dword [ebp - 0x1c]
call fcn.005495c0
push dword [ebp - 0x10]
call fcn.005582a0
push edi
call fcn.005b92a0
push esi
call fcn.00520aa0
mov eax, dword [ebp - 0x34]
add esp, 0x34
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret