Function at 0x40f6d9
Capabilities:
Encode data using xor

Disassembly:
push 0x70
mov eax, 0x4adc34
call fcn.0048f48f
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x58], esi
call fcn.00411527
xor ebx, ebx
inc ebx
test al, al
jne 0x40f717
push 3
mov edi, ebx
mov eax, ebx
pop edx
dec edx
lea ecx, [eax + edi]
lea edi, [eax]
mov eax, ecx
jns 0x40f704
mov edi, dword [ebp - 0x50]
mov dword [0x507340], ecx
push 0
lea ecx, [ebp - 0x78]
call fcn.0042f326
and dword [ebp - 4], 0
push str.success
lea ecx, [ebp - 0x68]
call fcn.0042f2f7
lea eax, [ebp - 0x68]
push eax
push 0x4c0c00
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], bl
call fcn.0042f5f2
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.0042f451
push str.path
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0042f676
sub esp, 0x18
mov ecx, eax
push esp
call fcn.0042fc5e
lea eax, [ebp - 0x50]
push eax
call fcn.00437fc7
add esp, 0x1c
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 3
call fcn.00423c92
mov dl, al
xor eax, eax
pop ecx
movzx ecx, al
test dl, dl
cmovne ecx, ebx
mov byte [ebp - 0x54], cl
push dword [ebp - 0x54]
lea ecx, [ebp - 0x68]
call fcn.0042f3a9
push str.exist
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 4
call fcn.0042f5f2
lea ecx, [ebp - 0x68]
push ecx
mov ecx, eax
call fcn.0042f4ab
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.0042f451
mov ecx, dword [0x507340]
push 0xb
lea eax, [ecx + 1]
imul eax, ecx
pop edi
cdq
idiv edi
push 8
pop edi
cmp edx, 3
jne 0x40f817
xor esi, esi
mov edx, esi
mov dword [ebp - 0x54], edi
mov eax, edx
and eax, ebx
dec eax
not eax
and eax, ecx
sar edx, 1
xor edx, eax
dec dword [ebp - 0x54]
jne 0x40f7f1
add ecx, edx
inc esi
mov dword [0x507340], ecx
cmp esi, 0x100
jl 0x40f7ec
mov esi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x50]
lea ecx, [ecx - 0x10]
call fcn.00407864
and dword [ebp - 4], 0
jmp 0x40f8a3
lea ecx, [ebp - 0x4c]
call fcn.00430a82
push 0x505ab0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 9
call fcn.00408fd9
push 0xa
pop eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00432bf9
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xb
jb 0x40f8de
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401027
lea eax, [ebp - 0x54]
push eax
call fcn.00437fc7
add esp, 0x1c
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xc
call fcn.00402394
mov ecx, dword [ebp - 0x54]
lea ecx, [ecx - 0x10]
call fcn.00407864
push 0xa
pop eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], al
call fcn.00401056
mov word [esi], di
mov esi, dword [ebp - 0x50]
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ecx, eax
test ecx, ecx
jne 0x40f936
call fcn.00409bd9
mov eax, dword [ebp - 0x58]
push 0xa
mov dword [eax + 8], ecx
mov ecx, dword [0x507340]
lea eax, [ecx + 1]
imul eax, ecx
cdq
pop ecx
idiv ecx
cmp edx, 3
jne 0x40f96a
mov eax, ebx
mov edx, 0xbb
dec edx
lea ecx, [eax + ebx]
lea ebx, [eax]
mov eax, ecx
jns 0x40f95a
mov dword [0x507340], ecx
lea ecx, [esi - 0x10]
call fcn.00407864
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.004090f2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.0042f451
call fcn.0048f3e1
ret