Function at 0x1000f930
Capabilities:
Check if file exists
Create process on windows
Get common file path
Move file
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10225f23
mov eax, dword fs:[0]
push eax
sub esp, 0x510
mov eax, dword [0x1029912c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x154]
mov dword [ebp - 0x49c], 0
push 0
push eax
call fcn.101ee530
add esp, 0xc
lea eax, [ebp - 0x154]
push 1
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x488], 0
mov dword [ebp - 0x484], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x498], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f9b3
sub ecx, edx
lea eax, [ebp - 0x154]
push ecx
push eax
lea ecx, [ebp - 0x498]
call fcn.100025c0
push 0x40
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.101ee530
push 0x104
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.101ee530
push 8
lea ecx, [ebp - 0x50]
call fcn.1000f260
push eax
push str._s.dll
lea eax, [ebp - 0x258]
push 0x104
push eax
call fcn.10013590
add esp, 0x2c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x468], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x464], 0xf
mov byte [ebp - 0x478], 0
mov dword [ebp - 0x49c], 1
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000fa50
mov eax, dword [ebp - 0x488]
sub ecx, edx
add eax, ecx
lea ecx, [ebp - 0x478]
push eax
call fcn.10008310
lea eax, [ebp - 0x498]
push eax
lea ecx, [ebp - 0x478]
call fcn.100062a0
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x478]
call fcn.10006230
lea ecx, [ebp - 0x498]
call fcn.10002520
movups xmm0, xmmword [ebp - 0x478]
lea eax, [ebp - 0x514]
push eax
movups xmmword [ebp - 0x498], xmm0
push fcn.1000f930
movq xmm0, qword [ebp - 0x468]
mov byte [ebp - 4], 0
push 6
movq qword [ebp - 0x488], xmm0
mov dword [ebp - 0x514], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
test eax, eax
jne 0x1000faeb
mov byte [ebp - 0x519], al
jmp 0x1000ffaa
push 6
xorps xmm0, xmm0
mov dword [ebp - 0x468], 0
push str.Binary
lea ecx, [ebp - 0x478]
mov dword [ebp - 0x464], 0xf
movups xmmword [ebp - 0x4ac], xmm0
mov byte [ebp - 0x478], 0
call fcn.100025c0
lea eax, [ebp - 0x478]
push eax
push 0x68
push dword [ebp - 0x514]
lea ecx, [ebp - 0x4ac]
call fcn.1000ba00
mov edx, dword [ebp - 0x464]
cmp edx, 0x10
jb 0x1000fb76
mov ecx, dword [ebp - 0x478]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000fb6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010000
push edx
push ecx
call fcn.101d50ac
add esp, 8
lea eax, [ebp - 0x4cc]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.1000ba70
lea eax, [ebp - 0x518]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x518], 0
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
test eax, eax
je 0x1000ff4e
cmp dword [ebp - 0x484], 0x10
lea eax, [ebp - 0x498]
cmovae eax, dword [ebp - 0x498]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1000fcdf
push 0
call fcn.101f632a
push edx
push eax
lea ecx, [ebp - 0x4b4]
call fcn.10012630
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x498]
cmp dword [ebp - 0x484], 0x10
push dword [ebp - 0x488]
cmovae ecx, dword [ebp - 0x498]
push ecx
push 0
mov ecx, eax
call fcn.10011510
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x478], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x468], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x4a0]
cmp edx, 0x10
jb 0x1000fc73
mov ecx, dword [ebp - 0x4b4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000fc69
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010005
push edx
push ecx
call fcn.101d50ac
add esp, 8
cmp dword [ebp - 0x464], 0x10
lea ecx, [ebp - 0x478]
lea eax, [ebp - 0x498]
cmovae ecx, dword [ebp - 0x478]
cmp dword [ebp - 0x484], 0x10
push ecx
cmovae eax, dword [ebp - 0x498]
push eax
call fcn.101f8251
mov edx, dword [ebp - 0x464]
add esp, 8
cmp edx, 0x10
jb 0x1000fcdf
mov ecx, dword [ebp - 0x478]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000fcd5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001000a
push edx
push ecx
call fcn.101d50ac
add esp, 8
cmp dword [ebp - 0x484], 0x10
lea eax, [ebp - 0x498]
push 0
cmovae eax, dword [ebp - 0x498]
push 0
push 2
push 0
push 3
push 0xc0000000
push eax
mov dword [ebp - 0x49c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000ff45
cmp dword [ebp - 0x4b8], 0x10
lea eax, [ebp - 0x49c]
push 0
push eax
push dword [ebp - 0x4bc]
lea ecx, [ebp - 0x4cc]
cmovae ecx, dword [ebp - 0x4cc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x1000fd60
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x519], 0
jmp 0x1000ff55
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 0x484], 0x10
lea eax, [ebp - 0x498]
cmovae eax, dword [ebp - 0x498]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1000ff45
push 0x208
lea eax, [ebp - 0x460]
push 0
push eax
call fcn.101ee530
movaps xmm0, xmmword [0x1027a7a0]
lea eax, [ebp - 0x498]
add esp, 0xc
mov dword [ebp - 0x480], 0x19
cmp dword [ebp - 0x484], 0x10
lea ecx, [ebp - 0x480]
movups xmmword [ebp - 0x47c], xmm0
cmovae eax, dword [ebp - 0x498]
push eax
lea eax, [ebp - 0x154]
mov dword [ebp - 0x46c], 0x2f747a7b
push eax
mov dword [ebp - 0x468], 0x137a7c7d
mov dword [ebp - 0x464], 0x6243
call fcn.10002460
push eax
lea eax, [ebp - 0x460]
push eax
call fcn.10012550
lea ecx, [ebp - 0x460]
mov dword [ebp - 0x468], 0
add esp, 0x10
mov dword [ebp - 0x464], 0xf
mov byte [ebp - 0x478], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000fe32
sub ecx, edx
lea eax, [ebp - 0x460]
push ecx
push eax
lea ecx, [ebp - 0x478]
call fcn.100025c0
push 0x40
lea eax, [ebp - 0x50c]
mov dword [ebp - 0x510], 0x44
push 0
push eax
call fcn.101ee530
add esp, 0xc
mov dword [ebp - 0x4e4], 1
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 0x519], 1
xor eax, eax
xorps xmm0, xmm0
cmp dword [ebp - 0x464], 0x10
push ecx
lea ecx, [ebp - 0x510]
mov word [ebp - 0x4e0], ax
push ecx
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x478]
cmovae eax, dword [ebp - 0x478]
push 0
push eax
push 0
movups xmmword [ebp - 0x4ac], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1000fef2
push dword [ebp - 0x4a8]
call esi
push 0x2710
push dword [ebp - 0x4ac]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x4ac]
call esi
mov byte [ebp - 0x519], 0
mov edx, dword [ebp - 0x464]
cmp edx, 0x10
jb 0x1000ff2c
mov ecx, dword [ebp - 0x478]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000ff22
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001000f
push edx
push ecx
call fcn.101d50ac
add esp, 8
cmp byte [ebp - 0x519], 0
jne 0x1000ff45
push dword [ebp - 0x518]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
test eax, eax
jne 0x1000ff4e
mov byte [ebp - 0x519], 0
jmp 0x1000ff55
mov byte [ebp - 0x519], 1
mov edx, dword [ebp - 0x4b8]
cmp edx, 0x10
jb 0x1000ff8f
mov ecx, dword [ebp - 0x4cc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000ff85
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010014
push edx
push ecx
call fcn.101d50ac
add esp, 8
mov dword [ebp - 0x4bc], 0
mov dword [ebp - 0x4b8], 0xf
mov byte [ebp - 0x4cc], 0
mov edx, dword [ebp - 0x484]
cmp edx, 0x10
jb 0x1000ffe0
mov ecx, dword [ebp - 0x498]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000ffd6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010019
push edx
push ecx
call fcn.101d50ac
add esp, 8
mov al, byte [ebp - 0x519]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
call fcn.101f0b28
call fcn.101f0b28
call fcn.101f0b28
call fcn.101f0b28
call fcn.101f0b28
call fcn.101f0b28
int3