Function at 0x4021b0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Resume thread
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2a8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1c], eax
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edi, edi
mov byte [esp + 0xd], 0
cmp dword [esp + 0x7c], 1
mov ecx, eax
mov dword [esp + 0x40], ecx
mov byte [esp + 0xe], 0
mov byte [esp + 0x17], 0
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], edi
jle 0x40242a
mov esi, 1
mov dword [esp + 0x3c], 2
mov dword [esp + 0x44], esi
jmp 0x402224
mov ecx, dword [esp + 0x40]
mov esi, dword [ecx + esi*4]
mov ecx, 0x407450
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402256
test dx, dx
je 0x402252
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402256
add eax, 4
add ecx, 4
test dx, dx
jne 0x402230
xor eax, eax
jmp 0x40225b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402269
mov byte [esp + 0xd], 1
jmp 0x4023ed
mov ecx, 0x407458
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402296
test dx, dx
je 0x402292
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402296
add eax, 4
add ecx, 4
test dx, dx
jne 0x402270
xor eax, eax
jmp 0x40229b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4022a9
mov byte [esp + 0xe], 1
jmp 0x4023ed
mov ecx, 0x407460
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4022d6
test dx, dx
je 0x4022d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4022d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4022b0
xor eax, eax
jmp 0x4022db
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4022e9
mov byte [esp + 0x17], 1
jmp 0x4023ed
mov ecx, 0x407468
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402316
test dx, dx
je 0x402312
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402316
add eax, 4
add ecx, 4
test dx, dx
jne 0x4022f0
xor eax, eax
jmp 0x40231b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4023d7
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x7c]
jge 0x4023d7
mov ecx, dword [esp + 0x44]
inc eax
inc ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], ecx
mov edx, dword [eax + ecx*4]
mov dword [esp + 0xb4], edx
test edx, edx
je 0x402399
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402356
sub ecx, esi
sar ecx, 1
mov dword [esp + 0x4c], ecx
lea eax, [ecx + 1]
test eax, eax
je 0x4023a1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405b79
mov edx, dword [esp + 0xb8]
mov esi, eax
add esp, 4
xor eax, eax
mov word [esi], ax
jmp 0x4023a7
mov dword [esp + 0x4c], 0
xor esi, esi
test edx, edx
je 0x4023c0
push dword [esp + 0x4c]
push edx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov eax, dword [esp + 0x58]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax*2], cx
push edi
call fcn.00405b31
add esp, 4
mov edi, esi
push 0
call fcn.00405b31
add esp, 4
jmp 0x4023ed
cmp word [esi], 0x2d
jne 0x402406
push esi
push str.Unrecognized_option:__ws
push 0x10
call fcn.00401350
add esp, 0xc
mov esi, dword [esp + 0x44]
inc dword [esp + 0x3c]
inc esi
mov dword [esp + 0x44], esi
cmp esi, dword [esp + 0x7c]
jl 0x402220
jmp 0x40240a
mov esi, dword [esp + 0x44]
mov dword [esp + 0xb4], edi
test edi, edi
je 0x4028f5
push edi
push str.MYINPUT_HOOK_CONFIG
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x4028f5
sub esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00401390
mov esi, dword [esp + 0x2c]
add esp, 0xc
test esi, esi
jne 0x40244f
push esi
call fcn.00405b31
lea edi, [esi + 2]
jmp 0x403957
cmp dword [esp + 0x7c], edi
je 0x40245d
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
jmp 0x402462
mov eax, 0x4074dc
push eax
lea ecx, [esp + 0x5c]
call fcn.00404080
push esi
lea ecx, [esp + 0x19c]
call fcn.00404080
mov edx, dword [esp + 0x68]
mov ecx, 0x7ffffffe
sub ecx, edx
mov dword [esp + 0x20], eax
cmp ecx, 2
jb 0x403982
cmp dword [esp + 0x6c], 8
lea eax, [esp + 0x58]
lea ecx, [edx + 2]
mov edi, 7
cmovae eax, dword [esp + 0x58]
setae byte [esp + 0xf]
mov dword [esp + 0xb0], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x100], xmm0
lea eax, [esp + 0x100]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
cmp ecx, edi
jbe 0x402566
mov edi, ecx
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4024f0
mov eax, 0x7fffffff
mov edi, 0x7ffffffe
add eax, eax
jmp 0x402511
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x403987
add eax, eax
cmp eax, 0x1000
jb 0x402542
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x403987
push ecx
call fcn.00405b36
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40280e
mov edx, dword [esp + 0x68]
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [esp + 0x10]
jmp 0x40255b
test eax, eax
je 0x402559
push eax
call fcn.00405b36
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, dword [esp + 0x68]
jmp 0x40255b
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x114], edi
lea edi, [edx + edx]
push edi
push dword [esp + 0xb4]
mov dword [esp + 0x118], ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [0x4074e4]
xor edx, edx
push dword [esp + 0x20]
mov dword [edi + ecx], eax
mov eax, dword [esp + 0x6c]
mov word [ecx + eax*2 + 4], dx
lea eax, [esp + 0x104]
push eax
push dword [esp + 0x5c]
lea ecx, [esp + 0xf0]
call fcn.00405120
mov edi, dword [esp + 0xf8]
lea ecx, [esp + 0xe4]
mov edx, dword [esp + 0xf4]
mov eax, edi
sub eax, edx
cmp eax, 1
jb 0x402608
cmp edi, 8
lea eax, [edx + 1]
mov dword [esp + 0xf4], eax
cmovae ecx, dword [esp + 0xe4]
mov ax, word [0x4074e0]
mov word [ecx + edx*2], ax
xor eax, eax
mov word [ecx + edx*2 + 2], ax
lea eax, [esp + 0xe4]
jmp 0x40261a
push 1
push 0x4074e0
push dword [esp + 0x5c]
push 1
call fcn.004046e0
mov dword [esp + 0xd0], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0xc0], xmm0
xor ecx, ecx
mov dword [esp + 0xd4], 0
movups xmm0, xmmword [eax]
movups xmmword [esp + 0xc0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esp + 0xd0], xmm0
mov word [eax], cx
lea ecx, [esp + 0xc0]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
cmp dword [esp + 0xd4], 8
mov dword [esp + 0x10], ecx
jb 0x402814
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x402814
xor edi, edi
xor eax, eax
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x4026b5
push edi
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov ecx, dword [esp + 0x28]
add esp, 0xc
xor eax, eax
mov word [ecx + edi*2], ax
push 0
call fcn.00405b31
mov edi, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0xb0], edi
push 0
call fcn.00405b31
mov ecx, dword [esp + 0xd8]
add esp, 4
cmp ecx, 8
jb 0x402716
mov edx, dword [esp + 0xc0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40270c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40280e
push ecx
push edx
call fcn.00405b6b
add esp, 8
mov ecx, dword [esp + 0xf8]
xor eax, eax
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 7
mov word [esp + 0xc0], ax
cmp ecx, 8
jb 0x402778
mov edx, dword [esp + 0xe4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40276e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40280e
push ecx
push edx
call fcn.00405b6b
add esp, 8
mov ecx, dword [esp + 0x114]
xor eax, eax
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 7
mov word [esp + 0xe4], ax
cmp ecx, 8
jb 0x4027d6
mov edx, dword [esp + 0x100]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4027cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40280e
push ecx
push edx
call fcn.00405b6b
add esp, 8
mov ecx, dword [esp + 0x1ac]
cmp ecx, 8
jb 0x40286f
mov edx, dword [esp + 0x198]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402865
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402865
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edi, ecx
lea edx, [edi + 2]
nop dword [eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x402820
sub edi, edx
sar edi, 1
lea eax, [edi + 1]
test eax, eax
je 0x402695
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405b79
add esp, 4
mov dword [esp + 0x1c], eax
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [esp + 0x10]
jmp 0x40269f
push ecx
push edx
call fcn.00405b6b
add esp, 8
xor eax, eax
mov dword [esp + 0x1a8], 0
mov word [esp + 0x198], ax
lea eax, [esp + 0x7c]
push eax
push edi
mov dword [esp + 0x1b4], 7
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp byte [esp + 0xf], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 1
je 0x4028e7
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x58]
mov eax, edx
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4028dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4028dd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00405b6b
add esp, 8
push esi
call fcn.00405b31
add esp, 4
mov esi, 1
push 0x44
lea eax, [esp + 0x144]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp byte [esp + 0xe], 0
movaps xmm0, xmmword [esp + 0x140]
mov eax, dword [esp + 0x180]
mov edi, dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
movaps xmmword [esp + 0x260], xmm0
movaps xmm0, xmmword [esp + 0x150]
movaps xmmword [esp + 0x270], xmm0
movaps xmm0, xmmword [esp + 0x160]
movaps xmmword [esp + 0x280], xmm0
movaps xmm0, xmmword [esp + 0x170]
movaps xmmword [esp + 0x290], xmm0
mov dword [esp + 0x2a0], eax
mov byte [esp + 0xb], 0
mov byte [esp + 0xf], 0
mov byte [esp + 0xc], 0
jne 0x403282
cmp byte [esp + 0x17], 0
jne 0x403282
mov ecx, dword [esp + 0x1c]
mov edx, esi
call fcn.00402120
cmp byte [esp + 0xd], 0
mov dword [esp + 0x4c], eax
je 0x4029bf
lea eax, [esp + 0x20]
xor esi, esi
mov dword [eax], 0
push dword [esp + 0x20]
mov dword [esp + 0x40], esi
jmp 0x402a57
mov eax, dword [esp + 0x40]
push 0x5c
mov esi, dword [eax + esi*4]
push esi
mov dword [esp + 0x18], esi
call edi
test eax, eax
mov edi, esi
push 0x2f
cmovne edi, eax
mov eax, dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
push edi
call eax
add esp, 0x10
test eax, eax
cmovne edi, eax
sub edi, esi
sar edi, 1
test esi, esi
je 0x402a25
lea eax, [edi + 1]
test eax, eax
je 0x402a25
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405b79
mov esi, eax
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], esi
mov word [esi], ax
mov eax, dword [esp + 0x10]
jmp 0x402a37
mov eax, dword [esp + 0x10]
xor esi, esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], esi
test eax, eax
je 0x402a49
push edi
push eax
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
lea eax, [esp + 0x50]
mov dword [eax], 0
push dword [esp + 0x50]
call fcn.00405b31
add esp, 4
mov dword [esp + 0x90], 0
lea ecx, [esp + 0xa0]
mov dword [esp + 0x94], 7
xorps xmm0, xmm0
xor eax, eax
movaps xmmword [esp + 0x80], xmm0
push ecx
lea ecx, [esp + 0x264]
mov word [esp + 0x84], ax
movzx eax, byte [esp + 0x11]
push ecx
push esi
push 0
push 7
push eax
push 0
push 0
push dword [esp + 0x6c]
mov dword [esp + 0x6c], eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40322c
mov edi, dword [esp + 0x44]
lea eax, [edi*4]
mov dword [esp + 0x70], eax
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
je 0x403148
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2e4
je 0x40307a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x40]
lea ecx, [edi*4]
mov dword [esp + 0x10], ecx
mov ecx, dword [edx + ecx]
cmp eax, 0xc1
jne 0x403065
lea eax, [esp + 0xb8]
mov dword [esp + 0x50], 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
lea edx, [esp + 0x58]
mov dword [esp + 0xc0], 0
call fcn.00401e50
mov edi, dword [esp + 0x58]
add esp, 8
test al, al
je 0x403025
test edi, edi
je 0x403025
push edi
lea ecx, [esp + 0x12c]
call fcn.00404080
push eax
mov edx, 0x4074e0
lea ecx, [esp + 0x5c]
call fcn.004045b0
mov ecx, eax
add esp, 4
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0x10]
sub eax, esi
cmp eax, 1
jb 0x402baf
cmp dword [ecx + 0x14], 8
lea edi, [esi + 1]
mov dword [ecx + 0x10], edi
mov edx, ecx
jb 0x402b9d
mov edx, dword [ecx]
mov ax, word [0x4074e0]
mov word [edx + esi*2], ax
xor eax, eax
mov word [edx + edi*2], ax
jmp 0x402bc3
push 1
push 0x4074e0
push dword [esp + 0x5c]
push 1
call fcn.004046e0
mov ecx, eax
movups xmm0, xmmword [ecx]
xor eax, eax
movq xmm1, qword [ecx + 0x10]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov ecx, dword [esp + 0x94]
movaps xmmword [esp + 0x100], xmm0
movq qword [esp + 0x20], xmm1
cmp ecx, 8
jb 0x402c3c
mov edx, dword [esp + 0x80]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402c24
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40280e
push ecx
push edx
call fcn.00405b6b
movaps xmm0, xmmword [esp + 0x108]
add esp, 8
movq xmm1, qword [esp + 0x20]
mov ecx, dword [esp + 0x6c]
movaps xmmword [esp + 0x80], xmm0
movq qword [esp + 0x90], xmm1
cmp ecx, 8
jb 0x402c89
mov edx, dword [esp + 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402c7f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40280e
push ecx
push edx
call fcn.00405b6b
add esp, 8
mov ecx, dword [esp + 0x13c]
xor eax, eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 7
mov word [esp + 0x58], ax
cmp ecx, 8
jb 0x402ce2
mov edx, dword [esp + 0x128]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402cd8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40280e
push ecx
push edx
call fcn.00405b6b
add esp, 8
mov edi, dword [esp + 0x18]
test edi, edi
je 0x402e31
cmp word [edi], 0
je 0x402e31
push edi
lea ecx, [esp + 0x12c]
call fcn.00404080
push eax
mov edx, 0x4075fc
lea ecx, [esp + 0x5c]
call fcn.004045b0
mov edx, eax
add esp, 4
cmp dword [edx + 0x14], 8
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x18], ecx
jb 0x402d28
mov edx, dword [edx]
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0x94]
sub eax, esi
mov dword [esp + 0x20], esi
cmp ecx, eax
ja 0x402d89
cmp dword [esp + 0x94], 8
lea eax, [esi + ecx]
mov dword [esp + 0x90], eax
lea esi, [esp + 0x80]
cmovae esi, dword [esp + 0x80]
mov eax, dword [esp + 0x20]
lea ecx, [esi + eax*2]
mov eax, dword [esp + 0x18]
add eax, eax
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [esp + 0x24]
add esp, 0xc
add eax, dword [esp + 0x20]
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x402d9c
push ecx
push edx
push dword [esp + 0x5c]
push ecx
lea ecx, [esp + 0x90]
call fcn.004046e0
mov ecx, dword [esp + 0x6c]
cmp ecx, 8
jb 0x402dd8
mov edx, dword [esp + 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402dce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40280e
push ecx
push edx
call fcn.00405b6b
add esp, 8
mov ecx, dword [esp + 0x13c]
xor eax, eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 7
mov word [esp + 0x58], ax
cmp ecx, 8
jb 0x402e31
mov edx, dword [esp + 0x128]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402e27
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40280e
push ecx
push edx
call fcn.00405b6b
add esp, 8
mov ecx, dword [esp + 0x4c]
mov edx, 1
call fcn.00402120
test eax, eax
je 0x402f8a
cmp word [eax], 0
je 0x402f8a
push eax
lea ecx, [esp + 0x12c]
call fcn.00404080
push eax
mov edx, 0x4075fc
lea ecx, [esp + 0x5c]
call fcn.004045b0
mov edx, eax
add esp, 4
cmp dword [edx + 0x14], 8
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x20], ecx
jb 0x402e81
mov edx, dword [edx]
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0x94]
sub eax, esi
mov dword [esp + 0x18], esi
cmp ecx, eax
ja 0x402ee2
cmp dword [esp + 0x94], 8
lea eax, [ecx + esi]
mov dword [esp + 0x90], eax
lea esi, [esp + 0x80]
cmovae esi, dword [esp + 0x80]
mov eax, dword [esp + 0x18]
lea ecx, [esi + eax*2]
mov eax, dword [esp + 0x20]
add eax, eax
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [esp + 0x2c]
add esp, 0xc
add eax, dword [esp + 0x18]
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x402ef5
push ecx
push edx
push dword [esp + 0x5c]
push ecx
lea ecx, [esp + 0x90]
call fcn.004046e0
mov ecx, dword [esp + 0x6c]
cmp ecx, 8
jb 0x402f31
mov edx, dword [esp + 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402f27
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40280e
push ecx
push edx
call fcn.00405b6b
add esp, 8
mov ecx, dword [esp + 0x13c]
xor eax, eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 7
mov word [esp + 0x58], ax
cmp ecx, 8
jb 0x402f8a
mov edx, dword [esp + 0x128]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402f80
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40280e
push ecx
push edx
call fcn.00405b6b
add esp, 8
mov esi, dword [esp + 0xb8]
test esi, esi
je 0x402fae
cmp word [esi], 0
je 0x402fae
mov eax, dword [esp + 0x3c]
push eax
call fcn.00405b31
add esp, 4
mov dword [esp + 0x3c], esi
xor esi, esi
cmp dword [esp + 0x94], 8
lea eax, [esp + 0x80]
push esi
cmovae eax, dword [esp + 0x84]
mov dword [esp + 0x50], eax
call fcn.00405b31
add esp, 4
push edi
call fcn.00405b31
add esp, 4
push dword [esp + 0x50]
call fcn.00405b31
mov esi, dword [esp + 0x40]
lea eax, [esp + 0xa4]
add esp, 4
push eax
lea eax, [esp + 0x264]
push eax
push esi
push 0
push 7
push dword [esp + 0x5c]
push 0
push 0
push dword [esp + 0x6c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40322c
mov edi, dword [esp + 0x44]
jmp 0x402ad4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
push dword [eax + ecx]
push 0x407600
push 0x10
call fcn.00401350
add esp, 0xc
push dword [esp + 0xb8]
call fcn.00405b31
add esp, 4
push dword [esp + 0x18]
call fcn.00405b31
add esp, 4
push edi
call fcn.00405b31
jmp 0x4031ba
push ecx
push str.Failed_starting__ws._File_not_found_
push 0x10
call fcn.00401350
add esp, 0xc
jmp 0x4031bd
lea ecx, [esp + 0x48]
call fcn.004011c0
mov esi, dword [esp + 0x48]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x1c]
mov edx, 1
mov dword [esp + 0x148], 0
mov dword [esp + 0x158], 0
movlpd qword [esp + 0x160], xmm0
movlpd qword [esp + 0x168], xmm0
movlpd qword [esp + 0x170], xmm0
mov dword [esp + 0x178], 0
mov dword [esp + 0x140], 0x3c
mov dword [esp + 0x144], 0x40
mov dword [esp + 0x14c], str.runas
mov dword [esp + 0x150], esi
call fcn.00402120
mov dword [esp + 0x154], eax
lea eax, [esp + 0x140]
push eax
mov dword [esp + 0x160], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x403196
mov eax, dword [esp + 0x178]
mov ecx, dword [esp + 0x70]
test eax, eax
je 0x40319a
push esi
mov byte [esp + 0x10], 1
mov dword [esp + 0xa4], eax
call fcn.00405b31
mov esi, dword [esp + 0x40]
add esp, 4
mov cl, byte [esp + 0xb]
mov byte [esp + 0xf], cl
mov ecx, dword [esp + 0x94]
cmp ecx, 8
jb 0x40324e
mov edx, dword [esp + 0x80]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403244
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403244
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
push dword [ecx + eax]
push str.Failed_elevating__ws
push 0x10
call fcn.00401350
add esp, 0xc
push esi
call fcn.00405b31
mov esi, dword [esp + 0x40]
add esp, 4
mov ecx, dword [esp + 0x94]
cmp ecx, 8
jb 0x4031fb
mov edx, dword [esp + 0x80]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4031f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403190
push ecx
push edx
call fcn.00405b6b
add esp, 8
xor eax, eax
mov dword [esp + 0x90], 0
push esi
mov dword [esp + 0x98], 7
mov word [esp + 0x84], ax
call fcn.00405b31
add esp, 4
or edi, 0xffffffff
jmp 0x40395a
push dword [esp + 0xa8]
call dword [sym.imp.KERNEL32.dll_DebugActiveProcessStop]
mov cl, 1
mov byte [esp + 0xb], cl
jmp 0x40314c
push ecx
push edx
call fcn.00405b6b
add esp, 8
xor eax, eax
mov dword [esp + 0x90], 0
push esi
mov dword [esp + 0x98], 7
mov word [esp + 0x84], ax
call fcn.00405b31
mov edi, dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 4
jmp 0x4034b2
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x128]
push dword [eax + esi*4]
call fcn.00404080
lea ecx, [esp + 0x218]
mov dword [esp + 0x1b0], 0x407818
mov esi, eax
mov dword [esp + 0x1c0], 0x407820
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0
lea eax, [esp + 0x1cc]
push eax
lea ecx, [esp + 0x1b8]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov eax, dword [esp + 0x1b0]
mov eax, dword [eax + 4]
mov dword [esp + eax + method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [esp + 0x1b0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [esp + ecx + 0x1ac], eax
lea ecx, [esp + 0x1c8]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
mov dword [esp + method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
jb 0x40331d
mov esi, dword [esi]
push 0
push eax
push esi
lea ecx, [esp + 0x1d4]
call fcn.00405540
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x1b4]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_long_unsigned___int64___]
mov eax, dword [esp + 0x1b0]
lea ecx, [esp + 0x1b0]
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::fail_void_const]
mov ecx, dword [esp + 0x1b0]
mov byte [esp + 0xe], al
mov ecx, dword [ecx + 4]
mov dword [esp + ecx + method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov ecx, dword [esp + 0x1b0]
mov edx, dword [ecx + 4]
lea ecx, [edx - 0x68]
mov dword [esp + edx + 0x1ac], ecx
lea ecx, [esp + 0x1c8]
call fcn.00404ea0
lea ecx, [esp + 0x1d0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [esp + 0x218]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x13c]
cmp ecx, 8
jb 0x4033ed
mov edx, dword [esp + 0x128]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4033e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4033e3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00405b6b
add esp, 8
cmp byte [esp + 0xe], 0
je 0x403416
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push dword [ecx + eax*4]
push str.Invalid_number_argument__ws.
push 0x10
call fcn.00401350
add esp, 0xc
or edi, 0xffffffff
jmp 0x40395a
cmp byte [esp + 0x17], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0xac], 0
mov dword [esp + 0xa4], 0
push eax
je 0x40346f
mov dword [esp + 0xa4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [esp + 0xa8], eax
test eax, eax
jne 0x4034ad
push dword [esp + 0x74]
push dword [esp + 0x74]
push str.Invalid_process_handle__lld.
push 0x10
call fcn.00401350
add esp, 0x10
or edi, 0xffffffff
jmp 0x40395a
push 0
push 0x1fffff
mov dword [esp + 0xb4], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0xa0], eax
test eax, eax
jne 0x4034ad
push dword [esp + 0x74]
push dword [esp + 0x74]
push str.Cant_open_process_id__lld.
push 0x10
call fcn.00401350
add esp, 0x10
or edi, 0xffffffff
jmp 0x40395a
mov byte [esp + 0xb], 1
lea ecx, [esp + 0x70]
call fcn.004011c0
push 0x5c
mov esi, dword [eax]
push esi
mov dword [esp + 0x28], esi
call edi
test eax, eax
mov edi, esi
push 0x2f
cmovne edi, eax
mov eax, dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
push edi
call eax
add esp, 0x10
test eax, eax
cmovne edi, eax
sub edi, esi
sar edi, 1
test esi, esi
je 0x403514
lea eax, [edi + 1]
test eax, eax
je 0x403514
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405b79
mov esi, eax
add esp, 4
xor eax, eax
mov word [esi], ax
mov eax, dword [esp + 0x20]
jmp 0x40351e
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, eax
je 0x403530
push edi
push eax
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
push dword [esp + 0x70]
call fcn.00405b31
mov cl, byte [esp + 0x10]
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test cl, cl
jne 0x40389b
cmp byte [esp + 0xb], 0
je 0x403595
lea eax, [esp + 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x403595
lea eax, [esp + 0x54]
push eax
push dword [esp + 0xa4]
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x403595
mov eax, dword [esp + 0xfc]
cmp eax, dword [esp + 0x54]
je 0x4038ab
push 0x5c
push esi
mov byte [esp + 0x13], 0
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov edi, eax
mov ecx, esi
test edi, edi
push 0x2f
cmovne ecx, edi
push ecx
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 0x10
test eax, eax
je 0x4035c5
lea edx, [eax + 2]
mov dword [esp + 0x10], edx
jmp 0x4035d8
test edi, edi
je 0x4035d2
lea edx, [edi + 2]
mov dword [esp + 0x10], edx
jmp 0x4035d8
mov edx, esi
mov dword [esp + 0x10], esi
test edx, edx
je 0x403621
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4035e1
sub ecx, edi
sar ecx, 1
mov dword [esp + 0x18], ecx
lea eax, [ecx + 1]
test eax, eax
je 0x403629
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405b79
mov edx, dword [esp + 0x14]
mov edi, eax
add esp, 4
xor eax, eax
mov word [edi], ax
jmp 0x40362f
mov dword [esp + 0x18], 0
xor edi, edi
test edx, edx
je 0x403648
push dword [esp + 0x18]
push edx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov eax, dword [esp + 0x24]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax*2], cx
push edi
lea ecx, [esp + 0x5c]
call fcn.00404080
push edi
call fcn.00405b31
push str.Win32
lea ecx, [esp + 0x60]
call fcn.00405030
push ecx
lea ecx, [esp + 0x5c]
cmp eax, 0xffffffff
je 0x403697
push str.Win32
call fcn.00405030
cmp eax, 0xffffffff
je 0x403844
mov edx, 5
mov dword [esp + 0x20], 3
mov edi, 0x407440
jmp 0x4036d4
push 0x407440
call fcn.00405030
cmp eax, 0xffffffff
je 0x403844
push ecx
push 0x407440
lea ecx, [esp + 0x60]
call fcn.00405030
cmp eax, 0xffffffff
je 0x403844
mov edx, 3
mov dword [esp + 0x20], 5
mov edi, str.Win32
push dword [esp + 0x20]
lea ecx, [esp + 0x5c]
push edi
push edx
push eax
call fcn.004053b0
cmp dword [esp + 0x6c], 8
lea eax, [esp + 0x58]
push 0x5c
cmovae eax, dword [esp + 0x5c]
push esi
mov dword [esp + 0x50], eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test eax, eax
mov edi, esi
push 0x2f
cmovne edi, eax
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 0x10
test eax, eax
cmovne edi, eax
sub edi, esi
sar edi, 1
mov dword [esp + 0x20], edi
test esi, esi
je 0x40374c
lea eax, [edi + 1]
test eax, eax
je 0x40374c
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405b79
mov edi, eax
add esp, 4
xor eax, eax
mov word [edi], ax
jmp 0x403752
xor edi, edi
test esi, esi
je 0x40376b
push dword [esp + 0x20]
push esi
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov eax, dword [esp + 0x2c]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax*2], cx
push dword [esp + 0x48]
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.00401240
add esp, 4
lea ecx, [esp + 0x48]
mov edx, dword [eax]
push str.myinput_inject.exe
call fcn.00401240
add esp, 4
push dword [esp + 0x10]
call fcn.00405b31
add esp, 4
push edi
call fcn.00405b31
add esp, 4
mov edi, dword [esp + 0x48]
lea eax, [esp + 0x100]
push eax
lea eax, [esp + 0x264]
push eax
push 0
push 0
push 4
push 1
push 0
push 0
push dword [esp + 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403829
cmp byte [esp + 0xf], 0
je 0x403804
push 0xffffffffffffffff
push dword [esp + 0xa4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esp + 0xa0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0xa4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movaps xmm0, xmmword [esp + 0x100]
push edi
movaps xmmword [esp + 0xa4], xmm0
mov byte [esp + 0x10], 1
mov byte [esp + 0xf], 1
call fcn.00405b31
add esp, 4
jmp 0x403853
push edi
push str.Failed_redirecting_to__ws._File_not_found_
push 0x10
call fcn.00401350
add esp, 0xc
push edi
call fcn.00405b31
add esp, 4
jmp 0x403853
push str.Process_has_wrong_bitness_and_cannot_find_myinput_inject_of_other_bitness___cannot_inject
push 0x10
call fcn.00401350
add esp, 8
mov ecx, dword [esp + 0x6c]
cmp ecx, 8
jb 0x403891
mov edx, dword [esp + 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403887
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403887
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00405b6b
add esp, 8
mov cl, byte [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0xb]
test al, al
je 0x4038de
mov byte [esp + 0xb], al
test cl, cl
jne 0x4038de
push str.myinput_hook.dll
mov edx, esi
lea ecx, [esp + 0x24]
call fcn.00401240
mov ecx, dword [esp + 0xa4]
lea edx, [esp + 0x24]
add esp, 4
call fcn.00401410
push dword [esp + 0x20]
mov byte [esp + 0xf], al
call fcn.00405b31
add esp, 4
mov ecx, dword [esp + 0xa4]
test ecx, ecx
je 0x4038f9
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esp + 0xa4]
call edi
cmp byte [esp + 0xd], 0
mov dword [esp + 0xbc], 0xffffffff
je 0x403931
push 0xffffffffffffffff
push dword [esp + 0xa4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0xbc]
push eax
push dword [esp + 0xa4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x403941
xor eax, eax
cmp byte [esp + 0xb], al
sete al
mov dword [esp + 0xbc], eax
push dword [esp + 0xa0]
call edi
mov edi, dword [esp + 0xbc]
push esi
call fcn.00405b31
add esp, 4
push dword [esp + 0xb0]
call fcn.00405b31
add esp, 4
push dword [esp + 0xb4]
call fcn.00405b31
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
call fcn.004011b0
call fcn.00401110
int3