Function at 0x1000a840
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov eax, 0x403c
mov ebp, esp
push edi
push esi
push ebx
call fcn.1000f948
lea edi, [ebp + 8]
sub esp, eax
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 4]
mov ebx, dword [edi + 8]
mov dword [ebp - 0x4010], eax
mov eax, dword [0x1002004c]
test eax, eax
je 0x1000a880
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp eax
mov dword [esp], 0
call sym.mapi32.dll_MAPIInitialize
sub esp, 4
test eax, eax
je 0x1000a930
lea ebx, [ebp - 0x200c]
mov dword [esp + 0xc], 0x1000
mov edx, dword [sym.imp.user32.dll_LoadStringW]
lea edi, [ebp - 0x400c]
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov eax, dword [section..bss]
mov dword [esp], eax
mov dword [ebp - 0x4010], edx
call edx
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0x1000
mov dword [esp + 4], 2
mov eax, dword [section..bss]
mov dword [esp], eax
mov edx, dword [ebp - 0x4010]
call edx
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 0xc], 0x30
call dword [sym.imp.user32.dll_MessageBoxW]
mov dword [ebp - 0x4010], 0x1a
mov eax, dword [ebp - 0x4010]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov edi, dword [ebx + 4]
pxor xmm0, xmm0
movups xmmword [ebp - 0x200c], xmm0
movups xmmword [ebp - 0x1ffc], xmm0
movups xmmword [ebp - 0x1fec], xmm0
test edi, edi
je 0x1000ae50
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x4014], edx
call edx
mov esi, eax
sub esp, 0x18
lea ecx, [esi + esi]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [ebp - 0x4030], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
mov edx, dword [ebp - 0x4014]
call edx
sub esp, 0x18
mov eax, dword [ebp - 0x4030]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x2008], eax
test edi, edi
je 0x1000ae40
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x4014], edx
call edx
mov esi, eax
sub esp, 0x18
lea ecx, [esi + esi]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [ebp - 0x402c], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
mov edx, dword [ebp - 0x4014]
call edx
sub esp, 0x18
mov dword [ebp - 0x4014], 0
mov eax, dword [ebp - 0x402c]
mov dword [ebp - 0x2004], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x1fe4], eax
test eax, eax
je 0x1000ad1e
mov ecx, dword [ebx + 0x2c]
mov dword [ebp - 0x4014], ecx
test ecx, ecx
je 0x1000ad1e
lea eax, [eax + eax*2]
mov dword [esp + 4], 8
shl eax, 3
mov dword [esp + 8], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x4020], eax
call eax
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 0x4014], eax
sub esp, 0xc
test ecx, ecx
je 0x1000ad12
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x401c], ebx
xor esi, esi
mov dword [ebp - 0x4018], 0
mov dword [ebp - 0x4024], ecx
lea ebx, [eax + esi]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x1000acd4
mov dword [esp + 8], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [ebp - 0x4028], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ebx, eax
sub esp, 0x18
lea edi, [ebx + ebx]
mov dword [esp + 4], 0
mov dword [esp + 8], edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x4020]
call eax
sub esp, 0xc
mov edi, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [ebp - 0x4028]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x401c]
sub esp, 0x18
mov eax, dword [eax + 0x2c]
lea ebx, [eax + esi]
mov edx, dword [ebp - 0x4014]
mov dword [edx + esi + 0xc], edi
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x1000ace0
mov dword [esp + 8], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [ebp - 0x4028], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [ebp - 0x4024]
call eax
mov ebx, eax
sub esp, 0x18
lea edi, [ebx + ebx]
mov dword [esp + 4], 0
mov dword [esp + 8], edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov ecx, dword [ebp - 0x4020]
call ecx
sub esp, 0xc
mov edi, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [ebp - 0x4028]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [esp], 0
mov eax, dword [ebp - 0x4024]
call eax
mov edx, dword [ebp - 0x4014]
add dword [ebp - 0x4018], 1
sub esp, 0x18
mov eax, dword [ebp - 0x4018]
mov dword [edx + esi + 0x10], edi
mov edx, dword [ebp - 0x401c]
add esi, 0x18
cmp eax, dword [edx + 0x28]
jae 0x1000ad10
mov eax, dword [edx + 0x2c]
lea ebx, [eax + esi]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x1000ab47
xor edi, edi
jmp 0x1000abec
mov dword [edx + esi + 0x10], 0
mov edx, dword [ebp - 0x401c]
add esi, 0x18
add dword [ebp - 0x4018], 1
mov ecx, dword [ebp - 0x4018]
cmp ecx, dword [edx + 0x28]
jb 0x1000ab39
lea esi, cs:[esi]
nop
mov ebx, edx
mov eax, dword [ebp - 0x4014]
mov dword [ebp - 0x1fe0], eax
mov edx, dword [ebp - 0x4010]
lea eax, [ebp - 0x200c]
call sym._sendmail_extended_mapi.isra.0
mov edx, dword [ebx + 0x28]
mov dword [ebp - 0x4010], eax
test edx, edx
je 0x1000adde
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x1000adde
mov eax, dword [ebp - 0x4014]
xor edx, edx
mov dword [ebp - 0x4018], ebx
mov ebx, edx
lea esi, [eax + 0xc]
mov edi, dword fs:[0x18]
lea esi, [esi]
mov eax, dword [esi]
mov dword [esp + 4], 0
add ebx, 1
add esi, 0x18
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi - 0x14]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x4018]
sub esp, 0xc
cmp ebx, dword [eax + 0x28]
jb 0x1000ad68
mov eax, dword [ebp - 0x4014]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, dword [ebp - 0x4030]
mov dword [esp + 4], 0
mov ebx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x402c]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x4010]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov dword [ebp - 0x402c], 0
jmp 0x1000aa9d
mov dword [ebp - 0x4030], 0
jmp 0x1000a9ed