Function at 0x5b1230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x170
mov eax, dword [0x79b5e0]
xor eax, esp
mov dword [esp + 0x16c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x54], eax
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [esp + 0x30], esi
mov ecx, edi
mov dword [esp + 0x38], edi
mov eax, dword [esi + 0x5c]
mov edx, 1
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 4]
sub ecx, eax
mov dword [esp + 0x10], eax
mov eax, edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0xb8]
shl eax, cl
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jbe 0x5b12bf
mov eax, dword [esp + 0x1c]
sub eax, ecx
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x44]
jmp 0x5b12c4
mov eax, dword [esi + 0x10]
mov ecx, eax
cmp dword [esi + 0x18], 0
mov dword [esp + 0x40], 3
cmovne ecx, eax
mov dword [esp + 0x20], 0x3f
mov eax, dword [esi + 0xc4]
mov dword [esp + 0x44], ecx
mov ecx, 6
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [esi + 0x50]
shl edx, cl
cmp dword [esi + 0xdc], 0
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x54]
mov dword [esp + 0x64], eax
mov dword [esp + 0x58], edx
jne 0x5b155d
mov edx, dword [esp + 0x10]
mov eax, edi
mov ecx, dword [esi + 0x1c]
sub eax, edx
mov dword [esp + 0x3c], eax
sub eax, ecx
mov dword [esp + 0xc], ecx
cmp eax, 0x180
jbe 0x5b146a
lea eax, [ecx + 0x60]
mov dword [esp + 0x34], eax
cmp ecx, eax
jae 0x5b13df
mov eax, dword [esp + 0x4c]
mov esi, 0x20
mov edi, dword [esp + 0x30]
add eax, 8
sub esi, eax
mov dword [esp + 0x14], esi
jmp 0x5b1360
imul edx, dword [ecx + edx + 8], 0x9e3779b1
mov ecx, esi
mov eax, dword [edi + 0x54]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xc]
and eax, 7
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [edi + eax*4 + 0x2c]
mov esi, ecx
mov dword [edi + eax*4 + 0x2c], edx
mov eax, 0
mov edx, dword [esp + 0x24]
shr esi, 2
and esi, 0x3fffffc0
mov dword [esp + 0x18], ecx
add edx, esi
movzx ecx, byte [edx]
dec ecx
and ecx, 0x3f
cmove eax, dword [esp + 0x20]
add ecx, eax
mov eax, dword [esp + 0x18]
mov byte [edx], cl
mov byte [ecx + edx], al
lea eax, [ecx + esi]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
mov dword [edx + eax*4], ecx
inc ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
cmp ecx, dword [esp + 0x34]
jb 0x5b1360
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
lea edx, [edi + 1]
mov eax, dword [esp + 0x10]
add ecx, 0xffffffe0
add eax, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], ecx
cmp eax, edx
jbe 0x5b13ff
xor edx, edx
jmp 0x5b1406
sub edx, dword [esp + 0x10]
sub edx, ecx
inc edx
mov eax, 8
cmp edx, eax
cmova edx, eax
add edx, ecx
mov dword [esp + 0x14], edx
cmp ecx, edx
jae 0x5b146a
mov eax, dword [esi + 0x24]
mov ecx, 0x20
add eax, 8
mov edi, edx
sub ecx, eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x54]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x10]
imul edx, dword [ecx + eax], 0x9e3779b1
mov ecx, dword [esp + 0x34]
xor edx, dword [esi + 0x50]
shr edx, cl
mov ecx, dword [esp + 0x18]
mov eax, ecx
and eax, 7
inc ecx
mov dword [esp + 0x18], ecx
mov dword [esi + eax*4 + 0x2c], edx
cmp ecx, edi
jb 0x5b1431
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 0x5c]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jae 0x5b151f
mov edi, dword [esp + 0x3c]
lea eax, [edx + 8]
mov edx, 0x20
sub edx, eax
mov dword [esp + 0x34], edx
mov eax, dword [esi + 0x54]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x14]
imul edx, dword [ecx + eax + 8], 0x9e3779b1
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
and eax, 7
xor edx, dword [esi + 0x50]
shr edx, cl
mov ecx, dword [esi + eax*4 + 0x2c]
mov dword [esi + eax*4 + 0x2c], edx
mov esi, ecx
mov edx, dword [esp + 0x18]
mov eax, 0
shr esi, 2
and esi, 0x3fffffc0
mov dword [esp + 0x50], ecx
add edx, esi
movzx ecx, byte [edx]
dec ecx
and ecx, 0x3f
cmove eax, dword [esp + 0x20]
add ecx, eax
mov eax, dword [esp + 0x50]
mov byte [edx], cl
mov byte [ecx + edx], al
lea eax, [ecx + esi]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x30]
mov dword [edx + eax*4], ecx
inc ecx
mov dword [esp + 0xc], ecx
cmp ecx, edi
jb 0x5b14a0
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x4c]
add eax, 8
imul edx, dword [edx + ecx + 8], 0x9e3779b1
mov ecx, 0x20
sub ecx, eax
mov eax, dword [esp + 0x1c]
xor edx, dword [esp + 0x2c]
shr edx, cl
and eax, 7
mov ecx, dword [esi + eax*4 + 0x2c]
mov dword [esi + eax*4 + 0x2c], edx
mov edx, ecx
mov dword [esp + 0x60], ecx
jmp 0x5b157e
imul edx, dword [edi], 0x9e3779b1
mov ecx, 0x20
mov eax, dword [esp + 0x4c]
add eax, 8
sub ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x1c], eax
xor edx, dword [esp + 0x2c]
shr edx, cl
add dword [esi + 0x58], edx
mov eax, edx
shr eax, 2
and eax, 0x3fffffc0
movzx ecx, dl
mov edx, dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
add edx, eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x20], 0
lea ecx, [ecx + eax*4]
movzx eax, byte [edx]
mov dword [esp + 0x50], eax
and eax, 0x3f
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
movsx eax, al
mov dword [esp + 0x28], ecx
xor ecx, ecx
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
xorps xmm0, xmm0
movdqu xmmword [esp + 0x60], xmm0
jmp 0x5b15f0
movdqu xmm0, xmmword [edx]
lea edx, [edx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [esp + ecx*4 + 0x60], eax
inc ecx
cmp ecx, 4
jl 0x5b15f0
mov eax, dword [esp + 0x6c]
cdq
mov ecx, eax
mov esi, edx
mov eax, dword [esp + 0x68]
shld esi, ecx, 0x10
cdq
shl ecx, 0x10
or esi, edx
or ecx, eax
mov eax, dword [esp + 0x64]
shld esi, ecx, 0x10
cdq
shl ecx, 0x10
or esi, edx
or ecx, eax
mov eax, dword [esp + 0x60]
shld esi, ecx, 0x10
cdq
shl ecx, 0x10
or esi, edx
or ecx, eax
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x24]
movq xmm2, qword [esp + 0x60]
and ecx, 0x3f
movq xmm1, qword [esp + 0x60]
mov eax, ecx
neg eax
and eax, 0x3f
movd xmm0, eax
psllq xmm2, xmm0
movd xmm0, ecx
psrlq xmm1, xmm0
por xmm2, xmm1
movq qword [esp + 0x60], xmm2
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
test esi, esi
jne 0x5b168e
test edx, edx
je 0x5b16f1
xor edi, edi
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x5b16ed
test edx, edx
jne 0x5b16a8
bsf eax, esi
mov dword [esp + 0x60], eax
add eax, 0x20
jmp 0x5b16af
bsf eax, edx
mov dword [esp + 0x60], eax
add eax, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
and eax, 0x3f
mov eax, dword [edi + eax*4]
mov edi, dword [esp + 0xc]
je 0x5b16d7
cmp eax, dword [esp + 0x44]
jb 0x5b16ed
mov dword [esp + edi*4 + 0x70], eax
inc edi
dec ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x58], ecx
mov ecx, edx
mov eax, esi
add ecx, 0xffffffff
adc eax, 0xffffffff
and edx, ecx
and esi, eax
ja 0x5b1690
jb 0x5b16ed
test edx, edx
jne 0x5b1690
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x50]
mov edx, 0x3f
mov esi, dword [esp + 0x28]
dec ecx
and ecx, 0x3f
mov eax, 0
cmove eax, edx
mov edx, dword [esp + 0x2c]
add ecx, eax
mov eax, dword [esp + 0x14]
mov byte [eax], cl
mov byte [ecx + eax], dl
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x1c]
mov dword [esi + ecx*4], eax
inc dword [edx + 0x1c]
cmp dword [esp + 0xc], 0
jbe 0x5b182f
mov ecx, dword [esp + 0xc]
mov esi, 3
xor eax, eax
lea esp, [esp]
mov eax, dword [esp + eax*4 + 0x70]
mov edx, dword [esp + 0x10]
add edx, eax
mov dword [esp + 0x50], eax
mov eax, dword [edx + esi - 3]
cmp eax, dword [edi + esi - 3]
jne 0x5b17f8
mov esi, dword [esp + 0x48]
mov eax, edi
add esi, 0xfffffffd
cmp edi, esi
jae 0x5b17a4
mov eax, dword [edx]
xor eax, dword [edi]
je 0x5b177d
bsf eax, eax
mov ecx, eax
mov dword [esp + 0x60], eax
shr ecx, 3
jmp 0x5b17cc
lea eax, [edi + 4]
add edx, 4
cmp eax, esi
jae 0x5b17a4
jmp 0x5b1790
mov ecx, dword [edx]
xor ecx, dword [eax]
jne 0x5b181f
add eax, 4
add edx, 4
cmp eax, esi
jb 0x5b1790
mov esi, dword [esp + 0x48]
lea ecx, [esi - 1]
cmp eax, ecx
jae 0x5b17bd
mov cx, word [edx]
cmp cx, word [eax]
jne 0x5b17bd
add eax, 2
add edx, 2
cmp eax, esi
jae 0x5b17c8
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x5b17c8
inc eax
mov ecx, eax
sub ecx, edi
mov esi, dword [esp + 0x40]
cmp ecx, esi
jbe 0x5b17f4
mov eax, dword [esp + 0x1c]
mov esi, ecx
sub eax, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
add eax, 3
mov dword [esp + 0x40], esi
mov dword [edx], eax
lea eax, [ecx + edi]
cmp eax, dword [esp + 0x48]
je 0x5b1809
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, ecx
jb 0x5b1740
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x16c]
xor ecx, esp
call fcn.0061b9b8
mov esp, ebp
pop ebp
ret
bsf ecx, ecx
mov dword [esp + 0x60], ecx
shr ecx, 3
sub ecx, edi
add ecx, eax
jmp 0x5b17cc
mov ecx, dword [esp + 0x174]
mov eax, 3
pop edi
pop esi
xor ecx, esp
call fcn.0061b9b8
mov esp, ebp
pop ebp
ret