Function at 0x4276b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [eax + 0x400]
mov dword [ebp - 8], 0
mov dword [ebp - 0x20], ecx
lea ecx, [eax + 0x800]
mov dword [ebp - 0x24], ecx
lea ecx, [eax + 0xc00]
mov dword [ebp - 0x28], ecx
lea ecx, [eax + 0x1000]
mov dword [ebp - 0x1c], ecx
jne 0x427700
lea esi, [ebp - 1]
mov dword [ebp - 0x10], 1
mov dword [ebp + 0x14], esi
mov byte [ebp - 1], 0
jmp 0x427706
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
movsx edi, word [ebp + 0x10]
xor eax, eax
mov ebx, 2
mov dword [ebp - 0xc], eax
sub ebx, ecx
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ebx
nop
cdq
add ebx, esi
idiv edi
movzx eax, byte [edx + ecx]
shl eax, 0x18
xor dword [esi], eax
lea eax, [ebx - 1]
cdq
idiv edi
mov eax, ebx
movzx ecx, byte [edx + ecx]
cdq
idiv edi
mov eax, dword [ebp + 0xc]
shl ecx, 0x10
xor ecx, dword [esi]
mov dword [esi], ecx
movzx edi, byte [edx + eax]
lea eax, [ebx + 1]
shl edi, 8
xor edi, ecx
cdq
movsx ecx, word [ebp + 0x10]
idiv ecx
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x18]
mov dword [esi], edi
movzx eax, byte [edx + ecx]
xor eax, edi
movsx edi, word [ebp + 0x10]
mov dword [esi], eax
add esi, 4
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
cmp eax, 0x48
jl 0x427720
mov esi, dword [ebp + 0x14]
xor ebx, ebx
xor eax, eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
movsx edi, ax
mov eax, 2
mov dword [ebp - 0xc], eax
nop word [eax + eax]
dec eax
cdq
idiv edi
mov eax, dword [ebp - 8]
push dword [ebp + 8]
add dword [ebp - 8], 8
movzx ecx, byte [edx + esi]
cdq
idiv edi
movzx eax, byte [edx + esi]
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 0xc]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0xc]
inc eax
shl ecx, 8
cdq
idiv edi
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0xc]
xor eax, ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
add eax, 2
cdq
idiv edi
mov eax, dword [ebp - 0xc]
add eax, 3
movzx ecx, byte [edx + esi]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0xc]
add eax, 4
shl ecx, 8
cdq
idiv edi
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0xc]
add eax, 5
add dword [ebp - 0xc], 8
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0xc]
xor ebx, ecx
push ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.00427280
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx + edx*4 + 4], ebx
add edx, 2
mov dword [ebp - 0x18], edx
cmp edx, 0x12
jl 0x4277a0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], 0
lea ecx, [eax + 2]
mov dword [ebp + 0x14], ecx
nop dword [eax]
cdq
idiv edi
mov eax, dword [ebp + 0x14]
dec eax
add dword [ebp - 8], 8
push dword [ebp + 8]
movzx ecx, byte [edx + esi]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
inc eax
shl ecx, 8
cdq
idiv edi
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0xc]
xor eax, ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
add eax, 2
cdq
idiv edi
mov eax, dword [ebp + 0x14]
add eax, 3
movzx ecx, byte [edx + esi]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
add eax, 4
shl ecx, 8
cdq
idiv edi
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
add eax, 5
add dword [ebp + 0x14], 8
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0xc]
xor ebx, ecx
push ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.00427280
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 8]
mov dword [ecx + edx*4 + 4], ebx
add edx, 2
mov dword [ebp - 0x18], edx
cmp edx, 0x100
jl 0x427880
lea ecx, [eax + 2]
mov dword [ebp - 0x18], 0
mov dword [ebp + 0x14], ecx
nop dword [eax]
cdq
idiv edi
mov eax, dword [ebp + 0x14]
dec eax
add dword [ebp - 8], 8
push dword [ebp + 8]
movzx ecx, byte [edx + esi]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
inc eax
shl ecx, 8
cdq
idiv edi
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0xc]
xor eax, ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
add eax, 2
cdq
idiv edi
mov eax, dword [ebp + 0x14]
add eax, 3
movzx ecx, byte [edx + esi]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
add eax, 4
shl ecx, 8
cdq
idiv edi
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
add eax, 5
add dword [ebp + 0x14], 8
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0xc]
xor ebx, ecx
push ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.00427280
mov ecx, dword [ebp - 0x18]
add esp, 0x10
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], ebx
add ecx, 2
mov dword [ebp - 0x18], ecx
cmp ecx, 0x100
jl 0x427960
lea ecx, [eax + 2]
mov dword [ebp - 0x18], 0
mov dword [ebp + 0x14], ecx
nop dword [eax]
cdq
idiv edi
mov eax, dword [ebp + 0x14]
dec eax
add dword [ebp - 8], 8
push dword [ebp + 8]
movzx ecx, byte [edx + esi]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
inc eax
shl ecx, 8
cdq
idiv edi
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0xc]
xor eax, ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
add eax, 2
cdq
idiv edi
mov eax, dword [ebp + 0x14]
add eax, 3
movzx ecx, byte [edx + esi]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
add eax, 4
shl ecx, 8
cdq
idiv edi
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
add eax, 5
add dword [ebp + 0x14], 8
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0xc]
xor ebx, ecx
push ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.00427280
mov ecx, dword [ebp - 0x18]
add esp, 0x10
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], ebx
add ecx, 2
mov dword [ebp - 0x18], ecx
cmp ecx, 0x100
jl 0x427a40
lea ecx, [eax + 2]
mov dword [ebp - 0x18], 0
mov dword [ebp + 0x14], ecx
nop dword [eax]
cdq
idiv edi
mov eax, dword [ebp + 0x14]
dec eax
add dword [ebp - 8], 8
push dword [ebp + 8]
movzx ecx, byte [edx + esi]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
inc eax
shl ecx, 8
cdq
idiv edi
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0xc]
xor eax, ecx
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
add eax, 2
cdq
idiv edi
mov eax, dword [ebp + 0x14]
add eax, 3
movzx ecx, byte [edx + esi]
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
add eax, 4
shl ecx, 8
cdq
idiv edi
movzx eax, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp + 0x14]
add eax, 5
add dword [ebp + 0x14], 8
cdq
idiv edi
shl ecx, 8
movzx eax, byte [edx + esi]
xor ecx, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0xc]
xor ebx, ecx
push ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.00427280
mov ecx, dword [ebp - 0x18]
add esp, 0x10
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], ebx
add ecx, 2
mov dword [ebp - 0x18], ecx
cmp ecx, 0x100
jl 0x427b20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret