Function at 0x401800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
xorps xmm0, xmm0
push 0
push 0x400
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x401854
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401a78
mov esp, ebp
pop ebp
ret
push 4
mov edx, 4
lea ecx, [ebp - 0x38]
call fcn.004015e0
add esp, 4
test eax, eax
jne 0x401a67
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push str.___System_EPROC_address:__llx_n
call fcn.00401010
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.004015e0
add esp, 4
test eax, eax
jne 0x401a67
mov ebx, dword [ebp - 0x3c]
push ebx
push dword [ebp - 0x40]
push str.__Target_process_EPROC_address:__llx_n
call fcn.00401010
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add esp, 0xc
push 4
push 0x3000
push 8
push 0x1000000
call esi
mov edi, eax
cmp edi, 0x1000000
jne 0x40183d
xorps xmm0, xmm0
mov dword [ebp - 0x54], 1
movq qword [edi], xmm0
mov eax, dword [0x4053d4]
push 4
push 0x1000
push 0x60
mov dword [eax + 0x2c], edi
mov dword [eax + 0x30], 1
mov eax, dword [0x405068]
push 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x50], 0
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
call esi
mov ecx, eax
mov dword [ebp - 0x48], ecx
test ecx, ecx
jne 0x401930
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x401a02
mov eax, dword [ebp - 0x38]
movq xmm0, qword [ebp - 0x54]
add eax, 0x4b8
push 0
push 0
push 0
mov dword [ecx + 0x18], eax
mov eax, 0xc02
push 0
push 0
mov word [ecx], ax
mov eax, ecx
push 8
sub esp, 0xc
cdq
mov dword [ecx + 0x1c], 8
mov dword [ecx + 4], 0x80
mov byte [ecx + 0x20], 1
mov dword [ecx + 8], 1
mov dword [edi], eax
mov eax, esp
push dword [ebp - 0x44]
mov dword [edi + 4], edx
push 0
push dword [0x4053d4]
movq qword [eax], xmm0
mov dword [eax + 8], 0
call dword [sym.imp.KERNEL32.dll_BuildIoRingWriteFile]
mov esi, eax
test esi, esi
jne 0x4019f2
push eax
push eax
push eax
push dword [0x4053d4]
call dword [sym.imp.KERNEL32.dll_SubmitIoRing]
mov esi, eax
test esi, esi
jne 0x4019f2
lea eax, [ebp - 0x2c]
push eax
push dword [0x4053d4]
call dword [sym.imp.KERNEL32.dll_PopIoRingCompletion]
mov esi, eax
test esi, esi
jne 0x4019f2
mov esi, dword [ebp - 0x28]
test esi, esi
jne 0x4019f2
push esi
push esi
push 8
lea eax, [ebp - 0x20]
push eax
push dword [0x40506c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4019f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4019f2
xor esi, esi
push 0x8000
push 0x60
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test esi, esi
jne 0x401a65
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push str.___System_token_is_at:__llx_n
call fcn.00401010
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x20]
add esp, 0xc
mov ecx, edi
add eax, 0x4b8
adc ebx, esi
push 8
push ebx
push eax
call fcn.004016d0
add esp, 0xc
test eax, eax
jne 0x401a67
mov eax, dword [0x4053d0]
mov ecx, edi
sub eax, 0xffffff80
cdq
push 0x10
push edx
push eax
lea edx, [ebp - 0x14]
call fcn.004016d0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401a78
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401a78
mov esp, ebp
pop ebp
ret