Function at 0x5b8070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x180
mov eax, dword [0x79b5e0]
xor eax, esp
mov dword [esp + 0x17c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [esp + 0x68], eax
mov esi, 1
push edi
mov edi, edx
mov edx, ecx
mov dword [esp + 0x50], edi
mov dword [esp + 8], edx
mov eax, dword [edx + 0x5c]
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x24]
mov dword [esp + 0x58], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x60], ecx
add ecx, eax
mov dword [esp + 0x7c], ecx
mov ecx, edi
sub ecx, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ecx
mov eax, esi
mov ecx, dword [edx + 0xb8]
shl eax, cl
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x2c]
sub eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x5c]
cmp eax, ecx
jbe 0x5b810c
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov dword [esp + 0x64], eax
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x64]
jmp 0x5b8111
mov eax, dword [edx + 0x10]
mov ecx, eax
cmp dword [edx + 0x18], 0
mov dword [esp + 0xc], 3
cmovne ecx, eax
mov dword [esp + 0x4c], 0xf
mov eax, dword [edx + 0xc4]
mov dword [esp + 0x64], ecx
mov ecx, 4
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [edx + 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x54]
shl esi, cl
imul ecx, dword [edi], 0x9e3779b1
mov dword [esp + 0x74], eax
mov eax, dword [edx + 0xb4]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x38], ecx
mov ecx, 0x20
mov esi, dword [eax + 0x5c]
mov edx, dword [eax + 0x28]
mov eax, dword [eax + 0x24]
add eax, 8
sub ecx, eax
mov eax, dword [esp + 0x38]
shr eax, cl
mov ecx, eax
movzx eax, al
shr ecx, 4
and ecx, 0xffffff0
mov dword [esp + 0x28], eax
lea eax, [ecx + edx]
mov dword [esp + 0x68], eax
lea eax, [esi + ecx*4]
mov esi, dword [esp + 8]
mov dword [esp + 0x70], eax
cmp dword [esi + 0xdc], 0
jne 0x5b83ec
mov edx, dword [esp + 0x34]
mov eax, edi
mov ecx, dword [esi + 0x1c]
sub eax, edx
mov dword [esp + 0x38], eax
sub eax, ecx
mov dword [esp + 0x18], ecx
cmp eax, 0x180
jbe 0x5b82fd
lea eax, [ecx + 0x60]
mov dword [esp + 0x30], eax
cmp ecx, eax
jae 0x5b8272
mov eax, dword [esp + 0x58]
mov esi, 0x20
mov edi, dword [esp + 8]
add eax, 8
sub esi, eax
mov dword [esp + 0x44], esi
imul edx, dword [ecx + edx + 8], 0x9e3779b1
mov ecx, esi
mov eax, dword [edi + 0x54]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
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 + 0x14]
shr esi, 4
and esi, 0xffffff0
mov dword [esp + 0x24], ecx
add edx, esi
movzx ecx, byte [edx]
dec ecx
and ecx, 0xf
cmove eax, dword [esp + 0x4c]
add ecx, eax
mov eax, dword [esp + 0x24]
mov byte [edx], cl
mov byte [ecx + edx], al
lea eax, [ecx + esi]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x44]
mov dword [edx + eax*4], ecx
inc ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x30]
jb 0x5b81f3
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x38]
lea edx, [edi + 1]
mov eax, dword [esp + 0x34]
add ecx, 0xffffffe0
add eax, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], ecx
cmp eax, edx
jbe 0x5b8292
xor edx, edx
jmp 0x5b8299
sub edx, dword [esp + 0x34]
sub edx, ecx
inc edx
mov eax, 8
cmp edx, eax
cmova edx, eax
add edx, ecx
mov dword [esp + 0x44], edx
cmp ecx, edx
jae 0x5b82fd
mov eax, dword [esi + 0x24]
mov ecx, 0x20
add eax, 8
mov edi, edx
sub ecx, eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 0x54]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
imul edx, dword [ecx + eax], 0x9e3779b1
mov ecx, dword [esp + 0x30]
xor edx, dword [esi + 0x50]
shr edx, cl
mov ecx, dword [esp + 0x24]
mov eax, ecx
and eax, 7
inc ecx
mov dword [esp + 0x24], ecx
mov dword [esi + eax*4 + 0x2c], edx
cmp ecx, edi
jb 0x5b82c4
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x5c]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
cmp ecx, eax
jae 0x5b83ae
lea eax, [edx + 8]
mov edx, 0x20
sub edx, eax
mov dword [esp + 0x44], edx
mov edi, edx
mov eax, dword [esi + 0x54]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
imul edx, dword [ecx + eax + 8], 0x9e3779b1
mov ecx, edi
mov eax, dword [esp + 0x18]
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 + 0x24]
mov eax, 0
shr esi, 4
and esi, 0xffffff0
mov dword [esp + 0x44], ecx
add edx, esi
movzx ecx, byte [edx]
dec ecx
and ecx, 0xf
cmove eax, dword [esp + 0x4c]
add ecx, eax
mov eax, dword [esp + 0x44]
mov byte [edx], cl
mov byte [ecx + edx], al
lea eax, [ecx + esi]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 8]
mov dword [edx + eax*4], ecx
inc ecx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
cmp ecx, eax
jb 0x5b8331
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x58]
add eax, 8
imul edx, dword [edx + ecx + 8], 0x9e3779b1
mov ecx, 0x20
sub ecx, eax
mov eax, dword [esp + 0x2c]
xor edx, dword [esp + 0x10]
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 + 0x10], ecx
jmp 0x5b840b
mov eax, dword [esp + 0x58]
mov ecx, 0x20
mov edx, dword [esp + 0x10]
add eax, 8
xor edx, dword [esp + 0x38]
sub ecx, eax
mov eax, dword [esp + 0x2c]
shr edx, cl
mov dword [esi + 0x1c], eax
add dword [esi + 0x58], edx
mov eax, edx
shr eax, 4
and eax, 0xffffff0
movzx ecx, dl
mov edx, dword [esp + 0x14]
add edx, eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x58], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
lea ecx, [ecx + eax*4]
movzx eax, byte [edx]
mov dword [esp + 0x20], ecx
mov ecx, eax
mov dword [esp + 0x30], eax
and ecx, 0xf
mov eax, dword [esp + 0x4c]
movsx eax, al
mov dword [esp + 0x44], ecx
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
movdqu xmm0, xmmword [edx]
mov edx, ecx
and edx, 0xf
pcmpeqb xmm0, xmm1
mov ecx, edx
pmovmskb esi, xmm0
neg ecx
and ecx, 0xf
mov ax, si
shl ax, cl
mov cx, dx
shr si, cl
or ax, si
movzx eax, ax
cdq
mov esi, eax
test edx, edx
jne 0x5b84a1
test esi, esi
je 0x5b8505
mov edi, dword [esp + 0x54]
test edi, edi
je 0x5b84fd
test esi, esi
jne 0x5b84b9
bsf eax, edx
mov dword [esp + 0x3c], eax
add eax, 0x20
jmp 0x5b84c0
bsf eax, esi
mov dword [esp + 0x3c], eax
add eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
and eax, 0xf
mov eax, dword [ecx + eax*4]
je 0x5b84e7
cmp eax, dword [esp + 0x64]
jb 0x5b84fd
mov ecx, dword [esp + 0x10]
mov dword [esp + ecx*4 + 0x80], eax
inc ecx
mov dword [esp + 0x10], ecx
dec edi
mov ecx, esi
mov eax, edx
add ecx, 0xffffffff
adc eax, 0xffffffff
and esi, ecx
and edx, eax
ja 0x5b84a5
jb 0x5b84fd
test esi, esi
jne 0x5b84a5
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x30]
mov edx, 0xf
mov esi, dword [esp + 0x20]
dec ecx
and ecx, 0xf
mov eax, 0
cmove eax, edx
mov edx, dword [esp + 0x4c]
add ecx, eax
mov eax, dword [esp + 0x58]
mov byte [eax], cl
mov byte [ecx + eax], dl
mov edx, dword [esp + 8]
mov eax, dword [edx + 0x1c]
mov dword [esi + ecx*4], eax
inc dword [edx + 0x1c]
cmp dword [esp + 0x10], 0
jbe 0x5b8615
mov ecx, 3
xor eax, eax
lea esp, [esp]
mov eax, dword [esp + eax*4 + 0x80]
mov edx, dword [esp + 0x34]
add edx, eax
mov dword [esp + 0x44], eax
mov eax, dword [edx + ecx - 3]
cmp eax, dword [edi + ecx - 3]
jne 0x5b8602
mov esi, dword [esp + 0x1c]
mov eax, edi
add esi, 0xfffffffd
cmp edi, esi
jae 0x5b85b4
mov eax, dword [edx]
xor eax, dword [edi]
je 0x5b8594
mov esi, dword [esp + 0x1c]
bsf eax, eax
mov ecx, eax
mov dword [esp + 0x3c], eax
shr ecx, 3
jmp 0x5b85dc
lea eax, [edi + 4]
add edx, 4
cmp eax, esi
jae 0x5b85b4
mov edi, edi
mov ecx, dword [edx]
xor ecx, dword [eax]
jne 0x5b86bc
add eax, 4
add edx, 4
cmp eax, esi
jb 0x5b85a0
mov esi, dword [esp + 0x1c]
lea ecx, [esi - 1]
cmp eax, ecx
jae 0x5b85cd
mov cx, word [edx]
cmp cx, word [eax]
jne 0x5b85cd
add eax, 2
add edx, 2
cmp eax, esi
jae 0x5b85d8
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x5b85d8
inc eax
mov ecx, eax
sub ecx, edi
cmp ecx, dword [esp + 0xc]
jbe 0x5b85fe
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x44]
mov edx, dword [esp + 0x6c]
add eax, 3
mov dword [esp + 0xc], ecx
mov dword [edx], eax
lea eax, [ecx + edi]
cmp eax, esi
je 0x5b8615
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jb 0x5b8550
mov edx, dword [esp + 0x5c]
mov dword [esp + 8], 0
mov dword [esp + 0x20], 0
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x3c], ecx
sub ecx, eax
add dword [esp + 0x60], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
movzx ecx, byte [edx]
movsx eax, al
and ecx, 0xf
mov dword [esp + 0x68], ecx
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
movdqu xmm0, xmmword [edx]
mov edx, ecx
and edx, 0xf
pcmpeqb xmm0, xmm1
mov ecx, edx
pmovmskb esi, xmm0
neg ecx
and ecx, 0xf
mov ax, si
shl ax, cl
mov cx, dx
shr si, cl
or ax, si
movzx eax, ax
cdq
mov esi, eax
test edx, edx
jne 0x5b869b
test esi, esi
je 0x5b87f5
xor edi, edi
lea ecx, [ecx]
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x5b871d
test esi, esi
jne 0x5b86d3
bsf eax, edx
mov dword [esp + 0x28], eax
add eax, 0x20
jmp 0x5b86da
mov esi, dword [esp + 0x1c]
bsf ecx, ecx
mov dword [esp + 0x3c], ecx
shr ecx, 3
sub ecx, edi
add ecx, eax
jmp 0x5b85dc
bsf eax, esi
mov dword [esp + 0x28], eax
add eax, dword [esp + 0x68]
mov edi, dword [esp + 0x70]
and eax, 0xf
mov eax, dword [edi + eax*4]
mov edi, dword [esp + 8]
je 0x5b8707
mov ecx, dword [esp + 0x5c]
cmp eax, dword [ecx + 0xc]
jb 0x5b871d
mov dword [esp + edi*4 + 0x80], eax
inc edi
dec dword [esp + 0x54]
mov dword [esp + 8], edi
mov ecx, esi
mov eax, edx
add ecx, 0xffffffff
adc eax, 0xffffffff
and esi, ecx
and edx, eax
ja 0x5b86a0
jb 0x5b871d
test esi, esi
jne 0x5b86a0
test edi, edi
mov edi, dword [esp + 0x50]
je 0x5b87f5
mov ecx, dword [esp + 8]
xor eax, eax
nop
mov eax, dword [esp + eax*4 + 0x80]
mov esi, dword [esp + 0x3c]
add esi, eax
mov dword [esp + 0x28], eax
mov eax, dword [esi]
cmp eax, dword [edi]
jne 0x5b87ca
mov ecx, dword [esp + 0x1c]
lea eax, [edi + 4]
add esi, 4
sub eax, esi
mov edx, esi
add eax, dword [esp + 0x14]
cmp eax, ecx
cmovb ecx, eax
push ecx
lea ecx, [edi + 4]
call fcn.0059fed0
add esp, 4
mov dword [esp + 0x70], eax
lea ecx, [eax + esi]
cmp ecx, dword [esp + 0x14]
jne 0x5b8795
mov esi, dword [esp + 0x1c]
lea ecx, [edi + 4]
mov edx, dword [esp + 0x7c]
add ecx, eax
push esi
call fcn.0059fed0
add esp, 4
add eax, dword [esp + 0x70]
mov edx, dword [esp + 0xc]
lea ecx, [eax + 4]
cmp ecx, edx
jbe 0x5b87c4
mov eax, dword [esp + 0x2c]
mov edx, ecx
sub eax, dword [esp + 0x28]
sub eax, dword [esp + 0x60]
mov esi, dword [esp + 0x6c]
add eax, 3
mov dword [esp + 0xc], edx
mov dword [esi], eax
lea eax, [ecx + edi]
cmp eax, dword [esp + 0x1c]
je 0x5b87df
mov ecx, dword [esp + 8]
jmp 0x5b87ce
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, ecx
jb 0x5b8730
mov eax, edx
pop edi
pop esi
mov ecx, dword [esp + 0x17c]
xor ecx, esp
call fcn.0061b9b8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x184]
mov eax, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.0061b9b8
mov esp, ebp
pop ebp
ret