Function at 0x408cb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x15ac
call fcn.00409610
mov esi, edx
mov edi, ecx
mov ebx, dword [esp + 0x15c0]
lea eax, [esp + 0x28]
push 0x84
push 0
push eax
call fcn.00409750
add esp, 0xc
cmp dword [esp + 0x15c8], 0
mov dword [esp + 0x18], esi
je 0x408d5e
test ebx, ebx
jle 0x4094c0
xor eax, eax
cmp ebx, 1
je 0x408d38
mov ecx, ebx
and ecx, 0xfffffffe
mov eax, dword [esp + 0x18]
lea eax, [eax + eax*8]
shl eax, 5
lea edx, [eax + edi]
add edx, 0x8f13
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx + eax - 1]
inc dword [esp + esi*4 + 0x28]
movzx esi, byte [edx + eax]
inc dword [esp + esi*4 + 0x28]
add eax, 2
cmp ecx, eax
jne 0x408d20
test bl, 1
je 0x4094c0
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + ecx*8]
shl ecx, 5
add ecx, edi
movzx eax, byte [eax + ecx + 0x8f12]
inc dword [esp + eax*4 + 0x28]
jmp 0x4094c0
lea eax, [esi + esi*8]
mov dword [esp + 0x14], eax
shl eax, 6
test ebx, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], eax
jle 0x408e59
cmp ebx, 1
jne 0x40903b
xor ebp, ebp
xor eax, eax
test bl, 1
mov ebx, ebp
mov edx, dword [esp + 0x10]
je 0x408db6
mov ecx, dword [esp + 0x24]
add ecx, edx
add ecx, 0x8192
movzx ecx, word [ecx + eax*2]
test cx, cx
je 0x408db6
mov word [esp + ebx*4 + 0xac], cx
mov word [esp + ebx*4 + 0xae], ax
inc ebx
lea eax, [esp + 0x52c]
push 0x800
push 0
push eax
call fcn.00409750
add esp, 0xc
test ebx, ebx
sete byte [esp + 0xc]
je 0x408e70
xor eax, eax
cmp ebx, 1
je 0x408e2f
mov ecx, ebx
and ecx, 0xfffffffe
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [esp + eax*4 + 0xac]
movzx esi, dl
inc dword [esp + esi*4 + 0x52c]
shr edx, 8
inc dword [esp + edx*4 + 0x92c]
movzx edx, word [esp + eax*4 + 0xb0]
movzx esi, dl
inc dword [esp + esi*4 + 0x52c]
shr edx, 8
inc dword [esp + edx*4 + 0x92c]
add eax, 2
cmp ecx, eax
jne 0x408df0
test bl, 1
je 0x408e50
movzx eax, word [esp + eax*4 + 0xac]
movzx ecx, al
inc dword [esp + ecx*4 + 0x52c]
shr eax, 8
inc dword [esp + eax*4 + 0x92c]
mov eax, dword [esp + 0x92c]
jmp 0x408e79
lea eax, [esp + 0x52c]
push 0x800
push 0
push eax
call fcn.00409750
add esp, 0xc
xor ebx, ebx
mov byte [esp + 0xc], 1
xor eax, eax
xor ecx, ecx
cmp eax, ebx
sete cl
mov eax, 2
sub eax, ecx
mov dword [esp + 0x1c], eax
lea esi, [esp + 0x112c]
lea eax, [esp + 0xac]
xor ecx, ecx
lea ebp, [esp + 0x52c]
xor edx, edx
mov dword [esp], ebx
jmp 0x408ed2
mov edx, dword [esp + 8]
inc edx
add ecx, 8
mov ebp, dword [esp + 0x20]
add ebp, 0x400
mov edi, dword [esp + 4]
mov eax, edi
cmp edx, dword [esp + 0x1c]
je 0x408f7d
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov esi, eax
mov edx, 3
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp + edx*4 + 0xd20], eax
add eax, dword [ebp + edx*4 - 0xc]
mov dword [esp + edx*4 + 0xd24], eax
add eax, dword [ebp + edx*4 - 8]
mov dword [esp + edx*4 + 0xd28], eax
add eax, dword [ebp + edx*4 - 4]
mov dword [esp + edx*4 + 0xd2c], eax
add eax, dword [ebp + edx*4]
add edx, 4
cmp edx, 0x103
jne 0x408ef0
mov dword [esp + 0x20], ebp
cmp byte [esp + 0xc], 0
jne 0x408eb0
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, word [esi + edx*4]
shr eax, cl
movzx eax, al
mov edi, dword [esp + eax*4 + 0xd2c]
mov ebx, dword [esi + edx*4]
mov ebp, esi
mov esi, dword [esp + 4]
mov dword [esi + edi*4], ebx
mov esi, ebp
mov ebx, edi
and edi, 1
xor ebx, 1
lea edi, [ebx + edi*2]
mov ebx, dword [esp]
mov dword [esp + eax*4 + 0xd2c], edi
inc edx
cmp ebx, edx
jne 0x408f40
jmp 0x408eb0
test ebx, ebx
mov ebx, edi
je 0x40937d
mov ecx, dword [esp]
cmp ecx, 1
jne 0x408f99
mov word [ebx], 1
jmp 0x40921c
movzx eax, word [ebx + 4]
add word [ebx], ax
cmp ecx, 3
jl 0x409095
mov eax, 2
mov edi, 2
sub edi, ecx
xor edx, edx
mov esi, 1
jmp 0x408fdb
movzx ecx, word [ebx + edx*4]
add word [ebx + esi*4], cx
mov word [ebx + edx*4], si
inc edx
lea ecx, [edi + esi]
inc ecx
inc esi
cmp ecx, 1
je 0x4090a1
cmp eax, dword [esp]
jge 0x409000
movzx ebp, word [ebx + eax*4]
movzx ecx, word [ebx + edx*4]
cmp cx, bp
jb 0x409004
inc eax
mov word [ebx + esi*4], bp
cmp eax, dword [esp]
jge 0x408fc0
jmp 0x409012
movzx ecx, word [ebx + edx*4]
mov word [ebx + esi*4], cx
mov word [ebx + edx*4], si
inc edx
cmp eax, dword [esp]
jge 0x408fc0
cmp edx, esi
jge 0x409030
movzx ecx, word [ebx + edx*4]
movzx ebp, word [ebx + eax*4]
cmp cx, bp
jb 0x408fc4
jmp 0x409034
movzx ebp, word [ebx + eax*4]
inc eax
add word [ebx + esi*4], bp
jmp 0x408fcd
mov ecx, ebx
and ecx, 0xfffffffe
lea edx, [eax + edi]
add edx, 0x8194
xor ebp, ebp
xor eax, eax
jmp 0x40905b
add eax, 2
cmp ecx, eax
je 0x408d85
movzx esi, word [edx + eax*2 - 2]
test si, si
je 0x409076
mov word [esp + ebp*4 + 0xac], si
mov word [esp + ebp*4 + 0xae], ax
inc ebp
movzx esi, word [edx + eax*2]
test si, si
je 0x409050
mov word [esp + ebp*4 + 0xac], si
lea esi, [eax + 1]
mov word [esp + ebp*4 + 0xae], si
inc ebp
jmp 0x409050
lea eax, [ecx - 2]
mov word [ebx + ecx*4 - 8], 0
jmp 0x409115
mov eax, ebx
mov ebx, dword [esp]
mov word [eax + ebx*4 - 8], 0
lea edx, [ebx - 3]
mov ecx, edx
test bl, 1
je 0x4090d2
mov ecx, dword [esp + 4]
movzx eax, word [ecx + ebx*4 - 0xc]
movzx eax, word [ecx + eax*4]
inc eax
mov word [ecx + ebx*4 - 0xc], ax
lea ecx, [edx + edx]
sub ecx, ebx
add ecx, 2
lea eax, [ebx - 2]
test edx, edx
je 0x40910e
mov ebx, dword [esp + 4]
nop
nop
nop
movzx edx, word [ebx + ecx*4]
movzx edx, word [ebx + edx*4]
inc edx
mov word [ebx + ecx*4], dx
mov edx, ecx
not edx
lea edx, [edx + ecx*2]
movzx esi, word [ebx + edx*4]
movzx esi, word [ebx + esi*4]
inc esi
mov word [ebx + edx*4], si
add edx, edx
sub edx, ecx
mov ecx, edx
jns 0x4090e0
mov ecx, dword [esp]
jmp 0x409115
mov ecx, dword [esp]
mov ebx, dword [esp + 4]
dec ecx
mov esi, 1
mov dword [esp + 8], 0
jmp 0x409145