Function at 0x1018e350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x380
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [0x10305014]
xor eax, ebp
mov dword [esp + 0x378], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x360], xmm0
movdqa xmmword [esp + 0x350], xmm0
mov edi, 0xff
lea eax, [esp + 0x250]
push 0x100
push edi
push eax
call fcn.10132b90
add esp, 0xc
lea eax, [esp + 0x50]
push 0x200
push edi
push eax
call fcn.10132b90
add esp, 0xc
cmp dword [ebp + 0x14], 0
mov eax, 0x1018ec40
mov ecx, 0x1018e910
cmove ecx, eax
mov dword [esi + 0x114], ecx
cmp dword [0x103bf9f0], 0
je 0x1018e815
cmp ebx, 0x80
je 0x1018e3fc
cmp ebx, 0x100
je 0x1018e3fc
mov eax, 0xffffffea
cmp ebx, 0xc0
jne 0x1018e7fb
mov edi, ebx
sar edi, 5
mov esi, dword [ebp + 0xc]
lea ecx, [edi + 6]
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], ecx
mov dword [eax + 0x110], ecx
lea ebx, [edi*4]
lea eax, [esp + 0x350]
push ebx
push esi
push eax
call fcn.10132610
add esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.10132610
add esp, 0xc
lea eax, [edi + 7]
mov dword [esp + 0x20], eax
shl eax, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], eax
cmp ebx, eax
jae 0x1018e5c2
lea eax, [esp + 0x363]
mov cl, byte [eax - 0x13]
mov dl, byte [eax - 0x12]
mov ch, byte [eax - 0x11]
lea eax, [esp + 0x353]
mov dh, byte [eax]
xor ebx, ebx
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
movzx eax, byte [esp + edi*4 + 0x34d]
xor cl, byte [eax + 0x103bfaf4]
mov byte [esp + 0x350], cl
movzx eax, byte [esp + edi*4 + 0x34e]
xor dl, byte [eax + 0x103bfaf4]
mov byte [esp + 0x14], dl
mov byte [esp + 0x351], dl
movzx eax, byte [esp + edi*4 + 0x34f]
xor ch, byte [eax + 0x103bfaf4]
mov byte [esp + 0x10], ch
mov byte [esp + 0x352], ch
movzx eax, byte [esp + edi*4 + 0x34c]
xor dh, byte [eax + 0x103bfaf4]
mov byte [esp + 0xf], dh
mov byte [esp + 0x353], dh
xor cl, byte [ebx + 0x102ce390]
inc ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x18], cl
mov byte [esp + 0x350], cl
lea eax, [esp + 0x353]
xor ecx, ecx
inc ecx
cmp edi, 8
jne 0x1018e558
cmp ecx, 4
jne 0x1018e558
movzx edx, byte [esp + 0x35c]
mov dl, byte [edx + 0x103bfaf4]
xor byte [esp + 0x360], dl
movzx edx, byte [esp + 0x35d]
mov dl, byte [edx + 0x103bfaf4]
xor byte [esp + 0x361], dl
movzx edx, byte [esp + 0x35e]
mov dl, byte [edx + 0x103bfaf4]
xor byte [esp + 0x362], dl
movzx edx, byte [esp + 0x35f]
lea esi, [edx + 0x103bfaf4]
lea edx, [esp + 0x363]
jmp 0x1018e56f
mov dl, byte [eax - 3]
mov dh, byte [eax - 2]
xor byte [eax + 1], dl
xor byte [eax + 2], dh
mov dl, byte [eax - 1]
xor byte [eax + 3], dl
lea edx, [eax + 4]
mov esi, eax
mov bl, byte [esi]
xor byte [edx], bl
inc ecx
add eax, 4
cmp edi, ecx
jne 0x1018e4f8
mov eax, dword [ebp + 8]
mov esi, dword [esp + 8]
add eax, esi
mov ebx, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x354]
push ecx
push eax
call fcn.10132610
add esp, 0xc
add esi, ebx
mov dword [esp + 8], esi
cmp esi, dword [esp + 0x28]
mov cl, byte [esp + 0x18]
mov dl, byte [esp + 0x14]
mov ch, byte [esp + 0x10]
mov dh, byte [esp + 0xf]
mov ebx, dword [esp + 0x2c]
jl 0x1018e478
mov esi, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x14], 0
je 0x1018e7b4
cmp dword [ebp + 0x10], 0xffffff80
jl 0x1018e7fb
mov eax, dword [esp + 0x24]
cmp eax, 3
mov ecx, 2
cmovge ecx, eax
shl ecx, 4
add ecx, 0xfffffff0
mov dword [esp + 0x10], ecx
xor eax, eax
mov dword [esp + 8], eax
mov ebx, dword [esi + eax + 0x10]
mov edi, dword [esi + eax + 0x14]
mov eax, ebx
shr eax, 8
mov esi, ebx
shr esi, 0x10
mov ecx, ebx
shr ecx, 0x18
mov edx, 0xff
and ebx, edx
movzx ebx, byte [ebx + 0x103bfaf4]
and eax, edx
movzx eax, byte [eax + 0x103bfaf4]
mov edx, dword [eax*4 + 0x103bfff4]
xor edx, dword [ebx*4 + 0x103bfbf4]
mov ebx, edi
shr ebx, 8
mov eax, 0xff
and esi, eax
movzx esi, byte [esi + 0x103bfaf4]
xor edx, dword [esi*4 + 0x103c03f4]
mov esi, edi
shr esi, 0x10
movzx ecx, byte [ecx + 0x103bfaf4]
xor edx, dword [ecx*4 + 0x103c07f4]
mov dword [esp + 0x18], edx
mov ecx, edi
shr ecx, 0x18
and edi, eax
movzx edi, byte [edi + 0x103bfaf4]
and esi, eax
movzx edx, byte [esi + 0x103bfaf4]
and ebx, eax
movzx esi, byte [ebx + 0x103bfaf4]
mov esi, dword [esi*4 + 0x103bfff4]
xor esi, dword [edi*4 + 0x103bfbf4]
xor esi, dword [edx*4 + 0x103c03f4]
mov eax, dword [ebp + 8]
mov edx, dword [esp + 8]
mov edi, dword [eax + edx + 0x18]
mov ebx, edi
mov eax, 0xff
and ebx, eax
movzx ebx, byte [ebx + 0x103bfaf4]
movzx ecx, byte [ecx + 0x103bfaf4]
xor esi, dword [ecx*4 + 0x103c07f4]
mov edx, edi
mov eax, edi
shr edi, 8
mov ecx, 0xff
and edi, ecx
movzx ecx, byte [edi + 0x103bfaf4]
mov ecx, dword [ecx*4 + 0x103bfff4]
xor ecx, dword [ebx*4 + 0x103bfbf4]
shr edx, 0x18
movzx edx, byte [edx + 0x103bfaf4]
shr eax, 0x10
mov edi, 0xff
and eax, edi
movzx eax, byte [eax + 0x103bfaf4]
xor ecx, dword [eax*4 + 0x103c03f4]
xor ecx, dword [edx*4 + 0x103c07f4]
mov eax, dword [ebp + 8]
mov edx, dword [esp + 8]
mov eax, dword [eax + edx + 0x1c]
mov edx, eax
and edx, edi
movzx edx, byte [edx + 0x103bfaf4]
mov dword [esp + 0x14], edx
mov edi, eax
mov ebx, eax
shr eax, 8
mov edx, 0xff
and eax, edx
movzx eax, byte [eax + 0x103bfaf4]
mov eax, dword [eax*4 + 0x103bfff4]
mov edx, dword [esp + 0x14]
xor eax, dword [edx*4 + 0x103bfbf4]
shr ebx, 0x10
mov edx, 0xff
and ebx, edx
movzx edx, byte [ebx + 0x103bfaf4]
xor eax, dword [edx*4 + 0x103c03f4]
shr edi, 0x18
movzx edx, byte [edi + 0x103bfaf4]
xor eax, dword [edx*4 + 0x103c07f4]
mov edx, dword [ebp + 8]
mov edi, dword [esp + 8]
mov dword [edx + edi + 0x14], esi
mov esi, dword [ebp + 8]
mov edx, dword [esp + 8]
mov edi, dword [esp + 0x18]
mov dword [esi + edx + 0x10], edi
mov edx, dword [esp + 8]
mov dword [esi + edx + 0x1c], eax
mov eax, dword [esp + 8]
mov dword [esi + eax + 0x18], ecx
add eax, 0x10
cmp dword [esp + 0x10], eax
jne 0x1018e5f6
jmp 0x1018e7f9
cmp dword [ebp + 0x10], 0xffffff60
jl 0x1018e7fb
mov ecx, dword [esp + 0x20]
sar ecx, 1
xor eax, eax
inc eax
cmp ecx, 2
cmovge eax, ecx
shl eax, 4
shl edi, 4
lea ecx, [edi + esi]
add ecx, 0x60
add esi, 8
xor edx, edx
movdqa xmm0, xmmword [ecx]
movaps xmm1, xmmword [esi + edx - 8]
movaps xmmword [ecx], xmm1
movdqa xmmword [esi + edx - 8], xmm0
add edx, 0x10
add ecx, 0xfffffff0
cmp eax, edx
jne 0x1018e7dd
xor eax, eax
mov ecx, dword [esp + 0x378]
xor ecx, ebp
mov esi, eax
call fcn.10130483
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
inc ecx
xor eax, eax
mov byte [esp + eax + 0x14f], cl
mov byte [esp + eax + 0x50], cl
mov byte [esp + ecx + 0x250], al
lea edx, [ecx + ecx]
xor edx, ecx
mov ecx, edx
xor ecx, 0x11b
cmp edx, 0x100
cmovl ecx, edx
inc eax
cmp eax, 0xff
jne 0x1018e81a
mov byte [0x103bfa57], 0
mov byte [0x103bfaf4], 0x63
xor eax, eax
inc eax
mov ecx, 0xff
movzx edx, byte [esp + eax + 0x250]
xor edx, ecx
movzx edi, byte [esp + edx + 0x50]
lea esi, [edi + edi]
lea edx, [edi*4]
xor esi, edx
lea ebx, [edi*8]
mov edx, edi
shl edx, 4
xor edx, ebx
xor edx, esi
mov esi, edx
shr esi, 8
and edx, ecx
xor edx, esi
xor edx, edi
xor edx, 0x63
mov byte [edx + 0x103bf9f4], al
mov byte [eax + 0x103bfaf4], dl
inc eax
cmp eax, 0x100
jne 0x1018e860
movaps xmm0, xmmword [0x102ce370]
lea edx, [esp + 0x40]
movups xmmword [edx], xmm0
mov ecx, 0x103bfbf4
push 0x103bf9f4
lea edi, [esp + 0x54]
push edi
lea esi, [esp + 0x258]
push esi
call fcn.1018f210
add esp, 0xc
movdqa xmm0, xmmword [0x102ce380]
lea edx, [esp + 0x30]
movdqu xmmword [edx], xmm0
mov ecx, 0x103be9f4
push 0x103bfaf4
push edi
push esi
call fcn.1018f210
add esp, 0xc
mov ebx, dword [ebp + 0x10]
jmp 0x1018e3db