Function at 0xb13b7e
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xb7c317
call fcn.00b79c88
sub esp, 0x134
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], 0xb9d1ac
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], 0xb9d1a0
mov dword [ebx + 8], 0xb9d1a4
mov dword [ebx + 0x30], eax
mov dword [ebp + 0x10], esp
call fcn.00b086b1
and dword [ebp - 0x40], 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x98]
push eax
push 5
push edi
mov edi, dword [0xb8236c]
mov dword [ebp - 0x20], 0x20
call edi
test eax, eax
je 0xb13c3f
mov eax, dword [ebp - 0x20]
and dword [ebp + 0x10], 0
mov byte [ebp + eax - 0x98], 0
push 0xa
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00b56108
lea ecx, [ebp - 0x98]
add esp, 0xc
cmp dword [ebp + 0x10], ecx
je 0xb13c3f
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.00afac58
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
push 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x1c]
push 0x16
push dword [ebp + 0xc]
call edi
mov esi, eax
test esi, esi
jne 0xb13cb3
call dword [0xb820a8]
cmp eax, 0x7a
jne 0xb13cab
mov esi, dword [ebp - 0x18]
sub esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x1c]
add esi, esi
call fcn.00afac58
push 0
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x1c]
push 0x16
push dword [ebp + 0xc]
call edi
mov esi, eax
test esi, esi
je 0xb13c7a
test esi, esi
je 0xb13eb2
push 3
lea eax, [ebp - 0x140]
push eax
call fcn.00afa5f0
mov byte [ebp - 4], 4
push dword [ebp - 0x1c]
lea eax, [ebp - 0x130]
push eax
call fcn.00afd392
and dword [ebp - 0x2c], 0
pop ecx
pop ecx
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
mov byte [ebp - 4], 5
jmp 0xb13e51
mov eax, dword [ebp - 0x2c]
dec eax
push eax
push 0
lea eax, [ebp - 0x3c]
push eax
lea esi, [ebp - 0x5c]
call fcn.00b1429c
mov esi, eax
lea edi, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.00af4c28
push 0
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.00af4d08
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0xb13d61
cmp dword [ebp - 0x28], 0x10
mov esi, dword [ebp - 0x3c]
mov eax, esi
jae 0xb13d33
mov eax, edi
cmp dword [ebp - 0x28], 0x10
lea edi, [eax + ecx]
jae 0xb13d5d
lea esi, [ebp - 0x3c]
jmp 0xb13d5d
movsx eax, byte [esi]
push 1
push eax
push 0xb9cda0
call fcn.00b54b40
add esp, 0xc
test eax, eax
jne 0xb13ecd
inc esi
cmp esi, edi
jb 0xb13d41
or dword [ebp + 0xc], 0xffffffff
mov eax, dword [ebp + 0xc]
or edi, 0xffffffff
cmp eax, edi
je 0xb13e51
push edi
inc eax
push eax
lea eax, [ebp - 0x3c]
push eax
lea esi, [ebp - 0x5c]
call fcn.00b1429c
mov byte [ebp - 4], 7
test byte [0xbb2768], 1
jne 0xb13da6
or dword [0xbb2768], 1
mov word [0xbb0f78], 0x7e57
mov byte [0xbb0f7a], 0x77
xor eax, eax
mov cl, byte [eax + 0xbb0f78]
xor cl, 0x77
mov byte [eax + 0xbb1230], cl
inc eax
cmp eax, 3
jb 0xb13da8
mov esi, 0xbb1230
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xb13dc7
sub eax, edx
push eax
push esi
lea eax, [ebp - 0x5c]
call fcn.00b144c1
cmp eax, edi
je 0xb13e0a
push edi
push eax
lea eax, [ebp - 0x5c]
push eax
lea esi, [ebp - 0x78]
call fcn.00b1429c
mov esi, eax
lea edi, [ebp - 0x5c]
mov byte [ebp - 4], 8
call fcn.00af4c28
push 0
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 7
call fcn.00af4d08
push dword [ebp + 0xc]
xor edi, edi
push edi
lea eax, [ebp - 0x3c]
push eax
lea esi, [ebp - 0x78]
call fcn.00b1429c
push eax
lea eax, [ebx + 0x38]
push eax
mov byte [ebp - 4], 9
call fcn.00b143e1
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, eax
call fcn.00af4ecc
push edi
push 1
mov ecx, esi
call fcn.00af4d08
push edi
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.00af4d08
mov eax, dword [ebp - 0x140]
mov eax, dword [eax + 4]
push 0xa
lea eax, [ebp + eax - 0x140]
push eax
call fcn.00afcec6
movzx eax, al
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.00b14ae1
mov eax, dword [ebp - 0x140]
mov eax, dword [eax + 4]
add esp, 0xc
cmp dword [ebp + eax - 0x134], 0
je 0xb13cee
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00af4d08
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 3
call fcn.00af8574
lea esi, [ebp - 0x1c]
call fcn.00afac3f
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 - 0x28], 0x10
mov eax, dword [ebp - 0x3c]
jae 0xb13ed9
lea eax, [ebp - 0x3c]
sub esi, eax
mov dword [ebp + 0xc], esi
jmp 0xb13d65