Function at 0x10004150
Capabilities:
Contain obfuscated stackstrings
Get common file path
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100103db
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x1001629c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x22a]
push edx
mov dword [ebp - 0x23c], eax
mov word [ebp - 0x22c], cx
call fcn.1000c100
add esp, 0xc
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, 0x10016f24
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x234], esi
lea edx, [eax + 2]
jmp 0x100041d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100041d0
sub eax, edx
sar eax, 1
mov edi, eax
je 0x10004223
lea eax, [edi + edi + 0xe]
push eax
call fcn.10007ae1
add esp, 4
test eax, eax
je 0x10004223
lea esi, [eax + 0xc]
mov dword [eax], 1
mov dword [eax + 4], edi
mov dword [eax + 8], edi
lea eax, [edi + edi]
push eax
lea edx, [ebp - 0x22c]
push edx
xor ecx, ecx
push esi
mov word [eax + esi], cx
mov dword [ebp - 0x234], esi
call fcn.1000c270
add esp, 0xc
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x24], 0x72656b5c
mov dword [ebp - 0x20], 0x336c656e
mov dword [ebp - 0x1c], 0x6c642e32
mov word [ebp - 0x18], 0x6c
call fcn.100011b0
mov eax, dword [eax]
add esp, 4
cmp dword [eax - 0xc], 0
jl 0x1000426e
mov ebx, eax
lea eax, [ebx - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x1000428a
lea ecx, [ebp - 0x230]
push ecx
mov dword [ebp - 0x230], 0x10016f24
call fcn.10001830
mov ebx, dword [ebp - 0x230]
mov edi, dword [ebx - 8]
test edi, edi
je 0x100042f9
cmp dword [esi - 0xc], 1
jg 0x100042c1
mov eax, dword [esi - 8]
lea edx, [eax + edi]
cmp edx, dword [esi - 4]
jg 0x100042c1
lea ecx, [edi + edi]
push ecx
lea edx, [esi + eax*2]
push ebx
push edx
call fcn.1000c270
add dword [esi - 8], edi
mov eax, dword [esi - 8]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x100042f9
mov esi, dword [esi - 8]
lea edx, [ebp - 0x234]
mov dword [ebp - 0x230], esi
add esi, edi
push edx
call fcn.10001ae0
mov esi, dword [ebp - 0x234]
test al, al
je 0x100042f9
mov ecx, dword [ebp - 0x230]
lea eax, [edi + edi]
push eax
lea edx, [esi + ecx*2]
push ebx
push edx
call fcn.1000c270
add esp, 0xc
add ebx, 0xfffffff4
cmp ebx, 0x10016f18
je 0x10004318
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10004318
push ebx
call fcn.10007aa7
add esp, 4
mov edi, dword [ebp - 0x238]
add edi, 0xfffffff4
cmp edi, 0x10016f18
je 0x1000433d
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1000433d
push edi
call fcn.10007aa7
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push esi
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x100043ee
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x254]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
push 0
push 0x2000000
push 3
push 0
push 5
push 0xc0000000
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x100043ee
lea ecx, [ebp - 0x244]
push ecx
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x100043e7
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100043e7
push esi
call fcn.10007aa7
add esp, 4
mov eax, 1
jmp 0x1000440f
add esi, 0xfffffff4
cmp esi, 0x10016f18
je 0x1000440d
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1000440d
push esi
call fcn.10007aa7
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10007a8d
mov esp, ebp
pop ebp
ret