Function at 0xb1510b
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xb7af03
call fcn.00b79c88
sub esp, 0x98
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x2c], ebx
cmp ebx, dword [eax + 4]
je 0xb15211
mov eax, dword [ebx]
cmp eax, 8
jne 0xb15166
mov ecx, ebx
lea edi, [ebp - 0x58]
call fcn.00b15b65
inc dword [ebp - 0x44]
jmp 0xb151f9
cmp eax, 6
jne 0xb15177
mov ecx, ebx
lea edi, [ebp - 0x28]
call fcn.00b15b65
jmp 0xb151f6
cmp eax, 7
jne 0xb151e4
mov eax, esi
sub eax, dword [ebp - 0x28]
sar eax, 5
test eax, eax
je 0xb151bf
cmp dword [esi - 0x20], 6
je 0xb151bc
lea ecx, [esi - 0x20]
lea edi, [ebp - 0x58]
call fcn.00b15b65
cmp dword [ebp - 0x28], esi
je 0xb151b0
push 0
push 1
lea ecx, [esi - 0x1c]
call fcn.00af4d08
add esi, 0xffffffe0
mov dword [ebp - 0x24], esi
mov eax, esi
sub eax, dword [ebp - 0x28]
sar eax, 5
test eax, eax
jne 0xb15188
mov ebx, dword [ebp - 0x2c]
mov eax, esi
sub eax, dword [ebp - 0x28]
test eax, 0xffffffe0
je 0xb15218
cmp dword [ebp - 0x28], esi
je 0xb151f9
add esi, 0xffffffe0
push 0
push 1
lea ecx, [esi + 4]
call fcn.00af4d08
mov dword [ebp - 0x24], esi
jmp 0xb151f9
mov ecx, ebx
lea edi, [ebp - 0x28]
call fcn.00b15b65
cmp dword [ebx], 5
je 0xb151f6
dec dword [ebp - 0x44]
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
add ebx, 0x20
mov dword [ebp - 0x2c], ebx
cmp ebx, dword [eax + 4]
jne 0xb1514d
cmp dword [ebp - 0x44], 1
jge 0xb15241
call fcn.00b155ad
jmp 0xb1521d
call fcn.00b15534
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00b539b5
mov dword [ebp - 0x18], vtable.std::runtime_error.0
push 0xb9ec40
lea eax, [ebp - 0x18]
push eax
call fcn.00b5d8c5
jle 0xb15272
call fcn.00b15633
jmp 0xb1521d
lea ebx, [esi - 0x20]
cmp dword [ebx], 6
je 0xb1527e
mov ecx, ebx
lea edi, [ebp - 0x58]
call fcn.00b15b65
cmp dword [ebp - 0x28], esi
je 0xb15272
push 0
push 1
lea ecx, [ebx + 4]
call fcn.00af4d08
mov esi, ebx
mov dword [ebp - 0x24], esi
mov eax, esi
sub eax, dword [ebp - 0x28]
sar eax, 5
test eax, eax
jne 0xb1524a
sub esi, dword [ebp - 0x28]
sar esi, 5
cmp esi, 1
jbe 0xb15290
call fcn.00b156b0
jmp 0xb1521d
lea eax, [ebp - 0x28]
push eax
call fcn.00b15be4
xor edi, edi
lea eax, [ebp + 8]
push eax
xor eax, eax
lea esi, [ebp - 0x40]
mov dword [ebp + 8], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
call fcn.00b161bc
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x58]
cmp esi, dword [ebp - 0x54]
je 0xb153e2
mov eax, dword [esi]
cmp eax, 8
jne 0xb152ee
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0xb15471
mov eax, dword [ecx]
lea edx, [esi + 4]
push edx
call dword [eax + 4]
mov byte [ebp - 0x2c], al
push dword [ebp - 0x2c]
jmp 0xb153c3
cmp eax, 5
jne 0xb1532c
cmp dword [ebp - 0x30], 1
jb 0xb15476
lea edi, [ebp - 0x48]
lea eax, [ebp - 0x40]
call fcn.00b15c6e
mov ecx, dword [eax + 4]
mov edx, dword [eax]
xor edi, edi
inc edi
shl edi, cl
test dword [edx], edi
lea edi, [ebp - 0x40]
setne bl
call fcn.00b15cd4
test bl, bl
sete al
movzx eax, al
jmp 0xb153c2
cmp dword [ebp - 0x30], 2
jb 0xb15480
lea edi, [ebp - 0x6c]
lea eax, [ebp - 0x40]
call fcn.00b15c6e
mov ecx, dword [eax + 4]
mov edx, dword [eax]
xor edi, edi
inc edi
shl edi, cl
test dword [edx], edi
lea edi, [ebp - 0x40]
setne byte [ebp + 0xb]
call fcn.00b15cd4
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x40]
call fcn.00b15c6e
mov ecx, dword [eax + 4]
mov edx, dword [eax]
xor edi, edi
inc edi
shl edi, cl
test dword [edx], edi
lea edi, [ebp - 0x40]
setne bl
call fcn.00b15cd4
mov eax, dword [esi]
sub eax, 0
je 0xb15464
dec eax
je 0xb1544d
dec eax
je 0xb153b5
dec eax
je 0xb153a8
dec eax
jne 0xb1548a
test bl, bl
je 0xb153bf
cmp byte [ebp + 0xb], 0
je 0xb153bf
xor al, al
jmp 0xb153c2
test bl, bl
jne 0xb153a4
cmp byte [ebp + 0xb], bl
jne 0xb153a4
mov al, 1
jmp 0xb153c2
test bl, bl
jne 0xb1539e
cmp byte [ebp + 0xb], 0
je 0xb153a4
xor eax, eax
inc eax
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00b15ca2
add esi, 0x20
cmp esi, dword [ebp - 0x54]
jne 0xb152c8
cmp dword [ebp - 0x30], 1
je 0xb154ce
test byte [0xbb2724], 1
jne 0xb1542a
or dword [0xbb2724], 1
mov dword [0xbb13b0], 0x1601193e
mov dword [0xbb13b4], 0x57131e1b
mov dword [0xbb13b8], 0x5070f12
mov dword [0xbb13bc], 0x1e040412
mov word [0xbb13c0], 0x1918
mov byte [0xbb13c2], 0x77
xor eax, eax
mov cl, byte [eax + 0xbb13b0]
xor cl, 0x77
mov byte [eax + 0xbb1500], cl
inc eax
cmp eax, 0x13
jb 0xb1542c
mov dword [ebp + 8], 0xbb1500
jmp 0xb15220
test bl, bl
je 0xb153a4
cmp byte [ebp + 0xb], 0
je 0xb153a4
jmp 0xb153b1
test bl, bl
jne 0xb153bf
jmp 0xb153b9
call fcn.00b53628
call fcn.00b15723
jmp 0xb1521d
call fcn.00b157b1
jmp 0xb1521d
mov eax, dword [esi]
cdq
push edx
push eax
lea esi, [ebp - 0x88]
call fcn.00b1adf9
pop ecx
pop ecx
push eax
mov byte [ebp - 4], 4
call fcn.00b15848
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00af6b06
add esp, 0xc
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.00af5bec
push 0xb9ec40
mov eax, esi
jmp 0xb1523b
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x40]
call fcn.00b15c6e
mov ecx, dword [eax + 4]
mov edx, dword [eax]
xor esi, esi
inc esi
shl esi, cl
test dword [edx], esi
setne bl
cmp dword [ebp - 0x40], 0
je 0xb154f7
push dword [ebp - 0x40]
call fcn.00b542d3
pop ecx
lea esi, [ebp - 0x28]
call fcn.00b09481
lea esi, [ebp - 0x58]
call fcn.00b09481
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0xb15523
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
cmp ecx, edx
setne dl
movzx edx, dl
push edx
call dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret