Function at 0x1013a070
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x328
push ebx
mov ebx, ecx
xorps xmm0, xmm0
push ebp
push esi
push edi
mov ecx, dword [ebx + 0x54800]
xor ebp, ebp
mov dword [esp + 0x14], ebx
movlpd qword [esp + 0x18], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov edi, dword [esp + 0x340]
mov esi, ebp
add edi, 3
mov dword [esp + 0x20], eax
and edi, 0xfffffffc
mov dword [esp + 0x24], edi
jle 0x1013a0de
mov ecx, dword [ebx + 0x54800]
mov eax, dword [ecx]
call dword [eax + 0x18]
movzx ecx, al
mov al, cl
and al, 0xf
mov byte [esp + esi + 0x38], al
cmp al, 0xc
ja 0x1013a11f
shr ecx, 4
mov byte [esp + esi + 0x39], cl
cmp cl, 0xc
ja 0x1013a11f
add esi, 2
cmp esi, edi
jl 0x1013a0b1
mov eax, edi
and al, 7
cmp al, 4
jne 0x1013a292
mov ecx, dword [ebx + 0x54800]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [ebx + 0x54800]
shl eax, 8
cdq
mov edi, eax
mov ebp, edx
mov esi, dword [ecx]
call dword [esi + 0x18]
cdq
add edi, eax
adc ebp, edx
mov dword [esp + 0x14], ebp
mov ebp, 0x10
mov edx, dword [esp + 0x14]
jmp 0x1013a29e
mov ecx, dword [ebx + 0x54800]
mov eax, dword [esp + 0x20]
push 0
cdq
mov esi, dword [ecx]
push edx
push eax
call dword [esi + 0xc]
mov esi, dword [esp + 0x33c]
lea ebp, [edi - 1]
shr ebp, 3
add esi, 4
inc ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ebp
mov edi, 0x4949
mov ebp, 0x1234
nop word [eax + eax]
mov ecx, dword [ebx + 0x54800]
lea edx, [esp + 0x28]
push 6
push 2
push edx
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 6
jae 0x1013a180
mov ecx, ebx
call fcn.10168420
push 0x1234
call dword [sym.imp.WS2_32.dll_ntohs]
xor ecx, ecx
cmp ax, bp
sete cl
xor eax, eax
cmp word [ebx + 0x54860], di
sete al
cmp eax, ecx
jne 0x1013a1b3
lea eax, [esp + 0x28]
push 0xc
push eax
push eax
call fcn.10284337
add esp, 0xc
mov ebx, dword [esp + 0x28]
mov edi, 0xffffff00
mov ebp, dword [esp + 0x2c]
mov cx, bx
mov edx, dword [esp + 0x2a]
mov ax, bp
shr ax, 8
and ebx, 0xfff
shr cx, 4
and ax, 0xfff0
and cx, di
and ebp, 0xfff
or cx, ax
mov ax, word [esp + 0x30]
shr ax, 0xc
or cx, ax
mov word [esi - 4], cx
mov cx, dx
mov esi, dword [esp + 0x2e]
and edx, 0xfff
shr cx, 4
mov ax, si
shr ax, 8
and cx, di
mov edi, dword [esp + 0x32]
and ax, 0xfff0
or cx, ax
and esi, 0xfff
mov ax, di
and edi, 0xfff
shr ax, 0xc
or cx, ax
mov eax, dword [esp + 0x10]
mov word [eax - 2], cx
mov ecx, eax
mov eax, dword [esp + 0x30]
and eax, 0xfff
mov word [ecx], bx
mov ebx, dword [esp + 0x14]
mov word [ecx + 4], bp
mov ebp, 0x1234
mov word [ecx + 6], si
mov word [ecx + 0xa], di
mov edi, 0x4949
mov word [ecx + 2], dx
mov word [ecx + 8], ax
add ecx, 0x10
sub dword [esp + 0x18], 1
mov esi, ecx
mov dword [esp + 0x10], ecx
jne 0x1013a160
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x328
ret 8
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
xor edi, edi
mov dword [esp + 0x20], edi
cmp dword [esp + 0x24], edi
jle 0x1013a369
movzx eax, byte [esp + edi + 0x38]
mov dword [esp + 0x18], eax
cmp ebp, eax
jge 0x1013a2fe
mov edi, dword [esp + 0x10]
xor esi, esi
mov ecx, dword [ebx + 0x54800]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, esi
cdq
xor ecx, 8
add ecx, ebp
call fcn.1026af80
add edi, eax
adc dword [esp + 0x14], edx
add esi, 8
cmp esi, 0x20
jl 0x1013a2c5
mov eax, dword [esp + 0x18]
add ebp, 0x20
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x20]
mov ecx, 0x10
mov esi, 0xffff
sub ecx, eax
mov eax, dword [esp + 0x10]
sar esi, cl
mov ecx, dword [esp + 0x18]
and esi, eax
call fcn.1026ac90
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
sub ebp, eax
mov dword [esp + 0x14], edx
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
test esi, eax
jne 0x1013a34b
mov ecx, dword [esp + 0x18]
mov edx, 1
shl edx, cl
mov eax, 1
sub eax, edx
add esi, eax
mov eax, dword [esp + 0x33c]
mov edx, dword [esp + 0x14]
mov word [eax + edi*2], si
inc edi
mov dword [esp + 0x20], edi
cmp edi, dword [esp + 0x24]
jl 0x1013a2b2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x328
ret 8