Function at 0x403940
Capabilities:
Create process on windows
Delete file
Move file
Self delete

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4428f0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [0x459004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x91], cl
mov cl, 1
call fcn.00402a90
mov eax, dword [0x45b8e8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4039b6
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x45b8e8]
call esi
mov dword [0x45b8e8], 0
lea ecx, [ebp - 0x74]
call fcn.00401a60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x60], 8
push 4
cmovae eax, dword [ebp - 0x74]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0x1a
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push str._q__c_timeout__t_2__del__
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
call fcn.00409b40
mov byte [ebp - 4], 1
lea edx, [ebp - 0x74]
cmp dword [ebp - 0x60], 8
mov ecx, dword [ebp - 0x1c]
cmovae edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x64]
sub eax, ecx
mov dword [ebp - 0x90], ecx
cmp edi, eax
ja 0x403a5b
cmp dword [ebp - 0x18], 8
lea eax, [edi + ecx]
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
cmovae esi, dword [ebp - 0x2c]
lea eax, [edi + edi]
push eax
push edx
lea ecx, [esi + ecx*2]
push ecx
call fcn.00423fe0
mov eax, dword [ebp - 0x90]
add esp, 0xc
add eax, edi
xor ecx, ecx
mov word [esi + eax*2], cx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403a73
push edi
push edx
mov byte [ebp - 0x90], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x90]
push edi
call fcn.00409de0
mov edx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
cmp eax, 1
jb 0x403a9b
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [eax + ecx*2], 0x22
jmp 0x403ab9
push 1
push 0x4515b8
mov byte [ebp - 0x90], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x90]
push 1
call fcn.00409de0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0xc8], 0
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0xd0]
push eax
movlpd qword [ebp - 0xb0], xmm0
movlpd qword [ebp - 0xa8], xmm0
movlpd qword [ebp - 0xa0], xmm0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0xd0], 0x3c
mov dword [ebp - 0xcc], 0x40
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0x4515bc
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x403b4e
push dword [ebp - 0x98]
call esi
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x8c]
call fcn.004094e0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x403b67
mov ecx, dword [eax]
mov edx, dword [eax + 0x10]
push 2
sub esp, 8
call fcn.004099f0
mov ecx, dword [ebp - 0x78]
add esp, 0xc
mov esi, eax
cmp ecx, 8
jb 0x403bb6
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403bac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403fb7
push ecx
push edx
call fcn.0040a3d8
add esp, 8
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x8c]
call fcn.004094e0
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
cmp dword [eax + 0x10], esi
cmovb esi, dword [eax + 0x10]
cmp dword [eax + 0x14], 8
jb 0x403bed
mov eax, dword [eax]
push esi
push eax
lea ecx, [ebp - 0x5c]
call fcn.00409b40
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x78]
cmp ecx, 8
jb 0x403c38
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403c2e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403fbc
push ecx
push edx
call fcn.0040a3d8
add esp, 8
mov edx, dword [ebp - 0x48]
xor eax, eax
mov ecx, dword [ebp - 0x4c]
mov word [ebp - 0x8c], ax
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
cmp eax, 1
jb 0x403c77
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
mov dword [eax + ecx*2], 0x5c
jmp 0x403c95
push 1
push 0x451558
mov byte [ebp - 0x90], 0
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x90]
push 1
call fcn.00409de0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x44]
call fcn.004094e0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x30]
mov eax, ecx
mov edi, dword [ebp - 0x34]
sub eax, edi
cmp eax, 0xb
jb 0x403ce0
cmp ecx, 8
lea esi, [ebp - 0x44]
lea eax, [edi + 0xb]
cmovae esi, dword [ebp - 0x44]
push 0x16
mov dword [ebp - 0x34], eax
push str.hookDll.dll
lea eax, [esi + edi*2]
push eax
call fcn.00423fe0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 0x16], ax
jmp 0x403cfe
push 0xb
push str.hookDll.dll
mov byte [ebp - 0x90], 0
lea ecx, [ebp - 0x44]
push dword [ebp - 0x90]
push 0xb
call fcn.00409de0
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 4
cmovae eax, dword [ebp - 0x44]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0x1a
push str._q__c_timeout__t_2__del__
lea ecx, [ebp - 0x2c]
call fcn.00409750
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x34]
sub eax, edx
mov dword [ebp - 0x90], edx
cmp edi, eax
ja 0x403d75
cmp dword [ebp - 0x18], 8
lea eax, [edx + edi]
mov dword [ebp - 0x1c], eax
lea esi, [ebp - 0x2c]
cmovae esi, dword [ebp - 0x2c]
lea eax, [edi + edi]
push eax
push ecx
lea eax, [esi + edx*2]
push eax
call fcn.00423fe0
mov eax, dword [ebp - 0x90]
add esp, 0xc
add eax, edi
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x403d8d
push edi
push ecx
mov byte [ebp - 0x90], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x90]
push edi
call fcn.00409de0
mov edx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
cmp eax, 1
jb 0x403db5
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [eax + ecx*2], 0x22
jmp 0x403dd3
push 1
push 0x4515b8
mov byte [ebp - 0x90], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x90]
push 1
call fcn.00409de0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0xc8], 0
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0xd0]
push eax
movlpd qword [ebp - 0xb0], xmm0
movlpd qword [ebp - 0xa8], xmm0
movlpd qword [ebp - 0xa0], xmm0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0xd0], 0x3c
mov dword [ebp - 0xcc], 0x40
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0x4515bc
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x403e6c
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x91], 0
jne 0x403fc1
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x403eb3
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403ea9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403fc8
push ecx
push edx
call fcn.0040a3d8
add esp, 8
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp ecx, 8
jb 0x403f01
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403ef7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403fc8
push ecx
push edx
call fcn.0040a3d8
add esp, 8
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp ecx, 8
jb 0x403f4f
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403f45
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403fc8
push ecx
push edx
call fcn.0040a3d8
add esp, 8
mov ecx, dword [ebp - 0x60]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp ecx, 8
jb 0x403f99
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403f8f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403fc8
push ecx
push edx
call fcn.0040a3d8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040a3ca
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0042731b
call fcn.0042731b
push 0
call fcn.00427791
call fcn.0042731b
int3