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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ca6b
mov eax, dword fs:[0]
push eax
sub esp, 0x538
mov eax, dword [0x5c9440]
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 0x4080e6
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 - 0x53c], eax
cmp eax, 0xffffffff
je 0x409a6d
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 - 0x518], eax
test eax, eax
je 0x409a52
push 0
lea ecx, [ebp - 0x454]
push ecx
push edi
push eax
push dword [ebp - 0x53c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409a36
mov edi, dword [ebp - 0x518]
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x408ac4
mov ecx, dword [edi + 0x3c]
mov dword [ebp - 0x51c], ecx
lea eax, [ecx - 1]
cmp eax, 0x3ff
ja 0x409913
add edi, ecx
cmp dword [edi], 0x4550
jne 0x408ac4
movzx ecx, word [edi + 4]
mov eax, 0x200
cmp cx, ax
je 0x4081ba
mov edx, 0x8664
xor eax, eax
cmp cx, dx
jne 0x4081bf
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 - 0x524], eax
call fcn.0040a580
movzx eax, word [edi + 0x14]
lea ecx, [edi + 0x18]
movzx edi, word [edi + 6]
add ecx, eax
xor eax, eax
mov dword [ebp - 0x528], edi
xor esi, esi
mov dword [ebp - 0x520], eax
add esp, 4
mov dword [ebp - 0x52c], esi
xor edx, edx
test edi, edi
je 0x408366
mov esi, dword [ecx + 0x14]
mov edi, dword [ecx + 0x10]
lea eax, [edi + esi]
cmp eax, dword [ebp - 0x510]
ja 0x408240
inc edx
mov dword [ebp - 0x52c], esi
mov eax, edi
add ecx, 0x28
mov dword [ebp - 0x520], eax
cmp edx, dword [ebp - 0x528]
jl 0x408210
jmp 0x408366
call fcn.0043b940
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40835a
mov edi, dword [0x5c9058]
lea ecx, [ebp - 0x28]
push 0x5d
push 0x58a960
mov dword [ebp - 0x18], 0
lea eax, [edi + 1]
mov dword [ebp - 0x14], 0xf
mov dword [0x5c9058], eax
mov byte [ebp - 0x28], 0
call fcn.00406f40
push 3
push 0x58a9c0
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.00406f40
mov byte [ebp - 4], 5
call fcn.0043b940
mov dword [ebp - 0x528], eax
lea ecx, [ebp - 0x504]
push 0x9f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00403fb0
mov esi, eax
push 0x58aa30
push esi
mov byte [ebp - 4], 6
call fcn.00405020
add esp, 8
mov ecx, esi
push edi
call fcn.00404e80
push str._path:
push esi
call fcn.00405020
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.00402e40
mov ecx, dword [ebp - 0x528]
add esp, 0x10
mov eax, dword [ecx]
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004052b0
lea ecx, [ebp - 0x450]
call fcn.00404a30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404a30
mov esi, dword [ebp - 0x52c]
mov eax, dword [ebp - 0x520]
add esi, eax
mov dword [ebp - 0x520], esi
lea eax, [esi + 0x14]
cmp dword [ebp - 0x510], eax
jbe 0x408738
mov ecx, dword [ebp - 0x518]
mov eax, dword [0x58a91c]
cmp eax, dword [esi + ecx + 4]
jne 0x40872d
mov eax, dword [str.NullsoftInst7z]
cmp eax, dword [esi + ecx + 8]
jne 0x40872d
mov eax, dword [0x58a924]
cmp eax, dword [esi + ecx + 0xc]
jne 0x40872d
mov eax, dword [0x58a928]
cmp eax, dword [esi + ecx + 0x10]
jne 0x40872d
call fcn.0043b940
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4084ad
push 0x5d
push 0x58a960
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00406f40
push 3
push 0x58a9c0
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.00406f40
mov byte [ebp - 4], 8
call fcn.0043b940
mov edi, eax
lea ecx, [ebp - 0x504]
push 0xc9
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00403fb0
mov esi, eax
push str.file_path:
push esi
mov byte [ebp - 4], 9
call fcn.00405020
add esp, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00402e10
mov esi, eax
push str._section_end_nsis
push esi
call fcn.00405020
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004052b0
lea ecx, [ebp - 0x450]
call fcn.00404a30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404a30
mov esi, dword [ebp - 0x520]
mov edi, dword [ebp - 0x50c]
mov dword [ebp - 0x508], 1
test edi, edi
je 0x409a48
mov ecx, dword [ebp - 0x518]
mov ax, word [0x58a92c]
cmp ax, word [esi + ecx]
jne 0x408609
mov ax, word [0x58a92e]
cmp ax, word [esi + ecx + 2]
jne 0x408609
mov ax, word [0x58a930]
cmp ax, word [esi + ecx + 4]
jne 0x408609
call fcn.0043b940
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4085f1
push 0x5d
push 0x58a960
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00406f40
push 3
push 0x58a9c0
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.00406f40
mov byte [ebp - 4], 0xb
call fcn.0043b940
mov edi, eax
lea ecx, [ebp - 0x504]
push 0xd4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00403fb0
mov esi, eax
push str.file_path:
push esi
mov byte [ebp - 4], 0xc
call fcn.00405020
add esp, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00402e10
mov esi, eax
push str._section_end_7z
push esi
call fcn.00405020
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004052b0
lea ecx, [ebp - 0x450]
call fcn.00404a30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404a30
mov esi, dword [ebp - 0x520]
mov edi, dword [ebp - 0x50c]
mov dword [ebp - 0x508], 1
test edi, edi
je 0x409a48
mov ecx, dword [ebp - 0x518]
mov ax, word [0x58a934]
cmp ax, word [esi + ecx]
jne 0x40873e
mov ax, word [0x58a936]
cmp ax, word [esi + ecx + 2]
jne 0x40873e
call fcn.0043b940
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x408718
push 0x5d
push 0x58a960
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00406f40
push 3
push 0x58a9c0
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.00406f40
mov byte [ebp - 4], 0xe
call fcn.0043b940
mov edi, eax
lea ecx, [ebp - 0x504]
push 0xdd
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00403fb0
mov esi, eax
push str.file_path:
push esi
mov byte [ebp - 4], 0xf
call fcn.00405020
add esp, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00402e10
mov esi, eax
push str._section_end_zip
push esi
call fcn.00405020
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004052b0
lea ecx, [ebp - 0x450]
call fcn.00404a30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404a30
mov edi, dword [ebp - 0x50c]
mov esi, 1
mov dword [ebp - 0x508], esi
test edi, edi
je 0x408ac4
jmp 0x40873e
mov edi, dword [ebp - 0x50c]
jmp 0x4084cb
mov edi, dword [ebp - 0x50c]
mov ecx, dword [ebp - 0x524]
mov eax, dword [ebp - 0x51c]
add ecx, ecx
add eax, dword [ebp - 0x518]
mov esi, dword [eax + ecx*8 + 0x88]
push esi
push dword [ebp - 0x518]
call fcn.00405730
add esp, 8
test eax, eax
je 0x408abe
mov ecx, dword [ebp - 0x510]
cmp eax, ecx
jae 0x408abe
test esi, esi
je 0x408abe
mov edx, dword [ebp - 0x518]
add edx, eax
mov dword [ebp - 0x528], 0
mov dword [ebp - 0x520], edx
movzx esi, word [edx + 0xe]
lea eax, [edx + 0x10]
mov dword [ebp - 0x52c], eax
movzx eax, word [edx + 0xc]
add esi, eax
mov dword [ebp - 0x538], esi
je 0x408abe
mov eax, dword [ebp - 0x508]
xor edx, edx
test eax, eax
je 0x4087d1
test edi, edi
je 0x408abe
mov eax, dword [ebp - 0x52c]
mov esi, dword [eax + edx*8]
movzx eax, si
test esi, esi
js 0x408852
cmp eax, 0x11
jae 0x40881f
mov dword [ebp - 0x524], eax
mov ecx, 0x5d3b10
lea eax, [ebp - 0x524]
push eax
call fcn.00405140
mov ecx, dword [ebp - 0x52c]
push dword [eax]
mov eax, dword [ebp - 0x528]
movzx eax, word [ecx + eax*8]
push eax
push str._u__t__s__n
call fcn.0040a580
add esp, 0xc
jmp 0x40889a
push eax
lea eax, [ebp - 0x24]
push 0x58aa98
push eax
call fcn.00403920
mov ecx, dword [ebp - 0x52c]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x528]
movzx eax, word [ecx + eax*8]
push eax
push str._u__t__s__n
call fcn.0040a580
add esp, 0x18
jmp 0x40889a
and esi, 0x7fffffff
cmp esi, ecx
ja 0x408abe
push 0x208
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.005497a0
mov ecx, dword [ebp - 0x520]
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.0040a4e0
add esp, 0x1c
mov eax, dword [ebp - 0x528]
mov ecx, dword [ebp - 0x52c]
mov eax, dword [ecx + eax*8 + 4]
test eax, eax
jns 0x4098eb
mov edx, dword [ebp - 0x520]
and eax, 0x7fffffff
mov esi, dword [ebp - 0x518]
add eax, edx
cmp eax, esi
jb 0x409901
mov ecx, dword [ebp - 0x510]
add esi, ecx
mov dword [ebp - 0x540], esi
cmp eax, esi
jae 0x409901
movzx edi, word [eax + 0xe]
lea esi, [eax + 0x10]
movzx eax, word [eax + 0xc]
add edi, eax
mov dword [ebp - 0x514], esi
mov eax, 0
mov dword [ebp - 0x544], edi
mov edi, dword [ebp - 0x50c]
mov dword [ebp - 0x524], eax
je 0x4098f6
mov esi, dword [esi + eax*8]
movzx eax, si
test esi, esi
js 0x40898e
cmp eax, 0x11
jae 0x40895b
mov dword [ebp - 0x51c], eax
mov ecx, 0x5d3b10
lea eax, [ebp - 0x51c]
push eax
call fcn.00405140
mov ecx, dword [ebp - 0x524]
mov esi, dword [ebp - 0x514]
push dword [eax]
movzx eax, word [esi + ecx*8]
push eax
push str._u__t__s__n
call fcn.0040a580
add esp, 0xc
jmp 0x4089cd
push eax
lea eax, [ebp - 0x24]
push 0x58aa98
push eax
call fcn.00403920
mov ecx, dword [ebp - 0x524]
lea eax, [ebp - 0x24]
mov esi, dword [ebp - 0x514]
push eax
movzx eax, word [esi + ecx*8]
push eax
push str._u__t__s__n
call fcn.0040a580
add esp, 0x18
jmp 0x4089cd
push 0x208
lea eax, [ebp - 0x438]
and esi, 0x7fffffff
push 0
push eax
add esi, edx
call fcn.005497a0
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.0040a4e0
mov esi, dword [ebp - 0x514]
add esp, 0x1c
mov eax, dword [ebp - 0x524]
mov eax, dword [esi + eax*8 + 4]
test eax, eax
jns 0x409803
mov ecx, dword [ebp - 0x520]
and eax, 0x7fffffff
mov edi, dword [eax + ecx + 0x14]
add edi, ecx
mov dword [ebp - 0x51c], edi
push dword [edi + 4]
push dword [edi]
push 0x58aad0
call fcn.0040a580
push dword [edi]
push dword [ebp - 0x518]
call fcn.00405730
mov esi, eax
add esp, 0x14
add esi, dword [ebp - 0x518]
mov dword [ebp - 0x534], esi
cmp esi, dword [ebp - 0x518]
jb 0x40980b
cmp esi, dword [ebp - 0x540]
jae 0x40980b
movzx eax, byte [esi]
push eax
push str.pRes____d
call fcn.0040a580
add esp, 8
cmp dword [edi + 4], 0xa
jbe 0x4097fb
movzx ecx, word [esi]
cmp word [0x58a92c], cx
jne 0x408aea
mov ax, word [0x58a92e]
cmp ax, word [esi + 2]
jne 0x408aea
mov ax, word [0x58a930]
cmp ax, word [esi + 4]
jne 0x408aea
cmp dword [ebp - 0x510], 0xa00000
mov edi, dword [ebp - 0x50c]
jbe 0x408af0
mov eax, 1
mov dword [ebp - 0x508], eax
test edi, edi
jne 0x408af0
mov ecx, dword [ebp - 0x510]
mov edx, dword [ebp - 0x528]
inc edx
mov dword [ebp - 0x528], edx
cmp edx, dword [ebp - 0x538]
jb 0x4087c5
mov esi, dword [ebp - 0x508]
push dword [ebp - 0x518]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x53c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409a7a
mov edi, dword [ebp - 0x50c]
cmp word [0x58a934], cx
jne 0x408cf3
mov ax, word [0x58a936]
cmp ax, word [esi + 2]
jne 0x408cf3
call fcn.0043b940
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x408bf5
push 0x5d
push 0x58a960
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00406f40
push 3
push 0x58a9c0
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.00406f40
mov byte [ebp - 4], 0x14
call fcn.0043b940
mov edi, eax
lea ecx, [ebp - 0x504]
push 0x15d
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00403fb0
mov esi, eax
push str.file_path:
push esi
mov byte [ebp - 4], 0x15
call fcn.00405020
add esp, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00402e10
mov esi, eax
push str._res_zip
push esi
call fcn.00405020
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004052b0
lea ecx, [ebp - 0x450]
call fcn.00404a30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404a30
cmp dword [ebp - 0x510], 0xa00000
jbe 0x408ced
call fcn.0043b940
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x408cd2
push 0x5d
push 0x58a960
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00406f40
push 3
push 0x58a9c0
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.00406f40
mov byte [ebp - 4], 0x17
call fcn.0043b940
mov edi, eax
lea ecx, [ebp - 0x504]
push 0x15f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00403fb0
mov esi, eax
push str.fileSize_enough
push esi
mov byte [ebp - 4], 0x18
call fcn.00405020
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004052b0
lea ecx, [ebp - 0x450]
call fcn.00404a30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404a30
mov edi, dword [ebp - 0x50c]
mov eax, 1
mov dword [ebp - 0x508], eax
test edi, edi
je 0x408a9f
jmp 0x408cf3
mov edi, dword [ebp - 0x50c]
mov ecx, dword [ebp - 0x534]
mov ax, word [str.MSCF]
cmp ax, word [ecx]
jne 0x408f04
mov ax, word [0x58a93a]
cmp ax, word [ecx + 2]
jne 0x408f04
call fcn.0043b940
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x408e00
push 0x5d
push 0x58a960
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00406f40
push 3
push 0x58a9c0
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.00406f40
mov byte [ebp - 4], 0x1a
call fcn.0043b940
mov edi, eax
lea ecx, [ebp - 0x504]
push 0x16b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00403fb0
mov esi, eax
push str.file_path:
push esi
mov byte [ebp - 4], 0x1b
call fcn.00405020
add esp, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00402e10
mov esi, eax
push str._res_cab
push esi
call fcn.00405020
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004052b0
lea ecx, [ebp - 0x450]
call fcn.00404a30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404a30
cmp dword [ebp - 0x510], 0xa00000
jbe 0x408ef8
call fcn.0043b940
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x408edd
push 0x5d
push 0x58a960
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00406f40
push 3
push 0x58a9c0
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.00406f40
mov byte [ebp - 4], 0x1d
call fcn.0043b940
mov edi, eax
lea ecx, [ebp - 0x504]
push 0x16d
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00403fb0
mov esi, eax
push str.fileSize_enough
push esi
mov byte [ebp - 4], 0x1e
call fcn.00405020
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004052b0
lea ecx, [ebp - 0x450]
call fcn.00404a30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404a30
mov edi, dword [ebp - 0x50c]
mov eax, 1
mov dword [ebp - 0x508], eax
test edi, edi
je 0x408a9f
jmp 0x408efe
mov edi, dword [ebp - 0x50c]
mov ecx, dword [ebp - 0x534]
mov eax, dword [ebp - 0x528]
mov edx, dword [ebp - 0x52c]
movzx eax, word [edx + eax*8]
cmp eax, 0x10
jne 0x4095bd
mov eax, dword [ebp - 0x51c]
mov edi, dword [eax + 4]
lea eax, [edi - 0x21]
cmp eax, 0xffdd
ja 0x4097fb
xor esi, esi
xor edx, edx
test edi, edi
je 0x409076
cmp edx, 4
jge 0x408f6f
mov al, byte [edx + 0x58a93c]
add ecx, esi
inc edx
mov dword [ebp - 0x530], 0
inc esi
cmp byte [ecx], al
mov ecx, dword [ebp - 0x534]
cmovne edx, dword [ebp - 0x530]
cmp esi, edi
jb 0x408f40
cmp edx, 4
jne 0x409076
call fcn.0043b940
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40905d
push 0x5d
push 0x58a960
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00406f40
push 3
push 0x58a9c0
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.00406f40
mov byte [ebp - 4], 0x20
call fcn.0043b940
mov edi, eax
lea ecx, [ebp - 0x504]
push 0x198
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00403fb0
mov esi, eax
push str.file_path:
push esi
mov byte [ebp - 4], 0x21
call fcn.00405020
add esp, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00402e10
mov esi, eax
push str._res_description_1
push esi
call fcn.00405020
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004052b0
lea ecx, [ebp - 0x450]
call fcn.00404a30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404a30
mov edi, dword [ebp - 0x50c]
mov eax, 1
mov dword [ebp - 0x508], eax
test edi, edi
je 0x408a9f
mov eax, dword [ebp - 0x51c]
xor esi, esi
xor edx, edx
mov edi, dword [eax + 4]
test edi, edi
je 0x4091c6
nop dword [eax + eax]
cmp edx, 6
jge 0x4090bf
mov ecx, dword [ebp - 0x534]
mov al, byte [edx + 0x58a940]
add ecx, esi
inc edx
mov dword [ebp - 0x530], 0
inc esi
cmp byte [ecx], al
cmovne edx, dword [ebp - 0x530]
cmp esi, edi
jb 0x409090
cmp edx, 6
jne 0x4091c6
call fcn.0043b940
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4091ad
push 0x5d
push 0x58a960
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00406f40
push 3
push 0x58a9c0
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.00406f40
mov byte [ebp - 4], 0x23
call fcn.0043b940
mov edi, eax
lea ecx, [ebp - 0x504]
push 0x1ab
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00403fb0
mov esi, eax
push str.file_path:
push esi
mov byte [ebp - 4], 0x24
call fcn.00405020
add esp, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00402e10
mov esi, eax
push str._res_description_2
push esi
call fcn.00405020
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004052b0
lea ecx, [ebp - 0x450]
call fcn.00404a30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404a30
mov edi, dword [ebp - 0x50c]
mov eax, 1
mov dword [ebp - 0x508], eax
test edi, edi
je 0x408a9f
mov eax, dword [ebp - 0x51c]
xor esi, esi
xor edx, edx
mov edi, dword [eax + 4]
test edi, edi
je 0x409316
nop dword [eax + eax]
cmp edx, 0xc
jge 0x40920f
mov ecx, dword [ebp - 0x534]
mov al, byte [edx + str.nstall]
add ecx, esi
inc edx
mov dword [ebp - 0x530], 0
inc esi
cmp byte [ecx], al
cmovne edx, dword [ebp - 0x530]
cmp esi, edi
jb 0x4091e0
cmp edx, 0xc
jne 0x409316
call fcn.0043b940
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4092fd
push 0x5d
push 0x58a960
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00406f40
push 3
push 0x58a9c0
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.00406f40
mov byte [ebp - 4], 0x26
call fcn.0043b940
mov edi, eax
lea ecx, [ebp - 0x504]
push 0x1be
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00403fb0
mov esi, eax
push str.file_path:
push esi
mov byte [ebp - 4], 0x27
call fcn.00405020
add esp, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00402e10
mov esi, eax
push str._res_description_3
push esi
call fcn.00405020
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004052b0
lea ecx, [ebp - 0x450]
call fcn.00404a30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404a30
mov edi, dword [ebp - 0x50c]
mov eax, 1
mov dword [ebp - 0x508], eax
test edi, edi
je 0x408a9f
mov eax, dword [ebp - 0x51c]
xor esi, esi
xor edx, edx
mov edi, dword [eax + 4]
test edi, edi
je 0x409466
nop dword [eax + eax]
cmp edx, 4
jge 0x40935f
mov ecx, dword [ebp - 0x534]
mov al, byte [edx + 0x58a954]
add ecx, esi
inc edx
mov dword [ebp - 0x530], 0
inc esi
cmp byte [ecx], al
cmovne edx, dword [ebp - 0x530]
cmp esi, edi
jb 0x409330
cmp edx, 4
jne 0x409466
call fcn.0043b940
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40944d
push 0x5d
push 0x58a960
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00406f40
push 3
push 0x58a9c0
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.00406f40
mov byte [ebp - 4], 0x29
call fcn.0043b940
mov edi, eax
lea ecx, [ebp - 0x504]
push 0x1d1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00403fb0
mov esi, eax
push str.file_path:
push esi
mov byte [ebp - 4], 0x2a
call fcn.00405020
add esp, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00402e10
mov esi, eax
push str._res_description_4
push esi
call fcn.00405020
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004052b0
lea ecx, [ebp - 0x450]
call fcn.00404a30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404a30
mov edi, dword [ebp - 0x50c]
mov eax, 1
mov dword [ebp - 0x508], eax
test edi, edi
je 0x408a9f
mov ecx, dword [ebp - 0x51c]
xor eax, eax
xor edi, edi
cmp dword [ecx + 4], eax
jbe 0x4097fb
mov esi, dword [ebp - 0x534]
nop
cmp eax, 8
jge 0x4094b1
mov cl, byte [eax + 0x58a958]
lea edx, [edi + esi]
inc eax
mov dword [ebp - 0x530], 0
inc edi
cmp byte [edx], cl
mov ecx, dword [ebp - 0x51c]
cmovne eax, dword [ebp - 0x530]
cmp edi, dword [ecx + 4]
jb 0x409480
cmp eax, 8
jne 0x4097fb
call fcn.0043b940
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40959f
push 0x5d
push 0x58a960
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00406f40
push 3
push 0x58a9c0
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.00406f40
mov byte [ebp - 4], 0x2c
call fcn.0043b940
mov edi, eax
lea ecx, [ebp - 0x504]
push 0x1e4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00403fb0
mov esi, eax
push str.file_path:
push esi
mov byte [ebp - 4], 0x2d
call fcn.00405020
add esp, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00402e10
mov esi, eax
push str._res_description_5
push esi
call fcn.00405020
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004052b0
lea ecx, [ebp - 0x450]
call fcn.00404a30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404a30
mov edi, dword [ebp - 0x50c]
mov eax, 1
mov dword [ebp - 0x508], eax
test edi, edi
je 0x408a9f
jmp 0x4097cf
cmp eax, 0x18
jne 0x4097c9
test edi, edi
je 0x4097c9
mov eax, dword [ebp - 0x51c]
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
push dword [eax + 4]
push ecx
lea ecx, [ebp - 0x450]
call fcn.00406f40
push 0x70
lea eax, [ebp - 0x4dc]
mov byte [ebp - 4], 0x2e
push 0
push eax
call fcn.005497a0
add esp, 0xc
lea ecx, [ebp - 0x4dc]
call fcn.0043cc00
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], 0x2f
call fcn.00440000
lea ecx, [ebp - 0x4dc]
call fcn.0043e730
test eax, eax
je 0x4097af
push str.assembly
lea ecx, [ebp - 0x4dc]
call fcn.0043e6f0
test eax, eax
je 0x4097af
push str.trustInfo
mov ecx, eax
call fcn.0043e6f0
test eax, eax
je 0x4097af
push 0x58ac08
mov ecx, eax
call fcn.0043e6f0
test eax, eax
je 0x4097af
push str.requestedPrivileges
mov ecx, eax
call fcn.0043e6f0
test eax, eax
je 0x4097af
push str.requestedExecutionLevel
mov ecx, eax
call fcn.0043e6f0
test eax, eax
je 0x4097af
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], 0x30
call fcn.0043d370
mov edx, eax
test edx, edx
je 0x4097a4
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 0x409710
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00406f40
lea ecx, [ebp - 0x46c]
call fcn.00404a30
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.004038b0
add esp, 0x10
test al, al
jne 0x409793
push 0x10
push str.highestAvailable
push dword [ebp - 0x18]
cmp esi, 0x10
lea eax, [ebp - 0x46c]
cmovae eax, edi
push eax
call fcn.004038b0
add esp, 0x10
test al, al
je 0x40979e
mov edi, dword [ebp - 0x50c]
mov byte [edi], 1
jmp 0x4097a4
mov edi, dword [ebp - 0x50c]
lea ecx, [ebp - 0x46c]
call fcn.00404a30
lea ecx, [ebp - 0x4dc]
call fcn.00404c20
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0
call fcn.00404a30
mov eax, dword [ebp - 0x508]
mov esi, dword [ebp - 0x514]
mov ecx, dword [ebp - 0x524]
inc ecx
mov dword [ebp - 0x524], ecx
cmp ecx, dword [ebp - 0x544]
jae 0x408a9f
mov edx, dword [ebp - 0x520]
mov eax, ecx
jmp 0x408913
mov edi, dword [ebp - 0x50c]
jmp 0x4097c9
mov eax, dword [ebp - 0x508]
jmp 0x4097d5
push str.pRes_is_out_of_the_valid_file_data_range._n
call fcn.0040a580
add esp, 4
call fcn.0043b940
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4098e5
push 0x5d
push 0x58a960
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00406f40
push 3
push 0x58ab1c
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.00406f40
mov byte [ebp - 4], 0x11
call fcn.0043b940
mov edi, eax
lea ecx, [ebp - 0x504]
push 0x143
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00403fb0
mov esi, eax
push str.pRes_is_out_of_the_valid_file_data_range.
push esi
mov byte [ebp - 4], 0x12
call fcn.00405020
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004052b0
lea ecx, [ebp - 0x450]
call fcn.00404a30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404a30
mov edi, dword [ebp - 0x50c]
mov eax, dword [ebp - 0x508]
jmp 0x408a9f
mov eax, dword [ebp - 0x508]
jmp 0x408aa5
push str.pSecondDir_is_out_of_the_valid_file_data_range._n
call fcn.0040a580
add esp, 4
jmp 0x408abe
call fcn.0043b940
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x409a24
mov edi, dword [0x5c9054]
lea ecx, [ebp - 0x28]
push 0x5d
push 0x58a960
mov dword [ebp - 0x18], esi
lea eax, [edi + 1]
mov dword [ebp - 0x14], 0xf
mov dword [0x5c9054], eax
mov byte [ebp - 0x28], 0
call fcn.00406f40
push 3
push 0x58a9c0
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 1
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.00406f40
mov byte [ebp - 4], 2
call fcn.0043b940
mov dword [ebp - 0x538], eax
lea ecx, [ebp - 0x504]
push 0x6c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00403fb0
mov esi, eax
push str._pe
push esi
mov byte [ebp - 4], 3
call fcn.00405020
add esp, 8
mov ecx, esi
push edi
call fcn.00404e80
push str._path:
push esi
call fcn.00405020
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.00402e40
mov ecx, dword [ebp - 0x538]
add esp, 0x10
mov eax, dword [ecx]
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x504]
call fcn.004052b0
lea ecx, [ebp - 0x450]
call fcn.00404a30
lea ecx, [ebp - 0x28]
call fcn.00404a30
xor esi, esi
push str.Invalid_or_suspicious_e_lfanew_value._n
call fcn.0040a580
add esp, 4
jmp 0x408ac4
push str.read_file_failed
call fcn.0040a580
add esp, 4
jmp 0x408ac4
mov esi, 1
jmp 0x408ac4
push str.Failed_to_allocate_on_heap
call fcn.0040a580
add esp, 4
push dword [ebp - 0x53c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409a7a
push str.Could_not_read_file
call fcn.0040a580
add esp, 4
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x409ab0
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409aa6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409acd
push edx
push ecx
call fcn.0045d8e6
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.0045db8e
mov esp, ebp
pop ebp
ret
call fcn.0054ce1a
int3