Function at 0x4168f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x445664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ebx, edx
mov esi, eax
shr esi, 4
mov dword [ebp - 0x1c], ecx
mov edx, esi
shl edx, 4
mov ecx, eax
sub ecx, edx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x24], ecx
mov dword [ebx], 0
test eax, eax
je case.default.0x41694b
mov eax, dword [0x448364]
cmp eax, 3
ja case.default.0x41694b
jmp dword [eax*4 + 0x416e2c]
xor ebx, ebx
test esi, esi
je 0x41698f
mov eax, dword [ebp - 0x1c]
sub eax, edi
mov esi, edi
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
add edx, esi
push edx
mov edx, 0x10
mov ecx, esi
call fcn.004166b0
add esp, 4
test eax, eax
jne 0x416e18
add dword [ebp - 0x18], 0x10
inc ebx
add esi, 0x10
cmp ebx, dword [ebp - 0x20]
jb 0x416962
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4169b7
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
lea edx, [eax + ecx]
push edx
mov edx, dword [ebp - 0x24]
lea ecx, [eax + edi]
call fcn.004166b0
add esp, 4
test eax, eax
jne 0x416e18
add dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041900b
mov esp, ebp
pop ebp
ret
xor ebx, ebx
test esi, esi
je 0x416abf
mov eax, dword [0x44836c]
sub eax, edi
mov dword [ebp - 0x28], eax
mov eax, edi
lea edx, [ebp - 0x14]
sub eax, edx
mov dword [ebp - 0x34], eax
xor eax, eax
test ebx, ebx
jne 0x416a3f
mov edx, dword [ebp - 0x34]
lea ecx, [ebp + eax - 0x14]
lea esi, [ecx + edx]
mov edx, dword [ebp - 0x28]
mov dl, byte [esi + edx]
xor dl, byte [esi]
mov byte [ecx], dl
mov edx, dword [0x44836c]
mov dl, byte [edx + eax + 1]
xor dl, byte [eax + edi + 1]
mov byte [ecx + 1], dl
mov edx, dword [0x44836c]
mov dl, byte [edx + eax + 2]
xor dl, byte [eax + edi + 2]
mov byte [ecx + 2], dl
mov edx, dword [0x44836c]
mov dl, byte [edx + eax + 3]
xor dl, byte [eax + edi + 3]
mov byte [ecx + 3], dl
jmp 0x416a7b
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
shl ecx, 4
add edx, ecx
lea esi, [ecx + edi]
mov cl, byte [edx + eax - 0x10]
xor cl, byte [esi + eax]
mov byte [ebp + eax - 0x14], cl
mov cl, byte [edx + eax - 0xf]
xor cl, byte [esi + eax + 1]
mov byte [ebp + eax - 0x13], cl
mov cl, byte [edx + eax - 0xe]
xor cl, byte [esi + eax + 2]
mov byte [ebp + eax - 0x12], cl
mov cl, byte [edx + eax - 0xd]
xor cl, byte [esi + eax + 3]
mov byte [ebp + eax - 0x11], cl
add eax, 4
cmp eax, 0x10
jb 0x4169f2
mov edx, ebx
shl edx, 4
add edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push edx
mov edx, 0x10
call fcn.004166b0
add esp, 4
test eax, eax
jne 0x416e18
add dword [ebp - 0x18], 0x10
inc ebx
cmp ebx, dword [ebp - 0x20]
jb 0x4169f0
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
test ecx, ecx
je 0x416b82
xor eax, eax
test ecx, ecx
je 0x416b1c
mov ecx, dword [0x44836c]
sub ecx, edi
mov dword [ebp - 0x28], ecx
mov ebx, edi
lea ecx, [ebp - 0x14]
sub ebx, ecx
mov dword [ebp - 0x34], ebx
jmp 0x416ae7
mov ebx, dword [ebp - 0x34]
test esi, esi
jne 0x416b01
lea ecx, [ebp + eax - 0x14]
lea esi, [ecx + ebx]
mov ebx, dword [ebp - 0x28]
mov bl, byte [esi + ebx]
xor bl, byte [esi]
mov esi, dword [ebp - 0x20]
mov byte [ecx], bl
jmp 0x416b14
mov ecx, dword [ebp - 0x1c]
add ecx, edx
mov cl, byte [ecx + eax - 0x10]
lea ebx, [edx + eax]
xor cl, byte [ebx + edi]
mov byte [ebp + eax - 0x14], cl
mov ecx, dword [ebp - 0x24]
inc eax
cmp eax, ecx
jb 0x416ae4
mov eax, ecx
cmp ecx, 0x10
jae 0x416b5f
mov edi, dword [0x44836c]
lea ecx, [ebp - 0x14]
sub edi, ecx
mov cl, byte [0x44835d]
jmp 0x416b39
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x416b4a
lea esi, [ebp + eax - 0x14]
mov bl, byte [esi + edi]
xor bl, cl
mov byte [esi], bl
jmp 0x416b59
mov esi, dword [ebp - 0x1c]
add esi, edx
mov bl, byte [esi + eax - 0x10]
xor bl, cl
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, 0x10
jb 0x416b36
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push edx
mov edx, 0x10
call fcn.004166b0
add esp, 4
test eax, eax
jne 0x416e18
add dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
pop edi
pop esi
mov dword [edx], ecx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041900b
mov esp, ebp
pop ebp
ret
xor ebx, ebx
test esi, esi
jbe 0x416c3b
test ebx, ebx
jne 0x416bb7
mov ecx, dword [0x44836c]
lea eax, [ebp - 0x14]
push eax
jmp 0x416bc6
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
mov edx, ebx
add edx, edx
push ecx
lea ecx, [eax + edx*8 - 0x10]
mov edx, 0x10
call fcn.004166b0
add esp, 4
test eax, eax
jne 0x416e18
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp + 8]
mov edx, ebx
add edx, edx
lea ecx, [esi + edx*8]
sub edi, esi
mov esi, dword [ebp + 8]
lea esi, [esi + edx*8 + 2]
movzx edx, byte [edi + ecx]
xor dl, byte [ebp + eax - 0x14]
add eax, 4
mov byte [ecx], dl
movzx edx, byte [esi + eax - 5]
xor dl, byte [ebp + eax - 0x17]
add ecx, 4
mov byte [ecx - 3], dl
movzx edx, byte [esi + eax - 4]
xor dl, byte [ebp + eax - 0x16]
mov byte [ecx - 2], dl
movzx edx, byte [esi + eax - 3]
xor dl, byte [ebp + eax - 0x15]
mov byte [ecx - 1], dl
cmp eax, 0x10
jb 0x416bf1
add dword [ebp - 0x18], 0x10
inc ebx
cmp ebx, dword [ebp - 0x20]
jb 0x416ba7
mov edi, dword [ebp + 8]
cmp dword [ebp - 0x24], 0
je 0x416cc7
test ebx, ebx
jne 0x416c55
mov ecx, dword [0x44836c]
lea eax, [ebp - 0x14]
push eax
jmp 0x416c64
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
mov edx, ebx
add edx, edx
push ecx
lea ecx, [eax + edx*8 - 0x10]
mov edx, 0x10
call fcn.004166b0
add esp, 4
test eax, eax
jne 0x416e18
mov ecx, dword [ebp - 0x24]
xor esi, esi
test ecx, ecx
je 0x416c9f
mov edx, dword [ebp - 0x1c]
mov eax, ebx
shl eax, 4
add eax, edx
sub edi, edx
mov edi, edi
mov dl, byte [eax + edi]
xor dl, byte [ebp + esi - 0x14]
inc esi
mov byte [eax], dl
inc eax
cmp esi, ecx
jb 0x416c90
mov eax, ecx
cmp ecx, 0x10
jae 0x416cc3
mov ecx, dword [ebp - 0x1c]
add ebx, ebx
lea esi, [ecx + ebx*8]
mov cl, byte [0x44835d]
mov dl, byte [ebp + eax - 0x14]
xor dl, cl
mov byte [esi + eax], dl
inc eax
cmp eax, 0x10
jb 0x416cb4
add dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041900b
mov esp, ebp
pop ebp
ret
xor ebx, ebx
test esi, esi
jbe 0x416d7b
lea esp, [esp]
test ebx, ebx
jne 0x416d00
mov ecx, dword [0x44836c]
lea edx, [ebp - 0x14]
push edx
jmp 0x416d06
lea eax, [ebp - 0x14]
push eax
mov ecx, eax
mov edx, 0x10
call fcn.004166b0
add esp, 4
test eax, eax
jne 0x416e18
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov edx, ebx
shl edx, 4
mov edi, esi
add ecx, edx
sub edi, dword [ebp - 0x1c]
lea esi, [edx + esi + 2]
movzx edx, byte [ecx + edi]
xor dl, byte [ebp + eax - 0x14]
add eax, 4
mov byte [ecx], dl
movzx edx, byte [esi + eax - 5]
xor dl, byte [ebp + eax - 0x17]
add ecx, 4
mov byte [ecx - 3], dl
movzx edx, byte [esi + eax - 4]
xor dl, byte [ebp + eax - 0x16]
mov byte [ecx - 2], dl
movzx edx, byte [esi + eax - 3]
xor dl, byte [ebp + eax - 0x15]
mov byte [ecx - 1], dl
cmp eax, 0x10
jb 0x416d31
add dword [ebp - 0x18], 0x10
inc ebx
cmp ebx, dword [ebp - 0x20]
jb 0x416cf0
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x416df8
mov edx, 0x10
test ebx, ebx
jne 0x416d9b
mov ecx, dword [0x44836c]
lea eax, [ebp - 0x14]
push eax
jmp 0x416d9f
lea ecx, [ebp - 0x14]
push ecx
call fcn.004166b0
add esp, 4
test eax, eax
jne 0x416e18
xor ecx, ecx
test esi, esi
je 0x416dd0
mov edx, dword [ebp - 0x1c]
mov eax, ebx
shl eax, 4
add eax, edx
sub edi, edx
mov dl, byte [eax + edi]
xor dl, byte [ebp + ecx - 0x14]
inc ecx
mov byte [eax], dl
inc eax
cmp ecx, esi
jb 0x416dc1
mov eax, esi
cmp esi, 0x10
jae 0x416df4
mov ecx, dword [ebp - 0x1c]
add ebx, ebx
lea esi, [ecx + ebx*8]
mov cl, byte [0x44835d]
mov dl, byte [ebp + eax - 0x14]
xor dl, cl
mov byte [esi + eax], dl
inc eax
cmp eax, 0x10
jb 0x416de5
add dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
pop edi
pop esi
mov dword [eax], ecx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041900b
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041900b
mov esp, ebp
pop ebp
ret