Function at 0x10018f80
Capabilities:
Acquire debug privileges
Link many functions at runtime
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x1005d330]
push ebx
push esi
push edi
xor esi, esi
push str.ntdll.dll
mov dword [esp + 0x2a8], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, esi
jne 0x10018fdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadLibrary__NTDLL.DLL___Error:_d_n
call fcn.100392c4
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x2a4]
call fcn.10036c09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQuerySystemInformation
push edi
call ebx
push str.RtlInitUnicodeString
push edi
mov dword [esp + 0x1c], eax
call ebx
push str.ZwOpenSection
push edi
mov esi, eax
call ebx
push str.InitializeObjectAttributes
push edi
mov dword [esp + 0x30], eax
call ebx
push str.ZwOpenFile
push edi
call ebx
mov edi, eax
push str.DevicePhysicalMemory
lea eax, [esp + 0x48]
push eax
call esi
xor eax, eax
lea edx, [esp + 0x98]
push edx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
push 4
lea eax, [esp + 0x14]
lea ecx, [esp + 0x4c]
push eax
mov dword [esp + 0xa4], 0x18
mov dword [esp + 0xac], ecx
call dword [esp + 0x34]
test eax, eax
jne 0x100198bc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [esp + 0xc]
push 0x1000
push 0x30000
xor ebx, ebx
push ebx
push 4
push ecx
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea edx, [esp + 0x74]
push edx
push str.SeDebugPrivilege
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x7c], 1
mov dword [esp + 0x88], 2
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x40]
push eax
push 0x20
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [esp + 0x40]
push ebx
push ebx
push 0x10
lea edx, [esp + 0x7c]
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.DeviceTcp
lea edx, [esp + 0x48]
push edx
call esi
push ebx
push 3
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x8c]
lea eax, [esp + 0x50]
push edx
mov dword [esp + 0x98], eax
push 0x100000
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0xa8], ebx
mov dword [esp + 0x98], 0x18
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa4], 0x40
mov dword [esp + 0xac], ebx
call edi
push str.DeviceUdp
lea ecx, [esp + 0x48]
push ecx
call esi
push ebx
push 3
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x50]
push ecx
mov dword [esp + 0x98], edx
push 0x100000
lea edx, [esp + 0x4c]
push edx
call edi
push 0x200000
call fcn.10037f46
mov esi, eax
push 0x800
mov dword [esp + 0x54], esi
call fcn.10037f46
add esp, 8
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
push eax
push 0x200000
push esi
push 0x10
mov dword [esp + 0x64], 0x10
call dword [esp + 0x24]
test eax, eax
jne 0x100198b5
mov ebx, dword [esi]
add esi, 4
mov dword [esp + 0x30], esi
mov edi, esi
xor esi, esi
test ebx, ebx
mov dword [esp + 0x2c], ebx
jbe 0x10019216
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [edi]
cmp ecx, eax
jne 0x10019208
mov dx, word [edi + 6]
cmp dx, word [esp + 0x3c]
je 0x10019212
add edi, 0x10
inc esi
cmp esi, ebx
jb 0x100191f0
jmp 0x10019216
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x30]
xor esi, esi
test ebx, ebx
jbe 0x10019246
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [edi]
cmp ecx, eax
jne 0x10019238
mov dx, word [edi + 6]
cmp dx, word [esp + 0x38]
je 0x10019242
add edi, 0x10
inc esi
cmp esi, ebx
jb 0x10019220
jmp 0x10019246
mov dword [esp + 0x28], edi
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
xor eax, eax
mov ecx, 0x1c
lea edi, [esp + 0x1c0]
rep stosd dword es:[edi], eax
mov ecx, 0x1c
lea edi, [esp + 0x230]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c0]
push eax
push ecx
push esi
push edx
call fcn.10016ea0
add esp, 0x10
test eax, eax
jne 0x100192a9
push str.map_tcp_faile_n
call fcn.100392c4
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2a4]
call fcn.10036c09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x230]
push eax
push ecx
push esi
push edx
call fcn.10016ea0
add esp, 0x10
test eax, eax
jne 0x100192ea
push str.map_udp_faile_n
call fcn.100392c4
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2a4]
call fcn.10036c09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp ebx, edi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
jbe 0x100195ac
mov dword [esp + 0x14], ebx
jmp 0x10019320
xor eax, eax
mov ecx, 0x1c
lea edi, [esp + 0xe8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x34]
mov al, byte [esi + 4]
cmp al, byte [ecx + 4]
jne 0x1001959a
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0xe8]
push edx
push eax
push ecx
push esi
call fcn.10016ea0
add esp, 0x10
test eax, eax
je 0x1001959a
mov dl, byte [esp + 0xec]
cmp dl, byte [esp + 0x1c4]
jne 0x1001959a
mov al, byte [esp + 0xed]
cmp al, byte [esp + 0x1c5]
jne 0x1001959a
mov cl, byte [esp + 0xee]
cmp cl, byte [esp + 0x1c6]
jne 0x1001959a
mov dl, byte [esp + 0xef]
cmp dl, byte [esp + 0x1c7]
jne 0x1001959a
mov bl, byte [esp + 0xf8]
cmp bl, 1
je 0x100193c8
cmp bl, 2
jne 0x1001959a
mov al, byte [esp + 0xf9]
test al, al
jne 0x1001959a
mov al, byte [esp + 0xfa]
test al, al
jne 0x1001959a
mov al, byte [esp + 0xfb]
test al, al
jne 0x1001959a
movzx eax, word [esi]
push eax
push 0
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1001959a
mov edx, dword [esp + 0x20]
movzx eax, word [esi + 6]
push 2
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
test edx, edx
je 0x1001959a
xor eax, eax
mov ecx, 0xc
lea edi, [esp + 0x158]
rep stosd dword es:[edi], eax
mov ecx, 0xe
lea edi, [esp + 0x188]
rep stosd dword es:[edi], eax
xor ecx, ecx
cmp bl, 2
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xc0], eax
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xc8], eax
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xcc], eax
mov byte [esp + 0xe0], 4
mov byte [esp + 0xc8], 3
jne 0x100194ff
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x5c]
push ecx
lea eax, [esp + 0x1c]
push eax
push 0x38
lea ecx, [esp + 0x194]
push ecx
push 0x18
lea eax, [esp + 0xe4]
push eax
push 0x210012
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1001959a
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x5c]
push ecx
lea eax, [esp + 0x1c]
push eax
push 0x30
lea ecx, [esp + 0x164]
push ecx
push 0x18
lea eax, [esp + 0xcc]
push eax
push 0x210012
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1001958f
movsx eax, byte [esp + 0x164]
test eax, eax
jge 0x1001953e
add eax, 0x100
movsx ecx, byte [esp + 0x165]
shl eax, 8
test ecx, ecx
jge 0x10019556
lea eax, [eax + ecx + 0x100]
jmp 0x10019558
add eax, ecx
movzx ecx, word [esi]
push eax
push ecx
push str.TCP____PID:_d_______PORT:_d_n
mov dword [esp + 0x28], eax
call fcn.100392c4
movzx edx, word [esi]
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x54], edx
call fcn.10018f30
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.10018f30
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
add esi, 0x10
dec eax
mov dword [esp + 0x14], eax
jne 0x10019320
mov eax, dword [esp + 0x2c]
test eax, eax
mov ebx, dword [esp + 0x30]
jbe 0x10019852
mov dword [esp + 0x14], eax
xor eax, eax
mov ecx, 0x1c
lea edi, [esp + 0xe8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x28]
mov al, byte [ebx + 4]
cmp al, byte [ecx + 4]
jne 0x10019840
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0xe8]
push edx
push eax
push ecx
push ebx
call fcn.10016ea0
add esp, 0x10
test eax, eax
je 0x10019840
mov dl, byte [esp + 0x234]
cmp byte [esp + 0xec], dl
jne 0x10019840
mov al, byte [esp + 0x235]
cmp byte [esp + 0xed], al
jne 0x10019840
mov cl, byte [esp + 0x236]
cmp byte [esp + 0xee], cl
jne 0x10019840
mov dl, byte [esp + 0x237]
cmp byte [esp + 0xef], dl
jne 0x10019840
mov al, byte [esp + 0xf8]
cmp al, 1
je 0x10019666
cmp al, 2
jne 0x10019840
mov al, byte [esp + 0xf9]
test al, al
jne 0x10019840
mov al, byte [esp + 0xfa]
test al, al
jne 0x10019840
mov al, byte [esp + 0xfb]
test al, al
jne 0x10019840
movzx eax, word [ebx]
push eax
push 0
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10019840
mov edx, dword [esp + 0x20]
movzx eax, word [ebx + 6]
push 2
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
test edx, edx
je 0x10019840
xor eax, eax
mov ecx, 0xc
lea edi, [esp + 0x158]
rep stosd dword es:[edi], eax
mov ecx, 0xe
lea edi, [esp + 0x188]
rep stosd dword es:[edi], eax
mov dword [esp + 0xb8], eax
xor ecx, ecx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xc0], eax
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xcc], eax
cmp byte [esp + 0xf8], 2
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], ecx
mov byte [esp + 0xe0], 4
mov byte [esp + 0xc8], 3
jne 0x100197a2
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x5c]
push ecx
lea eax, [esp + 0x1c]
push eax
push 0x38
lea ecx, [esp + 0x194]
push ecx
push 0x18
lea eax, [esp + 0xe4]
push eax
push 0x210012
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10019840
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x5c]
push ecx
lea eax, [esp + 0x1c]
push eax
push 0x30
lea ecx, [esp + 0x164]
push ecx
push 0x18
lea eax, [esp + 0xcc]
push eax
push 0x210012
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10019835
movsx eax, byte [esp + 0x164]
test eax, eax
jge 0x100197e1
add eax, 0x100
movsx ecx, byte [esp + 0x165]
shl eax, 8
test ecx, ecx
jge 0x100197f9
lea eax, [eax + ecx + 0x100]
jmp 0x100197fb
add eax, ecx
movzx edx, word [ebx]
movzx ecx, ax
push ecx
push edx
push str.UDP____PID:_d_____PORT:_d_n
mov dword [esp + 0x28], eax
call fcn.100392c4
movzx eax, word [ebx]
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x30], eax
call fcn.10018f30
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x1c]
push edx
call fcn.10018f30
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
add ebx, 0x10
dec eax
mov dword [esp + 0x14], eax
jne 0x100195c0
mov ecx, dword [esp + 0x6c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x4c]
push edx
call fcn.10037066
mov eax, dword [esp + 0x5c]
push eax
call fcn.10037066
mov ecx, dword [esp + 0x14]
add esp, 8
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
mov eax, dword [esp + 0x3c]
push eax
call esi
mov ecx, dword [esp + 0x38]
push ecx
call esi
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, 1
mov ecx, dword [esp + 0x2a4]
call fcn.10036c09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.error_open_handlelist_n
jmp 0x100198c1
push str.error_open_physcalmemory_n
call fcn.100392c4
mov ecx, dword [esp + 0x2a8]
add esp, 4
mov eax, 1
call fcn.10036c09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret