Function at 0x10f5113
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x115aef3
call fcn.01159c78
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 0x10f5219
mov eax, dword [ebx]
cmp eax, 8
jne 0x10f516e
mov ecx, ebx
lea edi, [ebp - 0x58]
call fcn.010f5b6d
inc dword [ebp - 0x44]
jmp 0x10f5201
cmp eax, 6
jne 0x10f517f
mov ecx, ebx
lea edi, [ebp - 0x28]
call fcn.010f5b6d
jmp 0x10f51fe
cmp eax, 7
jne 0x10f51ec
mov eax, esi
sub eax, dword [ebp - 0x28]
sar eax, 5
test eax, eax
je 0x10f51c7
cmp dword [esi - 0x20], 6
je 0x10f51c4
lea ecx, [esi - 0x20]
lea edi, [ebp - 0x58]
call fcn.010f5b6d
cmp dword [ebp - 0x28], esi
je 0x10f51b8
push 0
push 1
lea ecx, [esi - 0x1c]
call fcn.010d4d81
add esi, 0xffffffe0
mov dword [ebp - 0x24], esi
mov eax, esi
sub eax, dword [ebp - 0x28]
sar eax, 5
test eax, eax
jne 0x10f5190
mov ebx, dword [ebp - 0x2c]
mov eax, esi
sub eax, dword [ebp - 0x28]
test eax, 0xffffffe0
je 0x10f5220
cmp dword [ebp - 0x28], esi
je 0x10f5201
add esi, 0xffffffe0
push 0
push 1
lea ecx, [esi + 4]
call fcn.010d4d81
mov dword [ebp - 0x24], esi
jmp 0x10f5201
mov ecx, ebx
lea edi, [ebp - 0x28]
call fcn.010f5b6d
cmp dword [ebx], 5
je 0x10f51fe
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 0x10f5155
cmp dword [ebp - 0x44], 1
jge 0x10f5249
call fcn.010f55b5
jmp 0x10f5225
call fcn.010f553c
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.01133995
mov dword [ebp - 0x18], vtable.std::runtime_error.0
push 0x117ec28
lea eax, [ebp - 0x18]
push eax
call fcn.0113d8b5
jle 0x10f527a
call fcn.010f563b
jmp 0x10f5225
lea ebx, [esi - 0x20]
cmp dword [ebx], 6
je 0x10f5286
mov ecx, ebx
lea edi, [ebp - 0x58]
call fcn.010f5b6d
cmp dword [ebp - 0x28], esi
je 0x10f527a
push 0
push 1
lea ecx, [ebx + 4]
call fcn.010d4d81
mov esi, ebx
mov dword [ebp - 0x24], esi
mov eax, esi
sub eax, dword [ebp - 0x28]
sar eax, 5
test eax, eax
jne 0x10f5252
sub esi, dword [ebp - 0x28]
sar esi, 5
cmp esi, 1
jbe 0x10f5298
call fcn.010f56b8
jmp 0x10f5225
lea eax, [ebp - 0x28]
push eax
call fcn.010f5bec
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.010f61c4
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x58]
cmp esi, dword [ebp - 0x54]
je 0x10f53ea
mov eax, dword [esi]
cmp eax, 8
jne 0x10f52f6
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x10f5479
mov eax, dword [ecx]
lea edx, [esi + 4]
push edx
call dword [eax + 4]
mov byte [ebp - 0x2c], al
push dword [ebp - 0x2c]
jmp 0x10f53cb
cmp eax, 5
jne 0x10f5334
cmp dword [ebp - 0x30], 1
jb 0x10f547e
lea edi, [ebp - 0x48]
lea eax, [ebp - 0x40]
call fcn.010f5c76
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.010f5cdc
test bl, bl
sete al
movzx eax, al
jmp 0x10f53ca
cmp dword [ebp - 0x30], 2
jb 0x10f5488
lea edi, [ebp - 0x6c]
lea eax, [ebp - 0x40]
call fcn.010f5c76
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.010f5cdc
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x40]
call fcn.010f5c76
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.010f5cdc
mov eax, dword [esi]
sub eax, 0
je 0x10f546c
dec eax
je 0x10f5455
dec eax
je 0x10f53bd
dec eax
je 0x10f53b0
dec eax
jne 0x10f5492
test bl, bl
je 0x10f53c7
cmp byte [ebp + 0xb], 0
je 0x10f53c7
xor al, al
jmp 0x10f53ca
test bl, bl
jne 0x10f53ac
cmp byte [ebp + 0xb], bl
jne 0x10f53ac
mov al, 1
jmp 0x10f53ca
test bl, bl
jne 0x10f53a6
cmp byte [ebp + 0xb], 0
je 0x10f53ac
xor eax, eax
inc eax
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.010f5caa
add esi, 0x20
cmp esi, dword [ebp - 0x54]
jne 0x10f52d0
cmp dword [ebp - 0x30], 1
je 0x10f54d6
test byte [0x1192724], 1
jne 0x10f5432
or dword [0x1192724], 1
mov dword [0x11913b0], 0xaabda582
mov dword [0x11913b4], 0xebafa2a7
mov dword [0x11913b8], 0xb9bbb3ae
mov dword [0x11913bc], 0xa2b8b8ae
mov word [0x11913c0], 0xa5a4
mov byte [0x11913c2], 0xcb
xor eax, eax
mov cl, byte [eax + 0x11913b0]
xor cl, 0xcb
mov byte [eax + 0x1191500], cl
inc eax
cmp eax, 0x13
jb 0x10f5434
mov dword [ebp + 8], 0x1191500
jmp 0x10f5228
test bl, bl
je 0x10f53ac
cmp byte [ebp + 0xb], 0
je 0x10f53ac
jmp 0x10f53b9
test bl, bl
jne 0x10f53c7
jmp 0x10f53c1
call fcn.01133601
call fcn.010f572b
jmp 0x10f5225
call fcn.010f57b9
jmp 0x10f5225
mov eax, dword [esi]
cdq
push edx
push eax
lea esi, [ebp - 0x88]
call fcn.010fae00
pop ecx
pop ecx
push eax
mov byte [ebp - 4], 4
call fcn.010f5850
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.010d6b7c
add esp, 0xc
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.010d5c65
push 0x117ec28
mov eax, esi
jmp 0x10f5243
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x40]
call fcn.010f5c76
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 0x10f54ff
push dword [ebp - 0x40]
call fcn.011342b3
pop ecx
lea esi, [ebp - 0x28]
call fcn.010e94a9
lea esi, [ebp - 0x58]
call fcn.010e94a9
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x10f552b
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