Function at 0x1055a460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1a8
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x1a4], eax
mov eax, dword [ebp + 0x10]
mov edx, 1
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x64], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x44], edi
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 4]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x2c]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x64], eax
add eax, ecx
mov dword [esp + 0x7c], eax
mov eax, edi
sub eax, ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0xb8]
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x20]
shl edx, cl
mov ecx, dword [esi + 0x10]
sub edi, edx
sub eax, ecx
mov dword [esp + 0x28], esi
cmp eax, edx
mov dword [esp + 0x24], 3
mov eax, edi
mov dword [esp + 0x3c], 0x3f
cmovbe eax, ecx
mov edi, dword [esp + 0x44]
cmp dword [esi + 0x18], 0
cmovne eax, ecx
mov ecx, 6
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0xc4]
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x48], eax
mov eax, 1
shl eax, cl
mov ecx, 0x18
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0xb4]
mov dword [esp + 0x60], eax
mov edx, dword [eax + 0x28]
mov esi, dword [eax + 0x5c]
imul eax, dword [edi], 0x9e3779b1
mov edi, dword [esp + 0x60]
sub ecx, dword [edi + 0x24]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x80], eax
shr eax, cl
mov dword [esp + 0x58], eax
shr eax, 2
and eax, 0x3fffffc0
lea ecx, [eax + edx]
mov dword [esp + 0x68], ecx
lea eax, [esi + eax*4]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x70], eax
cmp dword [ecx + 0xdc], 0
jne 0x1055a818
mov eax, dword [esp + 0x50]
mov esi, dword [ecx + 0x1c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
sub eax, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], edx
cmp eax, 0x180
jbe 0x1055a73f
mov eax, dword [esp + 0x50]
lea edx, [esi + 0x60]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x30], edx
mov dword [esp + 0x14], eax
cmp esi, edx
jae 0x1055a691
mov edi, dword [esp + 0x1c]
mov esi, 0x18
sub esi, dword [esp + 0x4c]
mov dword [esp + 0x34], esi
mov eax, dword [ecx + 0x54]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x40]
imul edx, dword [edi + eax + 8], 0x9e3779b1
mov eax, edi
and eax, 7
xor edx, dword [ecx + 0x50]
mov ecx, esi
mov esi, dword [esp + 0x38]
shr edx, cl
mov ecx, dword [esi + eax*4]
mov dword [esi + eax*4], edx
mov eax, ecx
mov edx, dword [esp + 0x18]
shr eax, 2
mov dword [esp + 0x1c], ecx
and eax, 0x3fffffc0
mov ecx, dword [esp + 0x50]
add edx, eax
lea esi, [ecx + eax*4]
movzx ecx, byte [edx]
dec ecx
mov eax, 0
and ecx, 0x3f
cmove eax, dword [esp + 0x3c]
add ecx, eax
mov eax, dword [esp + 0x1c]
mov byte [edx], cl
mov byte [ecx + edx], al
mov dword [esi + ecx*4], edi
inc edi
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
cmp edi, dword [esp + 0x30]
jb 0x1055a600
mov eax, dword [ecx + 0x5c]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x90], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x24]
lea edx, [edi + 1]
mov esi, dword [esp + 0x20]
add esi, 0xffffffe0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
add eax, esi
mov dword [esp + 0x1c], esi
cmp eax, edx
jbe 0x1055a6b4
xor edx, edx
jmp 0x1055a6bb
sub edx, dword [esp + 0x40]
sub edx, esi
inc edx
mov eax, 8
cmp edx, eax
cmova edx, eax
add edx, esi
mov dword [esp + 0x80], edx
cmp esi, edx
jae 0x1055a73b
mov eax, 0x18
mov edi, esi
sub eax, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x54]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x40]
imul edx, dword [edi + eax], 0x9e3779b1
mov eax, edi
and eax, 7
inc edi
xor edx, dword [ecx + 0x50]
mov ecx, dword [esp + 0x34]
shr edx, cl
mov ecx, dword [esp + 0x28]
mov dword [ecx + eax*4 + 0x2c], edx
cmp edi, dword [esp + 0x80]
jb 0x1055a6e1
mov eax, dword [ecx + 0x5c]
mov edx, dword [ecx + 4]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x90], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], edx
jmp 0x1055a73f
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
cmp esi, eax
jae 0x1055a7e4
mov edi, dword [esp + 0x1c]
mov esi, 0x18
sub esi, dword [esp + 0x30]
mov dword [esp + 0x30], esi
nop dword [eax]
imul edx, dword [edi + edx + 8], 0x9e3779b1
mov eax, dword [ecx + 0x54]
mov dword [esp + 0x84], eax
mov eax, edi
and eax, 7
xor edx, dword [ecx + 0x50]
mov ecx, esi
mov esi, dword [esp + 0x38]
shr edx, cl
mov ecx, dword [esi + eax*4]
mov dword [esi + eax*4], edx
mov eax, ecx
mov edx, dword [esp + 0x34]
shr eax, 2
and eax, 0x3fffffc0
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x90]
add edx, eax
lea esi, [ecx + eax*4]
movzx ecx, byte [edx]
dec ecx
mov eax, 0
and ecx, 0x3f
cmove eax, dword [esp + 0x3c]
add ecx, eax
mov eax, dword [esp + 0x80]
mov byte [edx], cl
mov byte [ecx + edx], al
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov dword [esi + ecx*4], edi
inc edi
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
cmp edi, eax
jb 0x1055a760
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x28]
mov ecx, 0x18
sub ecx, dword [esp + 0x4c]
mov dword [esi + 0x1c], eax
imul edx, dword [edi + 8], 0x9e3779b1
mov eax, dword [esp + 0x20]
xor edx, dword [esp + 0x48]
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 + 0x48], ecx
jmp 0x1055a83d
mov edx, dword [esp + 0x48]
mov ecx, 0x18
mov esi, dword [esp + 0x28]
xor edx, dword [esp + 0x80]
sub ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
shr edx, cl
mov dword [esp + 0x48], edx
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x50]
mov eax, edx
mov edi, dword [esp + 0x18]
add dword [esi + 0x58], edx
shr eax, 2
and eax, 0x3fffffc0
mov dword [esp + 0x14], 0
add edi, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x4c], edi
lea ecx, [ecx + eax*4]
movsx eax, dl
movzx esi, byte [edi]
mov edx, edi
mov dword [esp + 0x1c], ecx
xor ecx, ecx
mov dword [esp + 0x38], esi
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
nop dword [eax]
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [esp + ecx*4 + 0x80], eax
inc ecx
cmp ecx, 4
jl 0x1055a8a0
mov eax, dword [esp + 0x8c]
and esi, 0x3f
cdq
mov edi, eax
mov ecx, edx
mov eax, dword [esp + 0x88]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov eax, dword [esp + 0x84]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov eax, dword [esp + 0x80]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
mov dword [esp + 0x3c], ecx
or edi, eax
mov edx, dword [esp + 0x3c]
mov ecx, esi
neg ecx
mov eax, edi
and ecx, 0x3f
call fcn.10511ff0
mov dword [esp + 0x80], eax
mov ecx, esi
mov dword [esp + 0x50], edx
mov eax, edi
mov edx, dword [esp + 0x3c]
call fcn.10512520
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x50]
or esi, eax
or edi, edx
ja 0x1055a946
test esi, esi
je 0x1055a99e
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x1055a99e
test esi, esi
jne 0x1055a95a
bsf eax, edi
add eax, 0x20
jmp 0x1055a95d
bsf eax, esi
add eax, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
and eax, 0x3f
mov eax, dword [edx + eax*4]
je 0x1055a988
cmp eax, dword [esp + 0x54]
jb 0x1055a99e
mov edx, dword [esp + 0x14]
mov dword [esp + edx*4 + 0xa8], eax
inc edx
dec ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x5c], ecx
mov ecx, esi
mov eax, edi
add ecx, 0xffffffff
adc eax, 0xffffffff
and esi, ecx
and edi, eax
ja 0x1055a946
jb 0x1055a99e
test esi, esi
jne 0x1055a946
mov ecx, dword [esp + 0x38]
mov edx, 0x3f
mov esi, dword [esp + 0x1c]
dec ecx
and ecx, 0x3f
mov eax, 0
cmove eax, edx
mov edx, dword [esp + 0x4c]
add ecx, eax
mov eax, dword [esp + 0x48]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x1c]
mov dword [esi + ecx*4], eax
inc dword [edx + 0x1c]
cmp dword [esp + 0x14], 0
jbe 0x1055aab7
mov esi, dword [esp + 0x44]
mov edi, 3
mov ecx, dword [esp + 0x14]
xor eax, eax
nop dword [eax]
mov eax, dword [esp + eax*4 + 0xa8]
mov edx, dword [esp + 0x40]
add edx, eax
mov dword [esp + 0x80], eax
mov eax, dword [edx + edi - 3]
cmp eax, dword [edi + esi - 3]
jne 0x1055aaa6
mov edi, dword [esp + 0x2c]
mov eax, esi
add edi, 0xfffffffd
cmp esi, edi
jae 0x1055aa54
mov eax, dword [edx]
xor eax, dword [esi]
je 0x1055aa31
mov edi, dword [esp + 0x2c]
bsf eax, eax
shr eax, 3
jmp 0x1055aa7a
lea eax, [esi + 4]
add edx, 4
cmp eax, edi
jae 0x1055aa54
nop dword [eax + eax]
mov ecx, dword [edx]
xor ecx, dword [eax]
jne 0x1055abc9
add eax, 4
add edx, 4
cmp eax, edi
jb 0x1055aa40
mov edi, dword [esp + 0x2c]
lea ecx, [edi - 1]
cmp eax, ecx
jae 0x1055aa6d
mov cx, word [edx]
cmp cx, word [eax]
jne 0x1055aa6d
add eax, 2
add edx, 2
cmp eax, edi
jae 0x1055aa78
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x1055aa78
inc eax
sub eax, esi
cmp eax, dword [esp + 0x24]
jbe 0x1055aa9e
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x6c]
add ecx, 3
mov dword [esp + 0x24], eax
add eax, esi
mov dword [edx], ecx
cmp eax, edi
je 0x1055aab7
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, ecx
jb 0x1055a9f0
mov edx, dword [esp + 0x60]
mov dword [esp + 0x18], 0
mov dword [esp + 0x54], 0
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x38], eax
sub eax, ecx
sub dword [esp + 0x64], eax
mov eax, dword [esp + 0x58]
movzx esi, byte [edx]
movsx eax, al
mov dword [esp + 0x1c], ecx
xor ecx, ecx
mov dword [esp + 0x80], esi
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x90], xmm0
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [esp + ecx*4 + 0x90], eax
inc ecx
cmp ecx, 4
jl 0x1055ab11
mov eax, dword [esp + 0x9c]
and esi, 0x3f
cdq
mov edi, eax
mov ecx, edx
mov eax, dword [esp + 0x98]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov eax, dword [esp + 0x94]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov eax, dword [esp + 0x90]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
mov dword [esp + 0x3c], ecx
or edi, eax
mov edx, dword [esp + 0x3c]
mov ecx, esi
neg ecx
mov eax, edi
and ecx, 0x3f
call fcn.10511ff0
mov dword [esp + 0x58], eax
mov ecx, esi
mov dword [esp + 0x68], edx
mov eax, edi
mov edx, dword [esp + 0x3c]
call fcn.10512520
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x68]
or esi, eax
or edi, edx
ja 0x1055abb5
test esi, esi
je 0x1055ad07
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x1055ac24
test esi, esi
jne 0x1055abda
bsf eax, edi
add eax, 0x20
jmp 0x1055abdd
mov edi, dword [esp + 0x2c]
bsf ecx, ecx
shr ecx, 3
add eax, ecx
jmp 0x1055aa78
bsf eax, esi
add eax, dword [esp + 0x80]
mov edx, dword [esp + 0x70]
and eax, 0x3f
mov edx, dword [edx + eax*4]
je 0x1055ac0e
mov eax, dword [esp + 0x60]
cmp edx, dword [eax + 0xc]
jb 0x1055ac24
mov eax, dword [esp + 0x18]
mov dword [esp + eax*4 + 0xa8], edx
inc eax
dec ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x5c], ecx
mov ecx, esi
mov eax, edi
add ecx, 0xffffffff
adc eax, 0xffffffff
and esi, ecx
and edi, eax
ja 0x1055abb5
jb 0x1055ac24
test esi, esi
jne 0x1055abb5
cmp dword [esp + 0x18], 0
jbe 0x1055ad07
mov edi, dword [esp + 0x44]
xor eax, eax
nop word [eax + eax]
mov eax, dword [esp + eax*4 + 0xa8]
mov esi, dword [esp + 0x1c]
add esi, eax
mov dword [esp + 0x58], eax
mov eax, dword [esi]
cmp eax, dword [edi]
jne 0x1055acda
mov ecx, dword [esp + 0x2c]
lea eax, [edi + 4]
add esi, 4
sub eax, esi
add eax, dword [esp + 0x38]
cmp eax, ecx
cmovb ecx, eax
lea eax, [edi + 4]
push ecx
push esi
push eax
call fcn.1054a920
add esp, 0xc
mov dword [esp + 0x70], eax
lea ecx, [eax + esi]
cmp ecx, dword [esp + 0x38]
jne 0x1055aca9
mov esi, dword [esp + 0x2c]
add eax, 4
push esi
push dword [esp + 0x80]
add eax, edi
push eax
call fcn.1054a920
add esp, 0xc
add eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x24]
lea edx, [eax + 4]
cmp edx, ecx
jbe 0x1055acde
mov eax, dword [esp + 0x20]
mov ecx, edx
sub eax, dword [esp + 0x58]
sub eax, dword [esp + 0x64]
mov esi, dword [esp + 0x6c]
add eax, 3
mov dword [esp + 0x24], ecx
mov dword [esi], eax
lea eax, [edx + edi]
cmp eax, dword [esp + 0x2c]
je 0x1055acf1
jmp 0x1055acde
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
inc eax
mov dword [esp + 0x54], eax
cmp eax, dword [esp + 0x18]
jb 0x1055ac40
mov eax, ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1ac]
mov eax, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret