Function at 0x415da0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x450
mov edx, ecx
push ebx
push ebp
xor ebp, ebp
mov cl, byte [edx + 0x22]
mov bl, byte [edx + 0x12]
xor eax, eax
push esi
test cl, cl
sete al
xor ecx, ecx
push edi
test bl, bl
sete cl
cmp ecx, eax
lea edi, [esp + 0x60]
setne byte [esp + 0x13]
xor eax, eax
xor ecx, ecx
mov ax, word [edx + 0x24]
mov cx, word [edx + 0x26]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
xor eax, eax
xor ecx, ecx
mov ax, word [edx + 0x28]
mov cl, byte [edx + 0x2a]
mov dword [esp + 0x50], eax
mov dword [esp + 0x3c], ecx
xor eax, eax
xor ecx, ecx
mov al, byte [edx + 0x2b]
mov cl, byte [edx + 0x2c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov ecx, 0x100
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x468]
xor ebx, ebx
cmp edi, ebp
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebp
jle 0x415fcc
jmp 0x415e36
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x464]
cmp ebp, esi
jge 0x415fcc
mov eax, edi
xor ecx, ecx
sub eax, ebx
mov dword [esp + 0x24], ecx
test eax, eax
mov dword [esp + 0x38], eax
jle 0x415f96
mov eax, esi
sub eax, ebp
add eax, 0xfffffff9
mov dword [esp + 0x34], eax
mov eax, ebx
imul eax, esi
mov dword [esp + 0x28], eax
jmp 0x415e79
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp ecx, dword [esp + 0x34]
jge 0x415f96
mov edx, dword [edx + 0x1974]
add eax, ecx
mov ecx, dword [esp + 0x14]
lea edi, [eax + ecx]
mov cl, byte [esp + 0x13]
test cl, cl
mov ax, word [edx + edi*2]
je 0x415ea6
xor ecx, ecx
mov cl, ah
mov ch, al
mov eax, ecx
mov esi, eax
and esi, 0xffff
xor eax, eax
mov cl, byte [esp + eax + 0x3c]
mov ebp, dword [esp + eax + 0x48]
mov ebx, esi
add eax, 4
shr ebx, cl
and ebx, ebp
cmp eax, 0xc
mov dword [esp + eax + 0x50], ebx
jl 0x415eb0
mov ecx, dword [esp + 0x18]
mov eax, 7
lea edx, [edx + edi*2 + 2]
add ecx, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x20]
mov bx, word [eax]
mov al, byte [esp + 0x13]
test al, al
je 0x415efc
xor ecx, ecx
mov cl, bh
mov ch, bl
mov ebx, ecx
xor ebp, ebp
and ebx, 0xffff
xor edi, edi
mov cl, byte [esp + edi + 0x3c]
mov eax, dword [esp + edi + 0x48]
mov esi, ebx
mov edx, dword [esp + edi + 0x54]
shr esi, cl
add edi, 4
and esi, eax
mov eax, esi
mov dword [esp + edi + 0x50], esi
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
cmp edi, 0xc
jl 0x415f06
cmp ebp, 0xff
jle 0x415f3c
mov ebp, 0xff
mov edx, dword [esp + ebp*4 + 0x60]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
lea ebp, [esp + ebp*4 + 0x60]
inc edx
add ecx, 2
dec eax
mov dword [ebp], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
jne 0x415ee5
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x464]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x468]
inc eax
add esi, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x464]
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x415e71
cmp esi, edi
jle 0x415fae
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], 0
add eax, edi
mov dword [esp + 0x14], eax
jmp 0x415fc0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
add eax, esi
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x1c]
cmp ebx, edi
jl 0x415e32
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
add eax, edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv dword [esp + 0x18]
cmp eax, 0x5a
jl 0x415ff8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x450
ret 8
xor eax, eax
mov ecx, 1
lea esi, [esp + 0x64]
mov edx, dword [esi]
mov ebx, edx
imul ebx, ecx
imul ebx, ecx
add eax, ebx
test edx, edx
je 0x415fe9
mov ebx, dword [esi - 4]
shl ebx, 1
cmp edx, ebx
jg 0x415fe9
inc ecx
add esi, 4
cmp ecx, 8
jl 0x416003
cmp ecx, 0x100
jge 0x416048
lea edx, [esp + ecx*4 + 0x60]
mov esi, ecx
add edx, 4
imul esi, ecx
imul esi, dword [edx - 4]
add eax, esi
inc ecx
cmp ecx, 0x100
jl 0x416031
mov ecx, dword [esp + 0x18]
xor edx, edx
sub ecx, edi
pop edi
pop esi
pop ebp
div ecx
pop ebx
add esp, 0x450
ret 8