joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019554
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
and qword [rbp - 0x30], 0
mov rdi, rdx
mov rsi, rcx
movzx r14d, r9b
mov rdx, r8
lea rcx, [rbp - 0x30]
mov r15, r8
call fcn.140018fc8
mov ebx, eax
test eax, eax
je 0x1400195a4
jle 0x1400196f1
movzx ebx, ax
jmp 0x140019678
cmp qword [rdi + 0x18], 8
lea r9d, [r14*2 + 1]
mov eax, dword [rdi + 0x10]
lea ecx, [rax*2 + 2]
mov rax, rdi
jb 0x1400195c3
mov rax, qword [rdi]
cmp qword [rsi + 0x18], 8
mov rdx, rsi
jb 0x1400195d0
mov rdx, qword [rsi]
mov dword [rsp + 0x28], ecx
xor r8d, r8d
mov rcx, qword [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140019680
call fcn.1400085ac
mov r14, rax
cmp dword [rax], 3
jbe 0x140019671
mov rcx, rdi
call fcn.140008ab0
mov rcx, r15
mov qword [rbp - 0x28], rax
call fcn.140008ab0
mov rcx, rsi
mov qword [rbp - 0x20], rax
call fcn.140008ab0
mov qword [rbp - 0x18], rax
lea rdx, [0x1400243ef]
lea rax, str.Failed_to_set_registry_key
mov dword [rbp + 0x40], ebx
mov qword [rbp - 0x10], rax
mov rcx, r14
lea rax, [rbp - 0x28]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
call fcn.140002630
test ebx, ebx
jle 0x1400196f1
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1400196f1
call fcn.1400085ac
mov rbx, rax
cmp dword [rax], 4
jbe 0x1400196ef
mov rcx, rdi
call fcn.140008ab0
mov rcx, r15
mov qword [rbp - 0x10], rax
call fcn.140008ab0
mov rcx, rsi
mov qword [rbp - 0x18], rax
call fcn.140008ab0
mov qword [rbp - 0x20], rax
lea rdx, [0x140024437]
lea rax, str.Write_registry_value
mov rcx, rbx
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
call fcn.140001fe8
xor ebx, ebx
lea rcx, [rbp - 0x30]
call fcn.14000afec
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140019720
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
and dword [rbp - 0x30], 0
mov rdi, rcx
and qword [rbp - 0x28], 0
lea rcx, [rbp - 0x28]
mov rdx, r8
mov rsi, r8
call fcn.140018fc8
mov ebx, eax
test eax, eax
je 0x14001976a
jle 0x14001989c
movzx ebx, ax
jmp 0x140019828
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x140019777
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140019830
call fcn.1400085ac
cmp dword [rax], 3
jbe 0x140019821
cmp qword [rsi + 0x18], 8
mov ecx, dword [rbp - 0x30]
mov dword [rbp + 0x38], ecx
jb 0x1400197c5
mov rsi, qword [rsi]
cmp qword [rdi + 0x18], 8
mov qword [rbp - 0x20], rsi
jb 0x1400197d3
mov rdi, qword [rdi]
lea rcx, str.Failed_to_set_registry_key
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rcx
lea rdx, [0x1400245d6]
lea rcx, [rbp + 0x38]
mov dword [rbp + 0x28], ebx
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x28]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140002860
test ebx, ebx
jle 0x14001989c
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14001989c
call fcn.1400085ac
cmp dword [rax], 4
jbe 0x14001989a
cmp qword [rsi + 0x18], 8
mov ecx, dword [rbp - 0x30]
mov dword [rbp + 0x38], ecx
jb 0x14001984a
mov rsi, qword [rsi]
cmp qword [rdi + 0x18], 8
mov qword [rbp - 0x10], rsi
jb 0x140019858
mov rdi, qword [rdi]
lea rcx, str.Write_registry_value
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x20], rcx
lea rdx, [0x140024595]
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140002138
xor ebx, ebx
lea rcx, [rbp - 0x28]
call fcn.14000afec
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x4019d0
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r12, qword [rcx]
mov rbp, rcx
mov r13, rdx
test r12, r12
je 0x401ad0
mov edx, dword [r13 + 4]
xor r8d, r8d
add edx, dword [rbp + 8]
mov rcx, r12
call fcn.0040e960
test eax, eax
js 0x401b08
mov esi, dword [r13 + 0xc]
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x401b32
cmp byte [r13 + 0x10], 1
je 0x401ab0
mov rdi, rax
test rsi, rsi
jne 0x401a40
jmp 0x401a88
add rdi, rbx
sub rsi, rbx
je 0x401a88
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 0x401a38
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.00402e20
mov rcx, r12
xor r12d, r12d
call sub.msvcrt.dll_free
mov rcx, qword [rbp]
test rcx, rcx
je 0x401a9e
call sub.msvcrt.dll_fclose
mov qword [rbp], 0
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r8d, r8d
mov r9, rax
mov rdx, r13
mov rcx, rbp
call fcn.00401590
test eax, eax
jne 0x401a7d
mov rcx, qword [rbp]
test rcx, rcx
jne 0x401a91
jmp 0x401a9e
lea rcx, [rcx + 0x78]
lea rdx, [0x00418150]
call fcn.00404420
mov qword [rbp], rax
mov r12, rax
test rax, rax
jne 0x4019ee
lea rdx, [r13 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402c90
jmp 0x401a9e
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
xor r12d, r12d
lea rcx, str.fseek
call fcn.00402e20
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r9d, esi
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.00402e20
jmp 0x401a88
Function at 0x401b60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov r15, rdx
call fcn.00407740
mov r14d, eax
cmp eax, 0xffffffff
je 0x401ca8
lea r14, [r15 + 0x12]
lea rcx, [rdi + 0x3078]
mov rdx, r14
call fcn.004079d0
mov r13, rax
test rax, rax
je 0x401d49
mov rcx, qword [rdi]
test rcx, rcx
je 0x401cc8
mov edx, dword [r15 + 4]
xor r8d, r8d
add edx, dword [rdi + 8]
call fcn.0040e960
test eax, eax
js 0x401d28
cmp byte [r15 + 0x10], 1
je 0x401c78
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x401d6a
mov esi, dword [r15 + 0xc]
test rsi, rsi
jne 0x401c26
jmp 0x401cc0
mov r9, r13
mov r8d, 1
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x401d00
sub rsi, rbx
je 0x401cc0
mov ebx, 0x2000
mov r9, qword [rdi]
mov r8d, 1
mov rcx, r12
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x401c00
mov r8, r14
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
mov r14d, 0xffffffff
call fcn.00402e20
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x401c8c
xor r9d, r9d
mov r8, r13
mov rdx, r15
mov rcx, rdi
call fcn.00401590
mov r14d, eax
mov rcx, qword [rdi]
test rcx, rcx
je 0x401ca0
call sub.msvcrt.dll_fclose
mov qword [rdi], 0
mov rcx, r13
call sub.msvcrt.dll_fclose
mov eax, r14d
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x401c67
lea rcx, [rdi + 0x78]
lea rdx, [0x00418150]
call fcn.00404420
mov qword [rdi], rax
mov rcx, rax
test rax, rax
jne 0x401bb1
mov rdx, r14
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov r14d, 0xffffffff
call fcn.00402c90
jmp 0x401c8c
mov r8, r14
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
mov r14d, 0xffffffff
call fcn.00402e20
jmp 0x401c67
mov r8, r14
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
mov r14d, 0xffffffff
call fcn.00402e20
jmp 0x401c8c
mov r8, r14
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
mov r14d, 0xffffffff
call fcn.00402e20
jmp 0x401ca8
mov r8, r14
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
or r14d, 0xffffffff
lea rcx, str.malloc
call fcn.00402e20
jmp 0x401c8c
Function at 0x401d90
Capabilities:
Read file on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x401f30
mov rax, qword [0x0041e3c0]
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.004080f0
mov rbx, rax
test rax, rax
je 0x401f4f
mov rcx, qword [rsi]
xor r8d, r8d
mov edx, eax
call fcn.0040e960
test eax, eax
js 0x401fa4
mov r9, qword [rsi]
lea rcx, [rsi + 0x20]
mov r8d, 1
mov edx, 0x58
call sub.msvcrt.dll_fread
test rax, rax
je 0x401f72
mov eax, dword [rsi + 0x28]
mov ecx, dword [rsi + 0x30]
add rbx, 0x58
xor r8d, r8d
mov dword [rsi + 0x507c], 0
mov edx, dword [rsi + 0x2c]
bswap eax
bswap ecx
mov dword [rsi + 0x28], eax
mov eax, eax
mov dword [rsi + 0x30], ecx
mov ecx, dword [rsi + 0x34]
sub rbx, rax
bswap edx
mov qword [rsi + 8], rbx
bswap ecx
mov dword [rsi + 0x2c], edx
add edx, ebx
mov dword [rsi + 0x34], ecx
mov dword [0x00421050], ecx
mov rcx, qword [rsi]
call fcn.0040e960
movsxd r12, dword [rsi + 0x30]
mov rcx, r12
call sub.msvcrt.dll_malloc
mov qword [rsi + 0x10], rax
mov rcx, rax
test rax, rax
je 0x401fb9
mov r9, qword [rsi]
mov r8d, 1
mov rdx, r12
call sub.msvcrt.dll_fread
test rax, rax
je 0x401f57
movsxd rax, dword [rsi + 0x30]
add rax, qword [rsi + 0x10]
mov qword [rsi + 0x18], rax
mov rcx, qword [rsi]
call sub.msvcrt.dll_ferror
mov r12d, eax
test eax, eax
jne 0x401f8d
mov rax, qword [rsi + 0x10]
mov r8, qword [rsi + 0x18]
lea rbx, str.Cannot_read_Table_of_Contents._n
cmp rax, r8
jae 0x401f08
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 [rsi + 0x10]
jae 0x401ec0
mov rcx, rbx
call fcn.00402c90
mov rax, qword [rsi + 0x18]
mov r8, rax
cmp rax, r8
jb 0x401ec5
nop dword [rax + rax]
mov rcx, qword [rsi]
test rcx, rcx
je 0x401f1c
call sub.msvcrt.dll_fclose
mov qword [rsi], 0
mov eax, r12d
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, [rsi + 0x78]
lea rdx, [0x00418150]
call fcn.00404420
mov qword [rsi], rax
mov rcx, rax
test rax, rax
jne 0x401da7
mov r12d, 0xffffffff
jmp 0x401f1c
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
mov r12d, 0xffffffff
call fcn.00402e20
jmp 0x401f1c
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
mov r12d, 0xffffffff
call fcn.00402e20
jmp 0x401f1c
lea rcx, str.Error_on_file._n
mov r12d, 0xffffffff
call fcn.00402c90
jmp 0x401f1c
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.00402e20
jmp 0x401f4f
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
or r12d, 0xffffffff
call fcn.00402e20
jmp 0x401f1c
Function at 0x4072e0
Capabilities:
Query environment variable

Disassembly:
push r12
mov eax, 0x4020
call fcn.0040dda0
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
lea r12, [rsp + 0x20]
call fcn.00408600
mov r8d, 0x2000
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x407328
xor eax, eax
add rsp, 0x4020
pop r12
ret
lea rdx, [rsp + 0x2020]
mov r8d, 0x2000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
xor r8d, r8d
mov rdx, r12
call fcn.00408430
mov rcx, rax
test rax, rax
je 0x407317
cmp byte [rax], 0
je 0x407317
call sub.msvcrt.dll__strdup
add rsp, 0x4020
pop r12
ret

Function at 0x4073d0
Capabilities:
Set environment variable

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

Function at 0x407410
Capabilities:
Create directory
Query environment variable

Disassembly:
push r13
mov eax, 0x4020
push r12
push rdi
push rsi
push rbx
call fcn.0040dda0
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.00408600
mov r12, rax
test rax, rax
je 0x407550
lea r13, [rsp + 0x20]
mov rcx, rax
mov r8d, 0x1000
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, r12
mov ebx, eax
call sub.msvcrt.dll_free
test ebx, ebx
je 0x407538
mov rcx, r13
call fcn.00408a40
test eax, eax
jne 0x407520
mov r8d, 0x1000
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__wfullpath]
mov r12, rax
test r12, r12
je 0x40755e
lea rsi, [rsp + 0x2020]
xor eax, eax
mov ecx, 0x400
mov edx, 0x5c
mov rdi, rsi
rep stosq qword [rdi], rax
mov rcx, r12
call sub.msvcrt.dll_wcschr
mov rdi, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rbx, rax
test rax, rax
je 0x4074fd
nop dword [rax]
mov r8, rbx
mov rdx, r12
mov rcx, rsi
sub r8, r12
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 0x4074c8
xor edx, edx
mov rcx, r12
call rdi
mov rax, r12
add rsp, 0x4020
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wcsdup_1]
mov r12, rax
jmp 0x40748a
lea rcx, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
xor r12d, r12d
call fcn.00402c90
jmp 0x407504
lea rcx, str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.00402c90
jmp 0x407504
lea rcx, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.00402c90
jmp 0x407504
Function at 0x407570
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.0040dda0
sub rsp, rax
mov r15, rcx
mov rsi, rdx
test rdx, rdx
je 0x4075d9
lea rcx, [0x0041a513]
call fcn.004072e0
mov rcx, rsi
mov r14, rax
call fcn.00407410
mov r12, rax
test rax, rax
je 0x4076a7
lea rcx, [0x0041a518]
mov rdx, rax
call qword [sym.imp.msvcrt.dll__wputenv_s]
mov rcx, r12
mov ebx, eax
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x4076b0
lea rbp, [rsp + 0x40]
mov ecx, 0x1000
lea rdi, [rsp + 0x20]
mov ebx, 5
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.msvcrt.dll__getpid
lea r8, str._MEI_d
mov edx, 0x10
mov rcx, rdi
mov r9d, eax
call fcn.00407150
mov r13, qword [sym.imp.msvcrt.dll__wtempnam]
mov rcx, rbp
mov rdx, rdi
call r13
mov rcx, rax
mov r12, rax
call fcn.00408830
test eax, eax
je 0x4076c8
mov rcx, r12
call sub.msvcrt.dll_free
sub ebx, 1
jne 0x407619
test rsi, rsi
je 0x4076a7
test r14, r14
je 0x407680
mov rdx, r14
lea rcx, [0x0041a513]
xor r12d, r12d
call fcn.00407370
mov rcx, r14
call sub.msvcrt.dll_free
mov eax, r12d
add rsp, 0x2048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r8d, r8d
lea rdx, [0x0041a513]
xor ecx, ecx
call fcn.00408600
xor edx, edx
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, r12
call sub.msvcrt.dll_free
xor r12d, r12d
jmp 0x407666
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
xor r12d, r12d
call fcn.00402c90
jmp 0x407666
mov rdx, r12
mov r8d, 0x1000
mov rcx, r15
call fcn.00408430
mov rcx, r12
mov r12d, 1
call sub.msvcrt.dll_free
test rsi, rsi
je 0x407666
test r14, r14
je 0x407711
mov rdx, r14
lea rcx, [0x0041a513]
call fcn.00407370
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x407666
xor r8d, r8d
xor ecx, ecx
lea rdx, [0x0041a513]
call fcn.00408600
xor edx, edx
mov r13, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, r13
call sub.msvcrt.dll_free
jmp 0x407666
Function at 0x4077b0
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.0040dda0
sub rsp, rax
mov r8d, 0x1000
lea rax, [rsp + 0x24a0]
mov rdx, rcx
lea rbx, [rsp + 0x490]
mov rsi, rax
mov rcx, rax
mov qword [rsp + 0x28], rax
call fcn.00408600
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_wcscpy
mov rcx, rbx
call sub.msvcrt.dll_wcslen
mov r13, rax
movzx eax, word [rsp + rax*2 + 0x48e]
cmp ax, 0x2f
je 0x40781c
cmp ax, 0x5c
jne 0x407870
lea rdx, [0x0041a5a0]
mov rcx, rbx
lea rbp, [rsp + 0x260]
call sub.msvcrt.dll_wcscat
mov rdx, rbp
mov rcx, rbx
call fcn.0040e620
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x407888
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, [0x0041a59c]
mov rcx, rbx
add r13, 1
call sub.msvcrt.dll_wcscat
jmp 0x40781c
lea rdi, [rsp + 0x30]
mov ecx, 0x46
mov rsi, rbp
mov rdx, r13
rep movsq qword [rdi], qword [rsi]
lea r12, [rsp + 0x30]
mov rcx, rbx
mov r8, r12
mov r15, r12
call fcn.004078f0
jmp 0x4078cf
mov rdi, r12
mov ecx, 0x46
mov rsi, rbp
mov r8, r15
rep movsq qword [rdi], qword [rsi]
mov rdx, r13
mov rcx, rbx
mov r12, r15
call fcn.004078f0
mov rdx, rbp
mov rcx, r14
call fcn.0040e6b0
test eax, eax
je 0x4078b0
mov rcx, r14
call qword [sym.imp.msvcrt.dll__findclose]
jmp 0x407847

Function at 0x4078f0
Capabilities:
Delete directory
Delete file

Disassembly:
push r13
mov eax, 0x1038
push r12
push rsi
push rbx
call fcn.0040dda0
sub rsp, rax
lea r12, [r8 + 0x24]
mov r13, rcx
mov rsi, rdx
mov rbx, r8
lea rdx, [0x0041a5a4]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x407938
add rsp, 0x1038
pop rbx
pop rsi
pop r12
pop r13
ret
lea rdx, [0x0041a5a8]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x407923
xor eax, eax
mov rcx, r13
mov rdx, r12
mov word [r13 + rsi*2], ax
call sub.msvcrt.dll_wcscat
mov rcx, r13
test byte [rbx], 0x10
je 0x407990
call fcn.004089d0
test eax, eax
jne 0x4079b8
lea r12, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, r13
mov rcx, r12
call fcn.00408430
mov rcx, r12
call fcn.004077b0
jmp 0x407923
mov rbx, qword [sym.imp.msvcrt.dll__wremove]
call rbx
test eax, eax
je 0x407923
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r13
call rbx
jmp 0x407923
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x407923
Function at 0x407bb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r14
mov eax, 0x1028
push r13
push r12
push rbx
call fcn.0040dda0
sub rsp, rax
mov r13, rdx
mov r14, r8
lea rdx, [0x0041a634]
call fcn.00404420
mov rcx, r13
mov rdx, r14
mov r12, rax
call fcn.004079d0
mov r13, rax
test r12, r12
je 0x407cba
test rax, rax
je 0x407cad
lea rbx, [rsp + 0x20]
nop
mov rcx, r12
call sub.msvcrt.dll_feof
test eax, eax
jne 0x407ca8
mov r8d, 0x1000
mov r9, r12
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fread
mov r8, rax
test rax, rax
jne 0x407c50
mov rcx, r12
call sub.msvcrt.dll_ferror
test eax, eax
je 0x407c00
mov rcx, r12
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x407c7f
mov r9, r13
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x407c71
mov rcx, r13
call sub.msvcrt.dll_ferror
test eax, eax
je 0x407c00
mov rcx, r13
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rcx, r13
call sub.msvcrt.dll_fclose
mov eax, r14d
add rsp, 0x1028
pop rbx
pop r12
pop r13
pop r14
ret
xor r14d, r14d
jmp 0x407c7f
test r12, r12
je 0x407cba
mov rcx, r12
call sub.msvcrt.dll_fclose
mov r14d, 0xffffffff
test r13, r13
jne 0x407c87
jmp 0x407c8f
Function at 0x407d40
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.0040dda0
sub rsp, rax
mov r8d, 0x1000
xor ebx, ebx
lea r12, [rsp + 0x110]
mov rdx, rcx
lea rdi, [rsp + 0xa0]
mov dword [rsp + 0x5c], 0
mov rcx, r12
call fcn.00408600
mov edx, 1
lea rcx, [0x00407130]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, rdi
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
mov rbp, qword [fcn.00416010]
xor ecx, ecx
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov rsi, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call rsi
mov ecx, 1
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf0], rax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rsi
mov ecx, 2
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf8], rax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rsi
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], rdi
mov rcx, r12
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 0x407ef0
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.00402d70
mov eax, 0xffffffff
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x4080f0
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 rdi, rcx
mov ecx, 0x2000
mov rsi, rdx
mov rbx, r8
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x4081f0
xor edx, edx
mov r8d, 2
mov rcx, rdi
call fcn.0040e960
test eax, eax
js 0x4081f0
mov rcx, rdi
call fcn.0040ea10
movsxd r8, eax
cmp r8, rbx
jb 0x4081f0
mov r14d, 1
lea rax, [rbx - 1]
sub r14, rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov ebp, 0x2000
cmp r8, rbp
cmovae rbp, r8
lea r13, [rbp - 0x2000]
sub r8, r13
mov r15, r8
cmp rbx, r8
ja 0x4081f0
xor r8d, r8d
mov edx, r13d
mov rcx, rdi
call fcn.0040e960
test eax, eax
js 0x4081f0
mov r9, rdi
mov r8, r15
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fread
cmp rax, r15
jne 0x4081f0
mov rdx, qword [rsp + 0x20]
lea r15, [rdx + rax]
jmp 0x4081d2
lea r14, [r15 - 1]
mov r8, rbx
mov rdx, rsi
lea rcx, [r12 + r14]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x408210
mov r15, r14
test r15, r15
jne 0x4081b8
mov rax, qword [rsp + 0x28]
lea r8, [rax + r13]
test r13, r13
jne 0x408162
nop dword [rax]
xor r13d, r13d
mov rcx, r12
call sub.msvcrt.dll_free
mov rax, r13
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r13, [rbp + r15 - 0x2001]
jmp 0x4081f3