Function at 0x401195
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40ceab
sub esp, 0xa8
mov eax, dword [0x428db0]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0xc4]
push ebx
push ebp
mov dword [esp + 0x18], eax
mov ebp, ecx
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
push esi
xor esi, esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc8]
push edi
mov edi, dword [esp + 0xd0]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], esi
mov eax, dword [ecx]
mov ebx, ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
test eax, eax
je 0x40d3cf
mov esi, dword [esp + 0x10]
movzx eax, byte [eax]
inc esi
mov dword [ecx], esi
push 0
pop esi
test eax, eax
je 0x40d3cf
cmp eax, 1
jb 0x40cf44
cmp eax, 0x73
jbe 0x40d06e
cmp eax, 0x74
je 0x40d37f
cmp eax, 0x75
jb 0x40d375
cmp eax, 0x8d
jae 0x40d094
add eax, 0xffffff8b
mov dword [esp + 0x18], eax
and dword [esp + 0x18], 3
mov dword [esp + 0x14], eax
sar dword [esp + 0x14], 3
test al, 4
jne 0x40cf7f
push 3
pop eax
jmp 0x40cf98
mov eax, dword [esp + 0x10]
movzx edx, byte [eax + 1]
add eax, 2
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x28]
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc eax
shl ecx, 2
mov dword [esp + 0x10], eax
mov eax, edi
shl dword [esp + 0x10], cl
mov ecx, edi
sub eax, dword [esp + 0x10]
test edi, edi
cmovns ecx, eax
mov dword [esp + 0x18], ecx
je 0x40d087
test ecx, ecx
jg 0x40cfcb
cmp ecx, edi
jne 0x40d087
test byte [esp + 0xc8], 1
jne 0x40d07a
mov ecx, dword [esp + 0xc8]
mov eax, 0x4293b4
mov edi, dword [esp + 0x14]
or ecx, 1
push edx
push dword [esp + 0x14]
cmp edi, 1
push dword [esp + 0x34]
cmovne eax, dword [esp + 0x28]
push ecx
push eax
push dword [esp + 0x38]
mov ecx, ebp
push dword [esp + 0x38]
call fcn.00401195
push dword [ebx + 0x3c]
call fcn.004016a9
pop ecx
test al, al
jne 0x40d47d
mov ecx, dword [ebx + 0x3c]
push esi
push 1
push 0x40
call fcn.0040106e
mov ebp, eax
test ebp, ebp
je 0x40d47d
mov eax, dword [ebx + 0x3c]
mov dword [ebp + 0x3c], eax
jmp 0x40d040
mov ebx, eax
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x40d03e
cmp edi, 2
mov dword [ebx + 0x2c], ebp
mov edi, dword [esp + 0x18]
mov dword [esp + 0xd0], edi
jne 0x40d068
mov ecx, 0x4293b4
mov edx, dword [esp + 0x28]
jmp 0x40cf09
mov ecx, dword [esp + 0x1c]
jmp 0x40d05f
push eax
call fcn.00401645
pop ecx
jmp 0x40d3d3
push dword [ebx + 0x3c]
push str.illegal_nested_run_encoding
jmp 0x40d3c3
push dword [ebx + 0x3c]
push str.illegal_run_encoding
jmp 0x40d3c3
cmp eax, 0xbd
jae 0x40d375
add eax, 0xffffff73
mov dword [esp + 0x18], eax
sar eax, 2
push 2
pop edx
mov ecx, eax
mov dword [esp + 0x14], eax
shl edx, cl
push 0xb
pop ecx
sub ecx, eax
push 4
pop eax
shl eax, cl
mov ecx, 0x100
sub ecx, eax
cmp dword [esp + 0x14], 6
mov eax, 0x100
cmovle ecx, edx
sub eax, ecx
mov dword [esp + 0x30], eax
test edi, edi
jg 0x40d0eb
push dword [ebp + 0x3c]
push str.illegal_pop_encoding
jmp 0x40d3c3
test byte [esp + 0xc8], 2
je 0x40d102
push dword [ebp + 0x3c]
push str.illegal_nested_pop_encoding
jmp 0x40d3c3
push 0x40
lea eax, [esp + 0x4c]
mov dword [esp + 0x40], esi
push esi
push eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0x3c]
lea ecx, [esp + 0x40]
add esp, 0xc
mov dword [esp + 0x84], eax
test byte [esp + 0x18], 1
mov eax, 0x4293b4
cmove eax, dword [esp + 0x1c]
push ecx
push 0xfffffffffffffffe
push dword [esp + 0x34]
lea ecx, [esp + 0x54]
push 2
push eax
push dword [esp + 0x38]
push dword [esp + 0x38]
call fcn.00401195
push dword [esp + 0x38]
mov ecx, dword [ebp + 0x3c]
lea eax, [esp + 0x44]
push dword [esp + 0x38]
push eax
call fcn.00401294
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x38]
shr eax, 2
cmp dword [esp + 0x3c], 0
mov dword [ebx + 0x34], eax
je 0x40d18c
lea ecx, [esp + 0x34]
call fcn.0040137f
push dword [ebp + 0x3c]
mov dword [esp + 0x40], esi
call fcn.004016a9
pop ecx
test al, al
jne 0x40d47d
cmp dword [esp + 0x14], 0
push esi
jle 0x40d241
push esi
push 0x100
push 1
call fcn.004018fc
mov edx, eax
mov dword [esp + 0x24], 2
add esp, 0x10
mov dword [esp + 0x10], edx
mov ecx, dword [ebx + 0x34]
cmp ecx, dword [edx + 0x10]
jle 0x40d208
mov ecx, edx
call fcn.0040142e
push esi
push esi
push dword [esp + 0x38]
push dword [esp + 0x20]
call fcn.004018fc
mov edx, eax
add esp, 0x10
mov dword [esp + 0x10], edx
test edx, edx
je 0x40d47d
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 5
jle 0x40d1cb
mov eax, dword [ebx + 0x34]
cmp eax, dword [edx + 0x10]
jle 0x40d21d
push dword [ebp + 0x3c]
push str.pop.L_value_too_small
jmp 0x40d3c3
push esi
push edi
push edx
push 2
push 0x4293b4
push dword [esp + 0x38]
mov ecx, ebx
push dword [esp + 0x38]
call fcn.00401195
mov ecx, dword [esp + 0x10]
call fcn.0040142e
jmp 0x40d25b
push edi
push dword [esp + 0x34]
mov ecx, ebx
push 2
push dword [esp + 0x2c]
push dword [esp + 0x38]
push dword [esp + 0x38]
call fcn.00401195
push dword [ebp + 0x3c]
call fcn.004016a9
pop ecx
test al, al
jne 0x40d47d
mov dword [esp + 0x10], esi
lea edi, [esp + 0x88]
push 0xb
pop ecx
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xd0]
xor edi, edi
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x88]
call fcn.0040134d
mov ecx, eax
mov eax, dword [esp + 0x10]
test ecx, ecx
jne 0x40d2a6
inc eax
mov dword [esp + 0x10], eax
cmp ecx, dword [ebx + 0x34]
ja 0x40d36b
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, esi
jl 0x40d28b
test eax, eax
je 0x40d30c
mov ecx, dword [ebp + 0x3c]
push edi
push 1
push 0x40
call fcn.0040106e
mov dword [ebx + 0x38], eax
test eax, eax
je 0x40d47d
mov ecx, dword [ebp + 0x3c]
mov esi, dword [esp + 0x10]
test byte [esp + 0x18], 2
push edi
push esi
push dword [esp + 0x34]
mov dword [eax + 0x3c], ecx
mov eax, 0x4293b4
cmove eax, dword [esp + 0x28]
mov ecx, dword [ebx + 0x38]
push 2
push eax
push dword [esp + 0x38]
push dword [esp + 0x38]
call fcn.00401195
jmp 0x40d332
test byte [esp + 0x18], 2
jne 0x40d332
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
mov cl, byte [eax]
inc eax
mov dword [edx], eax
cmp cl, 0x73
jbe 0x40d332
push dword [ebp + 0x3c]
push str.bad_meta_coding_for_empty_pop_U
call fcn.00401578
pop ecx
pop ecx
mov ecx, ebx
mov eax, dword [ecx + 0x18]
dec eax
push 0xe
pop edx
sub eax, 1
je 0x40d349
sub eax, 5
jne 0x40d34c
push 0x10
jmp 0x40d34b
push 0xf
pop edx
mov dword [ecx + 0x18], edx
cmp ecx, ebx
je 0x40d35f
mov eax, dword [ebx + 0x30]
mov dword [ecx + 0x30], eax
mov eax, dword [ebx + 0x34]
mov dword [ecx + 0x34], eax
mov ecx, dword [ecx + 0x2c]
test ecx, ecx
jne 0x40d334
jmp 0x40d47d
push dword [ebp + 0x3c]
push str.pop_token_out_of_range
jmp 0x40d3c3
push dword [ebx + 0x3c]
push str.bad_meta_coding
jmp 0x40d3c3
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
movzx edx, byte [eax + 1]
add eax, 2
mov dword [ecx], eax
movzx ecx, byte [eax]
inc ecx
inc eax
mov dword [esi], eax
mov eax, edx
and eax, 1
push eax
mov eax, edx
shr edx, 3
shr eax, 1
and eax, 3
inc edx
push eax
push ecx
push edx
call fcn.004018fc
add esp, 0x10
mov dword [esp + 0x40], eax
test eax, eax
jne 0x40d3d3
push dword [ebx + 0x3c]
push str.illegal_arb._coding
call fcn.00401578
pop ecx
pop ecx
jmp 0x40d47d
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
mov ecx, ebx
mov ebp, dword [esp + 0x24]
push eax
push ebp
push dword [esi]
call fcn.004013b6
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40d3f5
mov ecx, eax
call fcn.0040142e
mov eax, dword [esp + 0x28]
mov ecx, dword [ebx]
test eax, eax
jne 0x40d41e
mov eax, ecx
sar ecx, 0x14
sar eax, 8
and ecx, 0xf
and eax, 0xfff
push eax
push ecx
push ebp
push edi
push esi
call fcn.00401406
add esp, 0x14
jmp 0x40d468
test edi, edi
js 0x40d498
mov ebp, dword [esp + 0xd0]
lea edi, [esp + 0x88]
mov esi, ebx
push 0xb
pop ecx
rep movsd dword es:[edi], dword [esi]
test ebp, ebp
jle 0x40d45b
mov edi, eax
lea ecx, [esp + 0x88]
call fcn.0040134d
push 4
mov ecx, edi
mov esi, eax
call fcn.00401357
mov dword [eax], esi
sub ebp, 1
jne 0x40d43d
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0xa4]
mov dword [esi], eax
push dword [ebx + 0x3c]
call fcn.004016a9
pop ecx
test al, al
jne 0x40d47d
mov eax, dword [esi]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x28], ebx
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401361
add esp, 0xa8
ret 0x1c
mov esi, dword [eax + 4]
mov ebp, 0x80000000
shr esi, 2
test esi, esi
je 0x40d4dc
mov edi, dword [eax]
mov ebx, dword [edi]
mov ecx, ebp
mov edx, ebx
sar ecx, 0x1f
sar edx, 0x1f
lea edi, [edi + 4]
mov dword [esp + 0x30], ebx
lea eax, [ebx + ebx]
xor edx, eax
lea eax, [ebp*2]
xor ecx, eax
mov eax, ebx
cmp ecx, edx
cmovb eax, ebp
mov ebp, eax
sub esi, 1
jne 0x40d4a9
mov ebx, dword [esp + 0x14]
push 0xb
pop ecx
mov esi, ebx
lea edi, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x88]
call fcn.0040134d
mov esi, eax
mov eax, dword [esp + 0x28]
test dword [eax + 4], 0xfffffffc
jbe 0x40d519
cmp esi, edi
je 0x40d45b
cmp esi, ebp
je 0x40d45b
push 4
mov ecx, eax
call fcn.00401357
mov dword [eax], esi
push dword [ebx + 0x3c]
call fcn.004016a9
pop ecx
test al, al
jne 0x40d47d
mov edx, esi
lea eax, [esi + esi]
sar edx, 0x1f
mov ecx, ebp
xor edx, eax
sar ecx, 0x1f
lea eax, [ebp*2]
mov edi, esi
xor ecx, eax
cmp ecx, edx
cmovb esi, ebp
mov ebp, esi
jmp 0x40d4ee