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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
lea esi, [ebp - 0x18]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x44]
mov dword [esi - 4], esp
or dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0x402770
mov edx, dword fs:[0]
mov dword [esi], edx
mov dword fs:[0], esi
push ecx
push eax
push edi
call fcn.00429750
add esp, 0xc
and dword [edi - 0xc], 0
xor eax, eax
inc eax
mov dword [edi - 8], eax
and word [edi - 4], 0
mov dword [edi - 0x10], eax
lea eax, [ebp - 0x54]
lea edi, [ebp - 0x64]
push eax
push edi
call fcn.00402158
pop eax
pop ecx
mov eax, dword [edi + 4]
and dword [esi + 8], 0
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 8]
add eax, eax
push 4
push 0x1000
mov dword [ebp - 0x24], eax
push eax
push 0
push dword [ebp + 0xc]
call sub.KERNEL32.dll_VirtualAllocEx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40257b
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x40259e
push 0xc
push 0x43b71d
lea eax, [ebp - 0x54]
push eax
call fcn.004258f0
add esp, 0xc
lea ecx, [ebp - 0x54]
mov edx, 0x43b73c
call fcn.00402330
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x10], 1
push 0xc
push str.LoadLibraryW
lea eax, [ebp - 0x54]
push eax
call fcn.004258f0
add esp, 0xc
lea ecx, [ebp - 0x54]
mov edx, 0x43b758
call fcn.00402330
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x10], 2
push dword [ebp - 0x28]
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
je 0x4025d2
push dword [ebp - 0x24]
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40261b
push 0
push 0
push dword [ebp - 0x20]
push eax
push 0
push 0
push dword [ebp + 0xc]
call sub.KERNEL32.dll_CreateRemoteThread
test eax, eax
je 0x40263e
mov dword [ebp - 0x20], eax
push 0
push dword [ebp - 0x20]
call sub.KERNEL32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x4025f5
push 0xffffffffffffffff
push dword [ebp - 0x20]
call sub.KERNEL32.dll_WaitForSingleObject
jmp 0x40255a
push 0
push 0x30
call fcn.00401115
pop ecx
pop esi
mov esi, eax
mov edi, edx
push 0x30
push 0x43b6be
push edx
call fcn.0042b960
add esp, 0xc
push 0x30
jmp 0x4025bf
push 0
push 0x2f
call fcn.00401115
pop ecx
pop esi
mov esi, eax
mov edi, edx
push 0x2f
push 0x43b6ee
push edx
call fcn.0042b960
add esp, 0xc
push 0x2f
pop eax
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov esi, ecx
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
jmp 0x4026e4
push 0
push 0x29
call fcn.00401115
pop ecx
pop esi
mov esi, eax
mov edi, edx
push 0x29
push str.Failed_to_get_the_handle_of_kernel32.dll.Failed_to_get_the_address_of_LoadLibraryA.Failed_to_create_a_remote_thread_in_the_target_process.Failed_to_load_dllGetExitCodeThread_returns_falsecalled__Option::unwrap____on_a__None__value_rustc_90c541806f23a127002de5b4038be731ba1458calibrary_alloc_srccollections_btree_navigate.rs
push edx
call fcn.0042b960
add esp, 0xc
push 0x29
jmp 0x40265f
lea eax, [ebp - 0x58]
and dword [eax], 0
push eax
push dword [ebp - 0x20]
call sub.KERNEL32.dll_GetExitCodeThread
test eax, eax
je 0x40266f
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x402689
mov dword [ebp - 0x54], eax
and dword [ebp - 0x50], 0
jmp 0x4026b3
push 0
push 0x2a
call fcn.00401115
pop ecx
pop esi
mov esi, eax
mov edi, edx
push 0x2a
push 0x43b791
push edx
call fcn.0042b960
add esp, 0xc
push 0x2a
jmp 0x40265f
push 0
push 0x37
call fcn.00401115
pop ecx
pop esi
mov esi, eax
mov edi, edx
push 0x37
push 0x43b7bb
push edx
call fcn.0042b960
add esp, 0xc
push 0x37
pop eax
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov esi, ecx
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
jmp 0x4026d4
push 0
push 0x1f
call fcn.00401115
pop ecx
pop esi
mov esi, eax
mov edi, edx
push 0x1f
pop ebx
push ebx
push 0x43b804
jmp 0x4026a1
push 0
push 0x12
call fcn.00401115
pop ecx
pop esi
mov esi, eax
mov edi, edx
push 0x12
pop ebx
push ebx
push 0x43b7f2
push edi
call fcn.0042b960
add esp, 0xc
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x10], 3
push dword [ebp - 0x20]
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp + 8]
movsd xmm0, qword [ebp - 0x54]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
lea ecx, [ebp - 0x38]
call fcn.00402307
lea ecx, [ebp - 0x30]
call fcn.00402307
lea eax, [ebp - 0x64]
push eax
call fcn.00401249
pop eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret