Function at 0x40c020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48484b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x47c
mov eax, dword [esp + 0x48c]
push esi
mov esi, dword [eax + 0x18]
mov dword [esp + 0x24], esi
mov eax, dword [esi + 0xc]
cmp eax, 1
mov dword [esp + 0x30], eax
jg 0x40c06e
xor eax, eax
pop esi
mov ecx, dword [esp + 0x47c]
mov dword fs:[0], ecx
add esp, 0x488
ret
push ebx
push ebp
lea ecx, [esp + 0x68]
push edi
or edi, 0xffffffff
mov dword [esp + 0x6c], 0xd
push ecx
mov ecx, dword [esi + 0x28]
push str.Encrypt
mov dword [esp + 0x3c], edi
call fcn.00411020
cmp dword [esp + 0x6c], 9
jne 0x40c0a1
mov edx, dword [esp + 0x74]
mov dword [esp + 0x34], edx
mov al, byte [esp + 0x2f]
xor ebx, ebx
mov byte [esp + 0x54], al
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], 1
mov ebp, dword [esp + 0x4a0]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x44]
push ecx
push eax
mov ecx, ebp
mov dword [esp + 0x49c], ebx
mov dword [esp + 0x54], 0xffff
mov byte [esp + 0x58], 0x66
call fcn.0040ca10
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x3c]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x18], eax
jle 0x40c58d
mov ebx, 0x28
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x14], ebx
jmp 0x40c13c
mov esi, dword [esp + 0x30]
mov edi, dword [esi + 8]
mov ecx, dword [esp + 0x24]
add edi, ecx
mov dword [esp + 0x7c], 0xd
cmp dword [edi], 0xffffffff
je 0x40c58b
mov eax, dword [ebp + 8]
lea edx, [esp + 0x44]
push edx
push 1
push eax
mov ecx, ebp
call fcn.0040a8e0
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x18]
mov dword [ebx + eax], ecx
mov edx, dword [esi + 4]
mov esi, dword [edi]
mov eax, dword [ebp + 4]
add edx, esi
mov dword [ebx + eax + 4], edx
mov eax, dword [ebp + 4]
mov ecx, dword [edi + 4]
mov dword [ebx + eax + 8], ecx
mov eax, dword [ebp + 4]
mov edx, dword [edi + 8]
mov cl, 0x6e
mov dword [ebx + eax + 0x24], edx
mov eax, dword [ebp + 4]
mov edx, dword [ebx + eax + 0x24]
cmp edx, 1
je 0x40c1b1
test edx, edx
jne 0x40c1aa
mov cl, 0x66
jmp 0x40c1b3
cmp dword [ebx + eax + 0x24], 2
jne 0x40c1b3
mov cl, 0x6e
mov byte [ebx + eax + 0xc], cl
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x34]
lea esi, [ebx + eax + 0x10]
mov eax, dword [esp + 0x18]
cmp eax, ecx
je 0x40c564
mov edx, dword [edi + 4]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
call fcn.00412f00
push eax
mov dword [esp + 0x24], eax
call fcn.0040bf90
add esp, 4
test eax, eax
jne 0x40c564
mov eax, dword [ebp + 4]
mov ecx, dword [ebx + eax + 8]
mov edx, dword [ebx + eax]
push ecx
push edx
lea eax, [esp + 0x94]
push str._d__d_obj_n
push eax
call fcn.0046556b
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
not ecx
dec ecx
sub eax, edx
mov ebx, edx
lea edi, [esp + ecx + 0x8c]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x10], edi
sub edi, ecx
cmp eax, edi
jae 0x40c336
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40c25d
mov eax, edx
sub eax, ecx
cmp edi, eax
jb 0x40c25f
mov eax, edi
test ecx, ecx
jne 0x40c267
xor edx, edx
jmp 0x40c269
sub edx, ecx
add eax, edx
test eax, eax
mov dword [esp + 0x38], eax
jge 0x40c275
xor eax, eax
push eax
call fcn.0047c23c
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 4]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x40c2bb
jmp 0x40c297
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.0040ad80
mov eax, dword [esp + 0x24]
add esp, 8
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
inc eax
cmp eax, ebx
mov dword [esp + 0x28], eax
jne 0x40c293
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x90]
push eax
push ecx
mov ecx, esi
call fcn.0040a3c0
mov edx, dword [esi + 8]
push eax
push edx
push ebx
mov ecx, esi
call fcn.0040a3c0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.0040a3b0
mov eax, dword [esi + 4]
push eax
call fcn.0047c265
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
add esp, 4
lea ecx, [edx + eax]
mov eax, dword [esi + 4]
test eax, eax
mov dword [esi + 0xc], ecx
jne 0x40c322
xor ecx, ecx
mov dword [esi + 4], edx
mov ecx, edx
add ecx, edi
mov dword [esi + 8], ecx
jmp 0x40c3d7
mov ecx, dword [esi + 8]
mov dword [esi + 4], edx
sub ecx, eax
add ecx, edx
add ecx, edi
mov dword [esi + 8], ecx
jmp 0x40c3d7
mov eax, edx
sub eax, ebx
cmp eax, edi
jae 0x40c398
lea ecx, [edi + ebx]
push ecx
push edx
push ebx
mov ecx, esi
call fcn.0040a3c0
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x10]
push eax
sub eax, ebx
push edx
mov ecx, esi
lea eax, [esp + eax + 0x94]
push eax
call fcn.0040a3c0
mov ecx, dword [esi + 8]
lea edx, [esp + 0x8c]
sub ecx, ebx
lea eax, [esp + 0x8c]
lea ecx, [esp + ecx + 0x8c]
cmp edx, ecx
je 0x40c3d4
lea edx, [esp + 0x8c]
sub ebx, edx
mov dl, byte [eax]
mov byte [eax + ebx], dl
inc eax
cmp eax, ecx
jne 0x40c38c
jmp 0x40c3d4
test edi, edi
jbe 0x40c3d7
push edx
push edx
sub edx, edi
mov ecx, esi
push edx
call fcn.0040a3c0
mov ecx, dword [esi + 8]
mov eax, ecx
sub eax, edi
cmp ebx, eax
je 0x40c3be
mov dl, byte [eax - 1]
dec eax
dec ecx
cmp eax, ebx
mov byte [ecx], dl
jne 0x40c3b3
mov eax, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x90]
push eax
push ecx
call fcn.0040ad60
add esp, 0xc
add dword [esi + 8], edi
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
cmp eax, 8
jne 0x40c3eb
push esi
push ecx
call fcn.0040ba50
jmp 0x40c3f7
cmp eax, 5
je 0x40c3fa
push esi
push ecx
call fcn.0040b060
add esp, 8
lea ecx, [esp + 0x7c]
call fcn.00411340
mov edi, str._nendobj
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi + 8]
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0xc]
mov ebx, edx
not ecx
dec ecx
sub eax, edx
add ecx, str._nendobj
mov edi, ecx
mov dword [esp + 0x10], ecx
sub edi, str._nendobj
cmp eax, edi
jae 0x40c4e5
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40c445
mov eax, edx
sub eax, ecx
cmp edi, eax
jb 0x40c447
mov eax, edi
test ecx, ecx
jne 0x40c44f
xor edx, edx
jmp 0x40c451
sub edx, ecx
add eax, edx
test eax, eax
mov dword [esp + 0x20], eax
jge 0x40c45d
xor eax, eax
push eax
call fcn.0047c23c
mov ecx, dword [esi + 4]
add esp, 4
mov ebp, eax
push ebp
push ebx
push ecx
mov ecx, esi
call fcn.0040a3c0
mov edx, dword [esp + 0x10]
push eax
push edx
push str._nendobj
mov ecx, esi
call fcn.0040a3c0
push eax
mov eax, dword [esi + 8]
push eax
push ebx
mov ecx, esi
call fcn.0040a3c0
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x3c], eax
call fcn.0047c265
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 4]
add esp, 4
lea edx, [ecx + ebp]
test eax, eax
mov dword [esi + 0xc], edx
jne 0x40c4cd
xor ecx, ecx
mov dword [esi + 4], ebp
mov ecx, ebp
mov ebp, dword [esp + 0x4a0]
add ecx, edi
mov dword [esi + 8], ecx
jmp 0x40c560
mov ecx, dword [esi + 8]
mov dword [esi + 4], ebp
sub ecx, eax
add ecx, ebp
mov ebp, dword [esp + 0x4a0]
add ecx, edi
mov dword [esi + 8], ecx
jmp 0x40c560
mov eax, edx
sub eax, ebx
cmp eax, edi
jae 0x40c51f
lea ecx, [edi + ebx]
push ecx
push edx
push ebx
mov ecx, esi
call fcn.0040a3c0
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x10]
push eax
sub eax, ebx
add eax, str._nendobj
push edx
push eax
mov ecx, esi
call fcn.0040a3c0
mov eax, dword [esi + 8]
push ebx
sub eax, ebx
add eax, str._nendobj
jmp 0x40c54a
test edi, edi
jbe 0x40c560
push edx
push edx
sub edx, edi
mov ecx, esi
push edx
call fcn.0040a3c0
mov ecx, dword [esi + 8]
mov eax, ecx
sub eax, edi
cmp ebx, eax
je 0x40c545
mov dl, byte [eax - 1]
dec eax
dec ecx
cmp eax, ebx
mov byte [ecx], dl
jne 0x40c53a
mov eax, dword [esp + 0x10]
push ebx
push eax
push str._nendobj
call fcn.0040ad60
mov eax, dword [esi + 8]
add esp, 0xc
add eax, edi
mov dword [esi + 8], eax
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
inc eax
add esi, 0xc
add ebx, 0x28
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], ebx
jl 0x40c138
xor ebx, ebx
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x40c5ac
mov ebp, dword [ebp + 8]
sub ebp, eax
mov eax, 0x66666667
imul ebp
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ebx, edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x494], 0xffffffff
call fcn.00409d30
mov ecx, dword [esp + 0x48c]
pop edi
mov eax, ebx
pop ebp
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x488
ret