Function at 0x412bc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], esi
mov eax, dword [esi]
dec eax
cmp eax, 3
ja case.default.0x412bdc
jmp dword [eax*4 + 0x413010]
mov edx, dword [esi + 0x38]
lea eax, [esi + 0x3c]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
lea ecx, [edx + eax]
mov dword [ebp - 4], ecx
mov dword [edi], ecx
cmp ecx, 0x10
jae 0x412c24
push eax
lea eax, [esi + 0x28]
add eax, edx
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [esi + 0x38], eax
xor eax, eax
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, dword [ebp + 0xc]
je case.default.0x412bdc
mov edi, 0x10
lea eax, [esi + 0x28]
sub edi, edx
add eax, edx
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov eax, dword [esi + 0x28]
add edi, ebx
mov ebx, dword [ebp - 4]
mov edx, ecx
add ebx, 0xfffffff0
mov dword [ecx], eax
mov eax, dword [esi + 0x2c]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x30]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x34]
mov dword [ecx + 0xc], eax
lea ecx, [esi + 0x3c]
call fcn.00411d90
mov eax, dword [ebp + 0xc]
add eax, 0x10
cmp ebx, 0x10
jb 0x412cb7
sub eax, edi
mov esi, ebx
mov dword [ebp - 4], eax
shr esi, 4
mov ecx, dword [ebp - 0xc]
lea edx, [eax + edi]
mov eax, dword [edi]
mov dword [edx], eax
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov eax, dword [edi + 8]
mov dword [edx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [edx + 0xc], eax
call fcn.00411d90
mov eax, dword [ebp - 4]
add edi, 0x10
sub ebx, 0x10
sub esi, 1
jne 0x412c85
mov esi, dword [ebp - 8]
push ebx
lea eax, [esi + 0x28]
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
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 ecx, dword [esi + 0x38]
lea eax, [esi + 0x3c]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
lea edx, [ecx + edi]
mov dword [ebp - 0xc], edx
mov dword [eax], edx
cmp edx, 0x10
jae 0x412d17
push edi
lea eax, [esi + 0x28]
add eax, ecx
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add dword [esi + 0x38], edi
add esp, 0xc
mov eax, dword [ebp + 0x10]
pop edi
pop esi
mov dword [eax], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, dword [ebp + 0xc]
je case.default.0x412bdc
mov edi, 0x10
lea eax, [esi + 0x28]
sub edi, ecx
add eax, ecx
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0xc]
lea ecx, [esi + 0x3c]
add eax, 0xfffffff0
add ebx, edi
mov edi, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 4], eax
mov edx, edi
mov eax, dword [esi + 0x18]
xor eax, dword [esi + 0x28]
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.00411d90
add edi, 0x10
cmp dword [ebp - 4], 0x10
jb 0x412dc7
mov esi, dword [ebp - 4]
mov eax, esi
shr eax, 4
mov dword [ebp - 4], eax
mov eax, dword [edi - 0x10]
mov edx, edi
xor eax, dword [ebx]
mov ecx, dword [ebp - 0x10]
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.00411d90
add ebx, 0x10
add edi, 0x10
sub esi, 0x10
sub dword [ebp - 4], 1
jne 0x412d86
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 sub.VCRUNTIME140.dll_memcpy
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 ecx, dword [esi + 0x38]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
lea edx, [ecx + eax]
mov dword [ebp - 0x10], edx
mov dword [edi], edx
cmp edx, 0x10
jae 0x412e3c
push eax
lea eax, [esi + 0x28]
add eax, ecx
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [esi + 0x38], eax
xor eax, eax
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, dword [ebp + 0xc]
je case.default.0x412bdc
mov edi, 0x10
lea eax, [esi + 0x28]
sub edi, ecx
add eax, ecx
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea edx, [esi + 0x18]
add edi, ebx
lea ecx, [esi + 0x3c]
mov ebx, dword [ebp - 0x10]
add ebx, 0xfffffff0
call fcn.00411d90
mov edx, dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov eax, dword [ecx]
xor eax, dword [esi + 0x28]
mov dword [edx], eax
mov eax, dword [esi + 0x2c]
xor eax, dword [esi + 0x1c]
mov dword [edx + 4], eax
mov eax, dword [esi + 0x30]
xor eax, dword [esi + 0x20]
mov dword [edx + 8], eax
mov eax, dword [esi + 0x34]
xor eax, dword [esi + 0x24]
mov dword [edx + 0xc], eax
lea eax, [edx + 0x10]
cmp ebx, 0x10
jb 0x412ef1
sub eax, edi
mov dword [ebp - 0x10], eax
mov eax, ebx
shr eax, 4
mov dword [ebp - 8], eax
nop dword [eax]
mov edx, ecx
lea ecx, [esi + 0x3c]
call fcn.00411d90
mov eax, dword [edi]
lea ecx, [esi + 0x18]
xor eax, dword [ecx]
sub ebx, 0x10
mov edx, dword [ebp - 0x10]
mov dword [edx + edi], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x1c]
mov dword [edx + edi + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x20]
mov dword [edx + edi + 8], eax
mov eax, dword [edi + 0xc]
xor eax, dword [esi + 0x24]
mov dword [edx + edi + 0xc], eax
add edi, 0x10
sub dword [ebp - 8], 1
jne 0x412eb0
push ebx
lea eax, [esi + 0x28]
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi + 0x38]
add esp, 0xc
and eax, 0xf0000000
add eax, ebx
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0x10]
pop edi
pop esi
sub dword [eax], ebx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x38]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
lea edx, [ecx + eax]
mov dword [ebp - 0x10], edx
mov dword [edi], edx
cmp edx, 0x10
jb 0x412e17
cmp ebx, dword [ebp + 0xc]
je case.default.0x412bdc
mov edi, 0x10
lea eax, [esi + 0x28]
sub edi, ecx
add eax, ecx
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea edx, [esi + 0x18]
add edi, ebx
lea ecx, [esi + 0x3c]
mov ebx, dword [ebp - 0x10]
add ebx, 0xfffffff0
call fcn.00411d90
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x18]
xor dword [ecx], eax
mov eax, dword [esi + 0x2c]
xor dword [esi + 0x1c], eax
mov eax, dword [esi + 0x30]
xor dword [esi + 0x20], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0x34]
xor dword [esi + 0x24], eax
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [esi + 0x1c]
mov dword [edx + 4], eax
mov eax, dword [esi + 0x20]
mov dword [edx + 8], eax
mov eax, dword [esi + 0x24]
mov dword [edx + 0xc], eax
lea eax, [edx + 0x10]
cmp ebx, 0x10
jb 0x412ef1
sub eax, edi
mov dword [ebp - 0x10], eax
mov eax, ebx
shr eax, 4
mov dword [ebp - 8], eax
mov edx, ecx
lea ecx, [esi + 0x3c]
call fcn.00411d90
mov eax, dword [edi]
lea ecx, [esi + 0x18]
xor dword [ecx], eax
sub ebx, 0x10
mov eax, dword [edi + 4]
xor dword [esi + 0x1c], eax
mov eax, dword [edi + 8]
xor dword [esi + 0x20], eax
mov eax, dword [edi + 0xc]
xor dword [esi + 0x24], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov dword [edx + edi], eax
mov eax, dword [esi + 0x1c]
mov dword [edx + edi + 4], eax
mov eax, dword [esi + 0x20]
mov dword [edx + edi + 8], eax
mov eax, dword [esi + 0x24]
mov dword [edx + edi + 0xc], eax
add edi, 0x10
sub dword [ebp - 8], 1
jne 0x412fb3
jmp 0x412ef1
pop edi
pop esi
mov eax, 0x1001
pop ebx
mov esp, ebp
pop ebp
ret