Function at 0x418e6f
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
mov eax, dword [0x49d01c]
mov edx, dword [0x49cfec]
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
mov ebp, dword [esp + 0x58]
push esi
mov esi, dword [esp + 0x54]
push edi
mov ecx, dword [ebp + eax*4]
dec eax
mov edi, dword [esp + 0x54]
mov dword [0x49d01c], eax
lea eax, [esi - 1]
mov dword [esp + 0x18], eax
mov eax, dword [0x49cfdc]
or eax, edi
mov dword [esp + 0x30], ecx
mov cx, word [0x49d020]
inc edi
dec dword [0x49d030]
dec edx
mov dword [esp + 0x40], eax
movzx eax, cx
mov dword [esp + 0x3c], eax
mov eax, dword [0x49d00c]
mov dword [0x49cfec], edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], 0xe95
movzx eax, word [eax + 0x288a]
imul eax, ebx
mov ebx, dword [0x49cff4]
mov byte [esp + 0x58], bl
mov dword [esp + 0x54], edi
mov dword [esp + 0x20], eax
mov eax, dword [0x49d034]
mov ebp, dword [ebp + eax*8]
lea eax, [ebx + 0x1b9f]
mov dword [esp + 0x24], eax
sub ebp, 0x1615
movzx eax, word [0x49cfd4]
inc cx
mov dword [esp + 0x1c], eax
dec ebx
movzx eax, word [0x49cfe4]
mov dword [esp + 0x2c], eax
movzx eax, word [0x49d028]
mov dword [esp + 0x28], ebp
mov word [0x49d020], cx
mov dword [0x49cff4], ebx
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x20]
jg 0x419065
movzx eax, byte [esp + 0x48]
xor edx, edx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x38], eax
add ebx, ebx
movzx eax, byte [esp + 0x58]
div edi
mov dl, byte [esp + 0x5c]
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x60]
mov byte [esp + 0x5c], dl
mov edx, dword [esp + 0x10]
mov dword [esp + 0x58], eax
movzx ecx, word [0x49cfc4]
mov eax, 0xffff
and dword [ebp + ecx*4], edx
xor edx, edx
add word [0x49cfc4], ax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax]
movzx eax, byte [ecx + eax*4]
lea ecx, [eax + 0x144d]
imul ecx, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
movzx ecx, word [0x49cfd8]
div ecx
mov ecx, dword [esp + 0x10]
or eax, dword [esp + 0x38]
mov dword [0x49d024], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + ecx*8]
mov eax, dword [0x49d01c]
add ecx, dword [eax*4 + 0xba5]
mov eax, dword [esp + 0x68]
sub ecx, eax
dec eax
mov dword [0x49d034], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esi + ebx*8 + 0x12b6]
cdq
idiv dword [0x49d03c]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x49d038]
sub edx, dword [ecx + eax*4]
mov dword [ecx + eax*4], edx
movzx eax, word [0x49cfe4]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x10]
sub ecx, eax
sub ecx, dword [0x49d024]
add ecx, edx
mov dword [0x49d024], ecx
mov cl, byte [esp + 0x5c]
dec cl
movzx eax, cl
add eax, esi
mov byte [esp + 0x5c], cl
xor dword [esp + 0x14], eax
inc edx
mov dword [esp + 0x10], edx
cmp edx, edi
jle 0x418f82
mov edx, dword [0x49cfec]
mov ebx, dword [0x49cff4]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x54]
jmp 0x41906d
mov cl, byte [esp + 0x5c]
mov byte [esp + 0x5c], cl
cmp ebx, esi
jg 0x419110
movzx eax, cl
xor edx, edx
mov dword [esp + 0x58], eax
sub esi, ebx
mov eax, edi
mov ebx, dword [esp + 0x18]
div dword [esp + 0x14]
mov edi, dword [esp + 0x58]
inc esi
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x4c]
movzx ecx, word [ebp]
mov edx, dword [esp + 0x24]
mov al, byte [eax + ebx*4]
and al, byte [edx + edi*4 + 0x50]
and al, byte [esp + 0x38]
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x60]
sub al, byte [ecx + edi]
dec ebx
mov byte [ecx + edi], al
inc dword [0x49cffc]
inc word [ebp]
movzx eax, word [ebp]
mov ecx, dword [0x49cffc]
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x34], ecx
movzx ecx, byte [ecx + ebp]
add cx, word [edx + eax*4]
mov eax, 0x4a9
mov ebp, dword [esp + 0x28]
add cx, ax
and cx, word [0x49cff4]
xor word [0x49d02c], cx
sub esi, 1
jne 0x419093
mov edx, dword [0x49cfec]
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x34]
jmp 0x41911a
mov esi, dword [0x49cffc]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
dec edx
mov ecx, dword [0x49d01c]
mov dword [0x49cfec], edx
movzx eax, word [eax]
movzx eax, word [edi + eax*2]
mov edi, dword [esp + 0x2c]
movzx ecx, byte [edi + ecx + 7]
mov edi, dword [esp + 0x3c]
xor eax, ecx
movzx ecx, byte [edx + edi + 0xf]
cdq
idiv ecx
xor edx, edx
and al, 0x88
xor byte [edi + esi*4 + 5], al
mov edi, ebx
dec dword [0x49cffc]
add edi, edi
mov eax, dword [esp + 0x1c]
movzx esi, byte [esp + 0x5c]
mov dword [esp + 0x58], esi
inc dword [eax]
mov ecx, dword [eax]
mov eax, dword [esp + 0x68]
div esi
mov eax, dword [esp + 0x30]
movzx esi, byte [esp + 0x48]
mov word [eax + ecx*8], dx
xor edx, edx
mov ecx, dword [0x49d038]
mov eax, dword [0x49cffc]
div dword [ecx + esi*4]
mov ecx, dword [0x49d024]
mov edx, dword [esp + 0x1c]
and eax, dword [edx + ecx*4 + 0x18]
mov ecx, dword [esp + 0x40]
sub eax, dword [ecx + edi*8]
mov dword [ecx + edi*8], eax
dec dword [0x49d024]
dec ebx
mov ecx, dword [esp + 0x60]
movzx eax, word [0x49d018]
lea ecx, [ecx + ebx*8]
mov dword [esp + 0x5c], ecx
cmp eax, dword [ecx]
jle 0x419200
mov ebx, dword [esp + 0x54]
mov edi, eax
and ebx, 0x2a8
xor edx, edx
mov esi, dword [0x49d01c]
mov eax, ebx
div dword [0x49cfdc]
movzx ecx, word [ebp + esi*4]
mov eax, edx
xor edx, edx
div ecx
inc edi
mov word [ebp + esi*4], ax
mov eax, dword [esp + 0x5c]
sub eax, 8
mov dword [esp + 0x5c], eax
cmp edi, dword [eax]
jg 0x4191d0
mov edi, dword [esp + 0x54]
xor edx, edx
mov eax, dword [esp + 0x58]
div edi
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0x34
ret