Function at 0x41b280
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x320
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
mov esi, dword [eax + 0x110]
mov eax, dword [eax + 0x114]
shl eax, 3
push edi
mov ebp, dword [esp + 0x334]
lea edi, [eax - 1]
lea edx, [esp + 0x130]
imul edi, dword [esp + 0x338]
shl esi, 3
add edi, ebp
mov dword [esp + 0x20], ecx
test eax, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], edx
jle 0x41b3a9
inc edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
test esi, esi
jle 0x41b383
lea ecx, [edx + 0x100]
mov eax, edi
mov edi, ecx
mov dword [esp + 0x1c], esi
sub edi, edx
sub ecx, edx
mov dword [esp + 0x24], ecx
lea ebx, [edi - 0x200]
xor ecx, ecx
mov cl, byte [eax - 1]
add eax, 3
mov esi, ecx
xor ecx, ecx
mov cl, byte [eax - 3]
mov edi, ecx
xor ecx, ecx
mov cl, byte [eax - 2]
mov ebp, ecx
mov ecx, dword [esi*4 + 0x493478]
add ecx, dword [edi*4 + 0x493078]
add ecx, dword [ebp*4 + 0x492c78]
sar ecx, 0x10
mov byte [ebx + edx], cl
mov ecx, dword [esi*4 + 0x494078]
add ecx, dword [edi*4 + 0x493c78]
add ecx, dword [ebp*4 + 0x493878]
sar ecx, 0x10
mov byte [edx], cl
mov ecx, dword [esi*4 + 0x494878]
mov esi, dword [edi*4 + 0x494478]
add ecx, esi
mov esi, dword [ebp*4 + 0x494078]
add ecx, esi
mov esi, dword [esp + 0x24]
sar ecx, 0x10
mov byte [esi + edx], cl
mov ecx, dword [esp + 0x1c]
inc edx
dec ecx
mov dword [esp + 0x1c], ecx
jne 0x41b2fb
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x338]
mov eax, dword [esp + 0x10]
sub edi, ebp
add edx, esi
dec eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
jne 0x41b2d7
mov esi, dword [ecx + 4]
mov dword [esp + 0x28], 0
mov eax, dword [esi + 0x24]
test eax, eax
jle 0x41b563
lea edx, [esp + 0x30]
lea eax, [ecx + 0x14]
mov dword [esp + 0x18], edx
lea edx, [ecx + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edx
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov edi, dword [edi]
cmp edi, 4
ja case.default.0x41b3e8
jmp dword [edi*4 + 0x41b570]
mov eax, dword [esi + 0x114]
mov dword [esp + 0x14], 0
test eax, eax
jle case.default.0x41b3e8
mov eax, dword [esi + 0x110]
xor ebp, ebp
test eax, eax
jle 0x41b452
imul eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, 8
lea eax, [ebp + eax*8]
lea eax, [esi + eax*8]
mov esi, 8
mov bl, byte [eax]
mov byte [edx], bl
inc edx
inc eax
dec esi
jne 0x41b42b
mov esi, dword [ecx + 4]
dec edi
mov esi, dword [esi + 0x110]
lea eax, [eax + esi*8 - 8]
jne 0x41b426
mov eax, dword [ecx + 4]
inc ebp
mov eax, dword [eax + 0x110]
cmp ebp, eax
jl 0x41b411
mov esi, dword [ecx + 4]
mov eax, dword [esp + 0x14]
inc eax
mov edi, dword [esi + 0x114]
mov dword [esp + 0x14], eax
cmp eax, edi
jl 0x41b405
jmp case.default.0x41b3e8
xor esi, esi
mov dword [esp + 0x10], 8
mov edi, 8
xor ecx, ecx
xor ebx, ebx
mov cl, byte [eax + 8]
mov bl, byte [eax]
mov ebp, esi
xor esi, 1
add ebp, ecx
add ebx, ebp
sar ebx, 1
mov byte [edx], bl
inc edx
inc eax
dec edi
jne 0x41b47c
mov ecx, dword [esp + 0x10]
add eax, 8
dec ecx
mov dword [esp + 0x10], ecx
jne 0x41b477
jmp 0x41b521
xor esi, esi
mov edi, 0x40
xor ecx, ecx
xor ebx, ebx
mov cl, byte [eax + 1]
mov bl, byte [eax]
mov ebp, esi
xor esi, 1
add ebp, ecx
add eax, 2
add ebx, ebp
sar ebx, 1
mov byte [edx], bl
inc edx
dec edi
jne 0x41b4ae
jmp 0x41b521
mov esi, 1
mov dword [esp + 0x10], 8
mov edi, 8
xor ecx, ecx
xor ebx, ebx
mov cl, byte [eax + 0x11]
mov bl, byte [eax + 0x10]
add ecx, ebx
xor ebx, ebx
mov bl, byte [eax + 1]
mov dword [esp + 0x14], edx
add ebx, esi
xor edx, edx
mov dl, byte [eax]
add ebx, ecx
add edx, ebx
xor esi, 3
sar edx, 2
mov ecx, edx
mov edx, dword [esp + 0x14]
add eax, 2
mov byte [edx], cl
inc edx
dec edi
jne 0x41b4df
mov ecx, dword [esp + 0x10]
add eax, 0x10
dec ecx
mov dword [esp + 0x10], ecx
jne 0x41b4da
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov esi, dword [ecx + 4]
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x18]
mov edi, dword [esi + 0x24]
add edx, 4
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x24]
inc eax
add ebp, 0x100
add edx, 0x100
cmp eax, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], edx
jl 0x41b3d5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x320
ret 8