Function at 0x7ef7105e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
mov eax, 0x7ef9433b
call fcn.7ef890d8
sub esp, 0x240
push esi
push edi
and dword [ebp - 0x34], 0
and dword [ebp - 4], 0
and dword [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
push eax
push 0
push 1
mov eax, dword [ebp + 0xc]
push dword [eax]
mov eax, dword [ebp + 0xc]
push dword [eax + 0x24]
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call fcn.7ef7488e
add esp, 0x1c
test eax, eax
jne 0x7ef710c0
and byte [ebp - 0x1f0], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.7ef86114
mov al, byte [ebp - 0x1f0]
jmp 0x7ef71a63
mov eax, dword [0x7efa2154]
mov eax, dword [eax]
and eax, 0x40000
neg eax
sbb eax, eax
neg eax
movzx eax, al
test eax, eax
je 0x7ef710e8
push dword [ebp - 0x34]
push str.Self_Loading___s_n
call fcn.7ef54190
pop ecx
pop ecx
push dword [0x7efa5e10]
push dword [ebp - 0x34]
call fcn.7ef86204
pop ecx
pop ecx
test eax, eax
jne 0x7ef71106
call fcn.7ef62d50
mov dword [ebp - 0x24], eax
jmp 0x7ef71123
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push dword [ebp - 0x34]
call fcn.7ef6299c
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x7ef71146
push dword [ebp + 8]
push str.Unable_to_load_module__s
push 0x538
push str.X:_thinstall_stubload_library.cc
call fcn.7ef85958
pop ecx
pop ecx
call eax
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x10]
push eax
push 0x40
lea eax, [ebp - 0x188]
push eax
push dword [ebp - 0x24]
call fcn.7ef632cc
movsx eax, byte [ebp - 0x188]
cmp eax, 0x4d
jne 0x7ef71175
movsx eax, byte [ebp - 0x187]
cmp eax, 0x5a
je 0x7ef7119b
push dword [ebp - 0x24]
call fcn.7ef64324
and byte [ebp - 0x1f4], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.7ef86114
mov al, byte [ebp - 0x1f4]
jmp 0x7ef71a63
push 0
push 0
push dword [ebp - 0x14c]
push dword [ebp - 0x24]
call fcn.7ef63f1f
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x24]
call fcn.7ef632cc
cmp dword [ebp - 0x64], 0x4550
jne 0x7ef711d0
cmp dword [ebp - 0x10], 4
je 0x7ef711f6
push dword [ebp - 0x24]
call fcn.7ef64324
and byte [ebp - 0x1f8], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.7ef86114
mov al, byte [ebp - 0x1f8]
jmp 0x7ef71a63
push 0
lea eax, [ebp - 0x10]
push eax
push 0x14
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x24]
call fcn.7ef632cc
push 0
lea eax, [ebp - 0x10]
push eax
push 0xe0
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x24]
call fcn.7ef632cc
and dword [ebp - 0x38], 0
and dword [ebp - 0x40], 0
mov eax, dword [0x7efa58e0]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 1
jne 0x7ef71280
mov eax, dword [ebp - 0x128]
cmp eax, dword [0x7efa58e0]
jb 0x7ef71280
mov eax, dword [ebp - 0x128]
add eax, dword [ebp - 0x10c]
mov ecx, dword [0x7efa58e0]
add ecx, dword [0x7efa58d4]
cmp eax, ecx
ja 0x7ef71280
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x38], eax
and dword [0x7efa58e0], 0
mov dword [ebp - 0x40], 1
jmp 0x7ef712f8
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 1
jne 0x7ef712b7
cmp dword [0x7efa58e0], 0
je 0x7ef712b7
mov eax, dword [0x7efa58d4]
cmp eax, dword [ebp - 0x10c]
jb 0x7ef712b7
mov eax, dword [0x7efa58e0]
mov dword [ebp - 0x38], eax
and dword [0x7efa58e0], 0
mov dword [ebp - 0x40], 1
jmp 0x7ef712f8
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x20]
and eax, 0x100000
test eax, eax
je 0x7ef712d9
and dword [ebp - 0x18c], 0
push dword [ebp - 0x10c]
push dword [ebp - 0x18c]
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp - 0x34]
call fcn.7ef6e792
add esp, 0x10
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x7ef713db
cmp dword [ebp - 0xbc], 0
jne 0x7ef7134e
mov eax, dword [ebp + 0xc]
cmp dword [eax], 2
je 0x7ef7134e
mov eax, dword [ebp + 0xc]
push dword [eax]
mov eax, dword [ebp - 0x128]
add eax, dword [ebp - 0x10c]
push eax
push dword [ebp - 0x128]
push dword [ebp + 8]
push str._s_does_not_have_image_base_relocation_information_and_cannot_be_loaded_nAddress__x__x_nLoadlib_flags_x
push 0x57d
push str.X:_thinstall_stubload_library.cc
call fcn.7ef85958
pop ecx
pop ecx
call eax
add esp, 0x14
jmp 0x7ef713d9
push 0x40
push 0x2000
push dword [ebp - 0x10c]
push 0
call dword [0x7ef96048]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x7ef7137b
push str.Not_enough_memory_available_to_load_module_nPlease_free_some_memory_and_click_retry_to_try_again_or_cancel_to_exit
push dword [ebp - 0x34]
call fcn.7ef7c3dc
pop ecx
pop ecx
cmp dword [ebp - 0x38], 0
je 0x7ef7134e
mov eax, dword [0x7efa2154]
mov eax, dword [eax]
and eax, 0x40000
neg eax
sbb eax, eax
neg eax
movzx eax, al
test eax, eax
je 0x7ef713d9
push 0x1c
lea eax, [ebp - 0x1a8]
push eax
push dword [ebp - 0x38]
call dword [0x7ef96050]
mov eax, dword [ebp - 0x1a4]
add eax, dword [ebp - 0x19c]
push eax
push dword [ebp - 0x1a4]
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x10c]
push eax
push dword [ebp - 0x38]
push str.Relocated_to__x__x__allocated__x__x__n
call fcn.7ef54190
add esp, 0x14
jmp 0x7ef7140e
mov eax, dword [0x7efa2154]
mov eax, dword [eax]
and eax, 0x40000
neg eax
sbb eax, eax
neg eax
movzx eax, al
test eax, eax
je 0x7ef7140e
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x10c]
push eax
push dword [ebp - 0x38]
push str.Load_Address__x__x_n
call fcn.7ef54190
add esp, 0xc
movzx eax, word [ebp - 0x56]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x108]
add ecx, eax
mov dword [ebp - 0x14], ecx
push 0x40
push 0x1000
push dword [ebp - 0x14]
push dword [ebp - 0x38]
call dword [0x7ef96048]
cmp dword [ebp - 0x40], 0
jne 0x7ef714b7
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x38]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
add eax, 0x14
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add eax, 0xe0
mov dword [ebp - 0x30], eax
push 0x40
lea eax, [ebp - 0x188]
push eax
push dword [ebp - 0x44]
call fcn.7ef89190
add esp, 0xc
mov eax, dword [ebp - 0x148]
mov dword [eax - 4], 0x4550
push 0x14
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x148]
call fcn.7ef89190
add esp, 0xc
push 0xe0
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x18]
call fcn.7ef89190
add esp, 0xc
jmp 0x7ef71503
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 0x44]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
add eax, 0x14
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add eax, 0xe0
mov dword [ebp - 0x30], eax
push 5
pop ecx
lea esi, [ebp - 0x58]
mov edi, dword [ebp - 0x148]
rep movsd dword es:[edi], dword [esi]
push 0x38
pop ecx
lea esi, [ebp - 0x144]
mov edi, dword [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x7efa59a4]
and eax, 0x800000
test eax, eax
je 0x7ef715a4
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 1
jne 0x7ef71547
mov eax, dword [ebp - 0x148]
movzx eax, word [eax + 2]
imul eax, eax, 0x28
push eax
push 0
push dword [ebp - 0x30]
call fcn.7ef89580
add esp, 0xc
mov eax, dword [ebp - 0x148]
mov word [eax + 2], 1
jmp 0x7ef715a4
and dword [ebp - 0x1ac], 0
jmp 0x7ef7155d
mov eax, dword [ebp - 0x1ac]
inc eax
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 0x148]
movzx eax, word [eax + 2]
cmp dword [ebp - 0x1ac], eax
jge 0x7ef715a4
mov eax, dword [ebp - 0x1ac]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x30]
and dword [ecx + eax + 0x24], 0
mov eax, dword [ebp - 0x1ac]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x30]
and dword [ecx + eax + 0x10], 0
mov eax, dword [ebp - 0x1ac]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x30]
and dword [ecx + eax + 8], 0
jmp 0x7ef71550
and dword [ebp - 0x2c], 0
and dword [ebp - 0x3c], 0
mov byte [ebp - 4], 1
push 0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x44]
call fcn.7ef6fa67
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x7ef7162a
push 0x8c
call fcn.7ef87177
pop ecx
mov dword [ebp - 0x200], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x200], 0
je 0x7ef71608
mov eax, dword [ebp + 0xc]
push dword [eax + 0x30]
mov eax, dword [ebp + 0xc]
push dword [eax + 0x2c]
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x200]
call fcn.7ef71a71
mov dword [ebp - 0x248], eax
jmp 0x7ef7160f
and dword [ebp - 0x248], 0
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x1fc], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x28], eax
jmp 0x7ef7164f
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x2c]
mov dword [eax + 0x68], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x30]
mov dword [eax + 0x6c], ecx
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x7c]
or eax, dword [ecx + 0x20]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x7c], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov dword [eax + 0x84], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0x88], ecx
and dword [ebp - 0x60], 0
jmp 0x7ef7168b
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
movzx eax, word [ebp - 0x56]
cmp dword [ebp - 0x60], eax
jge 0x7ef716bf
push 0
lea eax, [ebp - 0x10]
push eax
push 0x28
lea eax, [ebp - 0x1d4]
push eax
push dword [ebp - 0x24]
call fcn.7ef632cc
lea eax, [ebp - 0x1d4]
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x1c
call fcn.7ef5ae7a
jmp 0x7ef71684
and dword [ebp - 0x60], 0
jmp 0x7ef716cc
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
movzx eax, word [ebp - 0x56]
cmp dword [ebp - 0x60], eax
jge 0x7ef71821
push 1
pop eax
test eax, eax
je 0x7ef7181c
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x60]
imul eax, eax, 0x28
mov esi, dword [ebp - 0x21c]
add esi, eax
mov eax, dword [ebp - 0x60]
imul eax, eax, 0x28
mov edi, dword [ebp - 0x30]
add edi, eax
push 0xa
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x60]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + eax + 0x14]
mov dword [ebp - 0x1e0], eax
push 0
push 0
push dword [ebp - 0x1e0]
push dword [ebp - 0x24]
call fcn.7ef63f1f
mov eax, dword [ebp - 0x60]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x1e4], edx
mov eax, dword [ebp - 0x60]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + eax + 8]
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x60]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + eax + 0x10]
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x1d8]
cmp eax, dword [ebp - 0x1dc]
jbe 0x7ef71789
mov eax, dword [ebp - 0x1d8]
mov dword [ebp - 0x1dc], eax
push 0x40
push 0x1000
push dword [ebp - 0x1dc]
push dword [ebp - 0x1e4]
call dword [0x7ef96048]
mov eax, dword [ebp - 0x60]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + eax + 0x24]
and eax, 0x80
test eax, eax
jne 0x7ef71806
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1d8]
push dword [ebp - 0x1e4]
push dword [ebp - 0x24]
call fcn.7ef632cc
mov eax, dword [ebp - 0x1d8]
cmp eax, dword [ebp - 0x1dc]
jae 0x7ef71804
mov eax, dword [ebp - 0x1dc]
sub eax, dword [ebp - 0x1d8]
push eax
push 0
mov eax, dword [ebp - 0x1e4]
add eax, dword [ebp - 0x1d8]
push eax
call fcn.7ef89580
add esp, 0xc
jmp 0x7ef7181c
push dword [ebp - 0x1dc]
push 0
push dword [ebp - 0x1e4]
call fcn.7ef89580
add esp, 0xc
jmp 0x7ef716c5
push dword [ebp - 0x24]
call fcn.7ef64324
or dword [ebp - 0x24], 0xffffffff
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
and eax, 2
test eax, eax
jne 0x7ef71876
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xa8], 0
je 0x7ef71876
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1ec]
mov dword [eax + 0x14], ecx
mov eax, dword [ebp - 0x18]
and dword [eax + 0xa8], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x38]
sub ecx, dword [eax + 0x1c]
push ecx
push dword [ebp - 0x18]
call fcn.7ef51a71
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 1
jne 0x7ef718a4
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x7c]
or eax, 0x40000
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x7c], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 1
jne 0x7ef718bb
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x7c]
or al, 2
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x7c], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xc], 0
jne 0x7ef718d3
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x7c]
or ah, 0x40
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x7c], eax
cmp dword [ebp - 0x5c], 0
je 0x7ef718fb
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x2c]
shr eax, 5
and eax, 1
cmp eax, 1
jne 0x7ef718fb
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x7c]
or eax, 0x1000000
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x7c], eax
push dword [ebp - 0x28]
push dword [ebp - 0x34]
call fcn.7ef8872b
pop ecx
pop ecx
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp - 0x220], eax
push dword [ebp - 0x220]
call fcn.7ef7cc2c
pop ecx
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x38], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 1
jne 0x7ef71946
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x224]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x7ef71967
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call fcn.7ef72f1b
mov eax, dword [ebp + 0x10]
and dword [eax], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x228]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x74]
inc eax
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov dword [ecx + 0x74], eax
cmp dword [ebp - 0x2c], 0
jne 0x7ef719ae
mov ecx, dword [0x7efa5dcc]
call fcn.7ef856b8
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [0x7efa5e1c]
call fcn.7ef5717b
mov ecx, dword [0x7efa5dcc]
call fcn.7ef856ec
mov eax, dword [0x7efa2154]
mov eax, dword [eax]
and eax, 0x40000
neg eax
sbb eax, eax
neg eax
movzx eax, al
test eax, eax
je 0x7ef71a2b
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp - 0x23c], eax
push dword [ebp - 0x23c]
push str.End_ts_load_internal__s
lea eax, [ebp - 0x204]
push eax
call fcn.7ef85dd0
add esp, 0xc
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x240]
mov eax, dword [eax]
mov dword [ebp - 0x244], eax
push dword [ebp - 0x244]
call fcn.7ef6f4b5
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x204]
call fcn.7ef86114
push dword [ebp - 0x28]
call fcn.7ef5959a
pop ecx
mov byte [ebp - 0x208], 1
and byte [ebp - 4], 0
cmp dword [ebp - 0x3c], 0
je 0x7ef71a51
mov ecx, dword [ebp - 0x3c]
call fcn.7ef72f1b
and dword [ebp - 0x3c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.7ef86114
mov al, byte [ebp - 0x208]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
leave
ret