joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000aff0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002fdd8]
test rcx, rcx
je 0x14000b02b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b01e
mov rcx, qword [0x14002fdd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002fdd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002fde8], 0
je 0x14000b11e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140029898]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140030610]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b0ff
test al, 0x10
je 0x14000b0ff
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b0a5
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140015340]
xor edi, edi
mov rax, qword gs:[0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140015350]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140018008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400152b0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.14000be10
mov rcx, qword [0x1400153d0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140015330]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14000bc20
mov ebx, dword [0x140018028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test ebx, ebx
mov r12, qword [0x140018020]
mov rbp, rax
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rsi, [rax + rax + 2]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140018020], rbp
call fcn.14000ba20
mov rax, qword [0x1400152c0]
mov r8, qword [0x140018018]
mov ecx, dword [0x140018028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140018020]
call fcn.140001450
mov ecx, dword [0x14001800c]
mov dword [0x140018010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140018008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140015350]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.14000d5b0
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140015370]
mov rcx, qword [0x140015360]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
test edi, edi
mov dword [rsi], 2
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140018010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140015390]
mov dword [rsi], 1
mov rcx, qword [0x140015380]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b6
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
sub rsp, 0x28
mov rax, qword [0x1400152e0]
mov dword [rax], 1
call fcn.140001180
nop
nop
add rsp, 0x28
ret
Function at 0x1400017a0
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rcx
mov rcx, qword [rcx]
mov r12, rdx
test rcx, rcx
je 0x1400018a0
mov edx, dword [r12 + 4]
xor r8d, r8d
add edx, dword [rbp + 8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x1400018e8
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
mov r13, rax
je 0x140001902
cmp byte [r12 + 0x10], 1
je 0x140001880
test rsi, rsi
mov rdi, rax
jne 0x140001810
jmp 0x140001859
add rdi, rbx
sub rsi, rbx
je 0x140001859
mov ebx, 0x2000
mov r9, qword [rbp]
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
jne 0x140001808
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002150
mov rcx, r13
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r13d, r13d
mov rcx, qword [rbp]
test rcx, rcx
je 0x14000186f
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov qword [rbp], 0
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r8d, r8d
mov r9, rax
mov rdx, r12
mov rcx, rbp
call fcn.140001490
test eax, eax
je 0x140001859
jmp 0x14000184e
lea rcx, [rbp + 0x78]
lea rdx, [0x14000f150]
call fcn.1400031e0
test rax, rax
mov rcx, rax
mov qword [rbp], rax
jne 0x1400017be
lea rdx, [r12 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.1400020f0
xor r13d, r13d
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002150
jmp 0x1400018d1
lea r8, [r12 + 0x12]
mov r9d, esi
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140002150
jmp 0x140001856
Function at 0x140001930
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rcx
mov rbx, rdx
call fcn.140006280
cmp eax, 0xffffffff
je 0x140001afe
lea r13, [rbx + 0x12]
lea rcx, [rdi + 0x3078]
mov rdx, r13
call fcn.1400064d0
test rax, rax
mov r12, rax
je 0x140001ae8
mov rcx, qword [rdi]
test rcx, rcx
je 0x140001a70
mov edx, dword [rbx + 4]
xor r8d, r8d
add edx, dword [rdi + 8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140001ad0
cmp byte [rbx + 0x10], 1
je 0x140001a30
mov ecx, 0x2000
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
mov rbp, rax
je 0x140001b08
mov esi, dword [rbx + 0xc]
test rsi, rsi
jne 0x1400019e6
jmp 0x140001aa8
mov r9, r12
mov r8d, 1
mov rdx, rbx
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
test rax, rax
je 0x140001ab0
sub rsi, rbx
je 0x140001aa8
mov ebx, 0x2000
mov r9, qword [rdi]
mov r8d, 1
mov rcx, rbp
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
jne 0x1400019c0
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov r8, r13
lea rcx, str.fread
call fcn.140002150
mov ebx, 0xffffffff
mov rcx, rbp
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x140001a43
mov rdx, rbx
xor r9d, r9d
mov r8, r12
mov rcx, rdi
call fcn.140001490
mov ebx, eax
mov rcx, qword [rdi]
test rcx, rcx
je 0x140001a57
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov qword [rdi], 0
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rcx, [rdi + 0x78]
lea rdx, [0x14000f150]
call fcn.1400031e0
test rax, rax
mov rcx, rax
mov qword [rdi], rax
jne 0x14000197b
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov rdx, r13
call fcn.1400020f0
mov ebx, 0xffffffff
jmp 0x140001a43
xor ebx, ebx
jmp 0x140001a26
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
mov r8, r13
lea rcx, str.fwrite
call fcn.140002150
jmp 0x140001a21
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov r8, r13
lea rcx, str.fseek
call fcn.140002150
jmp 0x140001a9e
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
mov r8, r13
lea rcx, str.fopen
call fcn.140002150
mov ebx, 0xffffffff
jmp 0x140001a5f
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
mov r8, r13
lea rcx, str.malloc
call fcn.140002150
jmp 0x140001a9e
Function at 0x140001b30
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x140001d00
mov rax, qword [0x140014e30]
mov r8d, 8
mov rdx, qword [rax]
mov qword [rsp + 0x28], rdx
shr rdx, 0x18
add edx, 0xc
mov byte [rsp + 0x2b], dl
lea rdx, [rsp + 0x28]
call fcn.140006bc0
test rax, rax
mov rbx, rax
je 0x140001d3b
mov rcx, qword [rdi]
xor r8d, r8d
mov edx, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140001d65
mov r9, qword [rdi]
lea rcx, [rdi + 0x20]
mov r8d, 1
mov edx, 0x58
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
je 0x140001d28
mov eax, dword [rdi + 0x28]
add rbx, 0x58
mov dword [rdi + 0x507c], 0
mov edx, dword [rdi + 0x2c]
mov ecx, dword [rdi + 0x30]
mov r8d, dword [rdi + 0x34]
bswap eax
movd xmm0, eax
mov eax, eax
bswap edx
movd xmm2, edx
sub rbx, rax
punpckldq xmm0, xmm2
bswap ecx
movq qword [rdi + 0x28], xmm0
movd xmm0, ecx
mov rcx, qword [rdi]
bswap r8d
movd xmm3, r8d
add edx, ebx
punpckldq xmm0, xmm3
mov qword [rdi + 8], rbx
movq qword [rdi + 0x30], xmm0
mov dword [0x140018040], r8d
xor r8d, r8d
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
movsxd rbx, dword [rdi + 0x30]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
mov rcx, rax
mov qword [rdi + 0x10], rax
je 0x140001d7a
mov r9, qword [rdi]
mov r8d, 1
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
je 0x140001d42
movsxd rax, dword [rdi + 0x30]
add rax, qword [rdi + 0x10]
mov rcx, qword [rdi]
mov qword [rdi + 0x18], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
mov ebx, eax
jne 0x140001d57
mov rax, qword [rdi + 0x10]
lea rsi, str.Cannot_read_Table_of_Contents._n
mov r9, qword [rdi + 0x18]
nop dword [rax + rax]
cmp rax, r9
jae 0x140001cd8
mov ecx, dword [rax + 4]
mov edx, dword [rax]
mov r8d, dword [rax + 8]
bswap ecx
movd xmm0, ecx
mov ecx, dword [rax + 0xc]
bswap edx
mov dword [rax], edx
movsxd rdx, edx
bswap r8d
movd xmm1, r8d
punpckldq xmm0, xmm1
movq qword [rax + 4], xmm0
bswap ecx
mov dword [rax + 0xc], ecx
add rax, rdx
cmp rax, qword [rdi + 0x10]
jae 0x140001c80
mov rcx, rsi
call fcn.1400020f0
mov rax, qword [rdi + 0x18]
mov r9, rax
cmp rax, r9
jb 0x140001c85
nop dword [rax]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140001cec
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov qword [rdi], 0
mov eax, ebx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rdi + 0x78]
lea rdx, [0x14000f150]
call fcn.1400031e0
test rax, rax
mov rcx, rax
mov qword [rdi], rax
jne 0x140001b46
jmp 0x140001d3b
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.140002150
mov ebx, 0xffffffff
jmp 0x140001cec
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.140002150
jmp 0x140001d3b
lea rcx, str.Error_on_file._n
call fcn.1400020f0
jmp 0x140001d3b
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.140002150
jmp 0x140001d3b
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.140002150
jmp 0x140001d3b
Function at 0x140005e10
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x4020
call fcn.14000c9d0
sub rsp, rax
xor r8d, r8d
lea rbx, [rsp + 0x20]
mov rdx, rcx
xor ecx, ecx
call fcn.1400070e0
mov r8d, 0x2000
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140005e58
xor eax, eax
add rsp, 0x4020
pop rbx
ret
lea rdx, [rsp + 0x2020]
mov r8d, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
xor r8d, r8d
mov rdx, rbx
call fcn.140006f10
test rax, rax
mov rcx, rax
je 0x140005e46
cmp byte [rax], 0
je 0x140005e46
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
add rsp, 0x4020
pop rbx
ret

Function at 0x140005f00
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.1400070e0
xor edx, edx
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
mov esi, eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140005f40
Capabilities:
Create directory
Query environment variable

Disassembly:
push rbp
mov eax, 0x4028
push rdi
push rsi
push rbx
call fcn.14000c9d0
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.1400070e0
test rax, rax
mov rbx, rax
je 0x140006080
lea rdi, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rbx
mov esi, eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
test esi, esi
je 0x140006060
mov rcx, rdi
call fcn.140007510
test eax, eax
jne 0x140006048
mov r8d, 0x1000
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
mov rsi, rax
test rsi, rsi
je 0x140006090
lea rdi, [rsp + 0x2020]
xor edx, edx
mov r8d, 0x2000
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov edx, 0x5c
mov rcx, rsi
call sub.api_ms_win_crt_private_l1_1_0.dll_wcschr
mov rbp, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test rax, rax
mov rbx, rax
je 0x14000602d
nop dword [rax]
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
sub r8, rsi
sar r8, 1
add r8, 1
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsncpy
xor edx, edx
mov rcx, rdi
call rbp
lea rcx, [rbx + 2]
mov edx, 0x5c
call sub.api_ms_win_crt_private_l1_1_0.dll_wcschr
test rax, rax
mov rbx, rax
jne 0x140005ff8
xor edx, edx
mov rcx, rsi
call rbp
mov rax, rsi
add rsp, 0x4028
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov rsi, rax
jmp 0x140005fb7
lea rcx, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
xor esi, esi
call fcn.1400020f0
mov rax, rsi
add rsp, 0x4028
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
xor esi, esi
call fcn.1400020f0
jmp 0x14000606e
lea rcx, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
xor esi, esi
call fcn.1400020f0
jmp 0x14000606e
Function at 0x1400060a0
Capabilities:
Get common file path
Set environment variable

Disassembly:
push r15
mov eax, 0x2048
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000c9d0
sub rsp, rax
test rdx, rdx
mov r15, rcx
mov rdi, rdx
je 0x1400061b0
lea rcx, [0x1400114ab]
call fcn.140005e10
mov rcx, rdi
mov r13, rax
call fcn.140005f40
test rax, rax
mov rbx, rax
je 0x140006197
lea rcx, [0x1400114b0]
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv_s]
mov rcx, rbx
mov esi, eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
test esi, esi
jne 0x140006238
lea r12, [rsp + 0x40]
mov ecx, 0x1000
mov esi, 5
lea rbp, [rsp + 0x20]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__getpid
lea r8, str._MEI_d
mov edx, 0x10
mov rcx, rbp
mov r9d, eax
call fcn.140005cb0
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wtempnam]
mov rdx, rbp
mov rcx, r12
call r14
mov rcx, rax
mov rbx, rax
call fcn.140007310
test eax, eax
je 0x1400061c0
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
sub esi, 1
jne 0x14000614d
test rdi, rdi
je 0x140006197
test r13, r13
je 0x140006208
lea rcx, [0x1400114ab]
mov rdx, r13
call fcn.140005ea0
mov rcx, r13
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor eax, eax
add rsp, 0x2048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r13d, r13d
jmp 0x14000610d
mov r8d, 0x1000
mov rdx, rbx
mov rcx, r15
call fcn.140006f10
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
test rdi, rdi
je 0x1400061fa
test r13, r13
je 0x140006249
lea rcx, [0x1400114ab]
mov rdx, r13
call fcn.140005ea0
mov rcx, r13
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, 1
jmp 0x140006199
lea rdx, [0x1400114ab]
xor r8d, r8d
xor ecx, ecx
call fcn.1400070e0
xor edx, edx
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x140006197
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.1400020f0
jmp 0x140006197
lea rdx, [0x1400114ab]
xor r8d, r8d
xor ecx, ecx
call fcn.1400070e0
xor edx, edx
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x1400061fa
Function at 0x1400062e0
Capabilities:
Delete directory

Disassembly:
push r13
mov eax, 0x44a8
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000c9d0
sub rsp, rax
mov r8d, 0x1000
lea r13, [rsp + 0x2490]
mov rdx, rcx
lea rsi, [rsp + 0x480]
mov rcx, r13
call fcn.1400070e0
mov rdx, r13
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscpy
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rbp, rax
movzx eax, word [rsp + rax*2 + 0x47e]
cmp ax, 0x2f
je 0x140006340
cmp ax, 0x5c
jne 0x140006388
lea rdx, [0x140011538]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat
lea rbx, [rsp + 0x250]
mov rcx, rsi
mov rdx, rbx
call fcn.14000d060
cmp rax, 0xffffffffffffffff
mov r12, rax
jne 0x1400063a0
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrmdir]
nop
add rsp, 0x44a8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [0x140011534]
mov rcx, rsi
add rbp, 1
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat
jmp 0x140006340
lea rdi, [rsp + 0x20]
nop dword [rax]
mov r8d, 0x230
mov rdx, rbx
mov rcx, rdi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov r8, rdi
mov rdx, rbp
mov rcx, rsi
call fcn.1400063f0
mov rdx, rbx
mov rcx, r12
call fcn.14000d0e0
test eax, eax
je 0x1400063a8
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__findclose]
jmp 0x14000636b

Function at 0x1400063f0
Capabilities:
Delete directory
Delete file

Disassembly:
push rbp
mov eax, 0x1038
push rdi
push rsi
push rbx
call fcn.14000c9d0
sub rsp, rax
lea rsi, [r8 + 0x24]
mov rbp, rcx
mov rdi, rdx
lea rdx, [0x14001153c]
mov rcx, rsi
mov rbx, r8
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
jne 0x140006430
add rsp, 0x1038
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [0x140011540]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x140006421
xor eax, eax
mov rcx, rbp
mov rdx, rsi
mov word [rbp + rdi*2], ax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat
test byte [rbx], 0x10
mov rcx, rbp
je 0x140006490
call fcn.1400074a0
test eax, eax
jne 0x1400064b8
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rbp
mov rcx, rbx
call fcn.140006f10
mov rcx, rbx
call fcn.1400062e0
jmp 0x140006421
mov rbx, qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
call rbx
test eax, eax
je 0x140006421
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbp
call rbx
jmp 0x140006421
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrmdir]
jmp 0x140006421
Function at 0x1400066b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.14000c9d0
sub rsp, rax
mov rsi, rdx
mov rdi, r8
lea rdx, [0x1400115d4]
call fcn.1400031e0
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call fcn.1400064d0
test rbx, rbx
mov rdi, rax
je 0x1400067a9
test rax, rax
je 0x14000679c
lea rsi, [rsp + 0x20]
nop word [rax + rax]
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_feof
test eax, eax
jne 0x140006798
mov r8d, 0x1000
mov r9, rbx
mov edx, 1
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
mov r8, rax
jne 0x140006748
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x140006700
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
jmp 0x140006771
mov r9, rdi
mov edx, 1
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
test rax, rax
je 0x140006769
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x140006700
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
mov esi, 0xffffffff
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov eax, esi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
xor esi, esi
jmp 0x140006776
test rbx, rbx
je 0x1400067a9
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
test rdi, rdi
je 0x1400067b6
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov esi, 0xffffffff
jmp 0x140006786
Function at 0x140006830
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push r12
mov eax, 0x2110
push rbp
push rdi
push rsi
push rbx
call fcn.14000c9d0
sub rsp, rax
mov r8d, 0x1000
xor ebx, ebx
lea rsi, [rsp + 0x110]
mov rdx, rcx
mov dword [rsp + 0x5c], 0
lea r12, [rsp + 0xa0]
mov rcx, rsi
call fcn.1400070e0
mov edx, 1
lea rcx, [0x140005c90]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, r12
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
pxor xmm0, xmm0
mov rbp, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
movups xmmword [rsp + 0xa8], xmm0
xor ecx, ecx
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call rbp
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov rdi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
mov ecx, eax
call rdi
mov ecx, 1
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf0], rax
call rbp
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
call rdi
mov ecx, 2
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf8], rax
call rbp
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
call rdi
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov qword [rsp + 0x40], r12
mov rcx, rsi
mov dword [rsp + 0x28], 0
lea r8, [rsp + 0x60]
mov rdx, rax
lea rax, [rsp + 0x80]
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400069d0
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x80]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x5c]
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, str.Error_creating_child_process__n
lea rcx, str.CreateProcessW
call fcn.140002190
mov eax, 0xffffffff
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret