Function at 0x408490
Capabilities:
Enumerate pe sections
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586e10
mov eax, dword fs:[0]
push eax
sub esp, 0x5e8
mov eax, dword [0x5d5440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x50c], eax
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x508], esi
test eax, eax
je 0x4084e6
mov byte [eax], 0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x558], eax
cmp eax, 0xffffffff
je 0x40a02e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push 0
mov dword [ebp - 0x510], edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x51c], eax
test eax, eax
je 0x40a013
push 0
lea ecx, [ebp - 0x454]
push ecx
push edi
push eax
push dword [ebp - 0x558]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409ff7
mov edi, dword [ebp - 0x51c]
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x409dc8
mov ecx, dword [edi + 0x3c]
mov dword [ebp - 0x530], ecx
lea eax, [ecx - 1]
cmp eax, 0x3ff
ja 0x409ec2
add edi, ecx
cmp dword [edi], 0x4550
jne 0x409dc8
movzx ecx, word [edi + 4]
mov eax, 0x200
cmp cx, ax
je 0x4085ba
mov edx, 0x8664
xor eax, eax
cmp cx, dx
jne 0x4085bf
mov eax, 1
mov edx, 0x20b
mov ecx, 1
cmp word [edi + 0x18], dx
push str._n_SECTION_HEADERS__n
cmove eax, ecx
mov dword [ebp - 0x534], eax
call fcn.0040ab40
movzx eax, word [edi + 0x14]
lea ecx, [edi + 0x18]
movzx edi, word [edi + 6]
add ecx, eax
xor eax, eax
mov dword [ebp - 0x514], edi
xor esi, esi
mov dword [ebp - 0x538], eax
add esp, 4
mov dword [ebp - 0x524], esi
xor edx, edx
test edi, edi
je 0x408766
mov esi, dword [ecx + 0x14]
mov edi, dword [ecx + 0x10]
lea eax, [edi + esi]
cmp eax, dword [ebp - 0x510]
ja 0x408640
inc edx
mov dword [ebp - 0x524], esi
mov eax, edi
add ecx, 0x28
mov dword [ebp - 0x538], eax
cmp edx, dword [ebp - 0x514]
jl 0x408610
jmp 0x408766
call fcn.00444b30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40875a
mov edi, dword [0x5d5058]
lea ecx, [ebp - 0x28]
push 0x5d
push 0x595968
mov dword [ebp - 0x18], 0
lea eax, [edi + 1]
mov dword [ebp - 0x14], 0xf
mov dword [0x5d5058], eax
mov byte [ebp - 0x28], 0
call fcn.00407340
push 3
push 0x5957fc
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 4
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.00407340
mov byte [ebp - 4], 5
call fcn.00444b30
mov dword [ebp - 0x514], eax
lea ecx, [ebp - 0x504]
push 0x9f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00404340
mov esi, eax
push 0x595a34
push esi
mov byte [ebp - 4], 6
call fcn.00405420
add esp, 8
mov ecx, esi
push edi
call fcn.00405280
push str._path:
push esi
call fcn.00405420
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
mov eax, str._null_
cmovae ecx, dword [ebp + 8]
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.004031c0
mov ecx, dword [ebp - 0x514]
add esp, 0x10
mov eax, dword [ecx]
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004056b0
lea ecx, [ebp - 0x450]
call fcn.00404e30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404e30
mov esi, dword [ebp - 0x524]
mov eax, dword [ebp - 0x538]
add esi, eax
mov dword [ebp - 0x514], esi
lea eax, [esi + 0x14]
cmp dword [ebp - 0x510], eax
jbe 0x408b38
mov ecx, dword [ebp - 0x51c]
mov eax, dword [0x595924]
cmp eax, dword [esi + ecx + 4]
jne 0x408b2d
mov eax, dword [str.NullsoftInst7z]
cmp eax, dword [esi + ecx + 8]
jne 0x408b2d
mov eax, dword [0x59592c]
cmp eax, dword [esi + ecx + 0xc]
jne 0x408b2d
mov eax, dword [0x595930]
cmp eax, dword [esi + ecx + 0x10]
jne 0x408b2d
call fcn.00444b30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4088ad
push 0x5d
push 0x595968
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00407340
push 3
push 0x5957fc
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 7
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.00407340
mov byte [ebp - 4], 8
call fcn.00444b30
mov edi, eax
lea ecx, [ebp - 0x504]
push 0xc9
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00404340
mov esi, eax
push str.file_path:
push esi
mov byte [ebp - 4], 9
call fcn.00405420
add esp, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00403190
mov esi, eax
push str._section_end_nsis
push esi
call fcn.00405420
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004056b0
lea ecx, [ebp - 0x450]
call fcn.00404e30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404e30
mov esi, dword [ebp - 0x514]
mov edi, dword [ebp - 0x50c]
mov dword [ebp - 0x508], 1
test edi, edi
je 0x40a009
mov ecx, dword [ebp - 0x51c]
mov ax, word [0x595934]
cmp ax, word [esi + ecx]
jne 0x408a09
mov ax, word [0x595936]
cmp ax, word [esi + ecx + 2]
jne 0x408a09
mov ax, word [0x595938]
cmp ax, word [esi + ecx + 4]
jne 0x408a09
call fcn.00444b30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4089f1
push 0x5d
push 0x595968
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00407340
push 3
push 0x5957fc
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.00407340
mov byte [ebp - 4], 0xb
call fcn.00444b30
mov edi, eax
lea ecx, [ebp - 0x504]
push 0xd4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00404340
mov esi, eax
push str.file_path:
push esi
mov byte [ebp - 4], 0xc
call fcn.00405420
add esp, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00403190
mov esi, eax
push str._section_end_7z
push esi
call fcn.00405420
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004056b0
lea ecx, [ebp - 0x450]
call fcn.00404e30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404e30
mov esi, dword [ebp - 0x514]
mov edi, dword [ebp - 0x50c]
mov dword [ebp - 0x508], 1
test edi, edi
je 0x40a009
mov ecx, dword [ebp - 0x51c]
mov ax, word [0x59593c]
cmp ax, word [esi + ecx]
jne 0x408b3e
mov ax, word [0x59593e]
cmp ax, word [esi + ecx + 2]
jne 0x408b3e
call fcn.00444b30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x408b18
push 0x5d
push 0x595968
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00407340
push 3
push 0x5957fc
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.00407340
mov byte [ebp - 4], 0xe
call fcn.00444b30
mov edi, eax
lea ecx, [ebp - 0x504]
push 0xdd
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00404340
mov esi, eax
push str.file_path:
push esi
mov byte [ebp - 4], 0xf
call fcn.00405420
add esp, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00403190
mov esi, eax
push str._section_end_zip
push esi
call fcn.00405420
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004056b0
lea ecx, [ebp - 0x450]
call fcn.00404e30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404e30
mov edi, dword [ebp - 0x50c]
mov esi, 1
mov dword [ebp - 0x508], esi
test edi, edi
je 0x409dc8
jmp 0x408b3e
mov edi, dword [ebp - 0x50c]
jmp 0x4088cb
mov edi, dword [ebp - 0x50c]
mov ecx, dword [ebp - 0x534]
mov eax, dword [ebp - 0x530]
add ecx, ecx
add eax, dword [ebp - 0x51c]
mov esi, dword [eax + ecx*8 + 0x88]
push esi
push dword [ebp - 0x51c]
call fcn.00405b30
add esp, 8
test eax, eax
je 0x409dc2
mov ecx, dword [ebp - 0x510]
cmp eax, ecx
jae 0x409dc2
test esi, esi
je 0x409dc2
add eax, dword [ebp - 0x51c]
mov dword [ebp - 0x538], eax
mov dword [ebp - 0x534], 0
lea edx, [eax + 0x10]
mov dword [ebp - 0x524], edx
movzx edx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
add edx, eax
mov dword [ebp - 0x53c], edx
je 0x409dc2
mov eax, dword [ebp - 0x508]
xor edx, edx
test eax, eax
je 0x408bcf
test edi, edi
je 0x409dc2
mov eax, dword [ebp - 0x524]
mov esi, dword [eax + edx*8]
movzx eax, si
test esi, esi
js 0x408c50
cmp eax, 0x11
jae 0x408c1d
mov dword [ebp - 0x514], eax
mov ecx, 0x5dfd38
lea eax, [ebp - 0x514]
push eax
call fcn.00405540
mov ecx, dword [ebp - 0x524]
push dword [eax]
mov eax, dword [ebp - 0x534]
movzx eax, word [ecx + eax*8]
push eax
push str._u__t__s__n
call fcn.0040ab40
add esp, 0xc
jmp 0x408c98
push eax
lea eax, [ebp - 0x24]
push 0x595a9c
push eax
call fcn.00403ca0
mov ecx, dword [ebp - 0x524]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x534]
movzx eax, word [ecx + eax*8]
push eax
push str._u__t__s__n
call fcn.0040ab40
add esp, 0x18
jmp 0x408c98
and esi, 0x7fffffff
cmp esi, ecx
ja 0x409dc2
push 0x208
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.00553b10
mov ecx, dword [ebp - 0x538]
movzx eax, word [esi + ecx]
add eax, eax
push eax
lea eax, [ecx + 2]
add eax, esi
push eax
lea eax, [ebp - 0x230]
push 0x104
push eax
call fcn.0040aaa0
add esp, 0x1c
mov eax, dword [ebp - 0x534]
mov ecx, dword [ebp - 0x524]
mov eax, dword [ecx + eax*8 + 4]
test eax, eax
jns 0x409d9d
mov edx, dword [ebp - 0x51c]
and eax, 0x7fffffff
add eax, dword [ebp - 0x538]
cmp eax, edx
jb 0x409eb0
mov ecx, dword [ebp - 0x510]
add edx, ecx
mov dword [ebp - 0x514], edx
cmp eax, edx
jae 0x409eb0
movzx esi, word [eax + 0xe]
lea edx, [eax + 0x10]
movzx eax, word [eax + 0xc]
add esi, eax
mov dword [ebp - 0x518], edx
mov eax, 0
mov dword [ebp - 0x55c], esi
mov dword [ebp - 0x530], eax
je 0x409ea5
nop dword [eax]
mov esi, dword [edx + eax*8]
movzx eax, si
test esi, esi
js 0x408d8b
cmp eax, 0x11
jae 0x408d58
mov dword [ebp - 0x520], eax
mov ecx, 0x5dfd38
lea eax, [ebp - 0x520]
push eax
call fcn.00405540
mov ecx, dword [ebp - 0x530]
push dword [eax]
mov eax, dword [ebp - 0x518]
movzx eax, word [eax + ecx*8]
push eax
push str._u__t__s__n
call fcn.0040ab40
add esp, 0xc
jmp 0x408dc8
push eax
lea eax, [ebp - 0x24]
push 0x595a9c
push eax
call fcn.00403ca0
mov ecx, dword [ebp - 0x530]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x518]
movzx eax, word [eax + ecx*8]
push eax
push str._u__t__s__n
call fcn.0040ab40
add esp, 0x18
jmp 0x408dc8
push 0x208
lea eax, [ebp - 0x438]
and esi, 0x7fffffff
add esi, dword [ebp - 0x538]
push 0
push eax
call fcn.00553b10
movzx eax, word [esi]
add eax, eax
push eax
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x438]
push 0x104
push eax
call fcn.0040aaa0
add esp, 0x1c
mov eax, dword [ebp - 0x530]
mov edx, dword [ebp - 0x518]
mov eax, dword [edx + eax*8 + 4]
test eax, eax
jns 0x409bcd
mov esi, dword [ebp - 0x538]
and eax, 0x7fffffff
mov edi, dword [eax + esi + 0x14]
add edi, esi
mov dword [ebp - 0x520], edi
cmp edi, dword [ebp - 0x514]
jae 0x409dee
push dword [edi + 4]
push dword [edi]
push 0x595b2c
call fcn.0040ab40
push dword [edi]
push dword [ebp - 0x51c]
call fcn.00405b30
mov esi, eax
add esp, 0x14
add esi, dword [ebp - 0x51c]
mov dword [ebp - 0x52c], esi
cmp esi, dword [ebp - 0x51c]
jb 0x409cab
cmp esi, dword [ebp - 0x514]
jae 0x409cab
movzx eax, byte [esi]
push eax
push str.pRes____d
call fcn.0040ab40
add esp, 8
cmp dword [edi + 4], 0xa
jbe 0x409bc5
movzx ecx, word [esi]
cmp word [0x595934], cx
jne 0x408eae
mov ax, word [0x595936]
cmp ax, word [esi + 2]
jne 0x408eae
mov ax, word [0x595938]
cmp ax, word [esi + 4]
jne 0x408eae
cmp dword [ebp - 0x510], 0xa00000
mov edi, dword [ebp - 0x50c]
jbe 0x408eb4
mov eax, 1
mov dword [ebp - 0x508], eax
test edi, edi
je 0x409da3
jmp 0x408eb4
mov edi, dword [ebp - 0x50c]
cmp word [0x59593c], cx
jne 0x4090b7
mov ax, word [0x59593e]
cmp ax, word [esi + 2]
jne 0x4090b7
call fcn.00444b30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x408fb9
push 0x5d
push 0x595968
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00407340
push 3
push 0x5957fc
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.00407340
mov byte [ebp - 4], 0x17
call fcn.00444b30
mov edi, eax
lea ecx, [ebp - 0x504]
push 0x162
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00404340
mov esi, eax
push str.file_path:
push esi
mov byte [ebp - 4], 0x18
call fcn.00405420
add esp, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00403190
mov esi, eax
push str._res_zip
push esi
call fcn.00405420
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004056b0
lea ecx, [ebp - 0x450]
call fcn.00404e30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404e30
cmp dword [ebp - 0x510], 0xa00000
jbe 0x4090b1
call fcn.00444b30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x409096
push 0x5d
push 0x595968
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00407340
push 3
push 0x5957fc
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0x19
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.00407340
mov byte [ebp - 4], 0x1a
call fcn.00444b30
mov edi, eax
lea ecx, [ebp - 0x504]
push 0x164
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00404340
mov esi, eax
push str.fileSize_enough
push esi
mov byte [ebp - 4], 0x1b
call fcn.00405420
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004056b0
lea ecx, [ebp - 0x450]
call fcn.00404e30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404e30
mov edi, dword [ebp - 0x50c]
mov eax, 1
mov dword [ebp - 0x508], eax
test edi, edi
je 0x409da3
jmp 0x4090b7
mov edi, dword [ebp - 0x50c]
mov ecx, dword [ebp - 0x52c]
mov ax, word [str.MSCF]
cmp ax, word [ecx]
jne 0x4092c8
mov ax, word [0x595942]
cmp ax, word [ecx + 2]
jne 0x4092c8
call fcn.00444b30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4091c4
push 0x5d
push 0x595968
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00407340
push 3
push 0x5957fc
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0x1c
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.00407340
mov byte [ebp - 4], 0x1d
call fcn.00444b30
mov edi, eax
lea ecx, [ebp - 0x504]
push 0x170
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00404340
mov esi, eax
push str.file_path:
push esi
mov byte [ebp - 4], 0x1e
call fcn.00405420
add esp, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00403190
mov esi, eax
push str._res_cab
push esi
call fcn.00405420
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004056b0
lea ecx, [ebp - 0x450]
call fcn.00404e30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404e30
cmp dword [ebp - 0x510], 0xa00000
jbe 0x4092bc
call fcn.00444b30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4092a1
push 0x5d
push 0x595968
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00407340
push 3
push 0x5957fc
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0x1f
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.00407340
mov byte [ebp - 4], 0x20
call fcn.00444b30
mov edi, eax
lea ecx, [ebp - 0x504]
push 0x172
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00404340
mov esi, eax
push str.fileSize_enough
push esi
mov byte [ebp - 4], 0x21
call fcn.00405420
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004056b0
lea ecx, [ebp - 0x450]
call fcn.00404e30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404e30
mov edi, dword [ebp - 0x50c]
mov eax, 1
mov dword [ebp - 0x508], eax
test edi, edi
je 0x409da3
jmp 0x4092c2
mov edi, dword [ebp - 0x50c]
mov ecx, dword [ebp - 0x52c]
mov eax, dword [ebp - 0x534]
mov edx, dword [ebp - 0x524]
movzx eax, word [edx + eax*8]
cmp eax, 0x10
jne 0x40997d
mov eax, dword [ebp - 0x520]
mov edi, dword [eax + 4]
lea eax, [edi - 0x21]
cmp eax, 0xffdd
ja 0x409bc5
xor esi, esi
xor edx, edx
test edi, edi
je 0x40943a
cmp edx, 4
jge 0x409333
mov al, byte [edx + 0x595944]
add ecx, esi
inc edx
mov dword [ebp - 0x528], 0
inc esi
cmp byte [ecx], al
mov ecx, dword [ebp - 0x52c]
cmovne edx, dword [ebp - 0x528]
cmp esi, edi
jb 0x409304
cmp edx, 4
jne 0x40943a
call fcn.00444b30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x409421
push 0x5d
push 0x595968
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00407340
push 3
push 0x5957fc
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0x22
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.00407340
mov byte [ebp - 4], 0x23
call fcn.00444b30
mov edi, eax
lea ecx, [ebp - 0x504]
push 0x19d
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00404340
mov esi, eax
push str.file_path:
push esi
mov byte [ebp - 4], 0x24
call fcn.00405420
add esp, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00403190
mov esi, eax
push str._res_description_1
push esi
call fcn.00405420
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004056b0
lea ecx, [ebp - 0x450]
call fcn.00404e30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404e30
mov edi, dword [ebp - 0x50c]
mov eax, 1
mov dword [ebp - 0x508], eax
test edi, edi
je 0x409da3
mov eax, dword [ebp - 0x520]
xor esi, esi
xor edx, edx
mov edi, dword [eax + 4]
test edi, edi
je 0x409586
nop
cmp edx, 6
jge 0x40947f
mov ecx, dword [ebp - 0x52c]
mov al, byte [edx + 0x595948]
add ecx, esi
inc edx
mov dword [ebp - 0x528], 0
inc esi
cmp byte [ecx], al
cmovne edx, dword [ebp - 0x528]
cmp esi, edi
jb 0x409450
cmp edx, 6
jne 0x409586
call fcn.00444b30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40956d
push 0x5d
push 0x595968
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00407340
push 3
push 0x5957fc
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0x25
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.00407340
mov byte [ebp - 4], 0x26
call fcn.00444b30
mov edi, eax
lea ecx, [ebp - 0x504]
push 0x1b0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00404340
mov esi, eax
push str.file_path:
push esi
mov byte [ebp - 4], 0x27
call fcn.00405420
add esp, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00403190
mov esi, eax
push str._res_description_2
push esi
call fcn.00405420
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004056b0
lea ecx, [ebp - 0x450]
call fcn.00404e30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404e30
mov edi, dword [ebp - 0x50c]
mov eax, 1
mov dword [ebp - 0x508], eax
test edi, edi
je 0x409da3
mov eax, dword [ebp - 0x520]
xor esi, esi
xor edx, edx
mov edi, dword [eax + 4]
test edi, edi
je 0x4096d6
nop dword [eax + eax]
cmp edx, 0xc
jge 0x4095cf
mov ecx, dword [ebp - 0x52c]
mov al, byte [edx + str.nstall]
add ecx, esi
inc edx
mov dword [ebp - 0x528], 0
inc esi
cmp byte [ecx], al
cmovne edx, dword [ebp - 0x528]
cmp esi, edi
jb 0x4095a0
cmp edx, 0xc
jne 0x4096d6
call fcn.00444b30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4096bd
push 0x5d
push 0x595968
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00407340
push 3
push 0x5957fc
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0x28
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.00407340
mov byte [ebp - 4], 0x29
call fcn.00444b30
mov edi, eax
lea ecx, [ebp - 0x504]
push 0x1c3
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00404340
mov esi, eax
push str.file_path:
push esi
mov byte [ebp - 4], 0x2a
call fcn.00405420
add esp, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00403190
mov esi, eax
push str._res_description_3
push esi
call fcn.00405420
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004056b0
lea ecx, [ebp - 0x450]
call fcn.00404e30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404e30
mov edi, dword [ebp - 0x50c]
mov eax, 1
mov dword [ebp - 0x508], eax
test edi, edi
je 0x409da3
mov eax, dword [ebp - 0x520]
xor esi, esi
xor edx, edx
mov edi, dword [eax + 4]
test edi, edi
je 0x409826
nop dword [eax + eax]
cmp edx, 4
jge 0x40971f
mov ecx, dword [ebp - 0x52c]
mov al, byte [edx + 0x59595c]
add ecx, esi
inc edx
mov dword [ebp - 0x528], 0
inc esi
cmp byte [ecx], al
cmovne edx, dword [ebp - 0x528]
cmp esi, edi
jb 0x4096f0
cmp edx, 4
jne 0x409826
call fcn.00444b30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40980d
push 0x5d
push 0x595968
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00407340
push 3
push 0x5957fc
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0x2b
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.00407340
mov byte [ebp - 4], 0x2c
call fcn.00444b30
mov edi, eax
lea ecx, [ebp - 0x504]
push 0x1d6
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00404340
mov esi, eax
push str.file_path:
push esi
mov byte [ebp - 4], 0x2d
call fcn.00405420
add esp, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00403190
mov esi, eax
push str._res_description_4
push esi
call fcn.00405420
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004056b0
lea ecx, [ebp - 0x450]
call fcn.00404e30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404e30
mov edi, dword [ebp - 0x50c]
mov eax, 1
mov dword [ebp - 0x508], eax
test edi, edi
je 0x409da3
mov ecx, dword [ebp - 0x520]
xor eax, eax
xor edi, edi
cmp dword [ecx + 4], eax
jbe 0x409bc5
mov esi, dword [ebp - 0x52c]
nop
cmp eax, 8
jge 0x409871
mov cl, byte [eax + 0x595960]
lea edx, [edi + esi]
inc eax
mov dword [ebp - 0x528], 0
inc edi
cmp byte [edx], cl
mov ecx, dword [ebp - 0x520]
cmovne eax, dword [ebp - 0x528]
cmp edi, dword [ecx + 4]
jb 0x409840
cmp eax, 8
jne 0x409bc5
call fcn.00444b30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40995f
push 0x5d
push 0x595968
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00407340
push 3
push 0x5957fc
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0x2e
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.00407340
mov byte [ebp - 4], 0x2f
call fcn.00444b30
mov edi, eax
lea ecx, [ebp - 0x504]
push 0x1e9
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00404340
mov esi, eax
push str.file_path:
push esi
mov byte [ebp - 4], 0x30
call fcn.00405420
add esp, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00403190
mov esi, eax
push str._res_description_5
push esi
call fcn.00405420
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004056b0
lea ecx, [ebp - 0x450]
call fcn.00404e30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404e30
mov edi, dword [ebp - 0x50c]
mov eax, 1
mov dword [ebp - 0x508], eax
test edi, edi
je 0x409da3
jmp 0x409b9f
cmp eax, 0x18
jne 0x409b99
test edi, edi
je 0x409b99
mov eax, dword [ebp - 0x520]
mov edx, dword [eax + 4]
lea eax, [edx + ecx]
cmp eax, dword [ebp - 0x514]
jae 0x409bd5
push edx
push ecx
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.00407340
push 0x70
lea eax, [ebp - 0x4dc]
mov byte [ebp - 4], 0x34
push 0
push eax
call fcn.00553b10
add esp, 0xc
lea ecx, [ebp - 0x4dc]
call fcn.004468c0
cmp dword [ebp - 0x43c], 0x10
lea eax, [ebp - 0x450]
push 0
cmovae eax, dword [ebp - 0x450]
lea ecx, [ebp - 0x4dc]
push 0
push eax
mov byte [ebp - 4], 0x35
call fcn.00449c70
lea ecx, [ebp - 0x4dc]
call fcn.004483f0
test eax, eax
je 0x409b7f
push str.assembly
lea ecx, [ebp - 0x4dc]
call fcn.004483b0
test eax, eax
je 0x409b7f
push str.trustInfo
mov ecx, eax
call fcn.004483b0
test eax, eax
je 0x409b7f
push 0x595cc8
mov ecx, eax
call fcn.004483b0
test eax, eax
je 0x409b7f
push str.requestedPrivileges
mov ecx, eax
call fcn.004483b0
test eax, eax
je 0x409b7f
push str.requestedExecutionLevel
mov ecx, eax
call fcn.004483b0
test eax, eax
je 0x409b7f
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], 0xf
mov byte [ebp - 0x46c], 0
push str.level
mov ecx, eax
mov byte [ebp - 4], 0x36
call fcn.00447030
mov edx, eax
test edx, edx
je 0x409b74
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409ae0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00407340
lea ecx, [ebp - 0x46c]
call fcn.00404e30
movups xmm1, xmmword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x46c]
movq xmm0, qword [ebp - 0x18]
cmp esi, 0x10
push 0x14
movd edi, xmm1
push str.requireAdministrator
push dword [ebp - 0x18]
cmovae eax, edi
movq qword [ebp - 0x45c], xmm0
push eax
movups xmmword [ebp - 0x46c], xmm1
call fcn.00403c30
add esp, 0x10
test al, al
jne 0x409b63
push 0x10
push str.highestAvailable
push dword [ebp - 0x18]
cmp esi, 0x10
lea eax, [ebp - 0x46c]
cmovae eax, edi
push eax
call fcn.00403c30
add esp, 0x10
test al, al
je 0x409b6e
mov edi, dword [ebp - 0x50c]
mov byte [edi], 1
jmp 0x409b74
mov edi, dword [ebp - 0x50c]
lea ecx, [ebp - 0x46c]
call fcn.00404e30
lea ecx, [ebp - 0x4dc]
call fcn.00405020
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0
call fcn.00404e30
mov eax, dword [ebp - 0x508]
mov edx, dword [ebp - 0x518]
mov ecx, dword [ebp - 0x530]
inc ecx
mov dword [ebp - 0x530], ecx
cmp ecx, dword [ebp - 0x55c]
jae 0x409da3
mov eax, ecx
jmp 0x408d10
mov edi, dword [ebp - 0x50c]
jmp 0x409b99
mov eax, dword [ebp - 0x508]
jmp 0x409ba5
push str.manifest_res_is_out_of_the_valid_file_data_range._n
call fcn.0040ab40
add esp, 4
call fcn.00444b30
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x409d9d
push 0x5d
push 0x595968
lea ecx, [ebp - 0x554]
mov dword [ebp - 0x544], eax
mov dword [ebp - 0x540], 0xf
mov byte [ebp - 0x554], al
call fcn.00407340
push 3
push 0x595800
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x31
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00407340
mov byte [ebp - 4], 0x32
call fcn.00444b30
mov edi, eax
lea ecx, [ebp - 0x5f4]
push 0x1f5
lea eax, [ebp - 0x554]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00404340
mov esi, eax
push str.manifest_res_is_out_of_the_valid_file_data_range.
push esi
mov byte [ebp - 4], 0x33
call fcn.00405420
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x5f4]
call fcn.004056b0
lea ecx, [ebp - 0x28]
call fcn.00404e30
lea ecx, [ebp - 0x554]
jmp 0x409d8e
push str.pRes_is_out_of_the_valid_file_data_range._n
call fcn.0040ab40
add esp, 4
call fcn.00444b30
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x409d97
push 0x5d
push 0x595968
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], al
call fcn.00407340
push 3
push 0x595800
lea ecx, [ebp - 0x554]
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x544], 0
mov dword [ebp - 0x540], 0xf
mov byte [ebp - 0x554], 0
call fcn.00407340
mov byte [ebp - 4], 0x14
call fcn.00444b30
mov edi, eax
lea ecx, [ebp - 0x5f4]
push pe_nt_image_headers32
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x554]
push eax
call fcn.00404340
mov esi, eax
mov byte [ebp - 4], 0x15
push str.pRes_is_out_of_the_valid_file_data_range.
push esi
call fcn.00405420
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x5f4]
call fcn.004056b0
lea ecx, [ebp - 0x554]
call fcn.00404e30
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0
call fcn.00404e30
mov edi, dword [ebp - 0x50c]
mov eax, dword [ebp - 0x508]
mov ecx, dword [ebp - 0x510]
mov edx, dword [ebp - 0x534]
inc edx
mov dword [ebp - 0x534], edx
cmp edx, dword [ebp - 0x53c]
jb 0x408bc3
mov esi, dword [ebp - 0x508]
push dword [ebp - 0x51c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x558]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a03b
push str.pData_is_out_of_the_valid_file_data_range._n
call fcn.0040ab40
add esp, 4
call fcn.00444b30
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x409d97
push 0x5d
push 0x595968
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], al
call fcn.00407340
push 3
push 0x595800
lea ecx, [ebp - 0x554]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x544], 0
mov dword [ebp - 0x540], 0xf
mov byte [ebp - 0x554], 0
call fcn.00407340
mov byte [ebp - 4], 0x11
call fcn.00444b30
mov edi, eax
lea ecx, [ebp - 0x5f4]
push 0x13e
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x554]
push eax
call fcn.00404340
mov esi, eax
mov byte [ebp - 4], 0x12
push str.pData_is_out_of_the_valid_file_data_range.
jmp 0x409d61
mov eax, dword [ebp - 0x508]
jmp 0x409da9
push str.pSecondDir_is_out_of_the_valid_file_data_range._n
call fcn.0040ab40
add esp, 4
jmp 0x409dc2
call fcn.00444b30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x409fe5
mov edi, dword [0x5d5054]
lea ecx, [ebp - 0x450]
push 0x5d
push 0x595968
mov dword [ebp - 0x440], esi
lea eax, [edi + 1]
mov dword [ebp - 0x43c], 0xf
mov dword [0x5d5054], eax
mov byte [ebp - 0x450], 0
call fcn.00407340
push 3
push 0x5957fc
lea ecx, [ebp - 0x554]
mov byte [ebp - 4], 1
mov dword [ebp - 0x544], 0
mov dword [ebp - 0x540], 0xf
mov byte [ebp - 0x554], 0
call fcn.00407340
mov byte [ebp - 4], 2
call fcn.00444b30
mov dword [ebp - 0x53c], eax
lea ecx, [ebp - 0x5f4]
push 0x6c
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x554]
push eax
call fcn.00404340
mov esi, eax
push str._pe
push esi
mov byte [ebp - 4], 3
call fcn.00405420
add esp, 8
mov ecx, esi
push edi
call fcn.00405280
push str._path:
push esi
call fcn.00405420
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
mov eax, str._null_
cmovae ecx, dword [ebp + 8]
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.004031c0
mov ecx, dword [ebp - 0x53c]
add esp, 0x10
mov eax, dword [ecx]
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x5f4]
call fcn.004056b0
lea ecx, [ebp - 0x554]
call fcn.00404e30
lea ecx, [ebp - 0x450]
call fcn.00404e30
xor esi, esi
push str.Invalid_or_suspicious_e_lfanew_value._n
call fcn.0040ab40
add esp, 4
jmp 0x409dc8
push str.read_file_failed
call fcn.0040ab40
add esp, 4
jmp 0x409dc8
mov esi, 1
jmp 0x409dc8
push str.Failed_to_allocate_on_heap
call fcn.0040ab40
add esp, 4
push dword [ebp - 0x558]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a03b
push str.Could_not_read_file
call fcn.0040ab40
add esp, 4
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x40a071
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a067
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a08e
push edx
push ecx
call fcn.004671e6
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046748e
mov esp, ebp
pop ebp
ret
call fcn.0055718a
int3