Function at 0x131741c
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x137dd6b
call fcn.0137cc58
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 0x1317522
mov eax, dword [ebx]
cmp eax, 8
jne 0x1317477
mov ecx, ebx
lea edi, [ebp - 0x58]
call fcn.01317e76
inc dword [ebp - 0x44]
jmp 0x131750a
cmp eax, 6
jne 0x1317488
mov ecx, ebx
lea edi, [ebp - 0x28]
call fcn.01317e76
jmp 0x1317507
cmp eax, 7
jne 0x13174f5
mov eax, esi
sub eax, dword [ebp - 0x28]
sar eax, 5
test eax, eax
je 0x13174d0
cmp dword [esi - 0x20], 6
je 0x13174cd
lea ecx, [esi - 0x20]
lea edi, [ebp - 0x58]
call fcn.01317e76
cmp dword [ebp - 0x28], esi
je 0x13174c1
push 0
push 1
lea ecx, [esi - 0x1c]
call fcn.012f4c89
add esi, 0xffffffe0
mov dword [ebp - 0x24], esi
mov eax, esi
sub eax, dword [ebp - 0x28]
sar eax, 5
test eax, eax
jne 0x1317499
mov ebx, dword [ebp - 0x2c]
mov eax, esi
sub eax, dword [ebp - 0x28]
test eax, 0xffffffe0
je 0x1317529
cmp dword [ebp - 0x28], esi
je 0x131750a
add esi, 0xffffffe0
push 0
push 1
lea ecx, [esi + 4]
call fcn.012f4c89
mov dword [ebp - 0x24], esi
jmp 0x131750a
mov ecx, ebx
lea edi, [ebp - 0x28]
call fcn.01317e76
cmp dword [ebx], 5
je 0x1317507
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 0x131745e
cmp dword [ebp - 0x44], 1
jge 0x1317552
call fcn.013178be
jmp 0x131752e
call fcn.01317845
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.01356985
mov dword [ebp - 0x18], vtable.std::runtime_error.0
push 0x13a2d18
lea eax, [ebp - 0x18]
push eax
call fcn.01360895
jle 0x1317583
call fcn.01317944
jmp 0x131752e
lea ebx, [esi - 0x20]
cmp dword [ebx], 6
je 0x131758f
mov ecx, ebx
lea edi, [ebp - 0x58]
call fcn.01317e76
cmp dword [ebp - 0x28], esi
je 0x1317583
push 0
push 1
lea ecx, [ebx + 4]
call fcn.012f4c89
mov esi, ebx
mov dword [ebp - 0x24], esi
mov eax, esi
sub eax, dword [ebp - 0x28]
sar eax, 5
test eax, eax
jne 0x131755b
sub esi, dword [ebp - 0x28]
sar esi, 5
cmp esi, 1
jbe 0x13175a1
call fcn.013179c1
jmp 0x131752e
lea eax, [ebp - 0x28]
push eax
call fcn.01317ef5
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.013184cd
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x58]
cmp esi, dword [ebp - 0x54]
je 0x13176f3
mov eax, dword [esi]
cmp eax, 8
jne 0x13175ff
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x1317782
mov eax, dword [ecx]
lea edx, [esi + 4]
push edx
call dword [eax + 4]
mov byte [ebp - 0x2c], al
push dword [ebp - 0x2c]
jmp 0x13176d4
cmp eax, 5
jne 0x131763d
cmp dword [ebp - 0x30], 1
jb 0x1317787
lea edi, [ebp - 0x48]
lea eax, [ebp - 0x40]
call fcn.01317f7f
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.01317fe5
test bl, bl
sete al
movzx eax, al
jmp 0x13176d3
cmp dword [ebp - 0x30], 2
jb 0x1317791
lea edi, [ebp - 0x6c]
lea eax, [ebp - 0x40]
call fcn.01317f7f
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.01317fe5
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x40]
call fcn.01317f7f
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.01317fe5
mov eax, dword [esi]
sub eax, 0
je 0x1317775
dec eax
je 0x131775e
dec eax
je 0x13176c6
dec eax
je 0x13176b9
dec eax
jne 0x131779b
test bl, bl
je 0x13176d0
cmp byte [ebp + 0xb], 0
je 0x13176d0
xor al, al
jmp 0x13176d3
test bl, bl
jne 0x13176b5
cmp byte [ebp + 0xb], bl
jne 0x13176b5
mov al, 1
jmp 0x13176d3
test bl, bl
jne 0x13176af
cmp byte [ebp + 0xb], 0
je 0x13176b5
xor eax, eax
inc eax
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.01317fb3
add esi, 0x20
cmp esi, dword [ebp - 0x54]
jne 0x13175d9
cmp dword [ebp - 0x30], 1
je 0x13177df
test byte [0x13b7d8c], 1
jne 0x131773b
or dword [0x13b7d8c], 1
mov dword [0x13b6800], 0x3621391e
mov dword [0x13b6804], 0x77333e3b
mov dword [0x13b6808], 0x25272f32
mov dword [0x13b680c], 0x3e242432
mov word [0x13b6810], 0x3938
mov byte [0x13b6812], 0x57
xor eax, eax
mov cl, byte [eax + 0x13b6800]
xor cl, 0x57
mov byte [eax + 0x13b6950], cl
inc eax
cmp eax, 0x13
jb 0x131773d
mov dword [ebp + 8], 0x13b6950
jmp 0x1317531
test bl, bl
je 0x13176b5
cmp byte [ebp + 0xb], 0
je 0x13176b5
jmp 0x13176c2
test bl, bl
jne 0x13176d0
jmp 0x13176ca
call fcn.013565cf
call fcn.01317a34
jmp 0x131752e
call fcn.01317ac2
jmp 0x131752e
mov eax, dword [esi]
cdq
push edx
push eax
lea esi, [ebp - 0x88]
call fcn.0131e0ff
pop ecx
pop ecx
push eax
mov byte [ebp - 4], 4
call fcn.01317b59
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.012f6af7
add esp, 0xc
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.012f5be0
push 0x13a2d18
mov eax, esi
jmp 0x131754c
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x40]
call fcn.01317f7f
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 0x1317808
push dword [ebp - 0x40]
call fcn.013572a4
pop ecx
lea esi, [ebp - 0x28]
call fcn.0130b53a
lea esi, [ebp - 0x58]
call fcn.0130b53a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x1317834
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