Function at 0x10009cc0
Capabilities:
Enumerate process modules
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1008fe30
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x1009cbc0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov dword [ebp - 0x654], ebx
mov dword [ebp - 0x650], 0xffffffff
mov dword [ebp - 0x64c], 0
push 0x424
push 0
lea eax, [ebp - 0x648]
push eax
call fcn.10055aa0
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
call fcn.1003ccd0
test eax, eax
je 0x10009d65
mov ecx, ebx
call fcn.1000a0c0
mov esi, eax
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, esi
jmp 0x1000a09c
push ebx
push 0x18
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x650], esi
cmp esi, 0xffffffff
jne 0x10009e9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [eax + 0x1e]
mov dword [ebp - 0x658], 0
push 0x1000a
call fcn.1005218a
mov edi, eax
push 0x2000a
call fcn.1005218a
add esp, 8
mov esi, eax
test edi, edi
je 0x10009e53
test esi, esi
je 0x10009e53
push dword [ebp - 0x654]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_0x_X___Cannot_enumerate_loaded_modules_Pid:__d
push 0xffff
push esi
call fcn.1005211a
add esp, 0x14
test eax, eax
jle 0x10009e3e
xor eax, eax
mov word [esi + 0x1fffe], ax
push 0xfffffffffffffffe
push esi
call fcn.10051b84
push 0xffffffffffffffff
push esi
inc eax
push eax
push edi
lea eax, [ebp - 0x658]
push eax
call fcn.10052d14
add esp, 0x1c
test eax, eax
je 0x10009e21
push ebx
push esi
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
push edi
push str.IsMbaeInjectedInProcess
push 4
mov edx, 0x4bf
mov ecx, str...ApiAuxNA.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10009e6b
push ebx
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x10009e65
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test edi, edi
je 0x10009e78
push edi
call fcn.10052152
add esp, 4
test esi, esi
je 0x10009e85
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
jmp 0x1000a09a
mov dword [ebp - 0x64c], 0x428
lea eax, [ebp - 0x64c]
push eax
push esi
mov edi, dword [sym.imp.KERNEL32.dll_Module32FirstW]
call edi
test eax, eax
jne 0x10009fef
lea eax, [ebp - 0x64c]
push eax
push esi
call edi
test eax, eax
jne 0x10009fef
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [eax + 0x1e]
mov dword [ebp - 0x65c], 0
push 0x1000a
call fcn.1005218a
mov edi, eax
push 0x2000a
call fcn.1005218a
add esp, 8
mov esi, eax
test edi, edi
je 0x10009fa5
test esi, esi
je 0x10009fa5
push dword [ebp - 0x654]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_0x_X___Cannot_enumerate_the_first_loaded_modules_Pid:__d.
push 0xffff
push esi
call fcn.1005211a
add esp, 0x14
test eax, eax
jle 0x10009f90
xor eax, eax
mov word [esi + 0x1fffe], ax
push 0xfffffffffffffffe
push esi
call fcn.10051b84
push 0xffffffffffffffff
push esi
inc eax
push eax
push edi
lea eax, [ebp - 0x65c]
push eax
call fcn.10052d14
add esp, 0x1c
test eax, eax
je 0x10009f73
push ebx
push esi
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
push edi
push str.IsMbaeInjectedInProcess
push 4
mov edx, 0x4cb
mov ecx, str...ApiAuxNA.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10009fbd
push ebx
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x10009fb7
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test edi, edi
je 0x10009fca
push edi
call fcn.10052152
add esp, 4
test esi, esi
je 0x10009fd7
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
jmp 0x1000a09a
lea eax, [ebp - 0x42c]
push eax
push 0x104
lea eax, [ebp - 0x224]
push eax
call fcn.10053320
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_Module32NextW]
push str.mbae.dll
lea eax, [ebp - 0x62c]
push eax
call fcn.100513c3
add esp, 8
test eax, eax
je 0x1000a058
push str.mbae64.dll
lea eax, [ebp - 0x62c]
push eax
call fcn.100513c3
add esp, 8
test eax, eax
je 0x1000a058
lea eax, [ebp - 0x64c]
push eax
push esi
call edi
test eax, eax
jne 0x1000a010
mov dword [ebp - 4], eax
call fcn.1000a078
jmp 0x1000a093
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, 1
jmp 0x1000a09c
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret