Function at 0x1003fa60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
mov edi, dword [ebp + 0x18]
xor ecx, 2
or ecx, edx
jne 0x1003fb38
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov ebx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
xor esi, 0x6e657261
xor ebx, 0x70736575
mov dword [esp + 0x30], ebx
mov ebx, edx
xor edx, 0x6c796765
xor ebx, 0x736f6d65
mov dword [esp + 0x34], ebx
mov ebx, ecx
mov dword [esp + 0x38], esi
mov esi, eax
xor ecx, 0x79746573
xor eax, 0x74656462
mov dword [esp + 0x3c], edx
xor ebx, 0x6e646f6d
xor esi, 0x646f7261
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
cmp byte [edi], 1
jne 0x1003fb84
lea esi, [esp + 0x20]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 1
mov ecx, esi
push 4
call fcn.10017fe0
add esp, 4
mov edx, dword [edi + 4]
mov ecx, esi
push dword [edi + 8]
jmp 0x1003fbb0
cmp byte [edi], 1
jne 0x1003fd71
mov esi, dword [edi + 8]
test esi, esi
je 0x1003fd82
mov edi, dword [edi + 4]
mov ebx, 0xad2aca77
mov eax, 0x47985764
nop dword [eax]
movzx ecx, byte [edi]
mov edx, 0x1b3
imul ebx, ebx, 0x1b3
inc edi
xor ecx, eax
mov eax, ecx
shl ecx, 8
mul edx
add ecx, edx
add ebx, ecx
dec esi
jne 0x1003fb60
jmp 0x1003fd86
lea esi, [esp + 0x20]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov ecx, esi
push 4
call fcn.10017fe0
add esp, 4
movzx eax, byte [edi + 1]
lea edx, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x10], eax
push 4
call fcn.10017fe0
add esp, 4
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
shl edx, 0x18
xor esi, edi
mov dword [esp + 0x18], edi
mov edi, eax
or edx, dword [esp + 0x54]
mov dword [esp + 0x1c], edx
xor ecx, edx
mov edx, dword [esp + 0x30]
add edx, eax
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x44]
adc ebx, edx
shld edi, edx, 0xd
shld edx, eax, 0xd
mov eax, dword [esp + 0x38]
mov dword [esp + 4], ebx
xor edx, ebx
mov ebx, dword [esp + 0xc]
xor edi, ebx
add eax, esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
adc eax, ecx
mov dword [esp + 0x14], eax
mov eax, esi
shrd esi, ecx, 0x10
shld eax, ecx, 0x10
xor esi, dword [esp + 0x14]
xor eax, dword [esp + 8]
add dword [esp + 4], eax
mov ecx, eax
adc ebx, esi
shld ecx, esi, 0x15
shrd eax, esi, 0xb
mov esi, edi
xor eax, ebx
xor ecx, dword [esp + 4]
add dword [esp + 8], edi
adc dword [esp + 0x14], edx
shld esi, edx, 0x11
shrd edi, edx, 0xf
mov edx, ebx
mov ebx, dword [esp + 0x18]
xor esi, dword [esp + 8]
xor edx, dword [esp + 0x1c]
xor dword [esp + 4], ebx
mov ebx, dword [esp + 0x14]
xor edi, ebx
xor ebx, 0xff
add dword [esp + 4], esi
adc edx, edi
mov dword [esp + 0xc], edx
mov edx, esi
shrd esi, edi, 0x13
shld edx, edi, 0xd
xor esi, dword [esp + 0xc]
mov edi, ecx
xor edx, dword [esp + 4]
add ebx, ecx
adc dword [esp + 8], eax
shld edi, eax, 0x10
shrd ecx, eax, 0x10
xor edi, ebx
xor ecx, dword [esp + 8]
add dword [esp + 0xc], edi
mov eax, edi
adc dword [esp + 4], ecx
shld eax, ecx, 0x15
shrd edi, ecx, 0xb
mov ecx, edx
xor edi, dword [esp + 4]
xor eax, dword [esp + 0xc]
add ebx, edx
adc dword [esp + 8], esi
shld ecx, esi, 0x11
shrd edx, esi, 0xf
xor ecx, ebx
xor edx, dword [esp + 8]
add dword [esp + 0xc], ecx
mov esi, ecx
adc dword [esp + 4], edx
shld esi, edx, 0xd
shrd ecx, edx, 0x13
mov edx, eax
xor ecx, dword [esp + 4]
xor esi, dword [esp + 0xc]
add dword [esp + 8], eax
adc ebx, edi
shld edx, edi, 0x10
shrd eax, edi, 0x10
xor edx, dword [esp + 8]
xor eax, ebx
add dword [esp + 4], edx
mov edi, edx
adc dword [esp + 0xc], eax
shld edi, eax, 0x15
shrd edx, eax, 0xb
mov eax, esi
xor edx, dword [esp + 0xc]
xor edi, dword [esp + 4]
add dword [esp + 8], esi
adc ebx, ecx
shld eax, ecx, 0x11
shrd esi, ecx, 0xf
xor eax, dword [esp + 8]
xor esi, ebx
add dword [esp + 4], eax
mov ecx, eax
adc dword [esp + 0xc], esi
shld ecx, esi, 0xd
shrd eax, esi, 0x13
mov esi, dword [esp + 8]
xor ecx, dword [esp + 4]
xor eax, dword [esp + 0xc]
add ebx, edi
adc esi, edx
shrd edi, edx, 0x10
xor edi, esi
shr edi, 0xb
add ebx, ecx
adc esi, eax
shr eax, 0xf
xor eax, edi
xor eax, esi
xor eax, ebx
jmp 0x1003fd86
movzx eax, byte [edi + 1]
xor eax, 0x13f5
imul eax, eax, 0xffffbc91
jmp 0x1003fd86
mov ax, 0x5764
and eax, 0x7fff
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret