Function at 0x417760
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x18]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x417780
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x417769
add eax, 0xffffffff
cmp eax, 0x2f
je 0x41778e
mov eax, 0x14
add esp, 0x14
ret
push 0x2f
push 0x48e660
mov eax, dword [esp + 0x20]
push eax
call fcn.0041c41c
mov edx, 0x48e6c0
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
push 0x28
push 0x48e6c0
push 0x48e660
call fcn.0041c154
mov edx, 0x48e720
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
push 0x28
push 0x48e720
push 0x19
push 0x48e6c0
call fcn.0041c028
add esp, 0x28
mov dword [0x48e780], 0x64
mov dword [esp + 0xc], ebx
xor edx, edx
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 8], ebp
mov eax, 0x48e51d
mov ebx, eax
mov ebp, edx
push 0x48e538
call fcn.0041c2c4
mov esi, 0x48e51c
xor ecx, ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
mov byte [esi + 0x18], cl
push 0x19
push 0x48e51c
push 0x48e720
push 0x48e538
call fcn.0041c398
push 0x18
push ebx
call fcn.0041bf04
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x2c]
push 1
push 0x48e548
push 4
push ecx
call fcn.0041be78
add esp, 0x2c
movzx ecx, byte [0x48e548]
movzx esi, byte [0x48e51c]
cmp ecx, esi
je 0x4178fd
add ebp, 1
cmp ebp, 0x64
jbe 0x41786e
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 4]
mov edi, dword [esp]
mov ebp, dword [esp + 8]
mov eax, 0x14
add esp, 0x14
ret
mov edi, 0x48e54c
mov esi, 0x48e51c
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov ecx, dword [esi + 0xc]
mov dword [edi + 0xc], ecx
mov ecx, dword [esi + 0x10]
mov dword [edi + 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [edi + 0x14], ecx
movzx ecx, byte [esi + 0x18]
mov byte [edi + 0x18], cl
push 0x15
push 0x48e520
mov esi, 0x48e550
push esi
call fcn.00410320
add esp, 0xc
mov ecx, 0x48e4c0
call fcn.004138b4
push 0x30
mov ecx, dword [esp + 0x20]
push dword [ecx + 0x10]
push 0x48e4c0
call fcn.00413798
push 0x48e4c0
push 0x48e580
call fcn.00412f90
push 2
push 0x48e548
push 0x10
push 0x48e580
call fcn.0041be78
add esp, 0x24
mov edi, 0x48e548
mov ecx, 2
xor eax, eax
test ecx, ecx
je 0x4179a8
mov al, byte [esi]
sub al, byte [edi]
jne 0x4179a8
add esi, 1
add edi, 1
sub ecx, 1
jne 0x417997
seta al
setb cl
sub al, cl
movsx eax, al
test eax, eax
jne 0x4178dd
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 4]
mov edi, dword [esp]
mov ebp, dword [esp + 8]
mov edx, 0x48e51c
mov eax, 0x48e54c
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov ecx, dword [eax + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
movzx eax, byte [eax + 0x18]
mov byte [edx + 0x18], al
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax]
mov edx, 0x48e7d4
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x10]
add edx, 0x10
xor eax, eax
movzx ecx, byte [edx]
xor byte [eax + 0x48e7d4], cl
add edx, 1
add eax, 1
cmp eax, 0x10
jb 0x417a2b
xor eax, eax
add edx, 1
movzx ecx, byte [edx - 1]
xor byte [eax + 0x48e7d4], cl
add eax, 1
cmp eax, 0x10
jb 0x417a41
push 0x13
push 0x48e552
push 0x48e522
push 0x48e7d4
call fcn.0041c398
add esp, 0x10
mov ecx, dword [esp + 0x20]
mov eax, 0x48e54c
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x20]
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + 0x10]
mov dword [ecx + 0x10], edx
mov edx, dword [eax + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0x14], edx
mov edx, dword [esp + 0x20]
movzx eax, byte [eax + 0x18]
mov byte [edx + 0x18], al
mov eax, 1
add esp, 0x14
ret