Function at 0x10149670
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 edi, edi
mov dword [esp + 0x14], ebx
movlpd qword [esp + 0x18], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ebp, dword [esp + 0x340]
mov esi, edi
add ebp, 3
mov dword [esp + 0x20], eax
and ebp, 0xfffffffc
mov dword [esp + 0x24], ebp
jle 0x101496df
mov ecx, dword [ebx + 0x54800]
mov eax, dword [ecx]
call dword [eax + 0x18]
movzx ecx, al
mov eax, ecx
and eax, 0xf
mov byte [esp + esi + 0x38], al
cmp al, 0xc
ja 0x10149720
shr ecx, 4
mov byte [esp + esi + 0x39], cl
cmp cl, 0xc
ja 0x10149720
add esi, 2
cmp esi, ebp
jl 0x101496b1
mov eax, ebp
and al, 7
cmp al, 4
jne 0x10149892
mov ecx, dword [ebx + 0x54800]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [ebx + 0x54800]
shl eax, 8
cdq
mov ebp, eax
mov edi, edx
mov esi, dword [ecx]
call dword [esi + 0x18]
cdq
add ebp, eax
adc edi, edx
mov dword [esp + 0x14], edi
mov edi, 0x10
mov edx, dword [esp + 0x14]
jmp 0x1014989e
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]
dec ebp
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 0x10149780
mov ecx, ebx
call fcn.10168da0
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 0x101497b3
lea eax, [esp + 0x28]
push 0xc
push eax
push eax
call fcn.10285439
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 0x10149760
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x328
ret 8
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebp
xor ebp, ebp
mov dword [esp + 0x20], ebp
cmp dword [esp + 0x24], ebp
jle 0x10149969
movzx eax, byte [esp + ebp + 0x38]
mov dword [esp + 0x18], eax
cmp edi, eax
jge 0x101498fe
mov ebp, 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, edi
call fcn.1026a570
add ebp, eax
adc dword [esp + 0x14], edx
add esi, 8
cmp esi, 0x20
jl 0x101498c5
mov eax, dword [esp + 0x18]
add edi, 0x20
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], ebp
mov ebp, 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.1026a0c0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
sub edi, eax
mov dword [esp + 0x14], edx
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
test esi, eax
jne 0x1014994b
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 + ebp*2], si
inc ebp
mov dword [esp + 0x20], ebp
cmp ebp, dword [esp + 0x24]
jl 0x101498b2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x328
ret 8