Function at 0x10001170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
push 0x10
mov dword [ebp - 0x24], edi
call fcn.100090bc
mov edx, dword [edi + 0x48]
mov ebx, eax
shl edx, 2
push edx
mov dword [ebp - 4], ebx
call fcn.100090bc
mov dword [ebx], eax
add esp, 8
mov ecx, dword [edi + 0x48]
add ecx, eax
mov dword [ebx + 4], ecx
mov ecx, dword [ebx]
mov eax, dword [edi + 0x48]
lea eax, [ecx + eax*2]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0x48]
lea ecx, [ecx + eax*2]
add ecx, eax
xor esi, esi
mov dword [ebx + 0xc], ecx
mov ecx, dword [edi + 0x48]
mov dword [ebp - 0x10], esi
xor edx, edx
test ecx, ecx
jle 0x100011ea
add esi, dword [ebp + 8]
nop word [eax + eax]
mov ecx, dword [ebx]
lea esi, [esi + 4]
mov al, byte [esi - 4]
mov byte [edx + ecx], al
inc edx
mov ecx, dword [edi + 0x48]
cmp edx, ecx
jl 0x100011d0
mov esi, dword [ebp - 0x10]
mov eax, ecx
jmp 0x100011ed
mov eax, dword [edi + 0x48]
inc esi
add ebx, 4
mov dword [ebp - 0x10], esi
cmp esi, 4
jl 0x100011c1
mov ebx, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp + 8], ecx
xor edx, edx
test eax, eax
jle 0x10001226
mov esi, dword [ebp + 0x10]
add esi, ecx
nop dword [eax]
mov ecx, dword [ebx]
lea esi, [esi + 4]
mov al, byte [esi - 4]
xor byte [ecx + edx], al
inc edx
mov eax, dword [edi + 0x48]
cmp edx, eax
jl 0x10001210
mov ecx, dword [ebp + 8]
inc ecx
add ebx, 4
mov dword [ebp + 8], ecx
cmp ecx, 4
jl 0x10001201
mov eax, dword [edi + 0x50]
mov ebx, dword [ebp - 4]
dec eax
mov dword [ebp - 0x10], 1
cmp eax, 1
jl 0x10001428
nop dword [eax]
mov eax, dword [edi + 0x48]
mov ecx, 4
mov dword [ebp + 8], ecx
nop dword [eax + eax]
xor esi, esi
test eax, eax
jle 0x10001294
mov edx, dword [ebx]
movzx ecx, byte [edx + esi]
mov eax, ecx
and eax, 0xfffffff0
and ecx, reloc.WS2_32.dll_ntohs
jns 0x1000127e
dec ecx
or ecx, 0xfffffff0
inc ecx
movzx eax, byte [eax + ecx + str.cw]
mov byte [edx + esi], al
inc esi
mov eax, dword [edi + 0x48]
cmp esi, eax
jl 0x10001266
mov ecx, dword [ebp + 8]
add ebx, 4
sub ecx, 1
mov dword [ebp + 8], ecx
jne 0x10001260
mov esi, dword [ebp - 4]
mov ecx, edi
push 1
push 1
push esi
call fcn.10001550
push 2
push 2
push esi
mov ecx, edi
call fcn.10001550
push 3
push 3
push esi
mov ecx, edi
call fcn.10001550
push 4
call fcn.100090bc
mov edi, eax
lea ebx, [ebp - 8]
mov ecx, edi
mov dword [ebp - 0x1c], edi
neg ecx
lea eax, [ebp - 0xc]
xor edx, edx
add ebx, ecx
add esp, 4
mov dword [ebp - 0x14], edx
add eax, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], eax
nop
mov eax, dword [esi]
movzx eax, byte [edx + eax]
mov byte [edi], al
mov eax, dword [esi + 4]
movzx eax, byte [edx + eax]
mov byte [edi + 1], al
mov eax, dword [esi + 8]
movzx eax, byte [edx + eax]
mov byte [edi + 2], al
mov eax, dword [esi + 0xc]
mov esi, 4
movzx eax, byte [edx + eax]
mov byte [edi + 3], al
mov eax, edi
mov edi, dword [ebp - 0x18]
mov dl, byte [eax]
lea eax, [eax + 1]
mov cl, dl
mov byte [ebx + eax - 1], dl
sar cl, 7
add dl, dl
and cl, 0x1b
xor cl, dl
mov byte [edi + eax - 1], cl
sub esi, 1
jne 0x10001320
mov ecx, dword [ebp - 8]
mov dl, ch
xor dl, byte [ebp - 6]
mov bh, byte [ebp - 5]
mov edi, dword [ebp - 0x1c]
xor dl, bh
mov eax, dword [ebp - 0xc]
xor dl, al
mov dh, byte [ebp - 9]
xor dl, ah
mov esi, dword [ebp - 4]
xor dh, cl
mov byte [edi], dl
mov byte [ebp + 0xb], dl
mov dl, cl
xor dl, byte [ebp - 0xa]
xor dl, byte [ebp - 6]
mov cl, byte [ebp + 0xb]
xor dl, bh
xor dl, ah
mov byte [edi + 1], dl
mov dl, dh
xor dl, byte [ebp - 0xa]
xor dh, ch
xor dh, byte [ebp - 6]
xor dl, ch
xor dh, al
xor dl, bh
mov byte [edi + 2], dl
mov byte [edi + 3], dh
mov edx, dword [ebp - 0x14]
mov eax, dword [esi]
mov ebx, dword [ebp - 0x20]
mov byte [edx + eax], cl
mov ecx, dword [esi + 4]
movzx eax, byte [edi + 1]
mov byte [edx + ecx], al
mov ecx, dword [esi + 8]
movzx eax, byte [edi + 2]
mov byte [edx + ecx], al
mov ecx, dword [esi + 0xc]
movzx eax, byte [edi + 3]
mov byte [edx + ecx], al
inc edx
mov dword [ebp - 0x14], edx
cmp edx, 4
jl 0x100012f0
push edi
call fcn.100090c5
mov edi, dword [ebp - 0x24]
add esp, 4
mov edx, dword [ebp + 0x10]
mov ebx, esi
mov ecx, dword [edi + 0x48]
mov eax, ecx
imul eax, dword [ebp - 0x10]
lea eax, [edx + eax*4]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp + 8], eax
xor edx, edx
test ecx, ecx
jle 0x10001406
mov esi, dword [ebp - 0x20]
add esi, eax
mov ecx, dword [ebx]
lea esi, [esi + 4]
mov al, byte [esi - 4]
xor byte [ecx + edx], al
inc edx
mov ecx, dword [edi + 0x48]
cmp edx, ecx
jl 0x100013f0
mov eax, dword [ebp + 8]
inc eax
add ebx, 4
mov dword [ebp + 8], eax
cmp eax, 4
jl 0x100013e5
mov edx, dword [ebp - 0x10]
mov eax, dword [edi + 0x50]
inc edx
mov ebx, dword [ebp - 4]
dec eax
mov dword [ebp - 0x10], edx
cmp edx, eax
jle 0x10001250
mov eax, dword [edi + 0x48]
mov ecx, 4
mov dword [ebp - 0x24], ebx
mov dword [ebp + 8], ecx
xor esi, esi
test eax, eax
jle 0x1000146e
nop dword [eax]
mov edx, dword [ebx]
movzx ecx, byte [edx + esi]
mov eax, ecx
and eax, 0xfffffff0
and ecx, reloc.WS2_32.dll_ntohs
jns 0x10001458
dec ecx
or ecx, 0xfffffff0
inc ecx
movzx eax, byte [eax + ecx + str.cw]
mov byte [edx + esi], al
inc esi
mov eax, dword [edi + 0x48]
cmp esi, eax
jl 0x10001440
mov ecx, dword [ebp + 8]
add ebx, 4
sub ecx, 1
mov dword [ebp + 8], ecx
jne 0x10001436
mov ebx, dword [ebp - 4]
mov ecx, edi
push 1
push 1
push ebx
call fcn.10001550
push 2
push 2
push ebx
mov ecx, edi
call fcn.10001550
push 3
push 3
push ebx
mov ecx, edi
call fcn.10001550
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x48]
mov edx, dword [ebp + 0x10]
imul eax, ecx
xor esi, esi
mov dword [ebp + 0x10], esi
lea eax, [edx + eax*4]
mov dword [ebp + 8], eax
jmp 0x100014c3
mov eax, dword [ebp + 8]
xor edx, edx
test ecx, ecx
jle 0x100014ea
add esi, eax
nop dword [eax + eax]
mov ecx, dword [ebx]
lea esi, [esi + 4]
mov al, byte [esi - 4]
xor byte [ecx + edx], al
inc edx
mov ecx, dword [edi + 0x48]
cmp edx, ecx
jl 0x100014d0
mov esi, dword [ebp + 0x10]
mov eax, ecx
jmp 0x100014ed
mov eax, dword [edi + 0x48]
inc esi
add ebx, 4
mov dword [ebp + 0x10], esi
cmp esi, 4
jl 0x100014c0
mov esi, dword [ebp - 4]
xor ebx, ebx
nop
xor ecx, ecx
test eax, eax
jle 0x10001523
mov edx, dword [ebp + 0xc]
add edx, ebx
nop dword [eax + eax]
mov eax, dword [esi]
lea edx, [edx + 4]
mov al, byte [ecx + eax]
inc ecx
mov byte [edx - 4], al
mov eax, dword [edi + 0x48]
cmp ecx, eax
jl 0x10001510
inc ebx
add esi, 4
cmp ebx, 4
jl 0x10001500
mov ebx, dword [ebp - 4]
push dword [ebx]
call fcn.100090c5
push ebx
call fcn.100090c5
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc