joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140194570
Capabilities:
Get file system object information

Disassembly:
push rbx
sub rsp, 0x1c0
mov rax, qword [0x1402557c0]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov qword [rsp + 0x38], rdx
mov rax, r8
mov rbx, rdx
test r8, r8
je 0x1401945ef
mov rcx, qword [rax + 8]
lea r8, [rsp + 0x40]
mov r9d, 0x168
mov dword [rsp + 0x20], 0x208
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov rcx, rbx
lea rdx, [rsp + 0x50]
test rax, rax
jne 0x1401945ce
lea rdx, [0x140214260]
call fcn.140003e9c
mov rax, rbx
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14019d900
add rsp, 0x1c0
pop rbx
ret
call fcn.140005250
int3

Function at 0x14019e90c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14019e956
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14019e956
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14019e956
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14019e956
cmp dword [rcx + 0x84], 0xe
jbe 0x14019e956
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14019e958
xor al, al
add rsp, 0x28
ret

Function at 0x1401b45e0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1401b464f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401b464f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401b464f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401b464f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401b464f
cmp dword [rcx + 0x84], 0xe
jbe 0x1401b464f
cmp dword [rcx + 0xf8], 0
je 0x1401b464f
mov ecx, ebx
call fcn.1401b4700
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1401b44dc
nop
cmp dword [rbp + 0x20], 0
je 0x1401b469d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401b46a8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1401b45e0

Function at 0x1401b47e4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401b45e0
Function at 0x1401be4a4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1401be4d4
xor eax, eax
jmp 0x1401be597
mov rbp, rbx
cmp word [rax], si
je 0x1401be4f9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401be4e0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401be4dc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1401bb81c
movsxd r14, eax
test eax, eax
jne 0x1401be537
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401be4cd
mov rcx, r14
call fcn.1401b6180
mov rdi, rax
test rax, rax
jne 0x1401be550
xor ecx, ecx
call fcn.1401b6144
jmp 0x1401be52c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1401bb81c
test eax, eax
jne 0x1401be581
mov rcx, rdi
call fcn.1401b6144
jmp 0x1401be58b
xor ecx, ecx
call fcn.1401b6144
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1401be5b4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401be63b
mov rsi, rbx
cmp word [rax], bp
je 0x1401be5fa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401be5e4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401be5e0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401b6180
mov rdi, rax
test rax, rax
je 0x1401be628
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401c32d0
mov rbp, rdi
xor ecx, ecx
call fcn.1401b6144
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401c2d50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401c2d78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401c2d78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001c30
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 0x140001d30
mov edx, dword [r12 + 4]
xor r8d, r8d
add edx, dword [rbp + 8]
call fcn.14000f340
test eax, eax
js 0x140001d78
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r13, rax
test rax, rax
je 0x140001d92
cmp byte [r12 + 0x10], 1
je 0x140001d10
mov rdi, rax
test rsi, rsi
jne 0x140001ca0
jmp 0x140001ce9
add rdi, rbx
sub rsi, rbx
je 0x140001ce9
mov ebx, 0x2000
mov r9, qword [rbp]
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001c98
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002f90
mov rcx, r13
call sub.msvcrt.dll_free
xor r13d, r13d
mov rcx, qword [rbp]
test rcx, rcx
je 0x140001cff
call sub.msvcrt.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.140001850
test eax, eax
je 0x140001ce9
jmp 0x140001cde
lea rcx, [rbp + 0x78]
lea rdx, [0x14001a1a0]
call fcn.1400044f0
mov qword [rbp], rax
mov rcx, rax
test rax, rax
jne 0x140001c4e
lea rdx, [r12 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002e10
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.140002f90
jmp 0x140001d61
mov r9d, esi
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, [0x14001a0e2]
call fcn.140002f90
jmp 0x140001ce6
Function at 0x140001dc0
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.140007550
cmp eax, 0xffffffff
je 0x140001f8e
lea r13, [rbx + 0x12]
lea rcx, [rdi + 0x3078]
mov rdx, r13
call fcn.1400077d0
mov r12, rax
test rax, rax
je 0x140001f78
mov rcx, qword [rdi]
test rcx, rcx
je 0x140001f00
mov edx, dword [rbx + 4]
xor r8d, r8d
add edx, dword [rdi + 8]
call fcn.14000f340
test eax, eax
js 0x140001f60
cmp byte [rbx + 0x10], 1
je 0x140001ec0
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov rbp, rax
test rax, rax
je 0x140001f98
mov esi, dword [rbx + 0xc]
test rsi, rsi
jne 0x140001e76
jmp 0x140001f38
mov r9, r12
mov r8d, 1
mov rdx, rbx
mov rcx, rbp
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140001f40
sub rsi, rbx
je 0x140001f38
mov ebx, 0x2000
mov r9, qword [rdi]
mov r8d, 1
mov rcx, rbp
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001e50
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002f90
mov ebx, 0xffffffff
mov rcx, rbp
call sub.msvcrt.dll_free
jmp 0x140001ed3
mov rdx, rbx
xor r9d, r9d
mov r8, r12
mov rcx, rdi
call fcn.140001850
mov ebx, eax
mov rcx, qword [rdi]
test rcx, rcx
je 0x140001ee7
call sub.msvcrt.dll_fclose
mov qword [rdi], 0
mov rcx, r12
call sub.msvcrt.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, [0x14001a1a0]
call fcn.1400044f0
mov qword [rdi], rax
mov rcx, rax
test rax, rax
jne 0x140001e0b
mov rdx, r13
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002e10
mov ebx, 0xffffffff
jmp 0x140001ed3
xor ebx, ebx
jmp 0x140001eb6
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
call fcn.140002f90
jmp 0x140001eb1
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002f90
jmp 0x140001f2e
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
call fcn.140002f90
mov ebx, 0xffffffff
jmp 0x140001eef
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, [0x14001a0e2]
call fcn.140002f90
jmp 0x140001f2e
Function at 0x140001fc0
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 0x140002160
mov rax, qword [0x1400203c0]
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.140007e80
mov rbx, rax
test rax, rax
je 0x14000219b
mov rcx, qword [rdi]
xor r8d, r8d
mov edx, eax
call fcn.14000f340
test eax, eax
js 0x1400021c5
mov r9, qword [rdi]
lea rcx, [rdi + 0x20]
mov r8d, 1
mov edx, 0x58
call sub.msvcrt.dll_fread
test rax, rax
je 0x140002188
mov eax, dword [rdi + 0x28]
mov ecx, dword [rdi + 0x30]
add rbx, 0x58
xor r8d, r8d
mov dword [rdi + 0x507c], 0
mov edx, dword [rdi + 0x2c]
bswap eax
bswap ecx
mov dword [rdi + 0x28], eax
mov eax, eax
mov dword [rdi + 0x30], ecx
mov ecx, dword [rdi + 0x34]
sub rbx, rax
bswap edx
mov qword [rdi + 8], rbx
bswap ecx
mov dword [rdi + 0x2c], edx
add edx, ebx
mov dword [rdi + 0x34], ecx
mov dword [0x1400260b0], ecx
mov rcx, qword [rdi]
call fcn.14000f340
movsxd rbx, dword [rdi + 0x30]
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov qword [rdi + 0x10], rax
mov rcx, rax
test rax, rax
je 0x1400021da
mov r9, qword [rdi]
mov r8d, 1
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
je 0x1400021a2
movsxd rax, dword [rdi + 0x30]
add rax, qword [rdi + 0x10]
mov qword [rdi + 0x18], rax
mov rcx, qword [rdi]
call sub.msvcrt.dll_ferror
mov ebx, eax
test eax, eax
jne 0x1400021b7
mov rax, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
lea rsi, str.Cannot_read_Table_of_Contents._n
nop
cmp rax, r8
jae 0x140002138
mov ecx, dword [rax + 4]
mov edx, dword [rax]
bswap ecx
mov dword [rax + 4], ecx
mov ecx, dword [rax + 8]
bswap edx
mov dword [rax], edx
movsxd rdx, edx
bswap ecx
mov dword [rax + 8], ecx
mov ecx, dword [rax + 0xc]
bswap ecx
mov dword [rax + 0xc], ecx
add rax, rdx
cmp rax, qword [rdi + 0x10]
jae 0x1400020f0
mov rcx, rsi
call fcn.140002e10
mov rax, qword [rdi + 0x18]
mov r8, rax
cmp rax, r8
jb 0x1400020f5
nop dword [rax + rax]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000214c
call sub.msvcrt.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, [0x14001a1a0]
call fcn.1400044f0
mov qword [rdi], rax
mov rcx, rax
test rax, rax
jne 0x140001fd6
jmp 0x14000219b
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.140002f90
mov ebx, 0xffffffff
jmp 0x14000214c
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.140002f90
jmp 0x14000219b
lea rcx, str.Error_on_file._n
call fcn.140002e10
jmp 0x14000219b
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.140002f90
jmp 0x14000219b
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, [0x14001a0e2]
call fcn.140002f90
jmp 0x14000219b
Function at 0x140007100
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x4020
call fcn.14000e2b0
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
lea rbx, [rsp + 0x20]
call fcn.140008360
mov r8d, 0x2000
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140007148
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.140008190
mov rcx, rax
test rax, rax
je 0x140007136
cmp byte [rax], 0
je 0x140007136
call sub.msvcrt.dll__strdup
add rsp, 0x4020
pop rbx
ret

Function at 0x1400071f0
Capabilities:
Set environment variable

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

Function at 0x140007230
Capabilities:
Create directory
Query environment variable

Disassembly:
push rbp
mov eax, 0x4028
push rdi
push rsi
push rbx
call fcn.14000e2b0
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.140008360
mov rbx, rax
test rax, rax
je 0x140007370
lea rdi, [rsp + 0x20]
mov rcx, rax
mov r8d, 0x1000
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_free
test esi, esi
je 0x140007350
mov rcx, rdi
call fcn.1400087a0
test eax, eax
jne 0x140007338
mov r8d, 0x1000
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__wfullpath]
mov rbp, rax
test rbp, rbp
je 0x140007380
lea rsi, [rsp + 0x2020]
xor eax, eax
mov ecx, 0x400
mov edx, 0x5c
mov rdi, rsi
rep stosq qword [rdi], rax
mov rcx, rbp
call sub.msvcrt.dll_wcschr
mov rdi, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rbx, rax
test rax, rax
je 0x14000731d
nop dword [rax]
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
sub r8, rbp
sar r8, 1
add r8, 1
call sub.msvcrt.dll_wcsncpy
xor edx, edx
mov rcx, rsi
call rdi
lea rcx, [rbx + 2]
mov edx, 0x5c
call sub.msvcrt.dll_wcschr
mov rbx, rax
test rax, rax
jne 0x1400072e8
xor edx, edx
mov rcx, rbp
call rdi
mov rax, rbp
add rsp, 0x4028
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsdup_1]
mov rbp, rax
jmp 0x1400072a7
lea rcx, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
xor ebp, ebp
call fcn.140002e10
mov rax, rbp
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 ebp, ebp
call fcn.140002e10
jmp 0x14000735e
lea rcx, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
xor ebp, ebp
call fcn.140002e10
jmp 0x14000735e
Function at 0x140007390
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.14000e2b0
sub rsp, rax
mov r15, rcx
mov rdi, rdx
test rdx, rdx
je 0x1400073f9
lea rcx, [0x14001c573]
call fcn.140007100
mov rcx, rdi
mov r14, rax
call fcn.140007230
mov rbx, rax
test rax, rax
je 0x140007483
lea rcx, [0x14001c578]
mov rdx, rax
call qword [sym.imp.msvcrt.dll__wputenv_s]
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_free
test esi, esi
jne 0x1400074a0
lea r12, [rsp + 0x40]
mov ecx, 0x1000
lea rbp, [rsp + 0x20]
mov esi, 5
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.msvcrt.dll__getpid
lea r8, str._MEI_d
mov edx, 0x10
mov rcx, rbp
mov r9d, eax
call fcn.140006f90
mov r13, qword [sym.imp.msvcrt.dll__wtempnam]
mov rcx, r12
mov rdx, rbp
call r13
mov rcx, rax
mov rbx, rax
call fcn.140008590
test eax, eax
je 0x1400074b0
mov rcx, rbx
call sub.msvcrt.dll_free
sub esi, 1
jne 0x140007439
test rdi, rdi
je 0x140007483
test r14, r14
je 0x1400074f8
lea rcx, [0x14001c573]
mov rdx, r14
call fcn.140007190
mov rcx, r14
call sub.msvcrt.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
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.140002e10
jmp 0x140007483
mov rcx, r15
mov r8d, 0x1000
mov rdx, rbx
call fcn.140008190
mov rcx, rbx
call sub.msvcrt.dll_free
test rdi, rdi
je 0x1400074ea
test r14, r14
je 0x140007524
lea rcx, [0x14001c573]
mov rdx, r14
call fcn.140007190
mov rcx, r14
call sub.msvcrt.dll_free
mov eax, 1
jmp 0x140007485
xor r8d, r8d
xor ecx, ecx
lea rdx, [0x14001c573]
call fcn.140008360
xor edx, edx
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call sub.msvcrt.dll_free
jmp 0x140007483
xor r8d, r8d
xor ecx, ecx
lea rdx, [0x14001c573]
call fcn.140008360
xor edx, edx
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call sub.msvcrt.dll_free
jmp 0x1400074ea
Function at 0x1400075b0
Capabilities:
Delete directory

Disassembly:
push r15
mov eax, 0x44b8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e2b0
sub rsp, rax
mov r8d, 0x1000
lea rax, [rsp + 0x24a0]
mov rdx, rcx
lea r12, [rsp + 0x490]
mov rsi, rax
mov rcx, rax
mov qword [rsp + 0x28], rax
call fcn.140008360
mov rdx, rsi
mov rcx, r12
call sub.msvcrt.dll_wcscpy
mov rcx, r12
call sub.msvcrt.dll_wcslen
mov r13, rax
movzx eax, word [rsp + rax*2 + 0x48e]
cmp ax, 0x2f
je 0x14000761c
cmp ax, 0x5c
jne 0x140007670
lea rdx, [0x14001c600]
mov rcx, r12
lea rbx, [rsp + 0x260]
call sub.msvcrt.dll_wcscat
mov rdx, rbx
mov rcx, r12
call fcn.14000ee90
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140007688
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.msvcrt.dll__wrmdir]
nop
add rsp, 0x44b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [0x14001c5fc]
mov rcx, r12
add r13, 1
call sub.msvcrt.dll_wcscat
jmp 0x14000761c
lea rdi, [rsp + 0x30]
mov ecx, 0x46
mov rsi, rbx
mov rdx, r13
rep movsq qword [rdi], qword [rsi]
lea rbp, [rsp + 0x30]
mov rcx, r12
mov r8, rbp
mov r15, rbp
call fcn.1400076f0
jmp 0x1400076cf
mov rdi, rbp
mov ecx, 0x46
mov rsi, rbx
mov r8, r15
rep movsq qword [rdi], qword [rsi]
mov rdx, r13
mov rcx, r12
mov rbp, r15
call fcn.1400076f0
mov rdx, rbx
mov rcx, r14
call fcn.14000ef70
test eax, eax
je 0x1400076b0
mov rcx, r14
call qword [sym.imp.msvcrt.dll__findclose]
jmp 0x140007647

Function at 0x1400076f0
Capabilities:
Delete directory
Delete file

Disassembly:
push rbp
mov eax, 0x1038
push rdi
push rsi
push rbx
call fcn.14000e2b0
sub rsp, rax
lea rsi, [r8 + 0x24]
mov rbp, rcx
mov rdi, rdx
mov rbx, r8
lea rdx, [0x14001c604]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140007730
add rsp, 0x1038
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [0x14001c608]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140007721
xor eax, eax
mov rcx, rbp
mov rdx, rsi
mov word [rbp + rdi*2], ax
call sub.msvcrt.dll_wcscat
mov rcx, rbp
test byte [rbx], 0x10
je 0x140007790
call fcn.140008730
test eax, eax
jne 0x1400077b8
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rbp
mov rcx, rbx
call fcn.140008190
mov rcx, rbx
call fcn.1400075b0
jmp 0x140007721
mov rbx, qword [sym.imp.msvcrt.dll__wremove]
call rbx
test eax, eax
je 0x140007721
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbp
call rbx
jmp 0x140007721
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x140007721
Function at 0x140007960
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.14000e2b0
sub rsp, rax
mov rdi, r8
mov rsi, rdx
lea rdx, [0x14001c644]
call fcn.1400044f0
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call fcn.1400077d0
mov rdi, rax
test rbx, rbx
je 0x140007a59
test rax, rax
je 0x140007a4c
lea rsi, [rsp + 0x20]
nop word [rax + rax]
mov rcx, rbx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x140007a48
mov r8d, 0x1000
mov r9, rbx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
mov r8, rax
test rax, rax
jne 0x1400079f8
mov rcx, rbx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x1400079b0
mov rcx, rbx
call sub.msvcrt.dll_clearerr
jmp 0x140007a21
mov r9, rdi
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140007a19
mov rcx, rdi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x1400079b0
mov rcx, rdi
call sub.msvcrt.dll_clearerr
mov esi, 0xffffffff
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov eax, esi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
xor esi, esi
jmp 0x140007a26
test rbx, rbx
je 0x140007a59
mov rcx, rbx
call sub.msvcrt.dll_fclose
test rdi, rdi
je 0x140007a66
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov esi, 0xffffffff
jmp 0x140007a36
Function at 0x140007ae0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push rbp
mov eax, 0x2118
push rdi
push rsi
push rbx
call fcn.14000e2b0
sub rsp, rax
mov r8d, 0x1000
lea rdi, [rsp + 0x110]
mov rdx, rcx
mov dword [rsp + 0x5c], 0
lea rbp, [rsp + 0xa0]
mov rcx, rdi
call fcn.140008360
mov edx, 1
mov ecx, 0x16
call sub.msvcrt.dll_signal
mov edx, 1
mov ecx, 2
call sub.msvcrt.dll_signal
mov edx, 1
mov ecx, 0xf
call sub.msvcrt.dll_signal
mov edx, 1
mov ecx, 0x15
call sub.msvcrt.dll_signal
mov rcx, rbp
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
pxor xmm0, xmm0
mov eax, 1
xor ecx, ecx
movups xmmword [rsp + 0xa8], xmm0
mov rsi, qword [fcn.140017d50]
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call rsi
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov rbx, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call rbx
mov ecx, 1
mov qword [rsp + 0xf0], rax
call rsi
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rbx
mov ecx, 2
mov qword [rsp + 0xf8], rax
call rsi
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rbx
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov qword [rsp + 0x40], rbp
mov rcx, rdi
mov rdx, rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140007c90
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, 0x2118
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, str.Error_creating_child_process__n
lea rcx, str.CreateProcessW
call fcn.140002ef0
mov eax, 0xffffffff
add rsp, 0x2118
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140007e80
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
mov ecx, 0x2000
mov rbp, rdx
mov rdi, r8
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
je 0x140007f70
xor edx, edx
mov r8d, 2
mov rcx, r12
call fcn.14000f340
test eax, eax
js 0x140007f70
mov rcx, r12
call fcn.14000f430
movsxd rbx, eax
cmp rbx, rdi
jb 0x140007f70
mov r15d, 1
sub r15, rdi
mov qword [rsp + 0x28], r15
mov r13d, 0x2000
cmp rbx, r13
cmovae r13, rbx
lea r14, [r13 - 0x2000]
sub rbx, r14
cmp rbx, rdi
jb 0x140007f70
xor r8d, r8d
mov edx, r14d
mov rcx, r12
call fcn.14000f340
test eax, eax
js 0x140007f70
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
cmp rax, rbx
jne 0x140007f70
mov rdx, qword [rsp + 0x28]
lea rbx, [rdx + rax]
jmp 0x140007f5a
lea r15, [rbx - 1]
mov r8, rdi
mov rdx, rbp
lea rcx, [rsi + r15]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140007f90
mov rbx, r15
test rbx, rbx
jne 0x140007f40
lea rbx, [r14 + rdi - 1]
test r14, r14
jne 0x140007ee9
nop dword [rax]
xor ebx, ebx
mov rcx, rsi
call sub.msvcrt.dll_free
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [r13 + rbx - 0x2001]
jmp 0x140007f72