Function at 0x410680
Capabilities:
Acquire debug privileges
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x258
mov eax, dword [0x440008]
xor eax, esp
mov dword [esp + 0x254], eax
movups xmm0, xmmword [0x43af2c]
push esi
push edi
movups xmmword [esp + 0x30], xmm0
mov ecx, str.notepad.exe
mov dword [esp + 0x14], 0
movups xmm0, xmmword [0x43af3c]
movups xmmword [esp + 0x40], xmm0
call fcn.004125a0
mov edi, eax
test edi, edi
je 0x410995
push edi
push str._t___Getting_proc_id:__u_n
call fcn.00409e40
add esp, 8
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
xor esi, esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x410714
mov ecx, 0x43c5bc
call fcn.00411970
jmp 0x410772
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 1
push eax
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x38], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x41075e
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, eax
test esi, esi
jne 0x410768
mov ecx, 0x43c604
jmp 0x410763
mov ecx, str.LookupPrivilegeValue
call fcn.00411970
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push str._t___Setting_Debug_Privileges___d__n
call fcn.00409e40
add esp, 8
test esi, esi
je 0x410995
push edi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4107be
mov ecx, 0x43afe0
call fcn.00411970
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
push 0x436ddc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x4107f8
mov ecx, str.GetModuleHandle
call fcn.00411970
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
push str._t___Looking_for_LoadLibrary_in_kernel32_n
call fcn.00409e40
add esp, 4
push 0x43b04c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x410842
mov ecx, 0x43b05c
call fcn.00411970
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
push eax
push str._t___Found_at_0x_p_n
call fcn.00409e40
add esp, 8
lea eax, [esp + 0x50]
push 0
push eax
push 0x104
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [esp + 0x50]
push eax
push str._t___Full_DLL_Path:__s_n
call fcn.00409e40
lea ecx, [esp + 0x58]
add esp, 8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410880
sub ecx, edx
sar ecx, 1
push str._t___Allocating_space_for_the_path_of_the_DLL_n
lea edi, [ecx + ecx]
mov dword [esp + 0x20], edi
call fcn.00409e40
add esp, 4
push 4
push 0x3000
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
jne 0x4108e3
mov ecx, 0x43b138
call fcn.00411970
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
push edi
push str._t___Writing_into_the_current_process_space_at_0x_p_n
call fcn.00409df0
add esp, 8
lea eax, [esp + 0x50]
push 0
push dword [esp + 0x20]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x410914
mov ecx, 0x43b190
call fcn.00411970
jmp 0x410967
push 0
push 0
push edi
push dword [esp + 0x24]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x41093c
mov ecx, 0x43b1b8
call fcn.00411970
jmp 0x410967
push str.Remote_thread_has_been_created_successfully_..._n
call fcn.00409e40
add esp, 4
push 0xffffffffffffffff
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 1
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x25c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0041396d
mov esp, ebp
pop ebp
ret