joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003930
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140014040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x12c
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0x130
cmp rdi, 0xffffffffffffffff
je 0x1400039f6
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1400039f6
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x1400039ed
cmp qword [rbx + 0x18], 0xf
mov r8, rbx
jbe 0x1400039b3
mov r8, qword [rbx]
lea rax, [rsp + 0x4c]
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400039d3
inc rax
test ecx, ecx
jne 0x1400039c0
mov rcx, rdi
test edx, edx
je 0x140003a66
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400039a6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140003a30
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140003a2b
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003aad
mov rcx, r8
call fcn.14000cac4
xor al, al
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000c750
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x28], 0
je 0x1400039f6
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140003aa9
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140003aa4
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003aad
mov rcx, r8
call fcn.14000cac4
mov al, 1
jmp 0x140003a32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140004ed0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140004ef8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140004f1e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004f20
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004f79
test ecx, ecx
jle 0x140004f59
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140004f79
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004f79
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140004fa0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140004fc2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140004fd8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140004ff4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004ff6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005032
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400050ce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000506d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400050ae
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400050ce
cmp rbx, rax
ja 0x140005080
test rbx, rbx
je 0x1400050ce
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140005530
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140014040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000555d
xor eax, eax
jmp 0x1400056c9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005597
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140005597
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400056c9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400056bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400055da
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005605
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400056c1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005674
sub eax, 1
je 0x140005674
cmp eax, 2
jne 0x1400056bc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400056c1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400056a2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400056bc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400056c1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000c750
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000c1dc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000c216
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000c21b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000c264
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000e590]
cmp byte [rcx + rax], 0
je 0x14000c264
dec r8
sub rdx, 1
jne 0x14000c24a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000d3e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d42a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d42a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d42a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d42a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d42a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000d42c
xor al, al
add rsp, 0x28
ret
Function at 0x140001030
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rdx
xor esi, esi
lea rdx, [0x14002d824]
mov r15d, esi
mov rdi, r8
mov rbx, rcx
mov r13d, 0xffffffff
call fcn.1400039d0
mov r12, rax
test rax, rax
jne 0x140001089
lea rdx, [r14 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140001e50
jmp 0x1400011aa
mov edx, dword [r14 + 4]
xor r8d, r8d
add rdx, qword [rbx + 0x1000]
mov rcx, r12
call fcn.14000fc2c
test eax, eax
jns 0x1400010c6
call fcn.140015e48
lea r9, [r14 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
mov edx, dword [rax]
call fcn.140002020
jmp 0x14000118c
mov ecx, dword [r14 + 0xc]
call fcn.140015e84
mov r15, rax
test rax, rax
jne 0x140001102
mov ebx, dword [r14 + 0xc]
call fcn.140015e48
lea r9, [r14 + 0x12]
mov dword [rsp + 0x20], ebx
lea r8, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
mov edx, dword [rax]
call fcn.140002020
jmp 0x14000118c
cmp byte [r14 + 0x10], 1
jne 0x14000111c
mov r9, r15
xor r8d, r8d
mov rdx, r14
mov rcx, r12
call fcn.1400011f0
jmp 0x14000117d
mov ebx, dword [r14 + 0xc]
mov qword [rsp + 0x60], rbp
mov rbp, r15
test rbx, rbx
je 0x140001171
mov eax, 0x2000
nop dword [rax]
nop word [rax + rax]
cmp rbx, rax
mov rdi, rbx
mov r9, r12
mov r8d, 1
cmova rdi, rax
mov rcx, rbp
mov rdx, rdi
call fcn.14000f8f4
cmp rax, 1
jb 0x1400011cd
add rbp, rdi
mov eax, 0x2000
sub rbx, rdi
jne 0x140001140
mov eax, esi
mov rdi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x60]
test eax, eax
je 0x14000118c
mov rcx, r15
call fcn.140015e70
mov r15, rsi
mov rcx, r12
call fcn.14000f5a4
mov rsi, r15
test r15, r15
je 0x1400011aa
mov rdx, rdi
mov rcx, r15
call fcn.140003b00
mov r13d, eax
mov rcx, rsi
call fcn.140015e70
mov rbx, qword [rsp + 0x68]
mov eax, r13d
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
call fcn.140015e48
lea r9, [r14 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
mov edx, dword [rax]
call fcn.140002020
mov eax, r13d
jmp 0x140001173
Function at 0x140007130
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.14000be10
sub rsp, rax
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rsi, rdx
xor edi, edi
lea rdx, [0x14002d824]
call fcn.1400039d0
mov rbx, rax
test rax, rax
je 0x140007192
lea rdx, [0x14002d91c]
mov rcx, rsi
call fcn.1400039d0
mov rsi, rax
mov rcx, rbx
test rax, rax
jne 0x14000719c
call fcn.14000f5a4
mov eax, 0xffffffff
jmp 0x140007231
call fcn.14000f63c
test eax, eax
jne 0x14000721f
nop word [rax + rax]
mov r9, rbx
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14000f8f4
test rax, rax
je 0x140007206
mov r9, rsi
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.140010034
test rax, rax
je 0x140007201
mov rcx, rsi
call fcn.14000f668
test eax, eax
jne 0x140007201
mov rcx, rbx
call fcn.14000f63c
test eax, eax
je 0x1400071b0
jmp 0x14000721f
mov rcx, rsi
jmp 0x140007215
mov rcx, rbx
call fcn.14000f668
test eax, eax
je 0x14000721f
mov rcx, rbx
call fcn.140018254
mov edi, 0xffffffff
mov rcx, rbx
call fcn.14000f5a4
mov rcx, rsi
call fcn.14000f5a4
mov eax, edi
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000bb10
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi

Function at 0x140007260
Capabilities:
Create directory

Disassembly:
push rdi
push r14
mov eax, 0x3058
call fcn.14000be10
sub rsp, rax
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x3030], rax
mov rdi, r8
mov r14, rcx
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x140007290
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], 0
jne 0x1400072a1
inc rax
mov qword [rsp + 0x3050], rbx
add rax, rcx
mov qword [rsp + 0x3048], rbp
mov qword [rsp + 0x3040], rsi
cmp rax, 0x1000
jae 0x140007396
mov r9, rdx
mov dword [rsp + 0x20], 0x5c
mov edx, 0x1000
lea r8, str._s_c
lea rcx, [rsp + 0x30]
call fcn.140001c60
mov edx, 0x5c
movsxd rbp, eax
mov rcx, rdi
call fcn.14000c9a0
mov rbx, rax
test rax, rax
je 0x140007392
mov esi, 0x1000
sub rsi, rbp
lea rbp, [rsp + rbp + 0x30]
nop
mov r9d, ebx
mov qword [rsp + 0x20], rdi
sub r9d, edi
lea r8, [0x14002f47c]
mov rdx, rsi
mov rcx, rbp
call fcn.140001c60
lea rcx, [rsp + 0x30]
call fcn.140003970
test eax, eax
jne 0x14000737c
mov r8d, 0x1000
lea rdx, [rsp + 0x1030]
lea rcx, [rsp + 0x30]
call fcn.140008950
mov rdx, qword [r14 + 0x3038]
lea rcx, [rsp + 0x1030]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140007396
lea rcx, [rbx + 1]
mov edx, 0x5c
call fcn.14000c9a0
mov rbx, rax
test rax, rax
jne 0x140007320
xor eax, eax
jmp 0x14000739b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x3040]
mov rbp, qword [rsp + 0x3048]
mov rbx, qword [rsp + 0x3050]
mov rcx, qword [rsp + 0x3030]
xor rcx, rsp
call fcn.14000bb10
add rsp, 0x3058
pop r14
pop rdi
ret
Function at 0x140007610
Capabilities:
Create directory
Get disk information
Query environment variable

Disassembly:
push rdi
mov eax, 0x4040
call fcn.14000be10
sub rsp, rax
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x4030], rax
xor r8d, r8d
xor edx, edx
call fcn.140008950
mov rdi, rax
test rax, rax
jne 0x140007656
lea rcx, str.LOADER:_failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.140001f30
xor eax, eax
jmp 0x1400077df
mov r8d, 0x1000
mov qword [rsp + 0x4058], rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
mov ebx, eax
call fcn.140015e70
test ebx, ebx
jne 0x140007693
lea rcx, str.LOADER:_failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.140001f30
xor eax, eax
jmp 0x1400077d7
lea rcx, [rsp + 0x30]
call fcn.1400087c0
test eax, eax
je 0x1400076ff
cmp word [rsp + 0x34], 0x5c
je 0x1400076c5
lea rcx, [rsp + 0x30]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400076b2
mov eax, dword [0x14002f5a0]
mov dword [rcx], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jg 0x1400076f0
mov r8d, eax
lea rdx, [rsp + 0x30]
lea rcx, str.LOADER:_runtime_tmpdir_points_to_non_existent_drive__ls__type:__d___n
call fcn.140001f30
xor eax, eax
jmp 0x1400077d7
lea rcx, [rsp + 0x30]
call fcn.1400188a8
jmp 0x1400077d7
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.140018d44
mov rbx, rax
test rax, rax
jne 0x14000772c
lea rcx, str.LOADER:_failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.140001f30
xor eax, eax
jmp 0x1400077d7
mov edx, 0x5c
mov rcx, rbx
call fcn.14000cb60
mov rdi, rax
test rax, rax
je 0x14000778e
mov r9, rdi
mov qword [rsp + 0x20], rbx
sub r9, rbx
lea r8, str._.s
sar r9, 1
lea rcx, [rsp + 0x2030]
mov edx, 0x1000
call fcn.140001d50
xor edx, edx
lea rcx, [rsp + 0x2030]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 0x5c
lea rcx, [rdi + 2]
call fcn.14000cb60
mov rdi, rax
test rax, rax
jne 0x140007741
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400077d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400077d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rbx
lea r8, str.LOADER:_failed_to_create_runtime_tmpdir_path__ls__n
mov edx, eax
lea rcx, str.CreateDirectory
call fcn.140002310
mov rcx, rbx
call fcn.140015e70
xor eax, eax
jmp 0x1400077d7
invalid
invalid
Function at 0x140007800
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2280
call fcn.14000be10
sub rsp, rax
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x2270], rax
mov rbp, rcx
lea r8, [0x14002f890]
mov r9, rcx
mov ebx, 0x1000
mov edx, ebx
lea rcx, [rsp + 0x270]
call fcn.140001d50
mov edi, eax
cmp eax, ebx
jge 0x140007943
dec edi
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
sub ebx, edi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140007943
nop
movzx edx, word [rsp + 0x4c]
movzx ecx, word [rsp + 0x4e]
cmp dx, 0x2e
jne 0x1400078a7
test cx, cx
je 0x140007913
cmp dx, dx
jne 0x1400078a7
cmp cx, dx
jne 0x1400078a7
cmp word [rsp + 0x50], 0
je 0x140007913
movsxd rax, edi
lea rcx, [rsp + 0x270]
movsxd rdx, ebx
lea r9, [rsp + 0x4c]
lea r8, [0x14002f89c]
lea rcx, [rcx + rax*2]
call fcn.140001d50
invalid
Function at 0x140007ca0
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x2050
call fcn.14000be10
sub rsp, rax
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x2040], rax
xor r14d, r14d
mov rbp, rcx
cmp qword [rcx + 0x3068], r14
je 0x140007d3a
lea rcx, [0x14002f768]
call fcn.140007e70
mov rcx, qword [rbp + 0x3068]
mov r14, rax
call fcn.140007610
mov rdi, rax
test rax, rax
je 0x140007d28
mov rdx, rax
lea rcx, [0x14002f770]
call fcn.140019174
mov rcx, rdi
mov ebx, eax
call fcn.140015e70
test ebx, ebx
je 0x140007d3a
lea rcx, str.LOADER:_failed_to_set_the_TMP_environment_variable._n
call fcn.140001f30
mov rcx, r14
call fcn.140015e70
mov eax, 0xffffffff
jmp 0x140007e45
lea rdx, [rsp + 0x40]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
mov r9d, eax
lea r8, str._MEI_d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140008760
xor ebx, ebx
mov esi, 0xffffffff
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140019aa4
mov rdx, qword [rbp + 0x3038]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rdi
test eax, eax
jne 0x140007da7
call fcn.140015e70
invalid

Function at 0x140007e70
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4038
call fcn.14000be10
sub rsp, rax
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x4020], rax
xor r8d, r8d
xor edx, edx
call fcn.140008950
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffe
ja 0x140007f02
mov r8d, 0x1000
lea rdx, [rsp + 0x2020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0xffe
ja 0x140007f02
xor r8d, r8d
lea rcx, [rsp + 0x2020]
xor edx, edx
call fcn.140008a00
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000bb10
add rsp, 0x4038
ret
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000bb10
add rsp, 0x4038
ret
Function at 0x14001aaa4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001a8a0

Function at 0x14001c3b4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140044a40]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001c40b
cmp word [rdx], r13w
jne 0x14001c40b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001c410
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001c535
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001c556
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001c449
mov rdx, r9
mov word [rbx], cx
jmp 0x14001c470
cmp r9, r8
jae 0x14001c480
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001c42a
jmp 0x14001c535
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001c52a
cmp dword [rsp + 0x80], esi
je 0x14001c52a
lea r8, [0x140044a40]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001c502
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001c4d2
mov word [rbx], r13w
jmp 0x14001c532
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001c4df
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001c532
cmp word [rsp + 0x70], r13w
jne 0x14001c50f
cmp rbx, r14
je 0x14001c4cc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001d184
cmp word [rsp + 0x70], r13w
je 0x14001c535
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
lea r8, [0x140044a40]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001c52f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001c535
Function at 0x14001e35c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001e372
mov al, 1
jmp 0x14001e3d2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001e383
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001e3d0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019658
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001e3d0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001e3d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001e3d0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001e3d2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400219ac
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400219f6
call fcn.140015e28
mov dword [rax], 0xf
call fcn.140015e48
mov dword [rax], 0xd
call fcn.14001b824
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000bb10
add rsp, 0x30
pop rbx
xor ebx, ebx
test ecx, ecx
jne 0x140021a01
lea eax, [rbx + 1]
jmp 0x1400219e3
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400219e1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400219e3
Function at 0x140022027
Capabilities:
Set environment variable

Disassembly:
ret