Function at 0x403bc0
Capabilities:
Create process on windows
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4e8
mov eax, dword [0x420008]
xor eax, esp
mov dword [esp + 0x4e4], eax
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
call fcn.00403a80
mov eax, dword [esi + 0x14]
push 0
push 2
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x22c
mov esi, eax
lea eax, [esp + 0x24]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x20], 0x22c
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x403c9c
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [esp + 0x250]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x403c83
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x250], eax
jne 0x403c83
lea eax, [esp + 0x44]
push str.GiftBox.Agent.exe
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
je 0x403c83
push dword [esp + 0x28]
push 1
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x403c83
push 0
push eax
call edi
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x403c32
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
push 0x208
lea eax, [esp + 0x2e4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea eax, [esp + 0x2ec]
add esp, 0xc
push str.GiftBox.Agent.exe
push 0x104
push eax
call esi
add esp, 0xc
lea eax, [esp + 0x2e0]
push str._Start__
push 0x104
push eax
call esi
mov eax, dword [esp + 0x24]
add esp, 0xc
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x403cf6
mov eax, dword [eax]
push eax
lea eax, [esp + 0x2e4]
push 0x104
push eax
call esi
add esp, 0xc
lea eax, [esp + 0x2e0]
push 0x419fc8
push 0x104
push eax
call esi
add esp, 0xc
mov dword [esp + 0x254], 0
lea eax, [esp + 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x403f21
cmp dword [esp + 0x254], 0
jne 0x403f21
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 1
jb 0x403fb3
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
push eax
mov dword [esp + 0x258], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x260], 0
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x403fb3
lea eax, [esp + 0x258]
push eax
push 4
lea eax, [esp + 0x258]
push eax
push 0x13
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x403dd4
push dword [esp + 0x14]
call edi
mov eax, dword [esp + 0x250]
mov dword [esp + 0x14], eax
jmp 0x403dd8
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
mov dword [esp + 0x264], 0
push ecx
push 1
push 1
lea ecx, [esp + 0x268]
xorps xmm0, xmm0
push ecx
push 0x2000000
movq qword [esp + 0x270], xmm0
push eax
mov dword [esp + 0x274], 0xc
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x403fb3
push dword [esp + 0x14]
call edi
push 0
push dword [esp + 0x1c]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x403fb3
xorps xmm0, xmm0
mov dword [esp + 0x27c], 0
push 0x44
lea eax, [esp + 0x29c]
movq qword [esp + 0x278], xmm0
push 0
movq qword [esp + 0x270], xmm0
push eax
mov dword [esp + 0x280], 0xc
mov dword [esp + 0x27c], 0
mov dword [esp + 0x274], 0xc
movaps xmmword [esp + 0x28c], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x2c4], 1
mov eax, 5
mov dword [esp + 0x298], 0x44
mov word [esp + 0x2c8], ax
lea eax, [esp + 0x280]
push eax
lea eax, [esp + 0x29c]
push eax
push 0
push dword [esp + 0x28]
lea eax, [esp + 0x278]
push 0x430
push 0
push eax
lea eax, [esp + 0x290]
push eax
lea eax, [esp + 0x300]
push eax
push 0
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [esp + 0x18]
call edi
pop edi
pop esi
mov ecx, dword [esp + 0x4e4]
xor ecx, esp
call fcn.004168de
mov esp, ebp
pop ebp
ret
push 0x44
lea eax, [esp + 0x29c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x298], 0x44
lea eax, [esp + 0x280]
xorps xmm0, xmm0
movaps xmmword [esp + 0x280], xmm0
push eax
lea eax, [esp + 0x29c]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [esp + 0x300]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403fb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x208
mov esi, eax
lea eax, [esp + 0x24]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x20]
push 0
push 0x104
push eax
push 0
push esi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov ecx, dword [esp + 0x4ec]
pop edi
pop esi
xor ecx, esp
call fcn.004168de
mov esp, ebp
pop ebp
ret