Function at 0x419d30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
push edi
mov dword [ebp - 8], esi
mov eax, dword [esi]
dec eax
cmp eax, 3
ja case.default.0x419d4d
jmp dword [eax*4 + 0x41a190]
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x3c]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x38]
lea ecx, [eax + ebx]
mov dword [ebp - 0xc], ecx
mov dword [edi], ecx
cmp ecx, 0x10
jae 0x419d92
push ebx
add eax, 0x28
push edx
add eax, esi
push eax
call fcn.004202f0
add dword [esi + 0x38], ebx
add esp, 0xc
mov dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
cmp edx, ebx
je case.default.0x419d4d
mov edi, 0x10
sub edi, eax
add eax, 0x28
push edi
push edx
add eax, esi
push eax
call fcn.004202f0
mov eax, dword [ebp - 0xc]
lea ecx, [esi + 0x3c]
add edi, dword [ebp - 4]
add eax, 0xfffffff0
mov dword [ebp - 4], eax
add esp, 0xc
mov eax, dword [esi + 0x28]
mov edx, ebx
mov dword [ebx], eax
mov eax, dword [esi + 0x2c]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x30]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0xc], eax
call fcn.0041b490
cmp dword [ebp - 4], 0x10
jb 0x419e2a
mov esi, dword [ebp - 4]
add ebx, 0x18
mov eax, esi
shr eax, 4
mov dword [ebp - 4], eax
mov eax, dword [edi]
lea edx, [ebx - 8]
mov ecx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [edi + 4]
mov dword [ebx - 4], eax
mov eax, dword [edi + 8]
mov dword [ebx], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 4], eax
call fcn.0041b490
add edi, 0x10
lea ebx, [ebx + 0x10]
sub esi, 0x10
sub dword [ebp - 4], 1
jne 0x419df5
mov dword [ebp - 4], esi
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
lea eax, [esi + 0x28]
push ebx
push edi
push eax
call fcn.004202f0
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi + 0x38], ebx
sub dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x3c]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x38]
lea ecx, [eax + ebx]
mov dword [ebp - 0x10], ecx
mov dword [edi], ecx
cmp ecx, 0x10
jae 0x419e8a
push ebx
add eax, 0x28
push edx
add eax, esi
push eax
call fcn.004202f0
add dword [esi + 0x38], ebx
add esp, 0xc
mov dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edx, dword [ebp + 0xc]
je case.default.0x419d4d
mov edi, 0x10
sub edi, eax
add eax, 0x28
push edi
push edx
add eax, esi
push eax
call fcn.004202f0
mov ebx, dword [ebp - 4]
lea ecx, [esi + 0x3c]
mov eax, dword [ebp - 0x10]
add ebx, edi
mov edi, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], eax
add esp, 0xc
mov eax, dword [esi + 0x28]
mov edx, edi
xor eax, dword [esi + 0x18]
mov dword [edi], eax
mov eax, dword [esi + 0x2c]
xor eax, dword [esi + 0x1c]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x30]
xor eax, dword [esi + 0x20]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x34]
xor eax, dword [esi + 0x24]
mov dword [edi + 0xc], eax
call fcn.0041b490
add edi, 0x10
cmp dword [ebp - 4], 0x10
jb 0x419f41
mov esi, dword [ebp - 4]
mov eax, esi
shr eax, 4
mov dword [ebp - 4], eax
nop dword [eax]
mov eax, dword [edi - 0x10]
mov edx, edi
xor eax, dword [ebx]
mov ecx, dword [ebp - 0xc]
mov dword [edi], eax
mov eax, dword [ebx + 4]
xor eax, dword [edi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
xor eax, dword [edi - 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
xor eax, dword [edi - 4]
mov dword [edi + 0xc], eax
call fcn.0041b490
add ebx, 0x10
add edi, 0x10
sub esi, 0x10
sub dword [ebp - 4], 1
jne 0x419f00
mov dword [ebp - 4], esi
mov esi, dword [ebp - 8]
mov eax, dword [edi - 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [edi - 0xc]
mov dword [esi + 0x1c], eax
mov eax, dword [edi - 8]
mov dword [esi + 0x20], eax
mov eax, dword [edi - 4]
mov edi, dword [ebp - 4]
push edi
mov dword [esi + 0x24], eax
lea eax, [esi + 0x28]
push ebx
push eax
call fcn.004202f0
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi + 0x38], edi
sub dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x38]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
lea ecx, [eax + ebx]
mov dword [ebp - 0x10], ecx
mov dword [edi], ecx
cmp ecx, 0x10
jae 0x419fb3
push ebx
add eax, 0x28
push edx
add eax, esi
push eax
call fcn.004202f0
add dword [esi + 0x38], ebx
add esp, 0xc
mov dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
cmp edx, ebx
je case.default.0x419d4d
mov edi, 0x10
sub edi, eax
add eax, 0x28
push edi
push edx
add eax, esi
push eax
call fcn.004202f0
mov ecx, dword [ebp - 0x10]
lea edx, [esi + 0x18]
add edi, dword [ebp - 4]
add ecx, 0xfffffff0
add esp, 0xc
mov dword [ebp - 4], ecx
lea ecx, [esi + 0x3c]
call fcn.0041b490
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x18]
xor eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [esi + 0x2c]
xor eax, dword [esi + 0x1c]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x30]
xor eax, dword [esi + 0x20]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x34]
xor eax, dword [esi + 0x24]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0x10
jb 0x41a066
add ebx, 0x18
shr eax, 4
mov dword [ebp - 8], eax
mov edx, ecx
lea ecx, [esi + 0x3c]
call fcn.0041b490
mov eax, dword [edi]
lea ecx, [esi + 0x18]
xor eax, dword [ecx]
lea ebx, [ebx + 0x10]
mov dword [ebx - 0x18], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x1c]
mov dword [ebx - 0x14], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x20]
mov dword [ebx - 0x10], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x24]
mov dword [ebx - 0xc], eax
mov eax, dword [ebp - 4]
sub eax, 0x10
sub dword [ebp - 8], 1
mov dword [ebp - 4], eax
jne 0x41a022
push eax
lea eax, [esi + 0x28]
push edi
push eax
call fcn.004202f0
mov eax, dword [esi + 0x38]
add esp, 0xc
mov ecx, dword [ebp - 4]
and eax, 0xf0000000
add eax, ecx
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
sub dword [eax], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x38]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
lea ecx, [eax + ebx]
mov dword [ebp - 0x10], ecx
mov dword [edi], ecx
cmp ecx, 0x10
jb 0x419f91
mov ebx, dword [ebp + 0xc]
cmp edx, ebx
je case.default.0x419d4d
mov edi, 0x10
sub edi, eax
add eax, 0x28
push edi
push edx
add eax, esi
push eax
call fcn.004202f0
mov ecx, dword [ebp - 0x10]
lea edx, [esi + 0x18]
add edi, dword [ebp - 4]
add ecx, 0xfffffff0
add esp, 0xc
mov dword [ebp - 4], ecx
lea ecx, [esi + 0x3c]
call fcn.0041b490
mov eax, dword [esi + 0x28]
lea edx, [esi + 0x18]
xor dword [edx], eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [edx]
xor dword [esi + 0x1c], eax
mov eax, dword [esi + 0x30]
xor dword [esi + 0x20], eax
mov eax, dword [esi + 0x34]
xor dword [esi + 0x24], eax
mov dword [ebx], ecx
mov eax, dword [esi + 0x1c]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x20]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x24]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0x10
jb 0x41a066
add ebx, 0x18
shr eax, 4
mov dword [ebp - 8], eax
nop word [eax + eax]
lea ecx, [esi + 0x3c]
call fcn.0041b490
mov eax, dword [edi]
lea edx, [esi + 0x18]
xor dword [edx], eax
lea ebx, [ebx + 0x10]
mov eax, dword [edi + 4]
mov ecx, dword [edx]
xor dword [esi + 0x1c], eax
mov eax, dword [edi + 8]
xor dword [esi + 0x20], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor dword [esi + 0x24], eax
mov dword [ebx - 0x18], ecx
mov eax, dword [esi + 0x1c]
mov dword [ebx - 0x14], eax
mov eax, dword [esi + 0x20]
mov dword [ebx - 0x10], eax
mov eax, dword [esi + 0x24]
mov dword [ebx - 0xc], eax
mov eax, dword [ebp - 4]
sub eax, 0x10
sub dword [ebp - 8], 1
mov dword [ebp - 4], eax
jne 0x41a130
jmp 0x41a066
pop edi
pop esi
mov eax, 0x1001
pop ebx
mov esp, ebp
pop ebp
ret