Function at 0x7ff8c39cd850
Capabilities:
Create process on windows
Create process suspended
Get file size
Read file on windows
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x7f8]
sub rsp, 0x8d0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x7ff8c3aba080]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov qword [0x7ff8c3abb778], rcx
lea rcx, [0x7ff8c3a97dd0]
mov qword [0x7ff8c3abb790], rdx
call fcn.7ff8c39c46c0
mov rcx, qword [0x7ff8c3abb778]
xor edi, edi
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.kernel32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x7ff8c39cd8e8
lea rcx, [0x7ff8c3a97970]
call fcn.7ff8c39c46c0
mov rcx, rsi
jmp 0x7ff8c39cdb7a
xor edx, edx
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetFileSize]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x7ff8c39cd90f
lea rcx, [0x7ff8c3a979a8]
call fcn.7ff8c39c46c0
mov rcx, rsi
jmp 0x7ff8c39cdb7a
call qword [sym.imp.kernel32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x7ff8c39cd949
lea rcx, [0x7ff8c3a979f0]
call fcn.7ff8c39c46c0
mov rcx, rsi
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, rbx
jmp 0x7ff8c39cdb7a
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov r8d, r14d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x7ff8c39cd98a
lea rcx, [0x7ff8c3a97a40]
call fcn.7ff8c39c46c0
mov rcx, rsi
call qword [sym.imp.kernel32.dll_CloseHandle]
test rbx, rbx
je 0x7ff8c39cdb80
mov rcx, rbx
jmp 0x7ff8c39cdb7a
mov rcx, rsi
call qword [sym.imp.kernel32.dll_CloseHandle]
test rbx, rbx
je 0x7ff8c39cdb80
mov rdx, rbx
lea rcx, [0x7ff8c3a97de8]
call fcn.7ff8c39c46c0
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
je 0x7ff8c39cd9dd
lea rcx, [0x7ff8c3a97e08]
call fcn.7ff8c39c46c0
call qword [sym.imp.kernel32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x7ff8c39cdb80
lea rcx, [0x7ff8c3a97e28]
call fcn.7ff8c39c46c0
mov rcx, qword [0x7ff8c3abb790]
xorps xmm0, xmm0
xor eax, eax
mov dword [rbp + 0x740], 0x68
mov dword [rbp + 0x7a4], eax
xor r9d, r9d
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x740]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
movups xmmword [rbp + 0x744], xmm0
movups xmmword [rbp + 0x754], xmm0
movups xmmword [rbp + 0x764], xmm0
movups xmmword [rbp + 0x774], xmm0
movups xmmword [rbp + 0x784], xmm0
movups xmmword [rbp + 0x794], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
jne 0x7ff8c39cda87
lea rcx, [0x7ff8c3a97e50]
jmp 0x7ff8c39cdb37
mov rcx, qword [rsp + 0x50]
lea rdx, [rbp + 0x730]
call qword [sym.imp.kernel32.dll_IsWow64Process]
xor edx, edx
cmp dword [rbp + 0x730], edi
je 0x7ff8c39cdbb5
mov r8d, 0x2c8
mov qword [rsp + 0x70], rdi
lea rcx, [rbp - 0x6c]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp - 0x70]
mov dword [rbp - 0x70], 0x10000b
call qword [sym.imp.kernel32.dll_Wow64GetThreadContext]
mov edx, dword [rbp + 0x34]
lea r8, [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
add edx, 8
mov r9d, 4
mov qword [rsp + 0x20], rdi
call qword [sym.imp.kernel32.dll_ReadProcessMemory]
test eax, eax
jne 0x7ff8c39cdb0d
xorps xmm0, xmm0
xorps xmm6, xmm6
psrldq xmm0, 8
movq rax, xmm6
movq rcx, xmm0
jmp 0x7ff8c39cdb22
mov eax, dword [rbp + 0x34]
mov rcx, qword [rsp + 0x70]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rcx
movdqa xmm6, xmmword [rbp - 0x80]
test rcx, rcx
je 0x7ff8c39cdb30
test rax, rax
jne 0x7ff8c39cdc54
lea rcx, [0x7ff8c3a97ea0]
call fcn.7ff8c39c46c0
call qword [sym.imp.kernel32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x7ff8c39cdb60
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x7ff8c39cdb80
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.7ff8c3a839f0
lea r11, [rsp + 0x8d0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov r8d, 0x4d0
mov qword [rbp - 0x80], rdi
lea rcx, [rbp + 0x260]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp + 0x260]
mov dword [rbp + 0x290], 0x10000b
call qword [sym.imp.kernel32.dll_GetThreadContext]
mov rdx, qword [rbp + 0x2e8]
lea r8, [rbp - 0x80]
mov rcx, qword [rsp + 0x50]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], rdi
call qword [sym.imp.kernel32.dll_ReadProcessMemory]
test eax, eax
jne 0x7ff8c39cdc27
xorps xmm0, xmm0
xorps xmm6, xmm6
psrldq xmm0, 8
movq rax, xmm6
movq rcx, xmm0
jmp 0x7ff8c39cdc42
mov rax, qword [rbp + 0x2e8]
mov rcx, qword [rbp - 0x80]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rcx
movdqa xmm6, xmmword [rsp + 0x70]
test rcx, rcx
je 0x7ff8c39cdb30
test rax, rax
je 0x7ff8c39cdb30
movq rdx, xmm6
lea rcx, [0x7ff8c3a97f00]
call fcn.7ff8c39c46c0
psrldq xmm6, 8
lea rcx, [0x7ff8c3a97f20]
movq rdx, xmm6
call fcn.7ff8c39c46c0
movsxd rax, dword [rbx + 0x3c]
lea rcx, [0x7ff8c3a97f48]
mov r12d, 0x10b
movzx r14d, word [rax + rbx + 0x18]
lea rax, [0x7ff8c3a97f70]
cmp r14w, r12w
cmovne rcx, rax
call fcn.7ff8c39c46c0
cmp dword [rbp + 0x730], edi
lea rax, [0x7ff8c3a97fc0]
lea rcx, [0x7ff8c3a97f98]
cmove rcx, rax
call fcn.7ff8c39c46c0
cmp r14w, r12w
jne 0x7ff8c39cdce2
cmp dword [rbp + 0x730], edi
jne 0x7ff8c39cdcea
lea rcx, [0x7ff8c3a98010]
call fcn.7ff8c39c46c0
jmp 0x7ff8c39cdb80
cmp dword [rbp + 0x730], edi
jne 0x7ff8c39cdcd1
lea rcx, [0x7ff8c3a97fe8]
call fcn.7ff8c39c46c0
movsxd rax, dword [rbx + 0x3c]
movzx ecx, word [rax + rbx + 0x5c]
movzx r15d, cx
lea rcx, [0x7ff8c3a98038]
mov edx, r15d
call fcn.7ff8c39c46c0
movq rdx, xmm6
mov rcx, qword [rsp + 0x50]
cmp dword [rbp + 0x730], edi
je 0x7ff8c39cdd2b
call fcn.7ff8c39cc970
jmp 0x7ff8c39cdd30
call fcn.7ff8c39ccad0
mov esi, eax
cmp eax, 0xffffffff
jne 0x7ff8c39cdd43
lea rcx, [0x7ff8c3a98060]
jmp 0x7ff8c39cdb37
mov edx, esi
lea rcx, [0x7ff8c3a980b0]
call fcn.7ff8c39c46c0
cmp r15d, esi
jne 0x7ff8c39cde2b
lea rcx, [0x7ff8c3a980d8]
call fcn.7ff8c39c46c0
movsxd rax, dword [rbx + 0x3c]
cmp r14w, r12w
jne 0x7ff8c39cdda6
mov eax, dword [rax + rbx + 0xa0]
test eax, eax
setne dil
test eax, eax
jne 0x7ff8c39cddb4
lea rcx, [0x7ff8c3a98120]
call fcn.7ff8c39c46c0
lea rcx, [rsp + 0x50]
mov rdx, rbx
cmp r14w, r12w
jne 0x7ff8c39cddc4
test edi, edi
jne 0x7ff8c39cddbd
call fcn.7ff8c39ccc40
jmp 0x7ff8c39cddd4
cmp dword [rax + rbx + 0xb0], edi
je 0x7ff8c39cdd81
mov edi, 1
lea rcx, [0x7ff8c3a98158]
jmp 0x7ff8c39cdd88
call fcn.7ff8c39cd0c0
jmp 0x7ff8c39cddd4
test edi, edi
jne 0x7ff8c39cddcf
call fcn.7ff8c39cce80
jmp 0x7ff8c39cddd4
call fcn.7ff8c39cd4a0
test eax, eax
je 0x7ff8c39cde1f
lea rcx, [0x7ff8c3a98188]
call fcn.7ff8c39c46c0
call qword [sym.imp.kernel32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x7ff8c39cde08
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x7ff8c39cde18
call qword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
jmp 0x7ff8c39cdb85
lea rcx, [0x7ff8c3a981b0]
jmp 0x7ff8c39cdb37
lea rcx, [0x7ff8c3a980f8]
jmp 0x7ff8c39cdb37