Function at 0x10006090
Capabilities:
Acquire debug privileges
Read file via mapping

Disassembly:
sub esp, 0x1e0
mov eax, dword [0x10035400]
xor eax, esp
mov dword [esp + 0x1dc], eax
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push 0x6f
lea eax, [esp + 0x17d]
push ebx
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x184], bl
call fcn.1001f410
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add esp, 0xc
push str.RtlInitUnicodeString
push str.ntdll.dll
mov dword [esp + 0x34], ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.NtOpenSection
push str.ntdll.dll
mov ebp, eax
call esi
push eax
call edi
push str.NtOpenFile
push str.ntdll.dll
mov dword [esp + 0x24], eax
call esi
push eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push str.SeDebugPrivilege
mov esi, eax
call edi
mov ecx, eax
lea eax, [ebx + 1]
call fcn.1000cb10
add esp, 4
push str.DevicePhysicalMemory
lea ecx, [esp + 0x64]
push ecx
call ebp
lea eax, [esp + 0x34]
push eax
push 4
lea ecx, [esp + 0x20]
lea edx, [esp + 0x68]
push ecx
mov dword [esp + 0x40], 0x18
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], 0x40
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call dword [esp + 0x28]
test eax, eax
jl 0x10006513
mov edx, dword [esp + 0x18]
push 0x1000
push 0x30000
push ebx
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x10006513
push str.DeviceTcp
lea eax, [esp + 0x64]
push eax
call ebp
push 1
push 7
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x40]
lea ecx, [esp + 0x6c]
push eax
mov dword [esp + 0x4c], ecx
push 0x100000
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x4c], 0x18
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], 0x40
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call esi
test eax, eax
jl 0x10006508
push 0x10
call fcn.10012370
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x24], ebp
je 0x10006508
xor esi, esi
cmp dword [ebp], ebx
jbe 0x1000623f
lea ebx, [ebp + 0xa]
call edi
movzx edx, word [ebx - 6]
cmp edx, eax
jne 0x10006227
mov ax, word [ebx]
cmp ax, word [esp + 0x30]
je 0x10006234
add esi, 1
add ebx, 0x10
cmp esi, dword [ebp]
jb 0x10006213
jmp 0x1000623f
shl esi, 4
lea ecx, [esi + ebp + 4]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x178]
push edx
push eax
call fcn.10006550
add esp, 8
test eax, eax
mov dword [esp + 0x20], eax
je 0x100064fd
xor edi, edi
cmp dword [ebp], edi
jbe 0x100064fd
add ebp, 4
push 0x6f
lea ecx, [esp + 0xd5]
push 0
push ecx
mov byte [esp + 0xdc], 0
call fcn.1001f410
mov dl, byte [ebp + 4]
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp dl, byte [eax + 4]
jne 0x100064bc
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0xd0]
push ecx
mov ecx, dword [esp + 0x20]
push ebp
call fcn.10006550
add esp, 8
test eax, eax
mov dword [esp + 0x20], eax
je 0x100064bc
mov eax, dword [esp + 0xd4]
cmp eax, dword [esp + 0x17c]
jne 0x100064bc
cmp dword [esp + 0xe0], 1
je 0x100062ee
cmp eax, 2
jne 0x100064bc
movzx edx, word [ebp]
xor ebx, ebx
push edx
xor eax, eax
push ebx
push 0x40
mov dword [esp + 0x20], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x100064bc
push 2
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
movzx ecx, word [ebp + 6]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x100064b3
xor eax, eax
push 0x37
lea edx, [esp + 0x145]
push ebx
push edx
mov byte [esp + 0x7c], bl
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov dword [esp + 0x89], eax
mov dword [esp + 0x8d], eax
mov word [esp + 0x91], ax
mov byte [esp + 0x93], al
mov byte [esp + 0x94], bl
mov dword [esp + 0x95], eax
mov dword [esp + 0x99], eax
mov dword [esp + 0x9d], eax
mov dword [esp + 0xa1], eax
mov dword [esp + 0xa5], eax
mov word [esp + 0xa9], ax
mov byte [esp + 0xab], al
mov byte [esp + 0x14c], bl
call fcn.1001f410
add esp, 0xc
push 0x2f
lea eax, [esp + 0xa5]
push ebx
push eax
mov byte [esp + 0xac], bl
call fcn.1001f410
add esp, 0xc
push ebx
push ebx
push 1
push ebx
mov byte [esp + 0x90], 4
mov byte [esp + 0xa8], 3
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp byte [esp + 0xe0], 2
mov dword [esp + 0x5c], eax
jne 0x10006459
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x1c]
push 0x38
lea eax, [esp + 0x14c]
push eax
push 0x18
lea ecx, [esp + 0x84]
push ecx
push 0x210012
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10006459
mov eax, dword [esp + 0x5c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov ecx, dword [esp + 0x14]
push ecx
call ebx
jmp 0x100064b9
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
push 0x30
lea ecx, [esp + 0xac]
push ecx
push 0x18
lea edx, [esp + 0x9c]
push edx
push 0x210012
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1000649d
mov cx, word [esp + 0x1f4]
cmp word [esp + 0xac], cx
je 0x100064d2
mov edx, dword [esp + 0x5c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esp + 0x14]
push eax
call ebx
jmp 0x100064b9
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov ecx, dword [esp + 0x24]
add edi, 1
add ebp, 0x10
cmp edi, dword [ecx]
jb 0x10006276
mov ebp, ecx
jmp 0x100064fd
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x5c]
shl edi, 4
movzx eax, word [edi + edx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov dword [esp + 0x30], eax
call edi
mov edx, dword [esp + 0x14]
push edx
call edi
push esi
call edi
mov ebp, dword [esp + 0x24]
push ebp
call fcn.100186a9
add esp, 4
xor ebx, ebx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10006522
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x10006531
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1ec]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001829e
add esp, 0x1e0
ret