Function at 0x416440
Capabilities:
Copy file
Create directory
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452004
mov eax, dword fs:[0]
push eax
sub esp, 0x604
mov eax, dword [0x4650c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x538]
push eax
mov ecx, 0x4589e4
mov dword [ebp - 4], 1
call fcn.00401e30
xor ecx, ecx
push 0x208
push ecx
lea edx, [ebp - 0x326]
mov byte [ebp - 4], 2
push edx
mov word [ebp - 0x328], cx
call fcn.0043c440
add esp, 0xc
push 0x104
lea eax, [ebp - 0x328]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x328]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4164c5
sub eax, edx
lea ecx, [ebp - 0x328]
sar eax, 1
push ecx
lea edx, [ebp - 0x538]
push edx
mov ebx, eax
call fcn.00402080
mov eax, dword [ebp - 0x538]
add eax, 0xfffffff0
call fcn.00401a60
lea esi, [eax + 0x10]
mov dword [ebp - 0x548], esi
mov byte [ebp - 4], 3
mov edi, dword [esi - 0xc]
test edi, edi
jns 0x416515
push 0x80070057
call fcn.00402060
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x416539
mov eax, edi
lea ecx, [ebp - 0x548]
call fcn.00402000
mov esi, dword [ebp - 0x548]
lea eax, [edi + 1]
push eax
push esi
call fcn.0043a8a3
add esp, 8
cmp edi, dword [esi - 8]
jg 0x41650b
xor ecx, ecx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], cx
mov eax, dword [esi - 0xc]
test eax, eax
js 0x41657a
push str.desktop
push esi
call fcn.00439fad
add esp, 8
test eax, eax
je 0x41657a
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x416635
cmp dword [esi - 0xc], 0
jl 0x41659f
push 0x45a374
push esi
call fcn.00439fad
add esp, 8
test eax, eax
je 0x41659f
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x416635
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4165bf
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x538]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4165e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416608
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41662e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x416c5b
push 0x103
lea ecx, [ebp - 0x117]
push 0
push ecx
mov byte [ebp - 0x118], 0
call fcn.0043c440
add esp, 0xc
push 0
push 0x23
lea edx, [ebp - 0x118]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x53c], ebx
lea eax, [ebp - 0x118]
shr eax, 0x10
mov byte [ebp - 4], 4
mov dword [ebp - 0x550], eax
test eax, eax
jne 0x4166b6
lea eax, [ebp - 0x118]
movzx edi, ax
call fcn.00401be0
test eax, eax
je 0x4166cd
push eax
mov eax, edi
lea edi, [ebp - 0x53c]
call fcn.00401d90
jmp 0x4166c7
lea ebx, [ebp - 0x118]
lea eax, [ebp - 0x53c]
call fcn.00401ad0
mov ebx, dword [ebp - 0x53c]
mov byte [ebp - 4], 5
test ebx, ebx
je 0x416700
mov eax, dword [ebp - 0x538]
cmp dword [eax - 0xc], 0
jl 0x416700
push ebx
push eax
call fcn.00439fad
add esp, 8
test eax, eax
je 0x416700
sub eax, dword [ebp - 0x538]
sar eax, 1
cmp eax, 0xffffffff
jne 0x416ba7
lea ecx, [ebp - 0x554]
push ecx
call fcn.00416350
add esp, 4
mov byte [ebp - 4], 6
mov edx, dword [section..data]
mov esi, dword [eax]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x540], eax
mov byte [ebp - 4], 7
test esi, esi
je 0x41675a
test esi, 0xffff0000
jne 0x41675a
movzx edi, si
call fcn.00401be0
test eax, eax
je 0x416767
push eax
mov eax, edi
lea edi, [ebp - 0x540]
call fcn.0040f7e0
jmp 0x416767
mov ebx, esi
lea eax, [ebp - 0x540]
call fcn.0040db10
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x554]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41678d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x540]
push ecx
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x560]
push eax
lea ecx, [ebp - 0x118]
xor esi, esi
push ecx
mov dword [ebp - 0x560], 0xc
mov dword [ebp - 0x55c], esi
mov dword [ebp - 0x558], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x534], eax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x550], esi
jne 0x416814
lea ecx, [ebp - 0x118]
movzx edi, cx
call fcn.00401be0
cmp eax, esi
je 0x416825
push eax
mov eax, edi
lea edi, [ebp - 0x534]
call fcn.00401d90
jmp 0x416825
lea ebx, [ebp - 0x118]
lea eax, [ebp - 0x534]
call fcn.00401ad0
push 1
push 0x459e8c
lea ebx, [ebp - 0x534]
mov byte [ebp - 4], 0xb
call fcn.004019a0
lea edx, [ebp - 0x550]
push edx
call fcn.00416350
add esp, 4
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call fcn.004019a0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x550]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416880
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0043a056
cdq
mov ecx, 0xa
idiv ecx
mov eax, dword [ebp - 0x534]
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
movzx ebx, word [edx*2 + str.ABCDEFGHIJ]
test esi, esi
jns 0x4168af
push 0x80070057
call fcn.00402060
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x4168d3
mov eax, esi
lea ecx, [ebp - 0x534]
call fcn.00402000
mov eax, dword [ebp - 0x534]
mov word [eax + edi*2], bx
cmp esi, dword [eax - 8]
jg 0x41650b
mov dword [eax - 0xc], esi
xor edx, edx
mov word [eax + esi*2], dx
lea eax, [ebp - 0x54c]
push eax
mov esi, 0x4589af
call fcn.0040d930
mov byte [ebp - 4], 0xd
mov ecx, dword [0x4689c8]
push ecx
push 0x45a37c
lea edi, [ebp - 0x54c]
call fcn.00417560
add esp, 8
lea edx, [ebp - 0x544]
push edx
call fcn.0040d930
mov byte [ebp - 4], 0xe
mov eax, dword [0x4689cc]
push eax
push 0x45a37c
lea edi, [ebp - 0x544]
call fcn.00417560
add esp, 8
lea ecx, [ebp - 0x534]
push ecx
mov ecx, dword [ebp - 0x544]
call fcn.004016f0
mov eax, dword [ebp - 0x534]
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
test esi, esi
jns 0x41696d
push 0x80070057
call fcn.00402060
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x416991
mov eax, esi
lea ecx, [ebp - 0x534]
call fcn.00402000
mov eax, dword [ebp - 0x534]
mov word [eax + edi*2], bx
cmp esi, dword [eax - 8]
jg 0x41650b
mov dword [eax - 0xc], esi
xor edx, edx
mov word [eax + esi*2], dx
mov ecx, dword [ebp - 0x54c]
lea eax, [ebp - 0x534]
push eax
call fcn.004016f0
push 4
push str..exe
lea ebx, [ebp - 0x534]
call fcn.004019a0
push 0x206
xor ebx, ebx
lea edx, [ebp - 0x52e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x530], cx
call fcn.0043c440
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x208
lea ecx, [ebp - 0x530]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [ebp - 0x534]
push ebx
push esi
lea edx, [ebp - 0x530]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x416b71
lea eax, [ebp - 0x610]
push eax
mov dword [ebp - 0x610], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea ecx, [ebp - 0x580]
push ecx
lea edx, [ebp - 0x610]
push edx
push ebx
push ebx
push 0x10
push ebx
push ebx
push ebx
push str.New_version_
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x416a65
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x544]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416a8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x54c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416ab1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 9
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416ad1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x540]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416af7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x53c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416b1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x548]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416b43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x538]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416b69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
jmp 0x416c11
lea ecx, [ebp - 0x5c8]
push ecx
mov dword [ebp - 0x5c8], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea edx, [ebp - 0x570]
push edx
lea eax, [ebp - 0x5c8]
push eax
push ebx
push ebx
push 0x10
push ebx
push ebx
push ebx
push 0x4589e4
jmp 0x416a53
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416bc7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416be7
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x538]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416c0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416c30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416c56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004397ee
mov esp, ebp
pop ebp
ret