Function at 0x41a700
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x38]
push ebx
mov ebx, dword [esp + 0x34]
shl eax, 9
add eax, dword [esp + 0x38]
push ebp
mov eax, dword [eax*4 + 0x4fb760]
movzx edx, byte [eax + 1]
mov ebp, dword [esp + 0x28]
push esi
push edi
movzx edi, byte [eax + 2]
lea ecx, [edi + 1]
mov dword [0x5fb784], ecx
lea ecx, [edx*4]
mov esi, eax
sub esi, ecx
add esi, 4
mov dword [esp + 0x10], edi
mov dword [0x5fb780], edx
mov dword [0x5fb788], esi
movzx esi, byte [eax]
mov ecx, 0x5fb78c
test esi, esi
je 0x41a7bd
lea esp, [esp]
movzx ebp, byte [eax + esi*4 + 3]
lea eax, [eax + esi*4]
mov ebx, ebp
sub ebx, esi
sub ebx, edx
lea edx, [ebx + edi + 2]
mov dword [ecx], edx
mov dword [ecx + 4], ebp
lea edx, [ebp*4]
mov esi, eax
sub esi, edx
mov dword [ecx + 8], esi
movzx edi, byte [eax + 2]
movzx edx, byte [eax + 1]
mov dword [ecx + 0xc], edx
lea esi, [edi + 1]
mov dword [ecx + 0x10], esi
lea esi, [edx*4]
mov ebx, eax
sub ebx, esi
add ebx, 4
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x10], edi
movzx esi, byte [eax]
add ecx, 0x18
test esi, esi
jne 0x41a760
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x30]
mov dword [ecx + 4], 0x40
mov dword [ecx], 0x40
mov eax, dword [ebp]
mov cl, al
mov byte [0x16a4141], cl
mov edx, dword [ebp + 4]
lea ecx, [edx - 1]
mov esi, 0xf
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov byte [0x16a4142], cl
mov byte [0x16a4143], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], 0x5fb780
lea edi, [esi - 0xb]
cmp edx, 0x40
je 0x41a816
lea ecx, [edx - 1]
mov dword [esp + 0x24], ecx
jmp 0x41a81e
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x20], 0x5fb784
mov dword [esp + 0x18], ebp
lea ebx, [ebx]
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x20]
cmp eax, dword [ecx]
jl 0x41a856
mov ecx, dword [esp + 0x14]
add ecx, 0xc
mov dword [esp + 0x14], ecx
add ecx, 4
mov dword [esp + 0x20], ecx
cmp eax, dword [ecx]
jge 0x41a840
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx]
jl 0x41a86c
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx + eax*4]
mov dword [edi + 0x16a4140], ecx
jmp 0x41a892
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x4c]
push ecx
call dword [0x4fb730]
mov edx, dword [esp + 0x28]
mov dword [edi + 0x16a4140], eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
inc eax
add edi, 4
mov dword [esp + 0x10], eax
cmp eax, edx
jge 0x41a9fd
mov ecx, dword [esp + 0x34]
cmp eax, dword [ecx]
jl 0x41a8be
lea ebx, [ebx]
add ecx, 4
xor esi, 1
cmp eax, dword [ecx]
jge 0x41a8b0
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x38]
cmp eax, dword [ecx]
jl 0x41a8d4
add ecx, 4
xor esi, 2
cmp eax, dword [ecx]
jge 0x41a8c6
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x3c]
cmp eax, dword [ecx]
jl 0x41a8ee
lea esp, [esp]
add ecx, 4
xor esi, 4
cmp eax, dword [ecx]
jge 0x41a8e0
mov dword [esp + 0x3c], ecx
cmp eax, dword [ebx]
jl 0x41a8fc
add ebx, 4
xor esi, 8
cmp eax, dword [ebx]
jge 0x41a8f2
test esi, esi
jne 0x41a838
cmp eax, dword [esp + 0x24]
je 0x41a838
cmp dword [esp + 0x28], esi
jne 0x41a92a
mov ecx, dword [esp + 0x30]
dec al
mov byte [ecx + 0x16a4142], al
mov dword [esp + 0x28], 1
jmp 0x41a959
mov ebp, dword [esp + 0x30]
mov ecx, edi
sub ecx, dword [esp + 0x30]
mov dword [esp + 0x30], edi
sar ecx, 2
mov byte [ebp + 0x16a4140], cl
lea ecx, [eax - 1]
mov byte [edi + 0x16a4141], al
mov byte [edi + 0x16a4142], cl
mov byte [edi + 0x16a4143], al
add edi, 4
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov eax, dword [eax]
mov ecx, dword [ecx]
cmp eax, ecx
jge 0x41a98b
mov ebp, dword [esp + 0x3c]
cmp eax, dword [ebp]
jge 0x41a98b
cmp eax, dword [ebx]
jge 0x41a98b
cmp eax, edx
jl 0x41a97f
lea eax, [edx - 1]
jmp 0x41a9db
add dword [esp + 0x34], 4
mov esi, 1
jmp 0x41a9db
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
cmp ecx, eax
jge 0x41a9ae
cmp ecx, dword [ebx]
jge 0x41a9ae
cmp ecx, edx
jl 0x41a9a2
lea eax, [edx - 1]
jmp 0x41a9db
add dword [esp + 0x38], 4
mov esi, 2
jmp 0x41a9d9
mov ecx, dword [ebx]
cmp eax, ecx
jge 0x41a9c8
cmp eax, edx
jl 0x41a9bd
lea eax, [edx - 1]
jmp 0x41a9db
mov esi, 4
add dword [esp + 0x3c], esi
jmp 0x41a9db
cmp ecx, edx
jl 0x41a9d1
lea eax, [edx - 1]
jmp 0x41a9db
add ebx, 4
mov esi, 8
mov eax, ecx
mov dword [esp + 0x10], eax
cmp eax, 0x3f
jne 0x41a838
mov eax, dword [esp + 0x30]
mov byte [eax + 0x16a4140], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp edx, 0x40
jge 0x41aa50
mov ebp, dword [esp + 0x30]
add dword [esp + 0x18], 8
mov ecx, edi
sub ecx, ebp
sar ecx, 2
mov byte [ebp + 0x16a4140], cl
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp]
mov cl, al
mov byte [edi + 0x16a4141], cl
mov byte [edi + 0x16a4143], dl
mov ecx, dword [ebp + 4]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x1c]
dec cl
mov dword [esp + 0x30], edi
mov byte [edi + 0x16a4142], cl
mov dword [esp + 0x10], eax
add edi, 4
jmp 0x41a830
mov edx, dword [esp + 0x30]
mov eax, edi
pop edi
pop esi
pop ebp
mov byte [edx + 0x16a4140], 0
pop ebx
add esp, 0x1c
ret