Function at 0x180008790
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rdi, rcx
mov rax, qword [0x180042740]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x28], 0
lea rcx, [0x180031128]
lea rdx, [rsp + 0x28]
call qword [sym.imp.ole32.dll_CoGetObjectContext]
test eax, eax
js 0x1800088a8
xor ecx, ecx
xor edx, edx
call qword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov rsi, rax
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
mov rdx, rsi
mov r8d, 3
call qword [rax + 0x28]
test eax, eax
js 0x1800088ba
mov rax, qword [rsi]
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [rax + 0x28]
test eax, eax
js 0x1800088d1
mov rax, qword [rsi]
lea rdx, [rsp + 0x30]
lea r9, [rsp + 0x24]
mov rcx, rsi
mov r8d, 0x48
call qword [rax + 0x18]
test eax, eax
js 0x1800088da
lea rcx, [0x180031158]
call fcn.180015660
lea rcx, str.combase
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x180008866
lea rcx, str.ole32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800088e8
movsxd rcx, dword [rax + 0x3c]
movzx edx, word [rax + rcx + 6]
test rdx, rdx
je 0x1800088e8
lea r8, [rax + rcx]
movzx ecx, word [rax + rcx + 0x14]
add rcx, r8
add rcx, 0x18
shl rdx, 3
lea r8, [rdx + rdx*4]
xor edx, edx
nop
cmp dword [rcx + rdx], 0x7461642e
je 0x18000893d
add rdx, 0x28
cmp r8, rdx
jne 0x180008890
jmp 0x1800088c8
lea rcx, str.IMarshalEnvoy_:__08lX_n
mov edx, eax
call fcn.18000a960
xor ebx, ebx
jmp 0x180008923
lea rcx, str.IMarshalEnvoy::MarshalEnvoy___failed_:__08lX_n
mov edx, eax
call fcn.18000a960
xor ebx, ebx
test rsi, rsi
jne 0x1800088ea
jmp 0x1800088f3
lea rcx, str.IStream::Seek___failed_:__08lX_n
jmp 0x1800088e1
lea rcx, str.IStream::read_tagCONTEXTHEADER__failed_:__08lX_n
mov edx, eax
call fcn.18000a960
xor ebx, ebx
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180008903
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rax, [0x1800386e1]
lea rdx, str.FAILED
test bl, bl
cmovne rdx, rax
lea rcx, str.Leaving._Status_:__s_n
call fcn.18000a960
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18000bf20
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
mov qword [rdi + 0x50], rax
mov eax, dword [rcx + rdx + 0xc]
mov dword [rdi + 0x58], eax
mov eax, dword [rcx + rdx + 8]
mov dword [rdi + 0x5c], eax
lea rcx, str.Searching_for_g_pMTAEmptyCtx
call fcn.180015660
mov eax, dword [rdi + 0x5c]
cmp eax, 8
jb 0x1800088c8
je 0x1800088c8
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x58]
add eax, 0xfffffff8
xor ebx, ebx
mov r8, qword [rdx + rcx]
cmp r8, qword [rsp + 0x70]
je 0x180008991
inc rcx
dec rax
jne 0x180008979
jmp 0x1800088ca
mov dword [rdi + 0x64], ecx
lea rcx, str.Searching_for_CProcessSecret::s_guidOle32Secret
call fcn.180015660
mov eax, dword [rdi + 0x5c]
cmp eax, 0x10
jb 0x1800088c8
je 0x1800088c8
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x58]
add eax, 0xfffffff0
xor ebx, ebx
movdqu xmm0, xmmword [rdx + rcx]
movdqu xmm1, xmmword [rsp + 0x60]
pcmpeqb xmm1, xmm0
pmovmskb r8d, xmm1
cmp r8d, 0xffff
je 0x1800089e8
inc rcx
dec rax
jne 0x1800089be
jmp 0x1800088ca
mov dword [rdi + 0x60], ecx
lea rcx, str.Searching_for_CIPIDTable::_palloc
call fcn.180015660
mov ecx, dword [rdi + 0x5c]
movabs rax, 0x7ffffff98
add rcx, rax
or rax, 0x60
test rcx, rax
je 0x1800088c8
mov rdx, qword [rdi + 0x50]
mov eax, dword [rdi + 0x58]
shr rcx, 3
mov ecx, ecx
add rdx, rax
add rdx, 0x40
mov r9b, 1
xor r8d, r8d
xor ebx, ebx
jmp 0x180008a48
inc r8
cmp r8, rcx
setb r9b
add eax, 8
cmp rcx, r8
je 0x1800088ca
cmp qword [rdx + r8*8 - 8], 0x70
jb 0x180008a32
cmp word [rdx + r8*8], 0x32
jne 0x180008a32
mov r10, qword [rdx + r8*8 - 0x30]
cmp r10, qword [rdx + r8*8 - 0x38]
jbe 0x180008a32
cmp qword [rdx + r8*8 - 0x40], 0
je 0x180008a32
cmp dword [rdx + r8*8 - 0x10], 0
je 0x180008a32
mov dword [rdi + 0x68], eax
test r9b, 1
je 0x1800088c8
lea rcx, str.Searching_for_OXIDEntry._moxid_offset
call fcn.180015660
mov rcx, rdi
call fcn.180008660
mov ebx, eax
jmp 0x1800088ca