Function at 0x401717
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x434098]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [eax], 0
mov eax, dword [0x43d178]
mov ebx, ecx
push edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
cmp eax, 3
ja case.default.0x401658
jmp dword [eax*4 + 0x40189c]
sub esi, ebx
mov edi, 0x10
lea edx, [esi + ebx]
mov ecx, ebx
call fcn.00402ec0
add ebx, 0x10
dec edi
jne 0x401666
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword [eax], 0x100
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041026c
mov esp, ebp
pop ebp
ret
mov eax, dword [0x43d170]
sub eax, esi
mov dword [ebp - 0x2c], eax
mov eax, esi
lea ecx, [ebp - 0x14]
xor edi, edi
sub eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
mov ebx, edi
shl ebx, 4
add eax, ebx
lea edx, [ebp - 0x14]
mov ecx, eax
mov dword [ebp - 0x28], eax
call fcn.00402ec0
xor eax, eax
test edi, edi
jne 0x4016de
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x14]
add edx, eax
add esi, edx
mov cl, byte [esi + ecx]
xor cl, byte [edx]
mov byte [esi], cl
mov esi, dword [ebp - 0x20]
jmp 0x4016ef
mov ecx, dword [ebp - 0x28]
mov dl, byte [ecx + eax - 0x10]
xor dl, byte [ebp + eax - 0x14]
lea ecx, [ebx + esi]
mov byte [ecx + eax], dl
inc eax
cmp eax, 0x10
jb 0x4016c1
inc edi
cmp edi, 0x10
jb 0x4016a8
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword [eax], 0x100
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041026c
mov esp, ebp
pop ebp
ret
xor esi, esi
lea esp, [esp]
lea eax, [ebp - 0x14]
mov edx, 0x10
push eax
test esi, esi
jne 0x401735
mov ecx, dword [0x43d170]
jmp 0x40173f
mov ecx, esi
shl ecx, 4
add ecx, 0xfffffff0
add ecx, ebx
call fcn.004018b0
add esp, 4
test eax, eax
jne 0x40188a
mov edi, dword [ebp - 0x20]
mov eax, esi
add eax, eax
mov dword [ebp - 0x18], ebx
xor ecx, ecx
sub dword [ebp - 0x18], edi
lea edx, [edi + eax*8]
lea edi, [ebx + eax*8]
mov ebx, dword [ebp - 0x18]
jmp 0x401770
movzx eax, byte [ebx + edx]
xor al, byte [ebp + ecx - 0x14]
add ecx, 4
mov byte [edx], al
movzx eax, byte [edi + ecx - 3]
xor al, byte [ebp + ecx - 0x17]
lea edx, [edx + 4]
mov byte [edx - 3], al
movzx eax, byte [edi + ecx - 2]
xor al, byte [ebp + ecx - 0x16]
mov byte [edx - 2], al
movzx eax, byte [edi + ecx - 1]
xor al, byte [ebp + ecx - 0x15]
mov byte [edx - 1], al
cmp ecx, 0x10
jb 0x401770
mov ebx, dword [ebp - 0x24]
inc esi
cmp esi, 0x10
jb 0x401720
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword [eax], 0x100
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041026c
mov esp, ebp
pop ebp
ret
xor edi, edi
jmp 0x4017e0
mov ecx, dword [0x43d170]
lea eax, [ebp - 0x14]
mov edx, 0x10
push eax
test edi, edi
je 0x4017f5
mov ecx, eax
call fcn.004018b0
add esp, 4
test eax, eax
jne 0x40188a
mov eax, edi
add eax, eax
mov dword [ebp - 0x18], ebx
xor ecx, ecx
sub dword [ebp - 0x18], esi
lea edx, [esi + eax*8]
lea esi, [ebx + eax*8]
mov ebx, dword [ebp - 0x18]
lea ebx, [ebx]
movzx eax, byte [ebx + edx]
xor al, byte [ebp + ecx - 0x14]
add ecx, 4
mov byte [edx], al
movzx eax, byte [esi + ecx - 3]
xor al, byte [ebp + ecx - 0x17]
lea edx, [edx + 4]
mov byte [edx - 3], al
movzx eax, byte [esi + ecx - 2]
xor al, byte [ebp + ecx - 0x16]
mov byte [edx - 2], al
movzx eax, byte [esi + ecx - 1]
xor al, byte [ebp + ecx - 0x15]
mov byte [edx - 1], al
cmp ecx, 0x10
jb 0x401820
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
inc edi
cmp edi, 0x10
jb 0x4017e0
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword [eax], 0x100
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041026c
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.0041026c
mov esp, ebp
pop ebp
ret