Function at 0x402830
Capabilities:
Copy file
Create process on windows
Delete file
Enumerate processes
Read .ini file
Resolve function by parsing pe exports
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x41b2e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc78
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea ebp, [ebx + 0x60]
push 0x42217c
lea eax, [esp + 0x14]
push ebp
push eax
mov dword [esp + 0x3c], ebx
call fcn.00412bc7
mov eax, dword [eax]
push 0
push eax
call fcn.0040505a
add esp, 8
cmp eax, 0xffffffff
lea ecx, [esp + 0x10]
sete byte [esp + 0x1f]
call fcn.00412922
mov al, byte [esp + 0x1f]
test al, al
je 0x4028aa
push 0
push 0
push 0x4223c8
call fcn.00418ddf
mov ecx, ebx
call fcn.00414fe4
xor eax, eax
jmp 0x402d82
push 0
push 2
mov dword [esp + 0x5c], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x54]
mov esi, eax
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
lea edx, [esp + 0x54]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x402918
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea eax, [esp + 0x78]
push 0x42217c
push eax
call fcn.004054af
add esp, 8
test eax, eax
jne 0x402909
mov ecx, dword [esp + 0x5c]
push ecx
push eax
push 0x1f0fff
call edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edx, [esp + 0x54]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4028dd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push 0x42217c
push ebp
push eax
call fcn.00412bc7
lea ecx, [esp + 0x284]
call fcn.00401000
lea edi, [ebx + 0x64]
mov ecx, 0x281
lea esi, [esp + 0x280]
push 0x64
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0xc94], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x4224a8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
push 0x42217c
lea ecx, [esp + 0x14]
push ebp
push ecx
mov byte [esp + 0xc9c], 3
call fcn.00412bc7
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc94], 4
call fcn.00412a69
lea ecx, [esp + 0x10]
mov byte [esp + 0xc90], 3
call fcn.00412922
lea esi, [ebx + 0xa80]
lea edx, [esp + 0x10]
push esi
push ebp
push edx
call fcn.00412b61
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc94], 5
call fcn.00412a69
lea ecx, [esp + 0x10]
mov byte [esp + 0xc90], 3
call fcn.00412922
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push 0x104
push 0x104
call fcn.00412d40
push eax
push 0x422164
push 0x4223c0
push str.server
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00412d90
mov ecx, dword [esp + 0x14]
push 0x422164
push ecx
call fcn.0040527f
add esp, 8
test eax, eax
je 0x402c51
lea edx, [esp + 0x14]
push 0x4222b8
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00412bc7
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xc94], 6
call fcn.00412a69
lea ecx, [esp + 0x10]
mov byte [esp + 0xc90], 3
call fcn.00412922
push 0x42217c
lea ecx, [esp + 0x14]
push ebp
push ecx
call fcn.00412bc7
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
lea ecx, [esp + 0x10]
sete bl
call fcn.00412922
test bl, bl
je 0x402aad
push 0
push 0
push 0x42239c
call fcn.00418ddf
push 0
call fcn.0040518c
lea edx, [esp + 0x14]
push 0x42217c
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00412bc7
mov ecx, dword [esp + 0x28]
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push ecx
push eax
call edi
lea ecx, [esp + 0x10]
call fcn.00412922
lea edx, [esp + 0x14]
push esi
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00412b61
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
push 0
push ecx
push eax
call edi
lea ecx, [esp + 0x10]
call fcn.00412922
mov edx, dword [esp + 0x18]
push edx
push 0x422164
push str.upthis
push str.UPINFO
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [esp + 0x14]
push str.cw_img
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00412bc7
push str.cw_img
lea edx, [esp + 0x28]
push ebp
push edx
mov byte [esp + 0xc9c], 7
call fcn.00412bc7
mov eax, dword [esp + 0x20]
mov byte [esp + 0xc90], 8
mov eax, dword [eax - 8]
lea ecx, [eax + eax + 0xa]
push ecx
call fcn.00413a90
mov edx, dword [esp + 0x28]
mov esi, eax
mov eax, dword [edx - 8]
lea eax, [eax + eax + 0xa]
push eax
call fcn.00413a90
mov ecx, dword [esp + 0x28]
mov ebx, eax
xor edx, edx
add esp, 8
mov edi, dword [ecx - 8]
xor eax, eax
cmp edi, edx
jle 0x402b99
mov cx, word [ecx + eax*2]
mov word [esi + eax*2], cx
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, dword [ecx - 8]
jl 0x402b87
mov ecx, dword [ecx - 8]
mov word [esi + ecx*2], dx
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 8]
mov word [esi + eax*2 + 2], dx
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp dword [ecx - 8], edx
jle 0x402bc9
mov cx, word [ecx + eax*2]
mov word [ebx + eax*2], cx
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, dword [ecx - 8]
jl 0x402bb7
mov ecx, dword [ecx - 8]
lea edi, [esp + 0x34]
mov word [ebx + ecx*2], dx
mov eax, dword [esp + 0x24]
mov ecx, 7
mov eax, dword [eax - 8]
mov word [ebx + eax*2 + 2], dx
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
stosw word es:[edi], ax
push ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x4e], edx
mov dword [esp + 0x52], edx
mov word [esp + 0x48], 0x10
mov dword [esp + 0x3c], 2
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x402ca2
push 0
push 0
push str._rY6RC
call fcn.00418ddf
lea ecx, [esp + 0x24]
mov byte [esp + 0xc90], 7
call fcn.00412922
lea ecx, [esp + 0x20]
mov byte [esp + 0xc90], 3
call fcn.00412922
lea ecx, [esp + 0x18]
mov byte [esp + 0xc90], 2
call fcn.00412922
lea ecx, [esp + 0x28]
mov byte [esp + 0xc90], 1
call fcn.00412922
lea ecx, [esp + 0x14]
mov byte [esp + 0xc90], 0
call fcn.00412922
lea ecx, [esp + 0x280]
mov dword [esp + 0xc90], 0xffffffff
call fcn.00401180
xor eax, eax
jmp 0x402d82
push esi
call fcn.00413ab9
push ebx
call fcn.00413ab9
add esp, 4
mov edx, esp
mov dword [esp + 0x30], esp
push 0x42217c
push ebp
push edx
call fcn.00412bc7
mov ecx, dword [esp + 0x34]
call fcn.00401930
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x42217c
lea eax, [esp + 0x30]
push ebp
push eax
call fcn.00412bc7
mov eax, dword [eax]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x2c]
call fcn.00412922
push 0
push 0
push 0x422358
call fcn.00418ddf
lea ecx, [esp + 0x24]
mov byte [esp + 0xc90], 7
call fcn.00412922
lea ecx, [esp + 0x20]
mov byte [esp + 0xc90], 3
call fcn.00412922
lea ecx, [esp + 0x18]
mov byte [esp + 0xc90], 2
call fcn.00412922
lea ecx, [esp + 0x28]
mov byte [esp + 0xc90], 1
call fcn.00412922
lea ecx, [esp + 0x14]
mov byte [esp + 0xc90], 0
call fcn.00412922
lea ecx, [esp + 0x280]
mov dword [esp + 0xc90], 0xffffffff
call fcn.00401180
mov eax, 1
mov ecx, dword [esp + 0xc88]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc84
ret