Function at 0x415de0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
push edi
mov eax, dword [esi]
dec eax
cmp eax, 3
ja case.default.0x415dfb
jmp dword [eax*4 + 0x416268]
mov ebx, dword [esp + 0x24]
lea eax, [esi + 0x3c]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x38]
lea ecx, [eax + ebx]
mov dword [esp + 0x10], ecx
mov dword [edi], ecx
cmp ecx, 0x10
jae 0x415e48
push ebx
push dword [esp + 0x24]
add eax, 0x28
add eax, esi
push eax
call fcn.005620e0
add dword [esi + 0x38], ebx
add esp, 0xc
mov dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ebx, dword [esp + 0x20]
cmp ebx, ebp
je case.default.0x415dfb
mov edi, 0x10
sub edi, eax
add eax, 0x28
push edi
add eax, esi
push ebx
push eax
call fcn.005620e0
mov eax, dword [esi + 0x28]
add edi, ebx
mov ebx, dword [esp + 0x1c]
mov dword [ebp], eax
add ebx, 0xfffffff0
mov eax, dword [esi + 0x2c]
mov dword [ebp + 4], eax
mov eax, dword [esi + 0x30]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x34]
mov dword [ebp + 0xc], eax
lea eax, [esi + 0x3c]
push ebp
push eax
mov dword [esp + 0x24], ebx
call fcn.00416280
add esp, 0x14
cmp ebx, 0x10
jb 0x415ee9
lea ebx, [ebp + 0x18]
mov ebp, dword [esp + 0x10]
mov esi, ebp
shr esi, 4
nop dword [eax + eax]
mov eax, dword [edi]
lea ecx, [ebx - 8]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov dword [ebx - 4], eax
mov eax, dword [edi + 8]
push ecx
push dword [esp + 0x18]
mov dword [ebx], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 4], eax
call fcn.00416280
add esp, 8
lea ebx, [ebx + 0x10]
add edi, 0x10
sub ebp, 0x10
sub esi, 1
jne 0x415eb0
mov esi, dword [esp + 0x1c]
jmp 0x415eeb
mov ebp, ebx
push ebp
lea eax, [esi + 0x28]
push edi
push eax
call fcn.005620e0
mov eax, dword [esp + 0x38]
add esp, 0xc
mov dword [esi + 0x38], ebp
sub dword [eax], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x24]
lea eax, [esi + 0x3c]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x38]
lea ecx, [eax + edi]
mov dword [esp + 0x10], ecx
mov dword [ebx], ecx
cmp ecx, 0x10
jae 0x415f52
push edi
push dword [esp + 0x24]
add eax, 0x28
add eax, esi
push eax
call fcn.005620e0
add dword [esi + 0x38], edi
add esp, 0xc
mov dword [ebx], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ebx, dword [esp + 0x20]
cmp ebx, ebp
je case.default.0x415dfb
mov edi, 0x10
sub edi, eax
add eax, 0x28
push edi
add eax, esi
push ebx
push eax
call fcn.005620e0
mov eax, dword [esi + 0x28]
add ebx, edi
xor eax, dword [esi + 0x18]
mov dword [ebp], eax
mov eax, dword [esi + 0x2c]
xor eax, dword [esi + 0x1c]
mov dword [ebp + 4], eax
mov eax, dword [esi + 0x30]
xor eax, dword [esi + 0x20]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x34]
xor eax, dword [esi + 0x24]
mov dword [ebp + 0xc], eax
lea eax, [esi + 0x3c]
push ebp
push eax
call fcn.00416280
lea edi, [ebp + 0x10]
add esp, 0x14
mov ebp, dword [esp + 0x10]
add ebp, 0xfffffff0
cmp ebp, 0x10
jb 0x416001
mov esi, ebp
shr esi, 4
nop dword [eax]
mov eax, dword [edi - 0x10]
xor eax, dword [ebx]
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]
push edi
push dword [esp + 0x18]
mov dword [edi + 0xc], eax
call fcn.00416280
add esp, 8
add ebx, 0x10
add edi, 0x10
sub ebp, 0x10
sub esi, 1
jne 0x415fc0
mov esi, dword [esp + 0x1c]
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]
push ebp
mov dword [esi + 0x24], eax
lea eax, [esi + 0x28]
push ebx
push eax
call fcn.005620e0
mov eax, dword [esp + 0x38]
add esp, 0xc
mov dword [esi + 0x38], ebp
sub dword [eax], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi + 0x38]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
lea ecx, [eax + ebx]
mov dword [esp + 0x1c], ecx
mov dword [edi], ecx
cmp ecx, 0x10
jae 0x416079
push ebx
push dword [esp + 0x24]
add eax, 0x28
add eax, esi
push eax
call fcn.005620e0
add dword [esi + 0x38], ebx
add esp, 0xc
mov dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ebx, dword [esp + 0x20]
cmp ebx, ebp
je case.default.0x415dfb
mov edi, 0x10
sub edi, eax
add eax, 0x28
push edi
add eax, esi
push ebx
push eax
call fcn.005620e0
lea eax, [esi + 0x18]
add edi, ebx
mov ebx, dword [esp + 0x28]
push eax
lea eax, [esi + 0x3c]
add ebx, 0xfffffff0
push eax
mov dword [esp + 0x30], ebx
call fcn.00416280
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x18]
xor eax, dword [ecx]
add esp, 0x14
mov dword [ebp], eax
mov eax, dword [esi + 0x2c]
xor eax, dword [esi + 0x1c]
mov dword [ebp + 4], eax
mov eax, dword [esi + 0x30]
xor eax, dword [esi + 0x20]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x34]
xor eax, dword [esi + 0x24]
mov dword [ebp + 0xc], eax
cmp ebx, 0x10
jb 0x416135
lea ebx, [ebp + 0x18]
mov ebp, dword [esp + 0x1c]
mov eax, ebp
shr eax, 4
mov dword [esp + 0x1c], eax
push ecx
lea eax, [esi + 0x3c]
push eax
call fcn.00416280
mov eax, dword [edi]
lea ecx, [esi + 0x18]
xor eax, dword [ecx]
lea ebx, [ebx + 0x10]
mov dword [ebx - 0x18], eax
add esp, 8
mov eax, dword [edi + 4]
sub ebp, 0x10
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]
sub dword [esp + 0x1c], 1
mov dword [ebx - 0xc], eax
jne 0x4160f1
jmp 0x416137
mov ebp, ebx
push ebp
lea eax, [esi + 0x28]
push edi
push eax
call fcn.005620e0
mov eax, dword [esi + 0x38]
add esp, 0xc
and eax, 0xf0000000
add eax, ebp
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x2c]
pop edi
pop esi
sub dword [eax], ebp
xor eax, eax
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi + 0x38]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
lea ecx, [eax + ebx]
mov dword [esp + 0x1c], ecx
mov dword [edi], ecx
cmp ecx, 0x10
jb 0x416053
mov ebx, dword [esp + 0x20]
cmp ebx, ebp
je case.default.0x415dfb
mov edi, 0x10
sub edi, eax
add eax, 0x28
push edi
add eax, esi
push ebx
push eax
call fcn.005620e0
lea eax, [esi + 0x18]
add edi, ebx
mov ebx, dword [esp + 0x28]
push eax
lea eax, [esi + 0x3c]
add ebx, 0xfffffff0
push eax
mov dword [esp + 0x30], ebx
call fcn.00416280
mov eax, dword [esi + 0x28]
lea edx, [esi + 0x18]
xor dword [edx], eax
add esp, 0x14
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 [ebp], ecx
mov eax, dword [esi + 0x1c]
mov dword [ebp + 4], eax
mov eax, dword [esi + 0x20]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x24]
mov dword [ebp + 0xc], eax
cmp ebx, 0x10
jb 0x416135
lea ebx, [ebp + 0x18]
mov ebp, dword [esp + 0x1c]
mov eax, ebp
shr eax, 4
mov dword [esp + 0x1c], eax
push edx
lea eax, [esi + 0x3c]
push eax
call fcn.00416280
mov eax, dword [edi]
lea edx, [esi + 0x18]
xor dword [edx], eax
lea ebx, [ebx + 0x10]
mov eax, dword [edi + 4]
add esp, 8
mov ecx, dword [edx]
sub ebp, 0x10
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
sub dword [esp + 0x1c], 1
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
jne 0x416206
jmp 0x416137
pop edi
pop esi
pop ebp
mov eax, 0x1001
pop ebx
add esp, 8
ret