Function at 0x60f848
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov ebx, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x60fbb6
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 1
mov eax, ebx
call fcn.0060e6d0
test al, al
jne 0x60f8c9
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x30]
mov eax, dword [ebx]
call fcn.00405730
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0x11
lea edx, [ebp - 0x2c]
xor ecx, ecx
mov eax, 0x60fbd4
call fcn.00418808
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov ecx, 0
call fcn.00408040
mov edx, dword [ebp - 0x20]
mov eax, 3
call fcn.0060e670
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x10]
movzx eax, byte [ebx + 0x14]
cmp eax, 7
ja case.default.0x60f8df
jmp dword [eax*4 + 0x60f8e6]
cmp esi, dword [ebp - 0x14]
je 0x60f92a
mov edx, esi
mov eax, dword [ebp - 0x14]
mov ecx, edi
call fcn.00404518
jmp 0x60f92a
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebx + 0x24]
add esi, eax
sub edi, dword [ebx + 0x24]
cmp edi, dword [ebx + 0x24]
jge 0x60f919
test edi, edi
jle case.default.0x60f8df
mov edx, dword [ebx + 0x2c]
mov eax, esi
mov ecx, edi
call fcn.00404518
mov edx, dword [ebx + 0x2c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, esi
mov eax, dword [ebx + 0x2c]
mov ecx, edi
call fcn.00404518
jmp case.default.0x60f8df
cmp esi, dword [ebp - 0x14]
je 0x60f96f
mov edx, esi
mov eax, dword [ebp - 0x14]
mov ecx, edi
call fcn.00404518
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x1c], eax
jmp 0x60f9bf
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebx + 0x24]
mov edx, dword [ebp - 0x18]
mov eax, esi
call fcn.00609d7c
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x30]
push esi
mov ecx, dword [ebx + 0x24]
mov edx, dword [ebp - 0x18]
mov eax, esi
call fcn.00609d7c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x24]
add esi, eax
sub edi, dword [ebx + 0x24]
cmp edi, dword [ebx + 0x24]
jge 0x60f97d
mov eax, dword [ebx + 0x34]
cmp eax, dword [ebp - 0x18]
je 0x60f9d9
mov edx, eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x24]
call fcn.00404518
test edi, edi
jle case.default.0x60f8df
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x24]
call fcn.00404518
mov edx, dword [ebx + 0x2c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push esi
mov ecx, edi
mov edx, esi
mov eax, dword [ebx + 0x2c]
call fcn.00609d7c
mov eax, dword [ebx + 0x34]
push eax
mov ecx, dword [ebx + 0x24]
mov edx, eax
mov eax, dword [ebx + 0x2c]
call fcn.00609d7c
jmp case.default.0x60f8df
cmp esi, dword [ebp - 0x14]
je 0x60fa2d
mov edx, esi
mov eax, dword [ebp - 0x14]
mov ecx, edi
call fcn.00404518
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x1c], eax
jmp 0x60fa79
mov edx, dword [ebp - 0x1c]
mov eax, esi
mov ecx, dword [ebx + 0x24]
call fcn.00404518
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x30]
push esi
mov ecx, dword [ebx + 0x24]
mov edx, esi
mov eax, dword [ebp - 0x18]
call fcn.00609d7c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x24]
add esi, eax
sub edi, dword [ebx + 0x24]
cmp edi, dword [ebx + 0x24]
jge 0x60fa3b
mov eax, dword [ebx + 0x34]
cmp eax, dword [ebp - 0x18]
je 0x60fa93
mov edx, eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x24]
call fcn.00404518
test edi, edi
jle case.default.0x60f8df
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x24]
call fcn.00404518
mov edx, dword [ebx + 0x2c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push esi
mov ecx, edi
mov edx, dword [ebx + 0x2c]
mov eax, esi
call fcn.00609d7c
mov eax, dword [ebx + 0x34]
push eax
mov ecx, dword [ebx + 0x24]
mov edx, eax
mov eax, dword [ebx + 0x2c]
call fcn.00609d7c
jmp case.default.0x60f8df
test edi, edi
jle case.default.0x60f8df
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x24]
call fcn.00404518
mov edx, dword [ebx + 0x2c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov ecx, dword [ebx + 0x24]
dec ecx
mov edx, dword [ebx + 0x34]
mov eax, dword [ebx + 0x34]
inc eax
call fcn.00404518
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x24]
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ecx]
mov byte [eax + edx - 1], cl
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
mov edx, dword [ebx + 0x2c]
xor al, byte [edx]
mov byte [esi], al
inc esi
inc dword [ebp - 0x14]
dec edi
test edi, edi
jg 0x60fade
jmp case.default.0x60f8df
test edi, edi
jle case.default.0x60f8df
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x24]
call fcn.00404518
mov edx, dword [ebx + 0x2c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
mov edx, dword [ebx + 0x2c]
xor al, byte [edx]
mov byte [esi], al
mov ecx, dword [ebx + 0x24]
dec ecx
mov edx, dword [ebx + 0x34]
mov eax, dword [ebx + 0x34]
inc eax
call fcn.00404518
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x2c]
movzx ecx, byte [ecx]
mov byte [eax + edx - 1], cl
inc esi
inc dword [ebp - 0x14]
dec edi
test edi, edi
jg 0x60fb32
jmp case.default.0x60f8df
push edi
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0060f3a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60fbbd
lea eax, [ebp - 0x30]
call fcn.00407ddc
lea eax, [ebp - 0x24]
call fcn.00407ddc
lea eax, [ebp - 0x20]
call fcn.00406c1c
ret