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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448864
mov eax, dword fs:[0]
push eax
sub esp, 0x604
mov eax, dword [0x4590c0]
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, 0x44e978
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.004338d0
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 0x412d35
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 0x412d85
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 0x412da9
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.00431fb3
add esp, 8
cmp edi, dword [esi - 8]
jg 0x412d7b
xor ecx, ecx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], cx
mov eax, dword [esi - 0xc]
test eax, eax
js 0x412dea
push str.desktop
push esi
call fcn.004316bd
add esp, 8
test eax, eax
je 0x412dea
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x412ea5
cmp dword [esi - 0xc], 0
jl 0x412e0f
push 0x450094
push esi
call fcn.004316bd
add esp, 8
test eax, eax
je 0x412e0f
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x412ea5
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 0x412e2f
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 0x412e55
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 0x412e78
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 0x412e9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4134cb
push 0x103
lea ecx, [ebp - 0x117]
push 0
push ecx
mov byte [ebp - 0x118], 0
call fcn.004338d0
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 0x412f26
lea eax, [ebp - 0x118]
movzx edi, ax
call fcn.00401be0
test eax, eax
je 0x412f3d
push eax
mov eax, edi
lea edi, [ebp - 0x53c]
call fcn.00401d90
jmp 0x412f37
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 0x412f70
mov eax, dword [ebp - 0x538]
cmp dword [eax - 0xc], 0
jl 0x412f70
push ebx
push eax
call fcn.004316bd
add esp, 8
test eax, eax
je 0x412f70
sub eax, dword [ebp - 0x538]
sar eax, 1
cmp eax, 0xffffffff
jne 0x413417
lea ecx, [ebp - 0x554]
push ecx
call fcn.00412bb0
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 0x412fca
test esi, 0xffff0000
jne 0x412fca
movzx edi, si
call fcn.00401be0
test eax, eax
je 0x412fd7
push eax
mov eax, edi
lea edi, [ebp - 0x540]
call fcn.0040d8d0
jmp 0x412fd7
mov ebx, esi
lea eax, [ebp - 0x540]
call fcn.0040bd80
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 0x412ffd
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 0x413084
lea ecx, [ebp - 0x118]
movzx edi, cx
call fcn.00401be0
cmp eax, esi
je 0x413095
push eax
mov eax, edi
lea edi, [ebp - 0x534]
call fcn.00401d90
jmp 0x413095
lea ebx, [ebp - 0x118]
lea eax, [ebp - 0x534]
call fcn.00401ad0
push 1
push 0x44fd2c
lea ebx, [ebp - 0x534]
mov byte [ebp - 4], 0xb
call fcn.004019a0
lea edx, [ebp - 0x550]
push edx
call fcn.00412bb0
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 0x4130f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00431766
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 0x41311f
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 0x413143
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 0x412d7b
mov dword [eax - 0xc], esi
xor edx, edx
mov word [eax + esi*2], dx
lea eax, [ebp - 0x54c]
push eax
mov esi, 0x44e940
call fcn.0040bba0
mov byte [ebp - 4], 0xd
mov ecx, dword [0x45c8e4]
push ecx
push 0x45009c
lea edi, [ebp - 0x54c]
call fcn.00413df0
add esp, 8
lea edx, [ebp - 0x544]
push edx
call fcn.0040bba0
mov byte [ebp - 4], 0xe
mov eax, dword [0x45c8e8]
push eax
push 0x45009c
lea edi, [ebp - 0x544]
call fcn.00413df0
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 0x4131dd
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 0x413201
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 0x412d7b
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.004338d0
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 0x4133e1
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 0x4132d5
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 0x4132fb
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 0x413321
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 0x413341
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 0x413367
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 0x41338d
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 0x4133b3
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 0x4133d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
jmp 0x413481
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 0x44e978
jmp 0x4132c3
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 0x413437
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 0x413457
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 0x41347d
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 0x4134a0
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 0x4134c6
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.00430efe
mov esp, ebp
pop ebp
ret