Function at 0x4059a0
Capabilities:
Create thread
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43600d
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x44fd00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov ecx, dword [edi + 0x1c]
lea edx, [edi + 0x18]
mov dword [ebp - 0x174], edi
cmp ecx, dword [edi + 0x20]
je 0x405a28
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0xf
mov dword [ecx + 0x14], 0xf
movq xmm0, qword [str.Opening_the_DLL]
movq qword [ecx], xmm0
mov eax, dword [0x437614]
mov dword [ecx + 8], eax
mov ax, word [0x437618]
mov word [ecx + 0xc], ax
mov al, byte [0x43761a]
mov byte [ecx + 0xe], al
mov byte [ecx + 0xf], 0
add dword [edi + 0x1c], 0x18
jmp 0x405a38
push str.Opening_the_DLL
push ecx
mov ecx, edx
call fcn.00404a60
lea edx, [edi + 0x18]
mov ecx, dword [edi + 0x1c]
mov dword [ebp - 4], 0
cmp ecx, dword [edi + 0x20]
je 0x405a81
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0xd
mov dword [ecx + 0x14], 0xf
movq xmm0, qword [str.Obtaining_PID]
movq qword [ecx], xmm0
mov eax, dword [0x43766c]
mov dword [ecx + 8], eax
mov al, byte [0x437670]
mov byte [ecx + 0xc], al
mov byte [ecx + 0xd], 0
add dword [edi + 0x1c], 0x18
jmp 0x405a8e
push str.Obtaining_PID
push ecx
mov ecx, edx
call fcn.00404a60
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x405dc1
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x16c], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x405de2
push dword [edi + 4]
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x405aef
lea eax, [ebp - 0x16c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x405de2
jmp 0x405ac1
mov eax, dword [ebp - 0x164]
push esi
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [edi + 0x1c]
cmp esi, dword [edi + 0x20]
je 0x405b6f
lea eax, [ebp - 0x170]
mov dword [ebp - 0x170], 0x1f
xorps xmm0, xmm0
push eax
movups xmmword [esi], xmm0
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00401ae0
mov ecx, dword [ebp - 0x170]
mov edx, eax
mov dword [esi], edx
add esp, 8
mov dword [esi + 0x10], 0x16
mov dword [esi + 0x14], ecx
movups xmm0, xmmword [str.Opening_target_process]
movups xmmword [edx], xmm0
mov eax, dword [0x4376c0]
mov dword [edx + 0x10], eax
mov ax, word [0x4376c4]
mov word [edx + 0x14], ax
mov byte [edx + 0x16], 0
add dword [edi + 0x1c], 0x18
jmp 0x405b7d
push str.Opening_target_process
push esi
lea ecx, [edi + 0x18]
call fcn.00404a60
push dword [edi + 8]
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [edi + 0xc], eax
test eax, eax
je 0x405e0a
mov ecx, edi
call fcn.00405600
mov ecx, edi
call fcn.00406710
mov esi, dword [edi + 0x1c]
cmp esi, dword [edi + 0x20]
je 0x405c16
lea eax, [ebp - 0x170]
mov dword [ebp - 0x170], 0x1f
xorps xmm0, xmm0
push eax
movups xmmword [esi], xmm0
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00401ae0
mov ecx, dword [ebp - 0x170]
mov edx, eax
mov dword [esi], edx
add esp, 8
mov dword [esi + 0x10], 0x16
mov dword [esi + 0x14], ecx
movups xmm0, xmmword [str.Creating_remote_thread]
movups xmmword [edx], xmm0
mov eax, dword [0x4377a8]
mov dword [edx + 0x10], eax
mov ax, word [0x4377ac]
mov word [edx + 0x14], ax
mov byte [edx + 0x16], 0
add dword [edi + 0x1c], 0x18
jmp 0x405c24
push str.Creating_remote_thread
push esi
lea ecx, [edi + 0x18]
call fcn.00404a60
mov esi, dword [edi + 0x14]
push 0x4377b0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push esi
push eax
push 0
push 0
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [edi + 0x10], eax
test eax, eax
je 0x405e2b
mov esi, dword [edi + 0x1c]
mov dword [ebp - 4], 0xffffffff
cmp esi, dword [edi + 0x20]
je 0x405cd6
lea eax, [ebp - 0x170]
mov dword [ebp - 0x170], 0x1f
xorps xmm0, xmm0
push eax
movups xmmword [esi], xmm0
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00401ae0
mov ecx, dword [ebp - 0x170]
mov edx, eax
mov dword [esi], edx
add esp, 8
mov dword [esi + 0x10], 0x1c
mov dword [esi + 0x14], ecx
movups xmm0, xmmword [str.Waiting_for_thread_to_finish]
movups xmmword [edx], xmm0
movq xmm0, qword [0x43763c]
movq qword [edx + 0x10], xmm0
mov eax, dword [0x437644]
mov dword [edx + 0x18], eax
mov byte [edx + 0x1c], 0
add dword [edi + 0x1c], 0x18
jmp 0x405ce4
push str.Waiting_for_thread_to_finish
push esi
lea ecx, [edi + 0x18]
call fcn.00404a60
push 0xffffffffffffffff
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [edi + 0x1c]
cmp esi, dword [edi + 0x20]
je 0x405d77
lea eax, [ebp - 0x170]
mov dword [ebp - 0x170], 0x1f
xorps xmm0, xmm0
push eax
movups xmmword [esi], xmm0
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00401ae0
mov ecx, dword [ebp - 0x170]
add esp, 8
mov dword [esi], eax
mov dword [esi + 0x10], 0x14
mov dword [esi + 0x14], ecx
movups xmm0, xmmword [str.Injection_successful]
movups xmmword [eax], xmm0
mov ecx, dword [0x43765c]
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], 0
add dword [edi + 0x1c], 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00434a74
mov esp, ebp
pop ebp
ret
push str.Injection_successful
push esi
lea ecx, [edi + 0x18]
call fcn.00404a60
jmp 0x405d5b
push str.Failed_to_create_snapshot_of_processes
lea ecx, [ebp - 0x184]
call fcn.00405130
push 0x43e5e4
lea eax, [ebp - 0x184]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Process_not_found
lea ecx, [ebp - 0x1a8]
call fcn.00405130
push 0x43e5e4
lea eax, [ebp - 0x1a8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.OpenProcess_failed
lea ecx, [ebp - 0x190]
call fcn.00405130
push 0x43e5e4
lea eax, [ebp - 0x190]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.CreateRemoteThread_failed
lea ecx, [ebp - 0x19c]
call fcn.00405130
push 0x43e5e4
lea eax, [ebp - 0x19c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3