Function at 0x4015b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov eax, dword [0x405004]
mov ebp, esp
push edi
test eax, eax
push esi
push ebx
mov ebx, dword [ebp + 0xc]
jne 0x4015fd
cmp dword [ebp + 0x10], 0xc0
je 0x401613
jg 0x4015e4
cmp dword [ebp + 0x10], 0x80
je 0x401829
pop ebx
mov eax, 1
pop esi
pop edi
pop ebp
ret
cmp dword [ebp + 0x10], 0x100
jne 0x4015da
mov edi, dword [ebp + 8]
mov edx, 0xe
mov dword [edi + 0x200], edx
jmp 0x401621
call fcn.00401290
xor edi, edi
cmp dword [ebp + 0x10], 0xc0
mov dword [0x405004], edi
jne 0x4015cb
mov eax, dword [ebp + 8]
mov ecx, 0xc
mov dword [eax + 0x200], ecx
mov edi, dword [ebp + 0x10]
xor ecx, ecx
mov esi, dword [ebp + 8]
sar edi, 5
cmp edi, 0
jmp 0x40165c
movzx edx, byte [ebx + ecx*4]
movzx eax, byte [ebx + ecx*4 + 1]
shl edx, 0x18
shl eax, 0x10
or edx, eax
movzx eax, byte [ebx + ecx*4 + 2]
shl eax, 8
or edx, eax
movzx eax, byte [ebx + ecx*4 + 3]
or edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + ecx*4], edx
inc ecx
cmp edi, ecx
jg 0x401631
cmp dword [ebp + 0x10], 0xc0
je 0x40191d
jg 0x40183c
cmp dword [ebp + 0x10], 0x80
je 0x40199f
mov edi, dword [section..data]
test edi, edi
je 0x4016e0
xor ecx, ecx
lea esi, [esi]
mov edx, dword [ecx*4 + 0x40a6f0]
mov eax, dword [edx*4 + 0x408ef0]
mov edi, dword [edx*4 + 0x408af0]
mov ebx, dword [edx*4 + 0x4086f0]
mov dword [ecx*4 + 0x407eb0], eax
mov eax, dword [edx*4 + 0x4082f0]
mov dword [ecx*4 + 0x407ab0], edi
mov dword [ecx*4 + 0x4076b0], ebx
mov dword [ecx*4 + 0x4072b0], eax
inc ecx
cmp ecx, 0xff
jle 0x401690
xor ecx, ecx
mov dword [section..data], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [esi]
mov dword [edx + 0x100], ecx
mov eax, dword [esi + 4]
mov dword [edx + 0x104], eax
mov edi, dword [esi + 8]
mov eax, dword [edx + 0x200]
mov dword [edx + 0x108], edi
mov ebx, dword [esi + 0xc]
add esi, 0x10
mov dword [edx + 0x10c], ebx
mov ebx, edx
add ebx, 0x110
cmp eax, 1
jle 0x40180b
lea edi, [eax - 1]
mov ecx, dword [esi - 0x20]
mov eax, ecx
mov edx, ecx
shr eax, 0x10
movzx eax, al
shr edx, 0x18
mov eax, dword [eax*4 + 0x407ab0]
xor eax, dword [edx*4 + 0x407eb0]
movzx edx, ch
movzx ecx, cl
xor eax, dword [edx*4 + 0x4076b0]
mov edx, dword [ecx*4 + 0x4072b0]
xor eax, edx
mov dword [ebx], eax
mov ecx, dword [esi - 0x1c]
mov eax, ecx
shr eax, 0x10
mov edx, ecx
movzx eax, al
mov eax, dword [eax*4 + 0x407ab0]
shr edx, 0x18
xor eax, dword [edx*4 + 0x407eb0]
movzx edx, ch
movzx ecx, cl
xor eax, dword [edx*4 + 0x4076b0]
mov edx, dword [ecx*4 + 0x4072b0]
xor eax, edx
mov dword [ebx + 4], eax
mov ecx, dword [esi - 0x18]
mov eax, ecx
shr eax, 0x10
mov edx, ecx
movzx eax, al
shr edx, 0x18
mov eax, dword [eax*4 + 0x407ab0]
xor eax, dword [edx*4 + 0x407eb0]
movzx edx, ch
movzx ecx, cl
xor eax, dword [edx*4 + 0x4076b0]
mov edx, dword [ecx*4 + 0x4072b0]
xor eax, edx
mov dword [ebx + 8], eax
mov ecx, dword [esi - 0x14]
sub esi, 0x10
mov eax, ecx
mov edx, ecx
shr eax, 0x10
movzx eax, al
shr edx, 0x18
mov eax, dword [eax*4 + 0x407ab0]
xor eax, dword [edx*4 + 0x407eb0]
movzx edx, ch
movzx ecx, cl
xor eax, dword [edx*4 + 0x4076b0]
mov edx, dword [ecx*4 + 0x4072b0]
xor eax, edx
mov dword [ebx + 0xc], eax
add ebx, 0x10
dec edi
jne 0x401723
mov eax, dword [esi - 0x20]
mov dword [ebx], eax
mov edx, dword [esi - 0x1c]
xor eax, eax
mov dword [ebx + 4], edx
mov ecx, dword [esi - 0x18]
mov dword [ebx + 8], ecx
mov edi, dword [esi - 0x14]
mov dword [ebx + 0xc], edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 8]
mov esi, 0xa
mov dword [edx + 0x200], esi
jmp 0x401621
cmp dword [ebp + 0x10], 0x100
jne 0x40167e
xor edi, edi
movzx eax, byte [esi + 0x1e]
mov edx, dword [edi*4 + 0x4082b0]
inc edi
mov ebx, dword [esi]
mov ecx, dword [eax*4 + 0x40a6f0]
xor edx, ebx
mov ebx, dword [esi + 0x1c]
shl ecx, 0x18
xor edx, ecx
movzx eax, bh
mov ecx, dword [eax*4 + 0x40a6f0]
movzx eax, bl
shl ecx, 0x10
xor edx, ecx
mov ecx, dword [eax*4 + 0x40a6f0]
mov eax, ebx
shr eax, 0x18
shl ecx, 8
xor edx, ecx
mov ecx, dword [eax*4 + 0x40a6f0]
mov eax, dword [esi + 4]
xor edx, ecx
xor eax, edx
mov dword [esi + 0x20], edx
mov edx, dword [esi + 8]
mov dword [esi + 0x24], eax
mov ecx, dword [esi + 0xc]
xor eax, edx
mov dword [esi + 0x28], eax
xor ecx, eax
mov eax, ecx
mov dword [esi + 0x2c], ecx
shr eax, 0x18
mov edx, dword [eax*4 + 0x40a6f0]
mov eax, dword [esi + 0x10]
shl edx, 0x18
xor edx, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x40a6f0]
shl eax, 0x10
xor edx, eax
movzx eax, ch
mov eax, dword [eax*4 + 0x40a6f0]
movzx ecx, cl
shl eax, 8
xor edx, eax
mov eax, dword [ecx*4 + 0x40a6f0]
xor edx, eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x30], edx
xor eax, edx
mov edx, dword [esi + 0x18]
mov dword [esi + 0x34], eax
xor eax, edx
xor ebx, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
add esi, 0x20
cmp edi, 6
jle 0x40184b
jmp 0x40167e
xor ebx, ebx
movzx eax, byte [esi + 0x16]
mov edx, dword [ebx*4 + 0x4082b0]
inc ebx
mov ecx, dword [esi]
mov edi, dword [eax*4 + 0x40a6f0]
xor edx, ecx
mov ecx, dword [esi + 0x14]
shl edi, 0x18
xor edx, edi
movzx eax, ch
mov edi, dword [eax*4 + 0x40a6f0]
movzx eax, cl
shl edi, 0x10
xor edx, edi
mov edi, dword [eax*4 + 0x40a6f0]
mov eax, ecx
shr eax, 0x18
shl edi, 8
xor edx, edi
mov edi, dword [eax*4 + 0x40a6f0]
mov eax, dword [esi + 4]
xor edx, edi
xor eax, edx
mov dword [esi + 0x18], edx
mov edx, dword [esi + 8]
mov dword [esi + 0x1c], eax
mov edi, dword [esi + 0xc]
xor eax, edx
mov dword [esi + 0x20], eax
mov edx, dword [esi + 0x10]
xor eax, edi
mov dword [esi + 0x24], eax
xor eax, edx
xor ecx, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
add esi, 0x18
cmp ebx, 7
jle 0x40191f
jmp 0x40167e
xor ebx, ebx
movzx eax, byte [esi + 0xe]
mov edx, dword [ebx*4 + 0x4082b0]
inc ebx
mov ecx, dword [esi]
mov edi, dword [eax*4 + 0x40a6f0]
xor edx, ecx
mov ecx, dword [esi + 0xc]
shl edi, 0x18
xor edx, edi
movzx eax, ch
mov edi, dword [eax*4 + 0x40a6f0]
movzx eax, cl
shl edi, 0x10
xor edx, edi
mov edi, dword [eax*4 + 0x40a6f0]
mov eax, ecx
shr eax, 0x18
shl edi, 8
xor edx, edi
mov edi, dword [eax*4 + 0x40a6f0]
xor edx, edi
mov dword [esi + 0x10], edx
mov edi, dword [esi + 4]
xor edi, edx
mov dword [esi + 0x14], edi
mov edx, dword [esi + 8]
xor edi, edx
mov dword [esi + 0x18], edi
xor ecx, edi
mov dword [esi + 0x1c], ecx
add esi, 0x10
cmp ebx, 9
jle 0x4019a1
jmp 0x40167e