Function at 0x408c4b
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10c
mov ecx, dword [esp + 0x138]
xorps xmm0, xmm0
movups xmmword [esp + 0x50], xmm0
movups xmmword [esp + 0x60], xmm0
movups xmmword [esp + 0x70], xmm0
movups xmmword [esp + 0x80], xmm0
mov eax, dword [esp + 0x124]
mov edx, dword [esp + 0x120]
xor esi, esi
mov edi, dword [edx + esi*4]
inc dword [esp + edi*4 + 0x50]
inc esi
cmp eax, esi
jne 0x408c86
cmp dword [esp + 0x50], eax
jne 0x408caa
xor edi, edi
mov eax, dword [esp + 0x134]
mov dword [eax], edi
mov dword [ecx], edi
jmp 0x4090a2
mov esi, dword [ecx]
xor ebx, ebx
inc ebx
cmp dword [esp + ebx*4 + 0x50], 0
jne 0x408cc1
inc ebx
cmp ebx, 0x10
jne 0x408caf
mov ebx, 0x10
cmp esi, ebx
cmovbe esi, ebx
mov ebp, 0xf
cmp dword [esp + ebp*4 + 0x50], 0
jne 0x408cd7
dec ebp
jne 0x408ccb
xor ebp, ebp
cmp esi, ebp
cmovae esi, ebp
mov dword [esp + 8], esi
mov dword [ecx], esi
xor esi, esi
inc esi
mov ecx, ebx
shl esi, cl
cmp ebx, ebp
jae 0x408d03
xor edi, edi
dec edi
mov ecx, ebx
sub esi, dword [esp + ecx*4 + 0x50]
js 0x4090a2
inc ecx
add esi, esi
cmp ebp, ecx
jne 0x408cf2
mov ecx, dword [esp + ebp*4 + 0x50]
cmp esi, ecx
js 0x40909f
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], esi
mov dword [esp + ebp*4 + 0x50], esi
mov dword [esp + 0x94], 0
mov ecx, ebp
dec ecx
je 0x408d3f
xor esi, esi
xor edi, edi
add edi, dword [esp + esi*4 + 0x54]
mov dword [esp + esi*4 + 0x98], edi
inc esi
cmp ecx, esi
jne 0x408d2f
cmp eax, 2
mov ecx, 1
cmovb eax, ecx
xor ecx, ecx
mov dword [esp + 0x10], ebp
mov esi, dword [edx + ecx*4]
test esi, esi
je 0x408d77
mov edi, dword [esp + esi*4 + 0x90]
mov ebp, ebx
lea ebx, [edi + 1]
mov dword [esp + esi*4 + 0x90], ebx
mov ebx, ebp
mov ebp, dword [esp + 0x10]
mov dword [edi*4 + 0x440dfc], ecx
inc ecx
cmp eax, ecx
jne 0x408d50
mov eax, dword [esp + ebp*4 + 0x90]
xor ecx, ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0xd0], ecx
cmp ebx, ebp
mov edx, dword [esp + 8]
jle 0x408dba
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x3c]
setne al
cmp dword [esp + 0x10], 1
setne cl
and cl, al
movzx edi, cl
neg edi
jmp 0x4090a2
mov ecx, edx
neg ecx
lea eax, [eax*4 + 0x440dfc]
mov dword [esp + 0x44], eax
mov esi, 0x440dfc
lea eax, [esp + ebx*4]
add eax, 0x54
mov dword [esp + 0x2c], eax
xor ebp, ebp
dec ebp
mov dword [esp + 0x38], 0
mov edi, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x14], esi
mov esi, dword [esp + ebx*4 + 0x50]
mov ecx, ebx
dec cl
xor eax, eax
inc eax
shl eax, cl
mov dword [esp + 0x20], esi
test esi, esi
je 0x40907e
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], ebx
mov eax, edi
lea ecx, [edi + edx]
cmp ebx, ecx
jle 0x408f3b
mov edi, dword [esp + 0x10]
sub edi, ecx
mov dword [esp + 4], eax
mov esi, ebp
mov dword [esp + 0x24], esi
cmp edx, edi
mov ebp, edi
cmovb ebp, edx
mov eax, ebx
mov ebx, dword [esp + 0x10]
sub ebx, ecx
cmp ebx, edx
cmovae ebx, edx
mov dword [esp], ecx
sub eax, ecx
xor esi, esi
inc esi
mov ecx, eax
shl esi, cl
mov edx, eax
sub esi, dword [esp + 0x20]
jbe 0x408e8c
mov edx, eax
cmp eax, ebx
jae 0x408e8c
lea edx, [eax + 1]
cmp edx, ebx
jae 0x408e8c
mov ecx, dword [esp + 0x2c]
add esi, esi
sub esi, dword [ecx]
jbe 0x408e8c
inc edx
add ecx, 4
cmp edx, ebx
jb 0x408e7c
mov edx, ebp
mov dword [esp + 0x28], eax
xor eax, eax
inc eax
mov ecx, edx
shl eax, cl
mov ebx, dword [esp + 0x140]
mov esi, dword [ebx]
mov dword [esp + 0x38], eax
lea ecx, [esi + eax]
cmp ecx, 0x5a0
ja 0x40909f
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x24]
mov ebp, edi
mov eax, dword [esp + 0x13c]
lea eax, [eax + esi*4]
inc ebp
mov dword [esp + ebp*4 + 0xd0], eax
mov dword [ebx], ecx
mov dword [esp + 0x34], eax
je 0x408f0c
mov esi, dword [esp + 0x1c]
mov dword [esp + ebp*4 + 0x90], esi
mov ecx, dword [esp + 4]
shr esi, cl
mov ecx, dword [esp + edi*4 + 0xd0]
mov byte [ecx + esi*4], dl
sub eax, ecx
shr eax, 2
sub eax, esi
mov edx, dword [esp + 8]
mov byte [ecx + esi*4 + 1], dl
mov dword [esp + 0x18], eax
mov word [ecx + esi*4 + 2], ax
jmp 0x408f19
mov ecx, dword [esp + 0x134]
mov dword [ecx], eax
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x30]
mov eax, dword [esp]
mov edi, dword [esp + 0xc]
lea ecx, [eax + edx]
sub edi, edx
mov esi, eax
mov dword [esp + 4], eax
mov esi, ebp
cmp ebx, ecx
jg 0x408e3f
jmp 0x408f43
mov ecx, ebx
sub ecx, eax
mov dword [esp + 0x28], ecx
mov dword [esp], eax
mov esi, dword [esp + 0x14]
cmp esi, dword [esp + 0x44]
mov dword [esp + 0xc], ebp
jae 0x408f84
mov eax, dword [esi]
mov ecx, eax
sub ecx, dword [esp + 0x128]
jae 0x408f8c
cmp eax, 0x100
mov edx, 0x60
mov dword [esp + 0x18], eax
mov eax, 0
cmovb edx, eax
mov dword [esp + 4], edx
add esi, 4
mov dword [esp + 0x14], esi
jmp 0x408fb2
mov al, 0xc0
mov dword [esp + 4], eax
jmp 0x408fb2
mov eax, dword [esp + 0x130]
mov al, byte [eax + ecx*2]
add al, 0x50
mov dword [esp + 4], eax
add esi, 4
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x12c]
movzx eax, word [eax + ecx*2]
mov dword [esp + 0x18], eax
xor esi, esi
inc esi
mov ecx, dword [esp + 0x28]
shl esi, cl
mov dword [esp + 0x24], esi
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp]
shr edi, cl
mov ecx, dword [esp + 0x38]
cmp edi, ecx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 4]
mov esi, dword [esp + 0x18]
jae 0x408ff8
mov byte [edx + edi*4], al
mov ebp, eax
mov eax, dword [esp + 0x28]
mov byte [edx + edi*4 + 1], al
mov eax, ebp
mov word [edx + edi*4 + 2], si
add edi, dword [esp + 0x24]
cmp edi, ecx
jb 0x408fdc
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
test eax, esi
je 0x40901c
mov edx, dword [esp + 8]
xor edi, edi
dec edi
mov ecx, dword [esp]
mov ebp, dword [esp + 0xc]
xor esi, eax
shr eax, 1
test eax, esi
jne 0x409012
jmp 0x40902a
mov edx, dword [esp + 8]
xor edi, edi
dec edi
mov ecx, dword [esp]
mov ebp, dword [esp + 0xc]
xor esi, eax
dec dword [esp + 0x20]
mov eax, edi
shl eax, cl
not eax
and eax, esi
cmp eax, dword [esp + ebp*4 + 0x90]
jne 0x409048
mov eax, ebp
mov edi, dword [esp]
jmp 0x40906b
mov edi, dword [esp]
mov eax, dword [esp + 0x4c]
lea ecx, [eax + edi]
xor eax, eax
dec eax
shl eax, cl
sub edi, edx
not eax
and eax, esi
cmp eax, dword [esp + ebp*4 + 0x8c]
lea eax, [ebp - 1]
mov ebp, eax
jne 0x40904b
mov dword [esp + 0x1c], esi
mov ebp, eax
cmp dword [esp + 0x20], 0
jne 0x408e26
jmp 0x409080
mov eax, ebp
lea ecx, [ebx + 1]
add dword [esp + 0x2c], 4
mov ebp, eax
cmp ebx, dword [esp + 0x10]
mov ebx, ecx
mov esi, dword [esp + 0x14]
jne 0x408e01
jmp 0x408d9b
xor edi, edi
dec edi
mov eax, edi
add esp, 0x10c
pop esi
pop edi
pop ebx
pop ebp
ret 0x24