Function at 0x60f1c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
test eax, eax
mov dword [esp + 0x34], eax
jne 0x60f2da
mov edx, dword [esp + 0x80]
test edx, edx
je 0x60f588
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x10]
mov byte [edi + 4], 6
mov dword [edi + 8], 0x40
mov dword [esp], 0x100
call dword [eax]
test eax, eax
mov dword [edi], eax
je 0x60f57d
lea edi, [eax + 4]
mov dword [eax], 0
mov dword [eax + 0xfc], 0
and edi, 0xfffffffc
sub eax, edi
lea ecx, [eax + 0x100]
mov eax, dword [esp + 0x34]
shr ecx, 2
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
mov esi, dword [eax + 0x1f0]
movzx eax, byte [edx]
test al, al
je 0x60f264
imul esi, esi, 0xf4243
add edx, 1
xor esi, eax
movzx eax, byte [edx]
test al, al
jne 0x60f252
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 8]
mov edi, dword [edi]
mov dword [esp + 0x30], eax
sub eax, 1
and esi, eax
shl esi, 2
add edi, esi
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x80]
mov eax, dword [ebx + 0x10]
mov dword [esp], ecx
call dword [eax]
mov dword [edi], eax
mov eax, dword [ebx]
mov edi, ebx
mov eax, dword [eax + esi]
test eax, eax
je 0x60f588
mov ebx, dword [esp + 0x80]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ebx
call sub.msvcrt.dll_memset
add esi, dword [edi]
mov ebx, dword [esp + 0x18]
mov eax, dword [esi]
mov dword [eax], ebx
add dword [edi + 0xc], 1
mov ebp, dword [esi]
lea esi, [esi]
add esp, 0x6c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + 0x1f0]
mov ebx, eax
mov dword [esp + 0x50], eax
movzx eax, byte [ecx]
test al, al
je 0x60f316
movzx edx, al
nop
lea esi, [esi]
imul ebx, ebx, 0xf4243
add ecx, 1
xor ebx, edx
movzx edx, byte [ecx]
test dl, dl
jne 0x60f300
mov dword [esp + 0x50], ebx
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
xor ecx, ecx
lea edx, [edi - 1]
mov edi, dword [esp + 0x50]
mov esi, dword [esi]
mov ebx, edi
mov dword [esp + 0x30], esi
mov esi, edx
and ebx, edx
not edx
shr esi, 2
and edx, edi
mov dword [esp + 0x20], esi
mov edi, eax
mov esi, ebx
mov dword [esp + 0x38], edx
mov ebx, ecx
nop
lea esi, [esi]
mov ecx, dword [esp + 0x30]
lea eax, [esi*4]
lea edx, [ecx + eax]
mov ebp, dword [edx]
test ebp, ebp
je 0x60f3c4
mov edx, dword [ebp]
mov eax, edi
cmp al, byte [edx]
jne 0x60f395
test al, al
je 0x60f2d0
mov ecx, dword [esp + 0x18]
jmp 0x60f388
test al, al
je 0x60f2d0
add ecx, 1
add edx, 1
movzx eax, byte [ecx]
cmp al, byte [edx]
je 0x60f380
test bl, bl
jne 0x60f3b1
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x38]
movzx ecx, byte [eax + 4]
sub ecx, 1
shr ebx, cl
and bl, byte [esp + 0x20]
or ebx, 1
movzx eax, bl
cmp esi, eax
jae 0x60f3c0
add esi, dword [esp + 0x34]
sub esi, eax
jmp 0x60f350
sub esi, eax
jmp 0x60f350
mov esi, eax
mov eax, dword [esp + 0x80]
mov edi, edx
test eax, eax
je 0x60f588
mov ebx, dword [esp + 0x1c]
movzx eax, byte [ebx + 4]
mov ebx, dword [ebx + 0xc]
mov edx, ebx
mov dword [esp + 0x30], ebx
lea ecx, [eax - 1]
shr edx, cl
test edx, edx
je 0x60f27b
lea ecx, [eax + 1]
mov eax, 1
shl eax, cl
mov byte [esp + 0x5b], cl
lea edi, [eax - 1]
mov dword [esp + 0x30], eax
lea ebx, [eax*4]
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x10]
mov dword [esp], ebx
call dword [eax]
test eax, eax
mov ebp, eax
je 0x60f588
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
test eax, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
je 0x60f59f
mov ebx, dword [esp + 0x34]
mov edi, ebx
not ebx
mov dword [esp + 0x38], ebx
movzx ebx, byte [esp + 0x5b]
shr edi, 2
mov dword [esp + 0x40], edi
xor edi, edi
mov dword [esp + 0x5c], ebx
sub ebx, 1
mov dword [esp + 0x54], ebx
lea esi, [esi]
mov ebx, dword [eax + edi*4]
test ebx, ebx
je 0x60f500
mov eax, dword [esp + 0x3c]
mov edx, dword [ebx]
mov ecx, dword [eax + 0x1f0]
movzx eax, byte [edx]
test al, al
je 0x60f4b2
lea esi, [esi]
imul ecx, ecx, 0xf4243
add edx, 1
xor ecx, eax
movzx eax, byte [edx]
test al, al
jne 0x60f4a0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
and edx, ecx
and eax, ecx
movzx ecx, byte [esp + 0x54]
shr eax, cl
and al, byte [esp + 0x40]
xor ecx, ecx
or eax, 1
nop
lea esi, [ebp + edx*4]
cmp dword [esi], 0
je 0x60f4f8
test cl, cl
cmove ecx, eax
movzx esi, cl
cmp edx, esi
jae 0x60f594
add edx, dword [esp + 0x30]
sub edx, esi
lea esi, [ebp + edx*4]
cmp dword [esi], 0
jne 0x60f4d9
mov eax, dword [esp + 0x1c]
mov dword [esi], ebx
mov eax, dword [eax]
add edi, 1
cmp edi, dword [esp + 0x20]
jne 0x60f480
mov edi, dword [esp + 0x1c]
mov edx, dword [edi + 0x10]
mov dword [esp], eax
call dword [edx + 8]
movzx eax, byte [esp + 0x5b]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x5c]
mov dword [edi], ebp
mov byte [edi + 4], al
mov eax, dword [esp + 0x30]
sub ecx, 1
mov dword [edi + 8], eax
mov eax, edx
and edx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
shr edx, cl
and eax, edi
shr edi, 2
mov ecx, edx
mov edx, edi
and edx, ecx
mov ecx, edx
xor edx, edx
or ecx, 1
lea esi, [eax*4]
lea edi, [ebp + esi]
mov ebx, dword [edi]
test ebx, ebx
je 0x60f27b
test dl, dl
cmove edx, ecx
movzx ebx, dl
cmp eax, ebx
jae 0x60f59b
add eax, dword [esp + 0x30]
sub eax, ebx
jmp 0x60f554
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], 0
add esp, 0x6c
xor ebp, ebp
pop ebx
mov eax, ebp
pop esi
pop edi
pop ebp
ret
sub edx, esi
jmp 0x60f4d0
sub eax, ebx
jmp 0x60f554
mov edi, dword [esp + 0x34]
not edi
mov dword [esp + 0x38], edi
movzx edi, byte [esp + 0x5b]
mov dword [esp + 0x5c], edi
jmp 0x60f50d