Function at 0x402100
Capabilities:
Create process on windows
Create thread
Delete file
Get common file path
Resolve function by parsing pe exports
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x427e50
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov esi, ecx
push str.User32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
mov dword [esi + 0x1d4], eax
cmp eax, ebx
je 0x4026c5
push str.UpdateLayeredWindow
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x1d8], eax
mov byte [esi + 0x60], bl
mov byte [esi + 0x61], bl
mov byte [esi + 0x63], 1
mov byte [esi + 0x62], 0xff
mov dword [esi + 0x80], 0xa
mov dword [esi + 0x68], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x78], 0x64
push 0x437614
lea ecx, [esi + 0x98]
mov dword [esi + 0x84], ebx
call fcn.0041deaa
push 0x433274
lea ecx, [esi + 0x90]
mov dword [esi + 0x174], ebx
call fcn.0041deaa
push str.Link.exe
lea ecx, [esi + 0x94]
call fcn.0041deaa
push 0x433264
lea ecx, [esi + 0x8c]
call fcn.0041deaa
lea edi, [esi + 0xa0]
push pe_nt_image_headers32
push pe_nt_image_headers32
mov ecx, edi
call fcn.0041e12a
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0041e179
push 0x433190
mov ecx, edi
call fcn.0041b785
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.0041b6eb
push eax
mov ecx, edi
mov dword [esp + 0x48], ebx
call fcn.0041de5a
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
call fcn.0041dd21
lea ecx, [esp + 0x20]
call fcn.00405895
push str.Program_Files_newyx_newyxmodule.exe
lea ecx, [esp + 0x1c]
push edi
push ecx
mov dword [esp + 0x50], 1
call fcn.0041dfb6
mov eax, dword [eax]
push ebx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 2
call fcn.00405958
lea ecx, [esp + 0x18]
mov ebp, eax
mov byte [esp + 0x44], 1
call fcn.0041dd21
cmp ebp, ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
je 0x4022bf
push ebx
mov ecx, esi
call fcn.004033b0
push str.Program_Files_newyx_newyxmodule.exe
lea edx, [esp + 0x1c]
push edi
push edx
call fcn.0041dfb6
mov eax, dword [eax]
push 1
push ebx
push ebx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x18]
call fcn.0041dd21
lea eax, [esp + 0x1c]
mov dword [esi + 0x88], 1
push eax
push ebx
push esi
push 0x401ca0
push ebx
push ebx
call ebp
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push 0x401b30
push ebx
push ebx
call ebp
mov dword [esi + 0x68], eax
mov edx, dword [0x433720]
mov dword [esp + 0x10], edx
push pe_nt_image_headers32
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 3
call fcn.0041e12a
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0041e179
mov edi, dword [esp + 0x10]
push pe_nt_image_headers32
lea ecx, [esp + 0x14]
call fcn.0041e12a
push eax
push ebx
push 0x433238
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0041e179
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.0041da96
push 0x433234
push 0x8d
call fcn.004015b0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call dword [sym.imp.USER32.dll_LoadCursorFromFileA]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x6c], eax
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esi + 0x184]
push eax
push 0x433230
push 0x83
call fcn.004016d0
lea eax, [esi + 0x178]
push eax
push 0x433230
push 0x8e
call fcn.004016d0
lea ebp, [esi + 0x180]
push ebp
push 0x433230
push 0x88
call fcn.004016d0
lea edi, [esi + 0x17c]
push edi
push 0x433230
push 0x90
call fcn.004016d0
lea ecx, [esi + 0x188]
push ecx
push 0x433230
push 0x91
call fcn.004016d0
mov eax, dword [edi]
add esp, 0x3c
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x40242e
mov eax, dword [eax + 4]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x402405
mov ecx, dword [esp + 0x18]
mov dword [ecx + 8], eax
mov edi, dword [edi]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x14]
mov dword [esp + 0x18], edx
mov ecx, dword [edi + 4]
push eax
push ecx
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x402428
mov dword [edi + 8], eax
mov eax, dword [esp + 0x14]
jmp 0x402432
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 2
push eax
push ecx
push ebx
mov dword [esi + 0x74], ecx
push ebx
push ebx
mov ecx, esi
mov dword [esi + 0x70], eax
call fcn.00421470
mov eax, dword [esi + 0x74]
mov edi, 4
mov dword [esi + 0xb8], edi
mov dword [esi + 0xa8], edi
mov edi, dword [ebp]
lea ecx, [eax - 0x1d]
mov dword [esi + 0xb4], ecx
add ecx, 9
mov edx, 0xe
add eax, 0xffffffd3
cmp edi, ebx
mov dword [esi + 0xbc], ecx
mov dword [esi + 0xc0], edx
mov dword [esi + 0xa4], eax
mov dword [esi + 0xac], ecx
mov dword [esi + 0xb0], edx
je 0x4024fa
mov eax, dword [edi + 4]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x4024b0
mov dword [edi + 8], eax
mov ebp, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], ebx
mov edx, dword [ebp + 4]
push edx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x4024cc
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, 0xa
add ecx, 0x28
mov dword [esi + 0xe4], 0xa
mov dword [esi + 0xe8], 0x28
mov dword [esi + 0xec], eax
mov dword [esi + 0xf0], ecx
mov edi, dword [esi + 0x184]
cmp edi, ebx
je 0x4025a3
mov eax, dword [edi + 4]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x402521
mov dword [edi + 8], eax
mov eax, dword [esi + 0x74]
mov ecx, dword [esp + 0x18]
mov edi, dword [esi + 0x184]
mov dword [esi + 0xc8], 0x9b
cdq
sub eax, edx
lea edx, [esp + 0x18]
shr ecx, 1
sar eax, 1
sub eax, ecx
push edx
mov dword [esi + 0xc4], eax
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x402560
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0xc4]
mov edi, dword [esi + 0x184]
add ecx, eax
mov dword [esi + 0xcc], ecx
lea edx, [esp + 0x18]
mov eax, dword [edi + 4]
push edx
push eax
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x402591
mov dword [edi + 8], eax
mov ecx, dword [esi + 0xc8]
mov eax, dword [esp + 0x18]
add ecx, eax
mov dword [esi + 0xd0], ecx
mov ecx, 0x12a
mov dword [esp + 0x14], ebx
lea ebp, [esi + 0x110]
lea eax, [esi + 0x108]
lea edi, [esi + 0x10c]
lea edx, [esi + 0x104]
jmp 0x4025c8
xor ebx, ebx
mov dword [edx], ebx
mov dword [eax], ecx
mov ebx, dword [esi + 0x74]
mov dword [edi], ebx
mov ebx, dword [eax]
add ebx, 0x1e
mov dword [ebp], ebx
mov ebx, dword [esp + 0x14]
cmp ebx, 2
jne 0x4025f1
add edx, 0x10
add edi, 0x10
add eax, 0x10
add ebp, 0x10
add ecx, 0x25
add ecx, 0x1e
inc ebx
add edx, 0x10
add edi, 0x10
add eax, 0x10
add ebp, 0x10
cmp ebx, 6
mov dword [esp + 0x14], ebx
jl 0x4025c6
mov eax, dword [esi + 0x74]
xor edi, edi
mov dword [esi + 0xfc], eax
mov dword [esi + 0x13c], eax
lea edx, [eax - 0x122]
add eax, 0xfffffff6
mov ecx, esi
mov dword [esi + 0xf4], edi
mov dword [esi + 0xf8], 0x10b
mov dword [esi + 0x100], 0x129
mov dword [esi + 0x134], edi
mov dword [esi + 0x138], 0x18b
mov dword [esi + 0x140], 0x1a9
mov dword [esi + 0xd4], edx
mov dword [esi + 0xd8], 0x23
mov dword [esi + 0xdc], eax
mov dword [esi + 0xe0], 0x5f
call fcn.004038a0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push 0x401ca0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 1
call fcn.0041dd21
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], 0xffffffff
call fcn.004058d2
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret
push ebx
push ebx
push str.User32.dll_ERROR_
call fcn.0042397d
push ebx
call fcn.0040d588
nop
nop
nop
nop
nop
nop
nop
nop
nop
push esi
mov esi, ecx
call fcn.0041ecd3
cmp eax, 0xffffffff
jne 0x4026f3
or eax, eax
pop esi
ret 4
mov ecx, esi
call fcn.00402100
xor eax, eax
pop esi
ret 4