Function at 0x401195
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40cfb8
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 0x40d4dc
mov esi, dword [esp + 0x10]
movzx eax, byte [eax]
inc esi
mov dword [ecx], esi
push 0
pop esi
test eax, eax
je 0x40d4dc
cmp eax, 1
jb 0x40d051
cmp eax, 0x73
jbe 0x40d17b
cmp eax, 0x74
je 0x40d48c
cmp eax, 0x75
jb 0x40d482
cmp eax, 0x8d
jae 0x40d1a1
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 0x40d08c
push 3
pop eax
jmp 0x40d0a5
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 0x40d194
test ecx, ecx
jg 0x40d0d8
cmp ecx, edi
jne 0x40d194
test byte [esp + 0xc8], 1
jne 0x40d187
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.004016bd
pop ecx
test al, al
jne 0x40d58a
mov ecx, dword [ebx + 0x3c]
push esi
push 1
push 0x40
call fcn.0040106e
mov ebp, eax
test ebp, ebp
je 0x40d58a
mov eax, dword [ebx + 0x3c]
mov dword [ebp + 0x3c], eax
jmp 0x40d14d
mov ebx, eax
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x40d14b
cmp edi, 2
mov dword [ebx + 0x2c], ebp
mov edi, dword [esp + 0x18]
mov dword [esp + 0xd0], edi
jne 0x40d175
mov ecx, 0x4293b4
mov edx, dword [esp + 0x28]
jmp 0x40d016
mov ecx, dword [esp + 0x1c]
jmp 0x40d16c
push eax
call fcn.00401659
pop ecx
jmp 0x40d4e0
push dword [ebx + 0x3c]
push str.illegal_nested_run_encoding
jmp 0x40d4d0
push dword [ebx + 0x3c]
push str.illegal_run_encoding
jmp 0x40d4d0
cmp eax, 0xbd
jae 0x40d482
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, pe_nt_image_headers32
sub ecx, eax
cmp dword [esp + 0x14], 6
mov eax, pe_nt_image_headers32
cmovle ecx, edx
sub eax, ecx
mov dword [esp + 0x30], eax
test edi, edi
jg 0x40d1f8
push dword [ebp + 0x3c]
push str.illegal_pop_encoding
jmp 0x40d4d0
test byte [esp + 0xc8], 2
je 0x40d20f
push dword [ebp + 0x3c]
push str.illegal_nested_pop_encoding
jmp 0x40d4d0
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.00401299
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 0x40d299
lea ecx, [esp + 0x34]
call fcn.00401389
push dword [ebp + 0x3c]
mov dword [esp + 0x40], esi
call fcn.004016bd
pop ecx
test al, al
jne 0x40d58a
cmp dword [esp + 0x14], 0
push esi
jle 0x40d34e
push esi
push pe_nt_image_headers32
push 1
call fcn.00401910
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 0x40d315
mov ecx, edx
call fcn.00401438
push esi
push esi
push dword [esp + 0x38]
push dword [esp + 0x20]
call fcn.00401910
mov edx, eax
add esp, 0x10
mov dword [esp + 0x10], edx
test edx, edx
je 0x40d58a
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 5
jle 0x40d2d8
mov eax, dword [ebx + 0x34]
cmp eax, dword [edx + 0x10]
jle 0x40d32a
push dword [ebp + 0x3c]
push str.pop.L_value_too_small
jmp 0x40d4d0
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.00401438
jmp 0x40d368
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.004016bd
pop ecx
test al, al
jne 0x40d58a
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.00401357
mov ecx, eax
mov eax, dword [esp + 0x10]
test ecx, ecx
jne 0x40d3b3
inc eax
mov dword [esp + 0x10], eax
cmp ecx, dword [ebx + 0x34]
ja 0x40d478
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, esi
jl 0x40d398
test eax, eax
je 0x40d419
mov ecx, dword [ebp + 0x3c]
push edi
push 1
push 0x40
call fcn.0040106e
mov dword [ebx + 0x38], eax
test eax, eax
je 0x40d58a
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 0x40d43f
test byte [esp + 0x18], 2
jne 0x40d43f
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
mov cl, byte [eax]
inc eax
mov dword [edx], eax
cmp cl, 0x73
jbe 0x40d43f
push dword [ebp + 0x3c]
push str.bad_meta_coding_for_empty_pop_U
call fcn.0040158c
pop ecx
pop ecx
mov ecx, ebx
mov eax, dword [ecx + 0x18]
dec eax
push 0xe
pop edx
sub eax, 1
je 0x40d456
sub eax, 5
jne 0x40d459
push 0x10
jmp 0x40d458
push 0xf
pop edx
mov dword [ecx + 0x18], edx
cmp ecx, ebx
je 0x40d46c
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 0x40d441
jmp 0x40d58a
push dword [ebp + 0x3c]
push str.pop_token_out_of_range
jmp 0x40d4d0
push dword [ebx + 0x3c]
push str.bad_meta_coding
jmp 0x40d4d0
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.00401910
add esp, 0x10
mov dword [esp + 0x40], eax
test eax, eax
jne 0x40d4e0
push dword [ebx + 0x3c]
push str.illegal_arb._coding
call fcn.0040158c
pop ecx
pop ecx
jmp 0x40d58a
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.004013c0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40d502
mov ecx, eax
call fcn.00401438
mov eax, dword [esp + 0x28]
mov ecx, dword [ebx]
test eax, eax
jne 0x40d52b
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.00401410
add esp, 0x14
jmp 0x40d575
test edi, edi
js 0x40d5a5
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 0x40d568
mov edi, eax
lea ecx, [esp + 0x88]
call fcn.00401357
push 4
mov ecx, edi
mov esi, eax
call fcn.00401361
mov dword [eax], esi
sub ebp, 1
jne 0x40d54a
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0xa4]
mov dword [esi], eax
push dword [ebx + 0x3c]
call fcn.004016bd
pop ecx
test al, al
jne 0x40d58a
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.0040136b
add esp, 0xa8
ret 0x1c
mov esi, dword [eax + 4]
mov ebp, 0x80000000
shr esi, 2
test esi, esi
je 0x40d5e9
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 0x40d5b6
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.00401357
mov esi, eax
mov eax, dword [esp + 0x28]
test dword [eax + 4], 0xfffffffc
jbe 0x40d626
cmp esi, edi
je 0x40d568
cmp esi, ebp
je 0x40d568
push 4
mov ecx, eax
call fcn.00401361
mov dword [eax], esi
push dword [ebx + 0x3c]
call fcn.004016bd
pop ecx
test al, al
jne 0x40d58a
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 0x40d5fb