Function at 0x140001640
Capabilities:
Create process on windows
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
xor r15d, r15d
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
mov r8d, 7
lea rdx, str.hexdata
lea rcx, [rsp + 0x58]
call fcn.140002c00
nop
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rax, 2
jb 0x1400016e4
lea rax, [rcx + 2]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x58]
cmp rdx, 0xf
cmova rax, qword [rsp + 0x58]
mov word [rax + rcx], 0x2a5c
mov byte [rax + rcx + 2], r15b
lea rax, [rsp + 0x58]
jmp 0x140001703
mov qword [rsp + 0x20], 2
lea r9, [0x1400064f0]
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.140002d90
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x78], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova rcx, qword [rsp + 0x78]
lea rdx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x140001791
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000178c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000178c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000422c
movdqa xmm0, xmmword [0x1400066a0]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x1400017eb
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400017de
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000422c
movdqa xmm0, xmmword [0x1400066a0]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
mov qword [rbp - 0x18], r15
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], r15
xor r8d, r8d
lea rdx, [0x1400064e3]
lea rcx, [rbp - 0x48]
call fcn.140002c00
nop
mov edi, 1
cmp rbx, 0xffffffffffffffff
jne 0x140001840
lea rdx, str.Failed_to_open_directory.
jmp 0x140001d70
cmp byte [rbp + 0xcc], 0x2e
je 0x1400018ea
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x28], r15
lea rax, [rbp + 0xcc]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140001870
lea rdx, [rbp + 0xcc]
lea rcx, [rbp + 0x10]
call fcn.140002c00
nop
mov rdx, qword [rbp - 0x20]
lea r8, [rbp + 0x10]
cmp rdx, qword [rbp - 0x18]
je 0x1400018a5
call fcn.140003ca0
add qword [rbp - 0x20], 0x20
jmp 0x1400018af
lea rcx, [rbp - 0x28]
call fcn.140003360
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x1400018ea
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001973
call fcn.14000422c
lea rdx, [rbp + 0xa0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140001840
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdx, qword [rbp - 0x20]
mov r8, rdx
mov rcx, qword [rbp - 0x28]
sub r8, rcx
sar r8, 5
movzx r9d, byte [rsp + 0x50]
call fcn.1400030e0
mov rbx, qword [rbp - 0x28]
mov r13, qword [rbp - 0x20]
cmp rbx, r13
je 0x140001bda
nop dword [rax]
mov rsi, rbx
mov r14, qword [rbx + 0x18]
cmp r14, 0xf
jbe 0x140001950
mov rsi, qword [rbx]
mov rdi, qword [rbx + 0x10]
test rdi, rdi
je 0x14000197a
mov r8, rdi
mov edx, 0x5f
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14000197a
sub rax, rsi
jmp 0x140001981
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, 0xffffffffffffffff
inc rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], r15
mov qword [rbp + 8], r15
cmp rdi, rax
jb 0x140001e5b
sub rdi, rax
mov r8, 0xffffffffffffffff
cmp rdi, r8
cmovb r8, rdi
mov rcx, rbx
cmp r14, 0xf
jbe 0x1400019b9
mov rcx, qword [rbx]
lea rdx, [rcx + rax]
lea rcx, [rbp - 0x10]
call fcn.140002c00
nop
lea rdi, [rbp - 0x10]
mov r15, qword [rbp - 0x10]
mov r12, qword [rbp + 8]
cmp r12, 0xf
cmova rdi, r15
mov r14, qword [rbp]
cmp r14, 4
jb 0x140001a2a
lea rsi, [r14 + rdi]
lea r8, [rsi - 3]
sub r8, rdi
mov edx, 0x2e
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140001a2a
cmp dword [rax], 0x7478742e
je 0x140001bed
inc rax
lea r8, [rsi - 3]
sub r8, rax
mov edx, 0x2e
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x140001a02
mov rax, 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
xor ecx, ecx
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rcx
cmp r14, rax
cmovb rax, r14
lea rdx, [rbp - 0x10]
cmp r12, 0xf
cmova rdx, r15
mov r8, rax
lea rcx, [rbp + 0x10]
call fcn.140002c00
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x140001a9c
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001bf5
call fcn.14000422c
movups xmm0, xmmword [rbp + 0x10]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rbp + 0x20]
movups xmmword [rbp], xmm1
lea rdx, str.Processing_file:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002870
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140001acc
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140002f20
lea rdx, [0x140002a50]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, str.Extracted_hex_part:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002870
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova rdx, qword [rbp - 0x10]
mov r8, qword [rbp]
mov rcx, rax
call fcn.140002f20
lea rdx, [0x140002a50]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp qword [rbp], 0
je 0x140001b8e
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x10]
call fcn.1400011e0
nop
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x20]
lea rcx, [rbp - 0x48]
call fcn.140002750
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140001b8e
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001bfc
call fcn.14000422c
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x140001bc5
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bc0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001c03
call fcn.14000422c
add rbx, 0x20
xor r15d, r15d
cmp rbx, r13
jne 0x140001940
mov edi, 1
cmp qword [rbp - 0x38], 0
jne 0x140001c0a
lea rdx, str.No_valid_hex_data_to_execute.
jmp 0x140001d70
sub rax, rdi
jmp 0x140001a31
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, str.Final_message:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002870
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
mov rcx, rax
call fcn.140002f20
lea rdx, [0x140002a50]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp qword [rbp - 0x38], 0
je 0x140001d69
lea rax, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova rax, qword [rbp - 0x48]
cmp byte [rax], 0
je 0x140001d69
mov dword [rbp + 0x30], 0x68
xorps xmm0, xmm0
movups xmmword [rbp + 0x38], xmm0
movups xmmword [rbp + 0x48], xmm0
movups xmmword [rbp + 0x58], xmm0
movups xmmword [rbp + 0x68], xmm0
movups xmmword [rbp + 0x78], xmm0
movups xmmword [rbp + 0x88], xmm0
mov dword [rbp + 0x6c], edi
mov word [rbp + 0x70], r15w
lea rdx, str.Executing_command:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002870
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
mov rcx, rax
call fcn.140002f20
lea rdx, [0x140002a50]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova rdx, qword [rbp - 0x48]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140001d41
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.CreateProcess_failed:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002870
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
jmp 0x140001d7c
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, r15d
jmp 0x140001d8d
lea rdx, str.Invalid_message_formed._Exiting.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002870
lea rdx, [0x140002a50]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140001dcb
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001dc6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001dc6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000422c
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], 0xf
mov byte [rbp - 0x48], 0
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140001e29
mov rdx, qword [rbp - 0x20]
call fcn.140002d00
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x28]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e24
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e24
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000422c
mov eax, edi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400041d0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140002850
nop
int3