Function at 0x10018440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
lea eax, [ecx + 0x100]
cdq
push 0x20
pop esi
idiv esi
push 0x40
lea esi, [ebp - 0x54]
xor ebx, ebx
mov dword [ebp + 0x10], eax
lea eax, [ecx - 0x80]
cdq
pop ecx
idiv ecx
mov edx, dword [ebp + 8]
sub edx, esi
xor ecx, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
shl eax, 4
lea eax, [eax + 0x10035c00]
mov dword [ebp - 4], eax
jmp 0x10018487
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
movzx esi, byte [esi + ecx]
lea eax, [ebp + ecx - 0x54]
movzx eax, byte [edx + eax]
xor esi, eax
mov eax, ecx
cdq
push 4
pop edi
idiv edi
shl edx, 8
mov al, byte [esi + edx + str.cw]
mov byte [ebp + ecx - 0x54], al
inc ecx
cmp ecx, 0x10
jl 0x10018484
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.100182bc
cmp dword [ebp + 0x10], 0xe
jne 0x100184dc
xor eax, eax
mov ecx, dword [ebp + 8]
mov cl, byte [ecx + eax + 0x10]
xor byte [ebp + eax - 0x24], cl
inc eax
cmp eax, 8
jl 0x100184c9
jmp 0x100184f5
cmp dword [ebp + 0x10], 0x10
jne 0x100184f5
xor eax, eax
mov ecx, dword [ebp + 8]
mov cl, byte [ecx + eax + 0x10]
xor byte [ebp + eax - 0x24], cl
inc eax
cmp eax, 0x10
jl 0x100184e4
mov eax, dword [ebp - 8]
mov esi, eax
push 2
pop edi
sub esi, edi
inc eax
neg esi
sbb esi, esi
and esi, eax
mov eax, esi
shl eax, 4
lea ecx, [ebp - 0x24]
add eax, 0x10035c00
sub ecx, edi
lea edx, [ebp - 0x54]
sub edx, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], 0x10
jmp 0x10018532
mov ecx, dword [ebp - 0x10]
movzx eax, byte [eax]
mov edx, dword [ebp - 4]
movzx ecx, byte [ecx + edx]
xor ecx, eax
mov eax, edx
cdq
push 4
pop edi
idiv edi
shl edx, 8
mov al, byte [ecx + edx + str.cw]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov byte [ecx + edx], al
mov eax, dword [ebp - 8]
inc eax
inc dword [ebp - 4]
dec dword [ebp - 0xc]
mov dword [ebp - 8], eax
jne 0x1001852f
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.100182bc
mov edi, dword [ebp + 8]
mov dword [ebp - 4], edi
lea eax, [ebp - 0x34]
xor ecx, ecx
sub dword [ebp - 4], eax
mov edx, dword [ebp - 4]
lea eax, [ebp + ecx - 0x34]
mov dl, byte [edx + eax]
xor byte [eax], dl
inc ecx
cmp ecx, 0x10
jl 0x10018583
mov eax, esi
dec eax
dec eax
inc esi
neg eax
sbb eax, eax
and eax, esi
xor ecx, ecx
shl eax, 4
lea eax, [eax + 0x10035c00]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx esi, byte [eax + ecx]
movzx eax, byte [ebp + ecx - 0x34]
xor esi, eax
mov eax, ecx
cdq
push 4
pop ecx
idiv ecx
mov ecx, dword [ebp - 0xc]
shl edx, 8
mov al, byte [esi + edx + str.cw]
mov byte [ebp + ecx - 0x54], al
inc ecx
cmp ecx, 0x10
mov dword [ebp - 0xc], ecx
jl 0x100185b1
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.100182bc
xor eax, eax
mov cl, byte [ebp + eax - 0x24]
xor byte [ebp + eax - 0x44], cl
inc eax
cmp eax, 0x10
jl 0x100185f0
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
inc ecx
shl ecx, 4
cmp ecx, ebx
jle 0x10018621
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 8]
push esi
push ebx
push edi
call fcn.100183d4
push esi
push 0x13
lea eax, [ebp - 0x24]
push eax
call fcn.100183d4
lea eax, [esi + 0x10]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
call fcn.100183d4
lea eax, [esi + 0x10]
push eax
push 0x13
lea eax, [ebp - 0x34]
push eax
call fcn.100183d4
lea eax, [esi + 0x20]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
call fcn.100183d4
lea eax, [esi + 0x20]
push eax
push 0x13
lea eax, [ebp - 0x44]
push eax
call fcn.100183d4
lea eax, [esi + 0x30]
push eax
push ebx
lea eax, [ebp - 0x44]
push eax
call fcn.100183d4
lea eax, [esi + 0x30]
push eax
push 0x13
push edi
call fcn.100183d4
lea eax, [esi + 0x40]
push eax
push ebx
push edi
call fcn.100183d4
lea eax, [esi + 0x40]
push eax
push 0x1f
lea eax, [ebp - 0x24]
push eax
call fcn.100183d4
lea eax, [esi + 0x50]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
call fcn.100183d4
lea eax, [esi + 0x50]
push eax
push 0x1f
lea eax, [ebp - 0x34]
push eax
call fcn.100183d4
lea eax, [esi + 0x60]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
call fcn.100183d4
lea eax, [esi + 0x60]
push eax
push 0x1f
lea eax, [ebp - 0x44]
push eax
call fcn.100183d4
lea eax, [esi + 0x70]
push eax
push ebx
lea eax, [ebp - 0x44]
push eax
call fcn.100183d4
lea eax, [esi + 0x70]
push eax
push 0x1f
push edi
call fcn.100183d4
lea eax, [esi + 0x80]
push eax
push ebx
push edi
call fcn.100183d4
lea eax, [esi + 0x80]
push eax
push 0x43
lea eax, [ebp - 0x24]
push eax
call fcn.100183d4
lea eax, [esi + 0x90]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
call fcn.100183d4
lea eax, [esi + 0x90]
push eax
push 0x43
lea eax, [ebp - 0x34]
push eax
call fcn.100183d4
lea eax, [esi + 0xa0]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
call fcn.100183d4
lea eax, [esi + 0xa0]
push eax
push 0x43
lea eax, [ebp - 0x44]
push eax
call fcn.100183d4
lea eax, [esi + 0xb0]
push eax
push ebx
lea eax, [ebp - 0x44]
push eax
call fcn.100183d4
lea eax, [esi + 0xb0]
push eax
push 0x43
push edi
call fcn.100183d4
lea eax, [esi + 0xc0]
push eax
push ebx
push edi
call fcn.100183d4
lea eax, [esi + 0xc0]
push eax
push 0x61
lea eax, [ebp - 0x24]
push eax
call fcn.100183d4
cmp dword [ebp + 0x10], 0xc
jle 0x100187e9
lea eax, [esi + 0xd0]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
call fcn.100183d4
lea eax, [esi + 0xd0]
push eax
push 0x61
lea eax, [ebp - 0x34]
push eax
call fcn.100183d4
lea eax, [esi + 0xe0]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
call fcn.100183d4
lea eax, [esi + 0xe0]
push eax
push 0x61
lea eax, [ebp - 0x44]
push eax
call fcn.100183d4
cmp dword [ebp + 0x10], 0xe
jle 0x10018829
lea eax, [esi + 0xf0]
push eax
push ebx
lea eax, [ebp - 0x44]
push eax
call fcn.100183d4
lea eax, [esi + 0xf0]
push eax
push 0x61
push edi
call fcn.100183d4
add esi, 0x100
push esi
push ebx
push edi
call fcn.100183d4
push esi
push 0x6d
lea eax, [ebp - 0x24]
push eax
call fcn.100183d4
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc