Function at 0xb65e88
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xbcf77e
call fcn.00bccc28
sub esp, 0x13c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebx + 4], edi
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebx + 8], 0xbf1258
mov byte [ebx + 0xc], 1
mov dword [ebx + 0x24], 0xf
mov dword [ebx + 0x20], eax
mov byte [ebx + 0x10], al
mov byte [ebp - 4], 1
or dword [ebx + 0x34], 0xffffffff
push ecx
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], esp
lea esi, [ebx + 0x38]
mov dword [ebx], 0xbf124c
mov dword [ebx + 8], 0xbf1250
mov dword [ebx + 0x30], eax
mov dword [ebp + 0x10], esp
call fcn.00b4dcc8
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x9c]
push eax
push 5
push edi
mov edi, dword [0xbd6388]
mov dword [ebp - 0x24], 0x20
call edi
test eax, eax
je 0xb65f49
mov eax, dword [ebp - 0x24]
and dword [ebp + 0x10], 0
mov byte [ebp + eax - 0x9c], 0
push 0xa
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00ba90a7
lea ecx, [ebp - 0x9c]
add esp, 0xc
cmp dword [ebp + 0x10], ecx
je 0xb65f49
mov dword [ebx + 0x34], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov esi, 0x200
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00b4bd19
mov esi, dword [ebp - 0x18]
sub esi, dword [ebp - 0x1c]
push 0
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x1c]
mov dword [ebp + 0x10], esi
push 0x16
push dword [ebp + 0xc]
call edi
mov dword [ebp - 0x20], eax
test eax, eax
jne 0xb65fc4
call dword [0xbd60a8]
cmp eax, 0x7a
jne 0xb65fba
add esi, esi
lea eax, [ebp - 0x1c]
call fcn.00b4bd19
mov esi, dword [ebp - 0x18]
sub esi, dword [ebp - 0x1c]
push 0
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x1c]
mov dword [ebp + 0x10], esi
push 0x16
push dword [ebp + 0xc]
call edi
mov dword [ebp - 0x20], eax
test eax, eax
je 0xb65f85
cmp dword [ebp - 0x20], 0
je 0xb661c3
push 3
lea eax, [ebp - 0x148]
push eax
call fcn.00b4b6b1
mov byte [ebp - 4], 4
push dword [ebp - 0x1c]
lea eax, [ebp - 0x138]
push eax
call fcn.00b4ec80
and dword [ebp - 0x30], 0
pop ecx
pop ecx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 5
jmp 0xb66162
mov eax, dword [ebp - 0x30]
dec eax
push eax
push 0
lea eax, [ebp - 0x40]
push eax
lea esi, [ebp - 0x60]
call fcn.00b665a2
mov esi, eax
lea edi, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00b44c28
push 0
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.00b44c93
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0xb66072
cmp dword [ebp - 0x2c], 0x10
mov esi, dword [ebp - 0x40]
mov eax, esi
jae 0xb66044
mov eax, edi
cmp dword [ebp - 0x2c], 0x10
lea edi, [eax + ecx]
jae 0xb6606e
lea esi, [ebp - 0x40]
jmp 0xb6606e
movsx eax, byte [esi]
push 1
push eax
push 0xbf0e78
call fcn.00ba7ae0
add esp, 0xc
test eax, eax
jne 0xb661de
inc esi
cmp esi, edi
jb 0xb66052
or dword [ebp + 0xc], 0xffffffff
mov eax, dword [ebp + 0xc]
or edi, 0xffffffff
cmp eax, edi
je 0xb66162
push edi
inc eax
push eax
lea eax, [ebp - 0x40]
push eax
lea esi, [ebp - 0x60]
call fcn.00b665a2
mov byte [ebp - 4], 7
test byte [0xc07dd0], 1
jne 0xb660b7
or dword [0xc07dd0], 1
mov word [0xc063c8], 0x88a1
mov byte [0xc063ca], 0x81
xor eax, eax
mov cl, byte [eax + 0xc063c8]
xor cl, 0x81
mov byte [eax + 0xc06680], cl
inc eax
cmp eax, 3
jb 0xb660b9
mov esi, 0xc06680
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xb660d8
sub eax, edx
push eax
push esi
lea eax, [ebp - 0x60]
call fcn.00b667c7
cmp eax, edi
je 0xb6611b
push edi
push eax
lea eax, [ebp - 0x60]
push eax
lea esi, [ebp - 0x7c]
call fcn.00b665a2
mov esi, eax
lea edi, [ebp - 0x60]
mov byte [ebp - 4], 8
call fcn.00b44c28
push 0
push 1
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 7
call fcn.00b44c93
push dword [ebp + 0xc]
xor edi, edi
push edi
lea eax, [ebp - 0x40]
push eax
lea esi, [ebp - 0x7c]
call fcn.00b665a2
push eax
lea eax, [ebx + 0x38]
push eax
mov byte [ebp - 4], 9
call fcn.00b666e7
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x60]
push ecx
mov ecx, eax
call fcn.00b45046
push edi
push 1
mov ecx, esi
call fcn.00b44c93
push edi
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.00b44c93
mov eax, dword [ebp - 0x148]
mov eax, dword [eax + 4]
push 0xa
lea eax, [ebp + eax - 0x148]
push eax
call fcn.00b4e653
movzx eax, al
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.00b66da6
mov eax, dword [ebp - 0x148]
mov eax, dword [eax + 4]
add esp, 0xc
cmp dword [ebp + eax - 0x13c], 0
je 0xb65fff
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00b44c93
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 3
call fcn.00b48562
lea esi, [ebp - 0x1c]
call fcn.00b4bd00
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
cmp dword [ebp - 0x2c], 0x10
mov eax, dword [ebp - 0x40]
jae 0xb661ea
lea eax, [ebp - 0x40]
sub esi, eax
mov dword [ebp + 0xc], esi
jmp 0xb66076