Function at 0x10001690
Capabilities:
Allocate or change rwx memory
Enumerate process modules
Execute shellcode via indirect call
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa63c
call fcn.1001c920
mov eax, dword [0x1006b850]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0xa5ac], ecx
push 0x1004b46c
push 0x1004b488
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xa600], eax
mov dword [ebp - 0xa608], 0x18
lea edx, [ebp - 0xa608]
push edx
push 0x18
lea eax, [ebp - 0xa63c]
push eax
push 0
mov ecx, dword [ebp - 0xa5ac]
push ecx
call dword [ebp - 0xa600]
mov dword [ebp - 0xa5ec], 0
mov edx, dword [ebp - 0xa638]
mov dword [ebp - 0xa5ec], edx
mov eax, dword [ebp - 0xa5ec]
push eax
push 0x1004b494
call fcn.1001c721
add esp, 8
mov dword [ebp - 0xa5b0], 0x1000
lea ecx, [ebp - 0xa5b0]
push ecx
push 0x1000
lea edx, [ebp - 0x6448]
push edx
mov eax, dword [ebp - 0xa5ec]
push eax
mov ecx, dword [ebp - 0xa5ac]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edx, dword [ebp - 0x6440]
mov dword [ebp - 0xa5c8], edx
mov eax, dword [ebp - 0xa5c8]
push eax
push 0x1004b49c
call fcn.1001c721
add esp, 8
lea ecx, [ebp - 0xa5b0]
push ecx
push 0x40
lea edx, [ebp - 0xa4b0]
push edx
mov eax, dword [ebp - 0xa5c8]
push eax
mov ecx, dword [ebp - 0xa5ac]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea edx, [ebp - 0xa5b0]
push edx
push 0xf8
lea eax, [ebp - 0xa5a8]
push eax
mov ecx, dword [ebp - 0xa5c8]
add ecx, dword [ebp - 0xa474]
push ecx
mov edx, dword [ebp - 0xa5ac]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [ebp - 0xa5c8]
add eax, dword [ebp - 0xa580]
mov dword [ebp - 0xa5b4], eax
mov ecx, dword [ebp - 0xa5b4]
push ecx
push 0x1004b4a4
call fcn.1001c721
add esp, 8
mov byte [ebp - 0xa5d0], 0xeb
mov byte [ebp - 0xa5cf], 0xfe
lea edx, [ebp - 0xa5b0]
push edx
push 0x1000
lea eax, [ebp - 0x5448]
push eax
mov ecx, dword [ebp - 0xa5b4]
push ecx
mov edx, dword [ebp - 0xa5ac]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov dword [ebp - 0xa5bc], 0
mov dword [ebp - 0xa5d8], 0
lea eax, [ebp - 0xa5bc]
push eax
push 0x40
push 2
mov ecx, dword [ebp - 0xa5b4]
push ecx
mov edx, dword [ebp - 0xa5ac]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [ebp - 0xa5b0]
push eax
push 2
lea ecx, [ebp - 0xa5d0]
push ecx
mov edx, dword [ebp - 0xa5b4]
push edx
mov eax, dword [ebp - 0xa5ac]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, [ebp - 0xa5d8]
push ecx
mov edx, dword [ebp - 0xa5bc]
push edx
push 2
mov eax, dword [ebp - 0xa5b4]
push eax
mov ecx, dword [ebp - 0xa5ac]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 0xa5fc], 0
mov dword [ebp - 0xa5e8], 0
lea ecx, [ebp - 0xa610]
push ecx
push 0x4000
lea edx, [ebp - 0xa448]
push edx
mov eax, dword [ebp - 0xa5ac]
push eax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
jne 0x100018f8
push 0x1004b4ac
call fcn.1001c721
add esp, 4
push 0x64
call fcn.10043f60
add esp, 4
jmp 0x100018bc
mov dword [ebp - 0xa5cc], 0
jmp 0x10001913
mov ecx, dword [ebp - 0xa5cc]
add ecx, 1
mov dword [ebp - 0xa5cc], ecx
mov edx, dword [ebp - 0xa610]
shr edx, 2
cmp dword [ebp - 0xa5cc], edx
jge 0x100019f9
mov dword [ebp - 0xa5f4], 0x1004b4b4
push 0x2000
lea eax, [ebp - 0x3448]
push eax
mov ecx, dword [ebp - 0xa5cc]
mov edx, dword [ebp + ecx*4 - 0xa448]
push edx
mov eax, dword [ebp - 0xa5ac]
push eax
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x100019f4
lea ecx, [ebp - 0x3448]
push ecx
call fcn.10043a90
add esp, 4
mov esi, eax
mov edx, dword [ebp - 0xa5f4]
push edx
call fcn.10043a90
add esp, 4
cmp esi, eax
jle 0x100019f4
lea eax, [ebp - 0x3448]
push eax
call fcn.10043a90
add esp, 4
lea esi, [ebp + eax*2 - 0x3448]
mov ecx, dword [ebp - 0xa5f4]
push ecx
call fcn.10043a90
add esp, 4
shl eax, 1
sub esi, eax
push esi
mov edx, dword [ebp - 0xa5f4]
push edx
call fcn.10043920
add esp, 8
test eax, eax
jne 0x100019f4
lea eax, [ebp - 0x3448]
push eax
push 0x1004b4d0
call fcn.1001c841
add esp, 8
mov dword [ebp - 0xa5fc], 1
mov ecx, dword [ebp - 0xa5cc]
mov edx, dword [ebp + ecx*4 - 0xa448]
mov dword [ebp - 0xa5e8], edx
jmp 0x100019f9
jmp 0x10001904
cmp dword [ebp - 0xa5fc], 0
je 0x100018bc
mov eax, dword [ebp - 0xa5e8]
push eax
push 0x1004b4ec
call fcn.1001c721
add esp, 8
mov ecx, dword [ebp - 0xa5e8]
mov dword [ebp - 0xa5c0], ecx
lea edx, [ebp - 0xa5b0]
push edx
push 0x40
lea eax, [ebp - 0xa4b0]
push eax
mov ecx, dword [ebp - 0xa5c0]
push ecx
mov edx, dword [ebp - 0xa5ac]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0xa5b0]
push eax
push 0xf8
lea ecx, [ebp - 0xa5a8]
push ecx
mov edx, dword [ebp - 0xa5c0]
add edx, dword [ebp - 0xa474]
push edx
mov eax, dword [ebp - 0xa5ac]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0xa5c0]
add eax, dword [ebp + edx - 0xa530]
mov dword [ebp - 0xa618], eax
lea ecx, [ebp - 0xa5b0]
push ecx
push 0x28
lea edx, [ebp - 0xa470]
push edx
mov eax, dword [ebp - 0xa618]
push eax
mov ecx, dword [ebp - 0xa5ac]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edx, dword [ebp - 0xa45c]
push edx
push 0x1004b4f8
call fcn.1001c721
add esp, 8
push 0x40000
call fcn.1001c60e
add esp, 4
mov dword [ebp - 0xa620], eax
mov eax, dword [ebp - 0xa620]
mov dword [ebp - 0xa5e0], eax
lea ecx, [ebp - 0xa5b0]
push ecx
mov edx, dword [ebp - 0xa45c]
shl edx, 2
push edx
mov eax, dword [ebp - 0xa5e0]
push eax
mov ecx, dword [ebp - 0xa5c0]
add ecx, dword [ebp - 0xa454]
push ecx
mov edx, dword [ebp - 0xa5ac]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x40000
call fcn.1001c60e
add esp, 4
mov dword [ebp - 0xa624], eax
mov eax, dword [ebp - 0xa624]
mov dword [ebp - 0xa5dc], eax
lea ecx, [ebp - 0xa5b0]
push ecx
mov edx, dword [ebp - 0xa458]
shl edx, 2
push edx
mov eax, dword [ebp - 0xa5dc]
push eax
mov ecx, dword [ebp - 0xa5c0]
add ecx, dword [ebp - 0xa450]
push ecx
mov edx, dword [ebp - 0xa5ac]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x20000
call fcn.1001c60e
add esp, 4
mov dword [ebp - 0xa60c], eax
mov eax, dword [ebp - 0xa60c]
mov dword [ebp - 0xa5e4], eax
lea ecx, [ebp - 0xa5b0]
push ecx
mov edx, dword [ebp - 0xa458]
shl edx, 1
push edx
mov eax, dword [ebp - 0xa5e4]
push eax
mov ecx, dword [ebp - 0xa5c0]
add ecx, dword [ebp - 0xa44c]
push ecx
mov edx, dword [ebp - 0xa5ac]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov dword [ebp - 0xa5f0], 0
mov dword [ebp - 0xa5d4], 0
jmp 0x10001be1
mov eax, dword [ebp - 0xa5d4]
add eax, 1
mov dword [ebp - 0xa5d4], eax
mov ecx, dword [ebp - 0xa5d4]
cmp ecx, dword [ebp - 0xa458]
jae 0x10001ca8
push pe_nt_image_headers32
push 0
lea edx, [ebp - 0x448]
push edx
call fcn.10043f30
add esp, 0xc
lea eax, [ebp - 0xa5b0]
push eax
push 0x20
lea ecx, [ebp - 0x448]
push ecx
mov edx, dword [ebp - 0xa5d4]
mov eax, dword [ebp - 0xa5dc]
mov ecx, dword [ebp - 0xa5c0]
add ecx, dword [eax + edx*4]
push ecx
mov edx, dword [ebp - 0xa5ac]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x1004b500
lea eax, [ebp - 0x448]
push eax
call fcn.10043800
add esp, 8
test eax, eax
jne 0x10001ca3
lea ecx, [ebp - 0x448]
push ecx
push 0x1004b510
call fcn.1001c721
add esp, 8
mov edx, dword [ebp - 0xa5d4]
mov eax, dword [ebp - 0xa5e4]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0xa5e0]
mov eax, dword [ebp - 0xa5c0]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0xa5f0], eax
mov ecx, dword [ebp - 0xa5f0]
push ecx
push 0x1004b518
call fcn.1001c721
add esp, 8
jmp 0x10001ca8
jmp 0x10001bd2
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 0xa5e0], 0
je 0x10001cd9
mov ecx, dword [ebp - 0xa5e0]
mov dword [ebp - 0xa61c], ecx
mov edx, dword [ebp - 0xa61c]
push edx
call fcn.1001c684
add esp, 4
cmp dword [ebp - 0xa5dc], 0
je 0x10001cfd
mov eax, dword [ebp - 0xa5dc]
mov dword [ebp - 0xa614], eax
mov ecx, dword [ebp - 0xa614]
push ecx
call fcn.1001c684
add esp, 4
cmp dword [ebp - 0xa5e4], 0
je 0x10001d21
mov edx, dword [ebp - 0xa5e4]
mov dword [ebp - 0xa604], edx
mov eax, dword [ebp - 0xa604]
push eax
call fcn.1001c684
add esp, 4
push 0x40
push 0x3000
push 0x1000
push 0
mov ecx, dword [ebp - 0xa5ac]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0xa5c4], eax
mov edx, dword [ebp - 0xa5c4]
push edx
push 0x1004b520
call fcn.1001c721
add esp, 8
mov byte [ebp - 0x38], 0
mov byte [ebp - 0x37], 0
mov byte [ebp - 0x36], 0
mov byte [ebp - 0x35], 0
mov byte [ebp - 0x34], 0
mov byte [ebp - 0x33], 0
mov byte [ebp - 0x32], 0
mov byte [ebp - 0x31], 0
mov byte [ebp - 0x30], 0xb8
mov byte [ebp - 0x2f], 1
mov byte [ebp - 0x2e], 0
mov byte [ebp - 0x2d], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 0x2b], 0xa3
mov byte [ebp - 0x2a], 0
mov byte [ebp - 0x29], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 0x27], 0
mov byte [ebp - 0x26], 0xeb
mov byte [ebp - 0x25], 0xfe
mov byte [ebp - 0x24], 0x51
mov byte [ebp - 0x23], 0xb9
mov byte [ebp - 0x22], 0
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0x51
mov byte [ebp - 0x1d], 0xb8
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1b], 0
mov byte [ebp - 0x1a], 0
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x18], 0xff
mov byte [ebp - 0x17], 0xd0
mov byte [ebp - 0x16], 0x59
mov byte [ebp - 0x15], 0xb8
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x10], 0xff
mov byte [ebp - 0xf], 0xe0
mov dword [ebp - 0xa5b8], 0
push 0x14
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1448]
push ecx
call fcn.10043eb0
add esp, 0xc
mov edx, dword [ebp - 0xa5b8]
add edx, 0x14
mov dword [ebp - 0xa5b8], edx
mov eax, dword [ebp - 0xa5c4]
mov dword [ebp - 0x143a], eax
mov ecx, dword [ebp - 0xa5b8]
mov edx, dword [ebp - 0xa5c4]
lea eax, [edx + ecx + 0x16]
mov dword [ebp - 0x22], eax
mov ecx, dword [ebp - 0xa5f0]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0xa5b4]
mov dword [ebp - 0x14], edx
push 0x16
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xa5b8]
lea edx, [ebp + ecx - 0x1448]
push edx
call fcn.10043eb0
add esp, 0xc
mov eax, dword [ebp - 0xa5b8]
add eax, 0x16
mov dword [ebp - 0xa5b8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xa5f8], ecx
mov edx, dword [ebp - 0xa5f8]
push edx
mov eax, dword [ebp - 0xa5b8]
lea ecx, [ebp + eax - 0x1448]
push ecx
call fcn.10043a30
add esp, 8
mov edx, dword [ebp - 0xa5f8]
push edx
call fcn.10043a90
add esp, 4
mov ecx, dword [ebp - 0xa5b8]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0xa5b8], edx
lea eax, [ebp - 0xa5b0]
push eax
mov ecx, dword [ebp - 0xa5b8]
push ecx
lea edx, [ebp - 0x1448]
push edx
mov eax, dword [ebp - 0xa5c4]
push eax
mov ecx, dword [ebp - 0xa5ac]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov byte [ebp - 0xc], 0xb8
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 0xff
mov byte [ebp - 6], 0xe0
mov edx, dword [ebp - 0xa5c4]
add edx, 8
mov dword [ebp - 0xb], edx
lea eax, [ebp - 0xa5bc]
push eax
push 0x40
push 7
mov ecx, dword [ebp - 0xa5b4]
push ecx
mov edx, dword [ebp - 0xa5ac]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [ebp - 0xa5b0]
push eax
push 7
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xa5b4]
push edx
mov eax, dword [ebp - 0xa5ac]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, [ebp - 0xa5d8]
push ecx
mov edx, dword [ebp - 0xa5bc]
push edx
push 7
mov eax, dword [ebp - 0xa5b4]
push eax
mov ecx, dword [ebp - 0xa5ac]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x1004b52c
call fcn.1001c721
add esp, 4
push 0x64
call fcn.10043f60
add esp, 4
lea ecx, [ebp - 0xa5b0]
push ecx
push 0x1000
lea edx, [ebp - 0x4448]
push edx
mov eax, dword [ebp - 0xa5c4]
push eax
mov ecx, dword [ebp - 0xa5ac]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edx, 1
imul eax, edx, 0
movzx ecx, byte [ebp + eax - 0x4448]
test ecx, ecx
je 0x10001f8f
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea ecx, [ebp - 0xa5bc]
push ecx
push 0x40
push 7
mov edx, dword [ebp - 0xa5b4]
push edx
mov eax, dword [ebp - 0xa5ac]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea ecx, [ebp - 0xa5b0]
push ecx
push 7
lea edx, [ebp - 0x5448]
push edx
mov eax, dword [ebp - 0xa5b4]
push eax
mov ecx, dword [ebp - 0xa5ac]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea edx, [ebp - 0xa5d8]
push edx
mov eax, dword [ebp - 0xa5bc]
push eax
push 7
mov ecx, dword [ebp - 0xa5b4]
push ecx
mov edx, dword [ebp - 0xa5ac]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0x14
push 0x90
lea eax, [ebp - 0x38]
push eax
call fcn.10043f30
add esp, 0xc
lea ecx, [ebp - 0xa5b0]
push ecx
push 0x14
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0xa5c4]
push eax
mov ecx, dword [ebp - 0xa5ac]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x48], 1
lea ecx, [ebp - 0xa5bc]
push ecx
push 0x40
push 0x1000
mov edx, dword [ebp - 0xa5c8]
push edx
mov eax, dword [ebp - 0xa5ac]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea ecx, [ebp - 0xa5b0]
push ecx
push 1
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0xa5c8]
add eax, 0xfff
push eax
mov ecx, dword [ebp - 0xa5ac]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea edx, [ebp - 0xa5d8]
push edx
mov eax, dword [ebp - 0xa5bc]
push eax
push 0x1000
mov ecx, dword [ebp - 0xa5c8]
push ecx
mov edx, dword [ebp - 0xa5ac]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp + 0x10]
and eax, 4
je 0x1000210f
jmp 0x1000211c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001c906
mov esp, ebp
pop ebp
ret