Function at 0x40ebd0
Capabilities:
Create process on windows
Delete file
Get common file path
Read .ini file
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x63c
push ebx
push esi
mov dword [esp + 0xc], ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x135]
mov byte [esp + 0x134], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x239]
mov byte [esp + 0x238], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x441]
mov byte [esp + 0x440], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x33d]
mov byte [esp + 0x33c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x33c]
push 0x104
push eax
call fcn.004114e0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x54d]
mov byte [esp + 0x54c], 0
rep stosd dword es:[edi], eax
add esp, 8
lea ecx, [esp + 0x33c]
stosw word es:[edi], ax
push 0x43c09c
push ecx
lea edx, [esp + 0x54c]
push str._s_s.ini
push edx
stosb byte es:[edi], al
call fcn.00429590
add esp, 0x10
lea eax, [esp + 0x544]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x33c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x33c]
lea eax, [esp + 0x440]
push edx
push str._sDelSelf.bat
push eax
call fcn.00429590
mov eax, dword [0x437348]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x43babc
add esp, 0xc
test ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], eax
je 0x40ed56
mov edx, ecx
shr edx, 0x10
jne 0x40ed22
xor eax, eax
mov ax, cx
lea ecx, [esp + 0xc]
push eax
call fcn.00409ea0
jmp 0x40ed56
push 0x43babc
call ebx
mov esi, eax
test esi, esi
je 0x40ed56
push esi
lea ecx, [esp + 0x10]
call fcn.004023a0
test eax, eax
je 0x40ed56
mov edi, dword [esp + 0xc]
mov ecx, esi
mov edx, ecx
mov esi, 0x43babc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x43bc58
push 0
push str.RemoveFolder
push str.UNINSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x43bc58
mov esi, eax
call fcn.00425b50
add esp, 4
lea eax, [esp + 0x440]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
mov dword [esp + 0x28], eax
je 0x40f4e7
lea ecx, [esp + 0x30]
push str.:repeat_r_n
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x30]
test edx, edx
jne 0x40edc1
xor eax, eax
jmp 0x40edc8
lea eax, [esp + 0x30]
push eax
call ebx
lea ecx, [esp + 0x30]
push ebp
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404520
push 0x43ca32
push 0x43c316
lea edx, [esp + 0x140]
push str._sUPDATE_s
push edx
call fcn.00429590
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
add esp, 0x10
lea eax, [esp + 0x23c]
lea ecx, [esp + 0x138]
push 0x104
push eax
push ecx
call ebx
lea edi, [esp + 0x23c]
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40eea7
lea edx, [esp + 0x23c]
lea eax, [esp + 0x34]
push edx
push str.del__s__q__f__s_r_n
push eax
call ebp
lea ecx, [esp + 0x40]
add esp, 0xc
test ecx, ecx
jne 0x40ee50
xor eax, eax
jmp 0x40ee5b
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x34]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404520
lea edx, [esp + 0x23c]
lea eax, [esp + 0x34]
push edx
push str.if_exist__s_goto_repeat_r_n
push eax
call ebp
lea ecx, [esp + 0x40]
add esp, 0xc
test ecx, ecx
jne 0x40ee8d
xor eax, eax
jmp 0x40ee98
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x34]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404520
lea edx, [esp + 0x138]
push 0x5c
push edx
call fcn.004271e0
add esp, 8
mov byte [eax], 0
lea eax, [esp + 0x23c]
lea ecx, [esp + 0x138]
push 0x104
push eax
push ecx
call ebx
lea edi, [esp + 0x23c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xb
jb 0x40ef26
lea edx, [esp + 0x23c]
lea eax, [esp + 0x34]
push edx
push str.rd__s__q__s_r_n
push eax
call ebp
lea ecx, [esp + 0x40]
add esp, 0xc
test ecx, ecx
jne 0x40ef0c
xor eax, eax
jmp 0x40ef17
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x34]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404520
test esi, esi
je 0x40f0d4
lea edx, [esp + 0x138]
push 0x5c
push edx
call fcn.004271e0
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 8
test eax, eax
je 0x40efd8
lea eax, [esp + 0x138]
push 0x5c
push eax
call fcn.004271e0
add esp, 8
lea ecx, [esp + 0x138]
mov byte [eax], 0
push 0x80
push ecx
call esi
lea edx, [esp + 0x23c]
push 0x104
lea eax, [esp + 0x13c]
push edx
push eax
call ebx
lea edi, [esp + 0x23c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jb 0x40efd8
lea ecx, [esp + 0x23c]
lea edx, [esp + 0x34]
push ecx
push str.rd__s__q__s_r_n
push edx
call ebp
lea eax, [esp + 0x40]
add esp, 0xc
test eax, eax
je 0x40efc9
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x34]
lea ecx, [esp + 0x10]
push edx
push eax
call fcn.00404520
mov al, byte [0x43caf5]
test al, al
je 0x40f0d4
lea eax, [esp + 0x138]
push 0x104
push eax
push 0
push 0x43c09c
call fcn.0040f530
add esp, 0x10
lea ecx, [esp + 0x138]
push 0x80
push ecx
call esi
lea edx, [esp + 0x23c]
push 0x104
lea eax, [esp + 0x13c]
push edx
push eax
call ebx
lea ecx, [esp + 0x23c]
lea edx, [esp + 0x34]
push ecx
push str.rd__s__q__s_r_n
push edx
call ebp
lea eax, [esp + 0x40]
add esp, 0xc
test eax, eax
je 0x40f051
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x34]
lea ecx, [esp + 0x10]
push edx
push eax
call fcn.00404520
lea eax, [esp + 0x138]
push 0x5c
push eax
call fcn.0042aa90
add esp, 8
lea ecx, [esp + 0x138]
mov byte [eax], 0
push 0x80
push ecx
call esi
lea edx, [esp + 0x23c]
push 0x104
lea eax, [esp + 0x13c]
push edx
push eax
call ebx
lea ecx, [esp + 0x23c]
lea edx, [esp + 0x34]
push ecx
push str.rd__q__s_r_n
push edx
call ebp
lea eax, [esp + 0x40]
add esp, 0xc
test eax, eax
je 0x40f0c5
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x34]
lea ecx, [esp + 0x10]
push edx
push eax
call fcn.00404520
mov eax, dword [esp + 0x14]
mov cl, byte [eax + 0x251]
test cl, cl
jne 0x40f46d
mov ecx, str.__s__q__f
test ecx, ecx
je 0x40f2cb
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ecx
call esi
mov ebx, eax
test ebx, ebx
je 0x40f2cb
mov edx, 0x437c80
test edx, edx
jne 0x40f115
mov dword [esp + 0x18], edx
jmp 0x40f120
push 0x437c80
call esi
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x10]
xor edi, edi
mov dword [esp + 0x14], edi
mov ebp, dword [esi - 8]
add ebp, esi
cmp esi, ebp
jae 0x40f2cb
push str.__s__q__f
push esi
call fcn.0042a63f
add esp, 8
test eax, eax
je 0x40f15f
lea esi, [eax + ebx]
push str.__s__q__f
push esi
inc edi
call fcn.0042a63f
add esp, 8
test eax, eax
jne 0x40f149
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp esi, ebp
jb 0x40f137
test edi, edi
mov dword [esp + 0x14], edi
jle 0x40f2cb
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 0xc]
lea edi, [esi - 0xc]
cmp eax, 1
jle 0x40f1c0
lea ecx, [esp + 0x10]
call fcn.00402400
mov eax, dword [edi + 4]
lea ecx, [esp + 0x10]
push eax
call fcn.004023a0
test eax, eax
je 0x40f1bc
mov ecx, dword [edi + 4]
lea esi, [edi + 0xc]
mov edi, dword [esp + 0x10]
inc ecx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov eax, dword [esi - 8]
sub ebp, ebx
mov dword [esp + 0x1c], eax
imul ebp, dword [esp + 0x14]
add ebp, eax
mov eax, dword [esi - 4]
cmp eax, ebp
mov dword [esp + 0x24], ebp
jl 0x40f1e5
cmp dword [esi - 0xc], 1
jle 0x40f221
lea eax, [esi - 0xc]
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
call fcn.004023a0
test eax, eax
je 0x40f2cb
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push eax
mov ecx, dword [eax + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00409b10
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
add eax, esi
cmp esi, eax
mov dword [esp + 0x20], eax
jae 0x40f2c8
push str.__s__q__f
push esi
call fcn.0042a63f
mov edi, eax
add esp, 8
test edi, edi
je 0x40f2ad
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
sub ebp, edi
sub ebp, ebx
lea ecx, [edi + ebx]
add ebp, edx
lea eax, [edi + esi]
push ebp
push ecx
push eax
mov dword [esp + 0x20], eax
call fcn.0042a050
mov ecx, esi
mov esi, 0x437c80
mov edx, ecx
push str.__s__q__f
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
sub eax, ebx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x24]
push esi
mov byte [esi + ebp], 0
mov ebp, dword [esp + 0x30]
add ebp, eax
mov dword [esp + 0x30], ebp
call fcn.0042a63f
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x40f246
mov ebp, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
mov eax, dword [esp + 0x20]
cmp esi, eax
jb 0x40f232
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebp
mov ecx, str.rd__s__q
test ecx, ecx
je 0x40f46d
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ecx
call esi
mov ebx, eax
test ebx, ebx
je 0x40f46d
mov edx, str.deltree__y
test edx, edx
jne 0x40f2fa
mov dword [esp + 0x18], edx
jmp 0x40f305
push str.deltree__y
call esi
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x10]
xor edi, edi
mov ebp, dword [esi - 8]
add ebp, esi
cmp esi, ebp
jae 0x40f46d
push str.rd__s__q
push esi
call fcn.0042a63f
add esp, 8
test eax, eax
je 0x40f340
lea esi, [eax + ebx]
push str.rd__s__q
push esi
inc edi
call fcn.0042a63f
add esp, 8
test eax, eax
jne 0x40f32a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp esi, ebp
jb 0x40f318
test edi, edi
jle 0x40f46d
lea ecx, [esp + 0x10]
call fcn.00409b40
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
sub ebp, ebx
imul ebp, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x1c], eax
add ebp, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x24], ebp
cmp eax, ebp
jl 0x40f387
cmp dword [esi - 0xc], 1
jle 0x40f3c3
lea eax, [esi - 0xc]
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], eax
call fcn.004023a0
test eax, eax
je 0x40f46d
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
push eax
mov ecx, dword [eax + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00409b10
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
add eax, esi
cmp esi, eax
mov dword [esp + 0x14], eax
jae 0x40f46a
push str.rd__s__q
push esi
call fcn.0042a63f
mov edi, eax
add esp, 8
test edi, edi
je 0x40f44f
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
sub ebp, edi
sub ebp, ebx
lea ecx, [edi + ebx]
add ebp, edx
lea eax, [edi + esi]
push ebp
push ecx
push eax
mov dword [esp + 0x2c], eax
call fcn.0042a050
mov ecx, esi
mov esi, str.deltree__y
mov edx, ecx
push str.rd__s__q
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
sub eax, ebx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x30]
push esi
mov byte [esi + ebp], 0
mov ebp, dword [esp + 0x30]
add ebp, eax
mov dword [esp + 0x30], ebp
call fcn.0042a63f
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x40f3e8
mov ebp, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
mov eax, dword [esp + 0x14]
cmp esi, eax
jb 0x40f3d4
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebp
lea ecx, [esp + 0x34]
push str.del__0_r_n
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x34]
pop ebp
test edx, edx
jne 0x40f48a
xor eax, eax
jmp 0x40f495
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x30]
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00404520
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x28]
lea edx, [esp + 0x2c]
push 0
mov ecx, dword [eax - 8]
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x33c]
push 0
push edx
lea eax, [esp + 0x448]
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esp + 0xc]
mov edx, dword [0x43734c]
pop edi
pop esi
lea ecx, [eax - 0xc]
pop ebx
cmp ecx, edx
je 0x40f519
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40f519
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
lea ecx, [esp + 0x18]
call fcn.004024e0
add esp, 0x63c
ret