Function at 0x140051090
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x640]
sub rsp, 0x740
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x798], rbx
mov rax, qword [0x1401a1e90]
xor rax, rsp
mov qword [rbp + 0x630], rax
mov r12, rdx
mov rdi, rcx
movsxd r14, r8d
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x1d8]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x50], rax
or r13, 0xffffffffffffffff
test rax, rax
jne 0x1400513a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
call fcn.140049a60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1400511b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rdi + 0x1d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov qword [rdi + 0x1d8], rsi
mov edx, r15d
lea rcx, [rbp + 0x440]
call fcn.140048d40
mov rdi, rax
mov edx, ebx
lea rcx, [rbp + 0x400]
call fcn.140048d40
nop
lea r8, [0x140138e54]
mov rdx, rax
lea rcx, [rbp + 0xc0]
call fcn.14002d3b0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp + 0x300]
call fcn.140054640
mov rbx, rax
call fcn.14004c620
mov rdx, rax
mov r8, rbx
lea rcx, [rbp - 0x58]
call fcn.14004cf50
lea rdx, [0x14016ca48]
lea rcx, [rbp - 0x58]
call fcn.1400ca6e8
nop
lea rdx, str.NtAllocateVirtualMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [rbp - 0x80], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x1000
lea r9, [rbp - 0x80]
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, qword [rdi + 0x1d8]
call rbx
mov ebx, eax
test eax, eax
je 0x140051362
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, qword [rdi + 0x1d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov qword [rdi + 0x1d8], rsi
cmp ebx, 0xc000010a
jne 0x140051255
call fcn.140049d30
mov rdx, rax
lea r8, [0x140136390]
lea rcx, [rbp - 0x78]
call fcn.14004ce90
lea rdx, [0x14016ca48]
lea rcx, [rbp - 0x78]
call fcn.1400ca6e8
int3
cmp ebx, 0xc0000022
jne 0x140051286
call fcn.14004b4a0
mov rdx, rax
lea r8, [0x140136390]
lea rcx, [rbp - 0x28]
call fcn.14004ce90
lea rdx, [0x14016ca48]
lea rcx, [rbp - 0x28]
call fcn.1400ca6e8
int3
cmp ebx, 0xc0000017
jne 0x1400512b7
call fcn.14004c2c0
mov rdx, rax
lea r8, [0x140136390]
lea rcx, [rbp + 0x18]
call fcn.14004ce90
lea rdx, [0x14016ca48]
lea rcx, [rbp + 0x18]
call fcn.1400ca6e8
int3
mov edx, r14d
lea rcx, [rbp + 0x100]
call fcn.140048d40
mov rdi, rax
mov edx, ebx
lea rcx, [rbp + 0x500]
call fcn.140048c80
mov rbx, rax
mov edx, r15d
lea rcx, [rbp + 0x140]
call fcn.140048d40
nop
lea r8, [0x14013923c]
mov rdx, rax
lea rcx, [rbp + 0x340]
call fcn.14002d3b0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x180]
call fcn.140054640
nop
lea r8, [0x1401391f8]
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.14002d3b0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp + 0x1c0]
call fcn.140054640
mov r10, rax
call fcn.14004a520
mov rdx, rax
mov r8, r10
lea rcx, [rbp - 8]
call fcn.14004cf50
lea rdx, [0x14016ca48]
lea rcx, [rbp - 8]
call fcn.1400ca6e8
nop
call fcn.14004c900
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400022a0
nop
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1400530d0
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005139c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], 1
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9, r14
mov r8, r12
mov rdx, rax
mov rcx, qword [rdi + 0x1d8]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140051482
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r9d, 0x8000
mov r8, r14
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x1d8]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rdi + 0x1d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov qword [rdi + 0x1d8], rsi
mov edx, ebx
lea rcx, [rbp + 0x380]
call fcn.140048d40
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x200]
call fcn.140048d40
nop
lea r8, [0x140139240]
mov rdx, rax
lea rcx, [rbp + 0x4c0]
call fcn.14002d3b0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x240]
call fcn.140054640
mov r10, rax
call fcn.14004bfe0
mov rdx, rax
mov r8, r10
lea rcx, [rbp - 0x68]
call fcn.14004cf50
lea rdx, [0x14016ca48]
lea rcx, [rbp - 0x68]
call fcn.1400ca6e8
nop
call fcn.14004b760
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140139218]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov rcx, qword [rdi + 0x1d8]
test rax, rax
jne 0x140051515
mov r9d, 0x8000
mov r8, r14
mov rdx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rdi + 0x1d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov qword [rdi + 0x1d8], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x3c0]
call fcn.140048d40
mov r9, rax
call fcn.140049ba0
mov rdx, rax
mov r8, r9
lea rcx, [rbp - 0x38]
call fcn.14004cf50
lea rdx, [0x14016ca48]
lea rcx, [rbp - 0x38]
call fcn.1400ca6e8
nop
xor esi, esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, rbx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x14005189d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
cmp eax, 8
je 0x14005160d
cmp eax, 5
je 0x14005160d
mov r9d, 0x8000
mov r8, r14
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x1d8]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rdi + 0x1d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x1d8], rsi
mov edx, r15d
lea rcx, [rbp + 0x280]
call fcn.140048d40
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x480]
call fcn.140048d40
nop
lea r8, [0x140139240]
mov rdx, rax
lea rcx, [rbp + 0x2c0]
call fcn.14002d3b0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.140054640
mov rbx, rax
call fcn.14004a370
mov rdx, rax
mov r8, rbx
lea rcx, [rbp - 0x18]
call fcn.14004cf50
lea rdx, [0x14016ca48]
lea rcx, [rbp - 0x18]
call fcn.1400ca6e8
nop
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14005170d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r9d, 0x8000
mov r8, r14
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x1d8]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rdi + 0x1d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x1d8], rsi
mov edx, ebx
lea rcx, [rbp + 0xa0]
call fcn.140048d40
mov rdi, rax
mov edx, r15d
lea rcx, [rbp + 0xe0]
call fcn.140048d40
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x120]
call fcn.140048d40
nop
lea r8, [0x140138e54]
mov rdx, rax
lea rcx, [rbp + 0x160]
call fcn.14002d3b0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x1a0]
call fcn.140054640
nop
lea r8, [0x14013923c]
mov rdx, rax
lea rcx, [rbp + 0x1e0]
call fcn.14002d3b0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp + 0x220]
call fcn.140054640
mov rbx, rax
call fcn.14004c620
mov rdx, rax
mov r8, rbx
lea rcx, [rbp + 8]
call fcn.14004cf50
lea rdx, [0x14016ca48]
lea rcx, [rbp + 8]
call fcn.1400ca6e8
nop
lea rdx, str.RtlCreateUserThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
xor eax, eax
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 0x1d8]
call r10
mov r13d, eax
test eax, eax
je 0x140051899
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r9d, 0x8000
mov r8, r14
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x1d8]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rdi + 0x1d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x1d8], rsi
mov edx, ebx
lea rcx, [rbp + 0x260]
call fcn.140048d40
mov rsi, rax
mov edx, r13d
lea rcx, [rbp + 0x2a0]
call fcn.140048c80
mov rdi, rax
mov edx, r15d
lea rcx, [rbp + 0x2e0]
call fcn.140048d40
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x320]
call fcn.140048d40
nop
lea r8, [0x140138e54]
mov rdx, rax
lea rcx, [rbp + 0x360]
call fcn.14002d3b0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x3a0]
call fcn.140054640
nop
lea r8, [0x14013923c]
mov rdx, rax
lea rcx, [rbp + 0x3e0]
call fcn.14002d3b0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp + 0x420]
call fcn.140054640
nop
lea r8, [0x1401391f8]
mov rdx, rax
lea rcx, [rbp + 0x460]
call fcn.14002d3b0
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rbp + 0x4a0]
call fcn.140054640
mov r10, rax
call fcn.14004b060
mov rdx, rax
mov r8, r10
lea rcx, [rbp + 0x28]
call fcn.14004cf50
lea rdx, [0x14016ca48]
lea rcx, [rbp + 0x28]
call fcn.1400ca6e8
nop
or r13, 0xffffffffffffffff
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, r14
lea r8, [rbp + 0x520]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x1d8]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400519d7
mov ecx, dword [0x1401a9d80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x2aaaaaab
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 2
sub r8d, eax
cmp r8d, 8
jne 0x14005195b
mov rax, qword [str.fGXBp3vdHa]
mov qword [rsp + 0x70], rax
movzx eax, word [0x1401392b0]
mov word [rsp + 0x78], ax
movzx eax, byte [0x1401392b2]
mov byte [rsp + 0x7a], al
lea rdx, [rsp + 0x70]
mov rcx, r13
inc rcx
cmp byte [rdx + rcx], sil
jne 0x140051936
mov eax, 4
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.1400c1e58
mov rcx, rax
call fcn.1400c2f38
mov r8, r14
mov rdx, r12
lea rcx, [rbp + 0x520]
call fcn.1400c7d70
test eax, eax
je 0x14005199a
call fcn.14004c3f0
mov rdx, rax
lea r8, [0x140136390]
lea rcx, [rbp + 0x40]
call fcn.14004ce90
lea rdx, [0x14016ca48]
lea rcx, [rbp + 0x40]
call fcn.1400ca6e8
int3
mov edx, 0x1388
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, 0x8000
mov r8d, 8
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x1d8]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140051a13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x4e0]
call fcn.140048d40
mov r9, rax
call fcn.14004c3f0
mov rdx, rax
mov r8, r9
lea rcx, [rbp - 0x48]
call fcn.14004cf50
lea rdx, [0x14016ca48]
lea rcx, [rbp - 0x48]
call fcn.1400ca6e8
nop
mov rcx, qword [rbp + 0x630]
xor rcx, rsp
call fcn.1400c2810
mov rbx, qword [rsp + 0x798]
add rsp, 0x740
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret