Function at 0x1046b6d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffe0
sub esp, 0x8d8
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x8d4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x2c]
mov dword [esp + 0x24], eax
mov eax, 0x20
cmp esi, eax
movlpd qword [esp + 0x1c], xmm0
mov ecx, eax
push edi
mov edi, dword [ebp + 0x3c]
cmovl ecx, esi
cmp edx, eax
mov dword [esp + 0x4c], edi
push edi
cmovl eax, edx
mov dword [esp + 0x48], ecx
push 0
mov dword [esp + 0x50], eax
lea eax, [esp + 0xa0]
push 0
push eax
call fcn.10116900
mov ecx, dword [ebp + 0x28]
add esp, 0x10
mov edi, dword [esp + 0x20]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x60], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esp + 0x70], xmm0
movq xmm0, qword [eax + 0x20]
lea eax, [ecx + edx]
movq qword [esp + 0x80], xmm0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x5c], eax
cmp ecx, eax
jge 0x1046b9a8
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp + 0x14]
add eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov eax, dword [ebp + 0x24]
mov ecx, eax
cmp ecx, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0xc], eax
jge 0x1046b95d
mov edx, ecx
sar edx, 5
imul edx, dword [ebp + 0x4c]
mov dword [esp + 0x40], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x18], edx
nop
mov ecx, dword [ebp + 0x48]
sar eax, 5
add eax, dword [esp + 0x40]
cmp byte [eax + ecx], 0
mov ecx, dword [ebp + 0x28]
je 0x1046b93d
cmp dword [esp + 0x44], edx
mov edi, edx
mov eax, dword [esp + 0x1c]
mov esi, eax
cmovl edi, dword [esp + 0x44]
cmp dword [esp + 0x48], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x50]
cmovl esi, dword [esp + 0x50]
lea eax, [esp + 0xc8]
push dword [ebp + 0x38]
mov dword [esp + 0x64], edi
push dword [ebp + 0x34]
mov dword [esp + 0x30], esi
push 0x20
push esi
push edi
push ecx
push dword [esp + 0x2c]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esp + 0x84]
push dword [esp + 0x8c]
call fcn.10230e70
add esp, 0x3c
cmp edi, 0x20
jne 0x1046b88e
cmp esi, edi
jne 0x1046b88e
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push eax
imul eax, dword [ebp + 0x28]
add eax, dword [esp + 0x10]
lea eax, [ecx + eax*2]
shr eax, 1
push eax
lea eax, [esp + 0xc8]
shr eax, 1
push edi
push eax
call dword [0x10b49570]
mov edi, dword [esp + 0x20]
add esp, 0x10
mov esi, dword [esp + 0x14]
add edi, eax
adc esi, 0
jmp 0x1046b922
xor edx, edx
xor eax, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
test esi, esi
jle 0x1046b913
lea ecx, [esp + 0xc0]
mov dword [esp + 0x38], ecx
nop dword [eax]
test edi, edi
jle 0x1046b903
add eax, dword [ebp + 0x28]
mov esi, ecx
imul eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add eax, dword [esp + 0xc]
lea ecx, [ecx + eax*2]
nop dword [eax]
movzx edx, word [esi]
lea ecx, [ecx + 2]
movzx eax, word [ecx - 2]
lea esi, [esi + 2]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x30]
add edx, eax
mov dword [esp + 0x30], edx
sub edi, 1
jne 0x1046b8d0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x58]
mov esi, dword [esp + 0x20]
inc eax
add ecx, 0x40
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
cmp eax, esi
jl 0x1046b8b0
mov edi, dword [esp + 0x10]
mov eax, edx
mov esi, dword [esp + 0x14]
cdq
add edi, eax
adc esi, edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
cmp esi, dword [ebp + 0x44]
jg 0x1046b98c
jl 0x1046b936
cmp edi, dword [ebp + 0x40]
ja 0x1046b98c
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 0x28]
mov eax, dword [esp + 0xc]
sub edx, 0x20
add eax, 0x20
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x3c]
jl 0x1046b7d0
mov edx, dword [esp + 0x1c]
add ecx, 0x20
sub edx, 0x20
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x1c], edx
cmp ecx, dword [esp + 0x5c]
jl 0x1046b7a5
mov eax, edi
mov edx, esi
pop edi
pop esi
mov ecx, dword [esp + 0x8d4]
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov edx, closesocket
pop edi
pop esi
mov ecx, dword [esp + 0x8d4]
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x24]
mov eax, edi
mov ecx, dword [esp + 0x8dc]
mov edx, esi
pop edi
pop esi
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret