Function at 0x1d50db
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x23af04
call fcn.00239c88
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 0x1d51e1
mov eax, dword [ebx]
cmp eax, 8
jne 0x1d5136
mov ecx, ebx
lea edi, [ebp - 0x58]
call fcn.001d5b35
inc dword [ebp - 0x44]
jmp 0x1d51c9
cmp eax, 6
jne 0x1d5147
mov ecx, ebx
lea edi, [ebp - 0x28]
call fcn.001d5b35
jmp 0x1d51c6
cmp eax, 7
jne 0x1d51b4
mov eax, esi
sub eax, dword [ebp - 0x28]
sar eax, 5
test eax, eax
je 0x1d518f
cmp dword [esi - 0x20], 6
je 0x1d518c
lea ecx, [esi - 0x20]
lea edi, [ebp - 0x58]
call fcn.001d5b35
cmp dword [ebp - 0x28], esi
je 0x1d5180
push 0
push 1
lea ecx, [esi - 0x1c]
call fcn.001b4ce5
add esi, 0xffffffe0
mov dword [ebp - 0x24], esi
mov eax, esi
sub eax, dword [ebp - 0x28]
sar eax, 5
test eax, eax
jne 0x1d5158
mov ebx, dword [ebp - 0x2c]
mov eax, esi
sub eax, dword [ebp - 0x28]
test eax, 0xffffffe0
je 0x1d51e8
cmp dword [ebp - 0x28], esi
je 0x1d51c9
add esi, 0xffffffe0
push 0
push 1
lea ecx, [esi + 4]
call fcn.001b4ce5
mov dword [ebp - 0x24], esi
jmp 0x1d51c9
mov ecx, ebx
lea edi, [ebp - 0x28]
call fcn.001d5b35
cmp dword [ebx], 5
je 0x1d51c6
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 0x1d511d
cmp dword [ebp - 0x44], 1
jge 0x1d5211
call fcn.001d557d
jmp 0x1d51ed
call fcn.001d5504
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.002139b5
mov dword [ebp - 0x18], vtable.std::runtime_error.0
push 0x25ec28
lea eax, [ebp - 0x18]
push eax
call fcn.0021d8c5
jle 0x1d5242
call fcn.001d5603
jmp 0x1d51ed
lea ebx, [esi - 0x20]
cmp dword [ebx], 6
je 0x1d524e
mov ecx, ebx
lea edi, [ebp - 0x58]
call fcn.001d5b35
cmp dword [ebp - 0x28], esi
je 0x1d5242
push 0
push 1
lea ecx, [ebx + 4]
call fcn.001b4ce5
mov esi, ebx
mov dword [ebp - 0x24], esi
mov eax, esi
sub eax, dword [ebp - 0x28]
sar eax, 5
test eax, eax
jne 0x1d521a
sub esi, dword [ebp - 0x28]
sar esi, 5
cmp esi, 1
jbe 0x1d5260
call fcn.001d5680
jmp 0x1d51ed
lea eax, [ebp - 0x28]
push eax
call fcn.001d5bb4
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.001d618c
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x58]
cmp esi, dword [ebp - 0x54]
je 0x1d53b2
mov eax, dword [esi]
cmp eax, 8
jne 0x1d52be
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x1d5441
mov eax, dword [ecx]
lea edx, [esi + 4]
push edx
call dword [eax + 4]
mov byte [ebp - 0x2c], al
push dword [ebp - 0x2c]
jmp 0x1d5393
cmp eax, 5
jne 0x1d52fc
cmp dword [ebp - 0x30], 1
jb 0x1d5446
lea edi, [ebp - 0x48]
lea eax, [ebp - 0x40]
call fcn.001d5c3e
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.001d5ca4
test bl, bl
sete al
movzx eax, al
jmp 0x1d5392
cmp dword [ebp - 0x30], 2
jb 0x1d5450
lea edi, [ebp - 0x6c]
lea eax, [ebp - 0x40]
call fcn.001d5c3e
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.001d5ca4
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x40]
call fcn.001d5c3e
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.001d5ca4
mov eax, dword [esi]
sub eax, 0
je 0x1d5434
dec eax
je 0x1d541d
dec eax
je 0x1d5385
dec eax
je 0x1d5378
dec eax
jne 0x1d545a
test bl, bl
je 0x1d538f
cmp byte [ebp + 0xb], 0
je 0x1d538f
xor al, al
jmp 0x1d5392
test bl, bl
jne 0x1d5374
cmp byte [ebp + 0xb], bl
jne 0x1d5374
mov al, 1
jmp 0x1d5392
test bl, bl
jne 0x1d536e
cmp byte [ebp + 0xb], 0
je 0x1d5374
xor eax, eax
inc eax
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.001d5c72
add esi, 0x20
cmp esi, dword [ebp - 0x54]
jne 0x1d5298
cmp dword [ebp - 0x30], 1
je 0x1d549e
test byte [0x272724], 1
jne 0x1d53fa
or dword [0x272724], 1
mov dword [0x2713b0], 0x93849cbb
mov dword [0x2713b4], 0xd2969b9e
mov dword [0x2713b8], 0x80828a97
mov dword [0x2713bc], 0x9b818197
mov word [0x2713c0], 0x9c9d
mov byte [0x2713c2], 0xf2
xor eax, eax
mov cl, byte [eax + 0x2713b0]
xor cl, 0xf2
mov byte [eax + 0x271500], cl
inc eax
cmp eax, 0x13
jb 0x1d53fc
mov dword [ebp + 8], 0x271500
jmp 0x1d51f0
test bl, bl
je 0x1d5374
cmp byte [ebp + 0xb], 0
je 0x1d5374
jmp 0x1d5381
test bl, bl
jne 0x1d538f
jmp 0x1d5389
call fcn.00213628
call fcn.001d56f3
jmp 0x1d51ed
call fcn.001d5781
jmp 0x1d51ed
mov eax, dword [esi]
cdq
push edx
push eax
lea esi, [ebp - 0x88]
call fcn.001dae04
pop ecx
pop ecx
push eax
mov byte [ebp - 4], 4
call fcn.001d5818
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.001b6ae0
add esp, 0xc
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.001b5bc9
push 0x25ec28
mov eax, esi
jmp 0x1d520b
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x40]
call fcn.001d5c3e
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 0x1d54c7
push dword [ebp - 0x40]
call fcn.002142d3
pop ecx
lea esi, [ebp - 0x28]
call fcn.001c946d
lea esi, [ebp - 0x58]
call fcn.001c946d
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x1d54f3
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