Function at 0x10004810
Capabilities:
Enumerate process modules
Resume thread

Disassembly:
sub esp, 0x134
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x3f
lea eax, [esp + 0x45]
push ebx
push eax
xor ebp, ebp
mov dword [esp + 0x24], ebx
mov byte [esp + 0x4c], bl
call fcn.10008880
add esp, 0xc
push 0x3f
lea ecx, [esp + 0x85]
push ebx
push ecx
mov byte [esp + 0x8c], bl
call fcn.10008880
mov eax, dword [0x1001f404]
add esp, 0xc
cmp eax, ebx
je 0x10004ba8
push eax
push ebx
push 0x1fffff
mov dword [0x1001b3ec], 0x1001f000
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, ebx
je 0x10004ba2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10004ba2
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x100048a0
push edi
call esi
test eax, eax
jg 0x100048a0
mov edx, dword [0x1001b3ec]
mov eax, dword [edx + 0x5c]
mov dword [esp + 0x20], 1
cmp dword [0x1001d1f8], eax
je 0x100048c6
mov dword [0x1001d1fc], ebx
mov ecx, dword [0x1001d200]
dec ecx
mov dword [0x1001d200], ecx
cmp dword [0x1001d1fc], ebx
je 0x100048e3
cmp ecx, ebx
jge 0x10004b6c
push eax
push ebx
push 0x410
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
cmp ebp, ebx
je 0x10004b7b
mov esi, dword [0x1001d1fc]
cmp esi, ebx
jne 0x100049a0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ebx
push ecx
push ebp
call sub.PSAPI.DLL_EnumProcessModules
mov eax, dword [esp + 0x14]
cmp eax, 4
jb 0x10004b6c
push eax
call fcn.10007bf3
mov ecx, dword [esp + 0x18]
add esp, 4
lea edx, [esp + 0x14]
push edx
push ecx
push eax
push ebp
mov dword [esp + 0x28], eax
call sub.PSAPI.DLL_EnumProcessModules
mov edi, dword [esp + 0x14]
shr edi, 2
xor esi, esi
cmp edi, ebx
jbe 0x1000498b
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + esi*4]
push 0x40
lea edx, [esp + 0xc4]
push edx
push ecx
push ebp
call sub.PSAPI.DLL_GetModuleBaseNameW
lea edx, [esp + 0xc0]
push 0x10016448
push edx
call fcn.10007768
add esp, 8
test eax, eax
je 0x1000498b
inc esi
cmp esi, edi
jb 0x10004955
cmp esi, edi
je 0x10004b6c
mov eax, dword [esp + 0x18]
mov esi, dword [eax + esi*4]
mov dword [0x1001d1fc], esi
lea ecx, [esp + 0x14]
push ecx
push 0xd
lea edx, [esp + 0x88]
push edx
add esi, 0x1ffd
push esi
push ebp
mov byte [esp + 0x54], pe_nt_image_headers32
mov byte [esp + 0x55], 0xe
mov byte [esp + 0x56], 0x15
mov byte [esp + 0x57], bl
mov byte [esp + 0x58], bl
mov byte [esp + 0x59], 0x85
mov byte [esp + 0x5a], 0xc0
mov byte [esp + 0x5b], 0xf
mov byte [esp + 0x5c], 0x85
mov byte [esp + 0x5d], 0x81
mov byte [esp + 0x5e], bl
mov byte [esp + 0x5f], bl
mov byte [esp + 0x60], bl
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, 0xd
lea ecx, [esp + 0x80]
lea esi, [esp + 0x40]
lea esp, [esp]
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x10004b10
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x10004a10
cmp eax, ebx
je 0x10004a58
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x10004b10
cmp eax, 1
jbe 0x10004a58
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x10004b10
cmp eax, 2
jbe 0x10004a58
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x10004b10
mov eax, dword [0x1001d1fc]
lea ecx, [esp + 0x14]
push ecx
push 9
lea edx, [esp + 0x88]
push edx
add eax, 0x20be
push eax
push ebp
mov byte [esp + 0x54], pe_nt_image_headers32
mov byte [esp + 0x55], 0x9d
mov byte [esp + 0x56], 0x17
mov byte [esp + 0x57], bl
mov byte [esp + 0x58], bl
mov byte [esp + 0x59], 0x85
mov byte [esp + 0x5a], 0xc0
mov byte [esp + 0x5b], 0x74
mov byte [esp + 0x5c], 0x46
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, 9
lea ecx, [esp + 0x80]
lea esi, [esp + 0x40]
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x10004b10
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x10004ab4
cmp eax, ebx
je 0x10004aec
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x10004b10
cmp eax, 1
jbe 0x10004aec
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x10004b10
cmp eax, 2
jbe 0x10004aec
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x10004b10
mov ecx, dword [0x1001b3ec]
mov eax, dword [ecx + 0x5c]
mov edi, dword [esp + 0x1c]
mov dword [0x1001d1f8], eax
mov ecx, 0x78
mov dword [esp + 0x20], 1
jmp 0x100048cd
mov eax, dword [0x1001f04c]
mov ecx, dword [0x1001f050]
mov edx, dword [section..SHAREDA]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x24]
push eax
push ebx
mov dword [esp + 0x40], ecx
mov ecx, dword [0x1001f054]
mov dword [esp + 0x38], edx
push 0x4a
lea edx, [esp + 0x3c]
push ecx
mov dword [0x1001b3ec], 0x1001f000
mov dword [esp + 0x4c], 1
mov dword [esp + 0x34], 0x1040003
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], 0x10
call dword [sym.imp.USER32.dll_SendMessageW]
cmp ebp, ebx
je 0x10004b77
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10004b8c
push eax
call fcn.10007928
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret
mov dword [0x1001f404], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x134
ret