Function at 0x1013a490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x14]
push edi
push eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], 0
call fcn.100b1d80
mov edi, dword [ebp - 0x60]
push edi
call fcn.100b1be0
add esp, 8
mov dword [ebp - 0x40], eax
test eax, eax
je 0x1013a95f
push edi
call fcn.100b1be0
add esp, 4
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1013a95f
push edi
call fcn.100b1be0
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
je 0x1013a95f
push edi
call fcn.100b1be0
mov edi, eax
add esp, 4
mov dword [ebp - 0x50], edi
test edi, edi
je 0x1013a95f
push 6
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.1013b150
add esp, 0xc
test eax, eax
je 0x1013a944
cmp eax, 6
jg 0x1013a944
lea eax, [ebp - 0x1c]
push eax
push esi
mov esi, dword [ebp - 0x48]
push esi
call fcn.1013a070
add esp, 0xc
test eax, eax
je 0x1013a95f
cmp dword [esi + 4], 0
je 0x1013a95f
push ebx
push edi
call fcn.10080460
add esp, 8
test eax, eax
je 0x1013a95f
push esi
call fcn.100807c0
push edi
mov dword [ebp - 0x34], eax
call fcn.100807c0
mov edi, dword [ebx + 4]
add esp, 8
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x20], edi
cmp edi, dword [esi + 8]
jg 0x1013a593
mov eax, esi
jmp 0x1013a59d
push edi
push esi
call fcn.10080b10
add esp, 8
test eax, eax
je 0x1013a95f
mov edx, dword [ebp - 0x48]
mov esi, dword [esi]
mov dword [ebp - 0x3c], esi
mov eax, dword [edx + 4]
cmp eax, edi
jge 0x1013a5c3
mov ecx, dword [ebp - 0x20]
lea edi, [esi + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x20]
mov dword [edx + 4], edi
mov edx, dword [ebp - 0x40]
cmp edi, dword [edx + 8]
jg 0x1013a5d2
mov eax, edx
jmp 0x1013a5df
push edi
push edx
call fcn.10080b10
mov edx, dword [ebp - 0x40]
add esp, 8
test eax, eax
je 0x1013a95f
mov ebx, dword [edx]
mov dword [ebp - 0x28], ebx
mov dword [ebx], 1
cmp edi, 1
jle 0x1013a604
lea ecx, [edi - 1]
xor eax, eax
lea edi, [ebx + 4]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x38]
mov dword [edx + 4], edi
cmp edi, dword [ecx + 8]
jg 0x1013a613
mov eax, ecx
jmp 0x1013a620
push edi
push ecx
call fcn.10080b10
mov ecx, dword [ebp - 0x38]
add esp, 8
test eax, eax
je 0x1013a95f
mov edx, dword [ecx]
mov dword [ebp - 0x2c], edx
test edi, edi
jle 0x1013a63f
mov ecx, edi
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x50]
mov dword [ecx + 4], edi
mov ecx, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
nop dword [eax]
test ecx, ecx
je 0x1013a722
nop dword [eax + eax]
mov ebx, dword [esi]
test bl, 1
jne 0x1013a71c
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [eax]
mov edx, eax
mov ecx, dword [ecx]
and edx, 1
neg edx
mov dword [ebp - 0x58], edx
mov ecx, dword [ecx]
and ecx, edx
lea edx, [edi - 1]
xor eax, ecx
xor ecx, ecx
mov dword [ebp - 0x30], ecx
test edx, edx
jle 0x1013a6fe
mov ecx, dword [ebp - 0x28]
mov edx, esi
sub edx, ecx
mov dword [ebp - 0x44], edx
lea edi, [ecx + 4]
mov ecx, 0xfffffffc
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 0x54], ecx
nop dword [eax]
mov edx, dword [edx + edi]
lea edi, [edi + 4]
mov ecx, edx
shr ebx, 1
shl ecx, 0x1f
or ecx, ebx
shr eax, 1
mov ebx, dword [ebp - 0x30]
mov dword [esi + ebx*4], ecx
mov ebx, edx
mov ecx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ecx]
add ecx, dword [ebp - 0x54]
mov edx, dword [ecx + edi]
and edx, dword [ebp - 0x58]
xor edx, dword [edi - 4]
mov ecx, edx
shl ecx, 0x1f
or ecx, eax
mov eax, edx
mov edx, dword [ebp - 0x20]
mov dword [edi - 8], ecx
dec edx
mov ecx, dword [ebp - 0x30]
inc ecx
cmp ecx, edx
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x44]
jl 0x1013a6b0
mov edi, dword [ebp - 0x20]
shr ebx, 1
mov dword [esi + ecx*4], ebx
mov ebx, dword [ebp - 0x28]
shr eax, 1
mov dword [ebx + ecx*4], eax
mov ecx, dword [ebp - 0x34]
sub ecx, 1
mov dword [ebp - 0x34], ecx
jne 0x1013a660
jmp 0x1013a71f
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0x20
jg 0x1013a73a
mov eax, dword [esi]
test eax, eax
je 0x1013a95f
cmp eax, 1
je 0x1013a904
cmp ecx, dword [ebp - 0x4c]
jge 0x1013a777
mov ebx, dword [ebp - 0x48]
mov eax, ecx
mov esi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x48], esi
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], ebx
mov ebx, dword [ebx]
mov dword [ebp - 0x40], esi
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov ebx, edx
mov edx, dword [eax]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edx
xor edx, edx
test edi, edi
jle 0x1013a8b2
cmp edi, 4
jb 0x1013a867
mov ecx, dword [ebp - 0x2c]
lea eax, [edi - 1]
lea eax, [ebx + eax*4]
lea ecx, [ecx + edi*4]
add ecx, 0xfffffffc
cmp ebx, ecx
ja 0x1013a7a6
cmp eax, dword [ebp - 0x2c]
jae 0x1013a867
lea ecx, [edi - 1]
lea ecx, [esi + ecx*4]
mov dword [ebp - 0x30], ecx
cmp ebx, ecx
ja 0x1013a7bb
cmp eax, esi
jae 0x1013a867
mov ecx, dword [ebp - 0x24]
sub ecx, 4
lea edi, [ecx + edi*4]
cmp ebx, edi
ja 0x1013a7d1
cmp eax, dword [ebp - 0x24]
jae 0x1013a864
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
dec ebx
lea eax, [ecx + ebx*4]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
cmp esi, eax
ja 0x1013a7ee
cmp ecx, dword [ebp - 0x2c]
jae 0x1013a864
cmp esi, edi
ja 0x1013a7fd
mov eax, dword [ebp - 0x24]
cmp ecx, eax
jae 0x1013a8fc
mov ecx, dword [ebp - 0x20]
mov eax, ecx
and eax, reloc.WS2_32.dll_closesocket
jns 0x1013a80e
dec eax
or eax, 0xfffffffc
inc eax
mov ebx, dword [ebp - 0x2c]
sub ecx, eax
mov edi, dword [ebp - 0x24]
sub ebx, esi
mov dword [ebp - 0x44], ebx
sub edi, esi
mov ebx, dword [ebp - 0x28]
mov eax, esi
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x30], ebx
sub dword [ebp - 0x30], esi
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x30]
movups xmm0, xmmword [eax]
add edx, 4
lea eax, [eax + 0x10]
movups xmm1, xmmword [edi + eax - 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [esi + eax - 0x10]
movups xmmword [eax - 0x10], xmm1
movups xmm1, xmmword [ebx + eax - 0x10]
pxor xmm1, xmm0
movups xmmword [esi + eax - 0x10], xmm1
cmp edx, ecx
jl 0x1013a831
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
cmp edx, edi
jge 0x1013a8af
sub eax, esi
lea ecx, [esi + edx*4]
mov dword [ebp - 0x44], eax
sub ebx, esi
mov eax, dword [ebp - 0x2c]
sub eax, esi
mov dword [ebp - 0x54], ebx
mov ebx, dword [ebp - 0x44]
sub edi, edx
mov esi, dword [ebp - 0x54]
mov edx, eax
mov dword [ebp - 0x58], eax
nop dword [eax]
mov eax, dword [ecx + ebx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
mov eax, dword [ecx + edx - 4]
xor dword [ecx + esi - 4], eax
sub edi, 1
jne 0x1013a890
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x4c]
jne 0x1013a650
lea eax, [ecx - 1]
cdq
and edx, 0x1f
lea edi, [edx + eax]
sar edi, 5
mov eax, dword [esi + edi*4]
test eax, eax
jne 0x1013a8df
test edi, edi
je 0x1013a8df
mov eax, dword [esi + edi*4 - 4]
dec edi
test eax, eax
je 0x1013a8d2
push eax
call fcn.10080840
mov edx, dword [ebp - 0x2c]
add esp, 4
shl edi, 5
lea ecx, [edi + eax]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x34], ecx
jmp 0x1013a650
mov edi, dword [ebp - 0x20]
jmp 0x1013a86a
mov ebx, dword [ebp - 0x40]
mov ecx, dword [ebx + 4]
test ecx, ecx
jle 0x1013a927
mov eax, dword [ebx]
lea edx, [ecx - 1]
lea edx, [eax + edx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x1013a924
dec ecx
test ecx, ecx
jg 0x1013a916
mov dword [ebx + 4], ecx
push ebx
push dword [ebp - 0x68]
call fcn.10080460
xor ecx, ecx
add esp, 8
test eax, eax
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x64], ecx
jmp 0x1013a95f
push 0x1dd
push 0x101c97f0
push 0x6a
push 0x83
push 3
call fcn.10099cb0
add esp, 0x14
push dword [ebp - 0x60]
call fcn.100b1af0
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x64]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10153588
mov esp, ebp
pop ebp
ret