joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b9280
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x1400b92b1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x1400b92cf
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 qword [rsp + 0x30], rbx
mov rbx, rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x1400b9319
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x1400b9391
mov rcx, rbp
call fcn.1400b8120
cmp rbx, 0xfff
jbe 0x1400b9371
nop word [rax + rax]
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x1400b93b2
cmp rbx, rax
ja 0x1400b9340
test rdi, rdi
je 0x1400b9391
mov r9, qword [rbp + 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 rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
sub rsi, rbx
jmp 0x1400b9394
Function at 0x1400b93c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x1400b93e8
add rsp, 0x20
pop r14
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 qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x1400b945c
test rax, rax
jle 0x1400b943c
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x1400b945c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400b945c
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret

Function at 0x1400b9970
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 0x1400b99aa
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400b99af
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 0x1400b99f8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400bb870]
cmp byte [rcx + rax], 0
je 0x1400b99f8
dec r8
sub rdx, 1
jne 0x1400b99de
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400ba4fc
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rcx
mov r13d, 0x2000
mov ecx, r13d
mov r15, r8
mov r14, rdx
xor esi, esi
call fcn.1400163c4
mov rbp, rax
test rax, rax
jne 0x140001097
call fcn.140016388
lea r9, [r14 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
mov edx, dword [rax]
call fcn.1400020c0
or eax, 0xffffffff
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
mov qword [rsp + 0x50], rbx
mov ebx, dword [r14 + 0xc]
test rbx, rbx
je 0x140001130
mov qword [rsp + 0x58], rdi
nop
cmp rbx, r13
mov rdi, rbx
mov r9, r12
mov r8d, 1
cmova rdi, r13
mov rcx, rbp
mov rdx, rdi
call fcn.14000deb0
cmp rax, 1
jb 0x14000110a
mov r9, r15
mov r8d, 1
mov rdx, rdi
mov rcx, rbp
call fcn.14000e5f0
cmp rax, 1
jb 0x1400010f5
sub rbx, rdi
jne 0x1400010b0
jmp 0x14000112b
call fcn.140016388
lea r8, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
jmp 0x14000111d
call fcn.140016388
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
mov edx, dword [rax]
lea r9, [r14 + 0x12]
call fcn.1400020c0
or esi, 0xffffffff
mov rdi, qword [rsp + 0x58]
mov rcx, rbp
call fcn.1400163b0
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x140001160
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x88
xor eax, eax
mov r14, r8
mov rbx, rdx
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x58], rax
lea rdx, str.1.3.1
mov qword [rsp + 0x60], rax
lea r8d, [rax + 0x58]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rsi, r9
mov ebp, eax
call fcn.14000afe0
mov r15d, eax
test eax, eax
je 0x1400011e3
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.140001ef0
or eax, 0xffffffff
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x2000
mov qword [rsp + 0x80], r13
call fcn.1400163c4
mov r13, rax
test rax, rax
jne 0x140001220
call fcn.140016388
lea r9, [rbx + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
mov edx, dword [rax]
call fcn.1400020c0
jmp 0x140001386
mov ecx, 0x2000
call fcn.1400163c4
mov rbp, rax
test rax, rax
jne 0x140001255
call fcn.140016388
lea r9, [rbx + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
mov edx, dword [rax]
call fcn.1400020c0
jmp 0x140001386
mov qword [rsp + 0xd0], r12
mov r12d, dword [rbx + 8]
mov eax, 0x2000
mov rbx, r12
cmp r12, rax
mov r9, rdi
mov edx, 1
mov rcx, r13
cmova rbx, rax
mov r8, rbx
call fcn.14000deb0
cmp rax, rbx
jne 0x14000137a
mov rcx, rdi
call fcn.14000dc24
test eax, eax
jne 0x14000137a
sub r12, rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
nop dword [rax + rax]
mov ebx, 0x2000
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x20]
call fcn.140009620
or r15d, 0xffffffff
mov edi, eax
cmp eax, 0xfffffffc
jl 0x1400012df
cmp eax, 0xfffffffe
jle 0x140001353
cmp eax, 2
je 0x14000134c
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x140001314
mov r9, r14
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.14000e5f0
cmp rax, rbx
jne 0x14000130f
mov rcx, r14
call fcn.14000dc24
test eax, eax
je 0x14000132a
mov edi, r15d
jmp 0x140001358
test rsi, rsi
je 0x14000132a
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14000c6e0
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x1400012b0
cmp edi, 1
je 0x140001375
test r12, r12
je 0x140001353
mov rdi, qword [rsp + 0xc0]
jmp 0x140001261
mov edi, 0xfffffffd
jmp 0x140001358
cmp edi, 1
je 0x140001375
mov rdx, qword [rsp + 0xc8]
lea rcx, str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
add rdx, 0x12
mov r8d, edi
call fcn.140001ef0
jmp 0x14000137e
xor r15d, r15d
jmp 0x14000137e
or r15d, 0xffffffff
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.14000ae30
mov rcx, r13
call fcn.1400163b0
mov rcx, rbp
call fcn.1400163b0
mov r13, qword [rsp + 0x80]
mov eax, r15d
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400013c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov ebx, dword [rdx + 0xc]
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test rbx, rbx
je 0x14000141c
mov r15d, 0x2000
nop
cmp rbx, r15
mov rdi, rbx
mov r9, rbp
mov r8d, 1
cmova rdi, r15
mov rcx, rsi
mov rdx, rdi
call fcn.14000deb0
cmp rax, 1
jb 0x140001437
add rsi, rdi
sub rbx, rdi
jne 0x1400013f0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
call fcn.140016388
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.1400020c0
or eax, 0xffffffff
jmp 0x14000141e
Function at 0x1400073f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.14000bae0
sub rsp, rax
mov rax, qword [0x140040020]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rsi, rdx
xor edi, edi
lea rdx, [0x14002e794]
call fcn.1400039d0
mov rbx, rax
test rax, rax
je 0x140007452
lea rdx, [0x14002e88c]
mov rcx, rsi
call fcn.1400039d0
mov rsi, rax
mov rcx, rbx
test rax, rax
jne 0x14000745a
call fcn.14000db60
or eax, 0xffffffff
jmp 0x1400074e2
call fcn.14000dbf8
test eax, eax
jne 0x1400074d0
mov r9, rbx
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14000deb0
test rax, rax
je 0x1400074b9
mov r9, rsi
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.14000e5f0
test rax, rax
je 0x1400074b4
mov rcx, rsi
call fcn.14000dc24
test eax, eax
jne 0x1400074b4
mov rcx, rbx
call fcn.14000dbf8
test eax, eax
je 0x140007463
jmp 0x1400074d0
mov rcx, rsi
jmp 0x1400074c8
mov rcx, rbx
call fcn.14000dc24
test eax, eax
je 0x1400074d0
mov rcx, rbx
call fcn.140018794
or edi, 0xffffffff
mov rcx, rbx
call fcn.14000db60
mov rcx, rsi
call fcn.14000db60
mov eax, edi
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000b8e0
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140007510
Capabilities:
Create directory

Disassembly:
push rdi
push r14
mov eax, 0x3058
call fcn.14000bae0
sub rsp, rax
mov rax, qword [0x140040020]
xor rax, rsp
mov qword [rsp + 0x3030], rax
mov r9, rdx
mov rdi, r8
or rdx, 0xffffffffffffffff
mov r14, rcx
inc rdx
cmp byte [r8 + rdx], 0
jne 0x140007540
or rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [r9 + rcx], 0
jne 0x140007550
inc rcx
add rcx, rdx
cmp rcx, 0x1000
jb 0x140007571
or eax, 0xffffffff
jmp 0x14000765c
mov qword [rsp + 0x3050], rbx
lea r8, str._s_c
mov qword [rsp + 0x3048], rbp
lea rcx, [rsp + 0x30]
mov edx, 0x1000
mov qword [rsp + 0x3040], rsi
mov dword [rsp + 0x20], 0x5c
call fcn.140001ae0
mov edx, 0x5c
movsxd rbp, eax
mov rcx, rdi
call fcn.14000ccd0
mov rbx, rax
test rax, rax
je 0x140007642
mov esi, 0x1000
sub rsi, rbp
lea rbp, [rsp + rbp + 0x30]
mov r9d, ebx
mov qword [rsp + 0x20], rdi
sub r9d, edi
lea r8, [0x14003034c]
mov rdx, rsi
mov rcx, rbp
call fcn.140001ae0
lea rcx, [rsp + 0x30]
call fcn.140003970
test eax, eax
jne 0x14000762c
mov r8d, 0x1000
lea rdx, [rsp + 0x1030]
lea rcx, [rsp + 0x30]
call fcn.1400087a0
mov rdx, qword [r14 + 0x3038]
lea rcx, [rsp + 0x1030]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140007677
lea rcx, [rbx + 1]
mov edx, 0x5c
call fcn.14000ccd0
mov rbx, rax
test rax, rax
jne 0x1400075d0
xor eax, eax
mov rbp, qword [rsp + 0x3048]
mov rbx, qword [rsp + 0x3050]
mov rsi, qword [rsp + 0x3040]
mov rcx, qword [rsp + 0x3030]
xor rcx, rsp
call fcn.14000b8e0
add rsp, 0x3058
pop r14
pop rdi
ret
or eax, 0xffffffff
jmp 0x140007644
Function at 0x140007680
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x20
mov r15, rcx
mov rsi, r8
mov ecx, 0x2000
mov rbp, rdx
xor r12d, r12d
call fcn.1400163c4
mov r14, rax
test rax, rax
je 0x14000777b
xor edx, edx
lea r8d, [r12 + 2]
mov rcx, r15
call fcn.14000e1e8
test eax, eax
js 0x14000777b
mov rcx, r15
mov qword [rsp + 0x40], rbx
call fcn.140018d44
mov rbx, rax
cmp rax, rsi
jb 0x140007776
mov qword [rsp + 0x48], rdi
nop dword [rax + rax]
cmp rbx, 0x2000
lea rdi, [rbx - 0x2000]
cmovb rdi, r12
sub rbx, rdi
cmp rbx, rsi
jb 0x140007771
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call fcn.14000e1e8
test eax, eax
js 0x140007771
mov r9, r15
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000deb0
cmp rax, rbx
jne 0x140007771
sub rbx, rsi
add rbx, 1
je 0x14000775c
nop dword [rax]
lea rcx, [r14 - 1]
mov r8, rsi
add rcx, rbx
mov rdx, rbp
call fcn.14000ceb0
test eax, eax
je 0x14000776a
sub rbx, 1
jne 0x140007740
lea rbx, [rsi - 1]
add rbx, rdi
test rdi, rdi
jne 0x1400076f0
jmp 0x140007771
lea r12, [rbx - 1]
add r12, rdi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rcx, r14
call fcn.1400163b0
mov rbp, qword [rsp + 0x50]
mov rax, r12
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400077a0
Capabilities:
Create directory
Get disk information
Query environment variable

Disassembly:
push rdi
mov eax, 0x4040
call fcn.14000bae0
sub rsp, rax
mov rax, qword [0x140040020]
xor rax, rsp
mov qword [rsp + 0x4030], rax
xor r8d, r8d
xor edx, edx
call fcn.1400087a0
mov rdi, rax
test rax, rax
jne 0x1400077e6
lea rcx, str.LOADER:_failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.140001fd0
xor eax, eax
jmp 0x14000796f
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.1400163b0
test ebx, ebx
jne 0x140007823
lea rcx, str.LOADER:_failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.140001fd0
xor eax, eax
jmp 0x140007967
lea rcx, [rsp + 0x30]
call fcn.140008610
test eax, eax
je 0x14000788f
cmp word [rsp + 0x34], 0x5c
je 0x140007855
lea rcx, [rsp + 0x30]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140007842
mov eax, dword [0x140030470]
mov dword [rcx], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jg 0x140007880
mov r8d, eax
lea rdx, [rsp + 0x30]
lea rcx, str.LOADER:_runtime_tmpdir_points_to_non_existent_drive__ls__type:__d___n
call fcn.140001fd0
xor eax, eax
jmp 0x140007967
lea rcx, [rsp + 0x30]
call fcn.140018de8
jmp 0x140007967
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.140019284
mov rbx, rax
test rax, rax
jne 0x1400078bc
lea rcx, str.LOADER:_failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.140001fd0
xor eax, eax
jmp 0x140007967
mov edx, 0x5c
mov rcx, rbx
call fcn.14000cf78
mov rdi, rax
test rax, rax
je 0x14000791e
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.140001df0
xor edx, edx
lea rcx, [rsp + 0x2030]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 0x5c
lea rcx, [rdi + 2]
call fcn.14000cf78
mov rdi, rax
test rax, rax
jne 0x1400078d1
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140007964
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140007964
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.140002300
mov rcx, rbx
call fcn.1400163b0
xor eax, eax
jmp 0x140007967
mov rax, rbx
mov rbx, qword [rsp + 0x4058]
mov rcx, qword [rsp + 0x4030]
xor rcx, rsp
call fcn.14000b8e0
add rsp, 0x4040
pop rdi
ret
Function at 0x140007990
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
mov eax, 0x2280
call fcn.14000bae0
sub rsp, rax
mov rax, qword [0x140040020]
xor rax, rsp
mov qword [rsp + 0x2270], rax
mov rbp, rcx
lea r8, [0x140030760]
mov r9, rcx
mov ebx, 0x1000
mov edx, ebx
lea rcx, [rsp + 0x270]
call fcn.140001df0
mov edi, eax
cmp eax, ebx
jl 0x1400079e9
or eax, 0xffffffff
jmp 0x140007b02
dec edi
mov qword [rsp + 0x2298], rsi
lea rdx, [rsp + 0x20]
sub ebx, edi
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140007a20
or eax, eax
jmp 0x140007afa
movzx ecx, word [rsp + 0x4c]
cmp cx, word [0x14003076c]
movzx eax, word [rsp + 0x4e]
jne 0x140007a40
cmp ax, word [0x14003076e]
je 0x140007acc
cmp cx, word [0x140030770]
jne 0x140007a60
cmp ax, word [0x140030772]
jne 0x140007a60
movzx eax, word [rsp + 0x50]
cmp ax, word [0x140030774]
je 0x140007acc
movsxd rax, edi
lea rcx, [rsp + 0x270]
movsxd rdx, ebx
lea r9, [rsp + 0x4c]
lea r8, [0x140030778]
lea rcx, [rcx + rax*2]
call fcn.140001df0
cmp eax, ebx
jge 0x140007acc
mov eax, dword [rsp + 0x20]
test al, 0x10
je 0x140007abe
bt eax, 0xa
jae 0x140007aaf
cmp dword [rsp + 0x44], 0xa000000c
jne 0x140007aaf
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140007acc
lea rcx, [rsp + 0x270]
call fcn.140007990
jmp 0x140007acc
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140007a20
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
dec eax
neg eax
sbb eax, eax
mov rsi, qword [rsp + 0x2298]
mov rcx, qword [rsp + 0x2270]
xor rcx, rsp
call fcn.14000b8e0
lea r11, [rsp + 0x2280]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140007c40
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.14000bae0
sub rsp, rax
mov rax, qword [0x140040020]
xor rax, rsp
mov qword [rsp + 0x2040], rax
xor r14d, r14d
mov rbp, rcx
cmp qword [rcx + 0x3040], r14
je 0x140007cd8
lea rcx, [0x140030638]
call fcn.140007e10
mov rcx, qword [rbp + 0x3040]
mov r14, rax
call fcn.1400077a0
mov rdi, rax
test rax, rax
je 0x140007cc8
mov rdx, rax
lea rcx, [0x140030640]
call fcn.1400196b4
mov rcx, rdi
mov ebx, eax
call fcn.1400163b0
test ebx, ebx
je 0x140007cd8
lea rcx, str.LOADER:_failed_to_set_the_TMP_environment_variable._n
call fcn.140001fd0
mov rcx, r14
call fcn.1400163b0
or eax, 0xffffffff
jmp 0x140007de5
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.1400085b0
xor ebx, ebx
or esi, 0xffffffff
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140019fe4
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 0x140007d47
call fcn.1400163b0
inc ebx
cmp ebx, 5
jl 0x140007d10
jmp 0x140007d76
lea rdx, [rbp + 0x2022]
mov r8d, 0x1000
call fcn.140008850
test rax, rax
jne 0x140007d6c
lea rcx, str.LOADER:_length_of_teporary_directory_path_exceeds_maximum_path_length__n
call fcn.140001fd0
jmp 0x140007d6e
xor esi, esi
mov rcx, rdi
call fcn.1400163b0
cmp qword [rbp + 0x3040], 0
je 0x140007de3
xor r8d, r8d
lea rcx, [0x140030638]
xor edx, edx
call fcn.1400087a0
test r14, r14
je 0x140007dc9
xor r8d, r8d
xor edx, edx
mov rcx, r14
mov rdi, rax
call fcn.1400087a0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.1400196b4
mov rcx, rdi
call fcn.1400163b0
mov rcx, rbx
call fcn.1400163b0
mov rcx, r14
jmp 0x140007dde
lea rdx, [0x140030354]
mov rcx, rax
mov rbx, rax
call fcn.1400196b4
mov rcx, rbx
call fcn.1400163b0
mov eax, esi
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.14000b8e0
lea r11, [rsp + 0x2050]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140007e10
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4038
call fcn.14000bae0
sub rsp, rax
mov rax, qword [0x140040020]
xor rax, rsp
mov qword [rsp + 0x4020], rax
xor r8d, r8d
xor edx, edx
call fcn.1400087a0
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, 0x1000
jb 0x140007e6e
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000b8e0
add rsp, 0x4038
ret
test eax, eax
je 0x140007e54
mov r8d, 0x1000
lea rdx, [rsp + 0x2020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x1000
jae 0x140007e54
test eax, eax
je 0x140007e54
xor r8d, r8d
lea rcx, [rsp + 0x2020]
xor edx, edx
call fcn.140008850
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000b8e0
add rsp, 0x4038
ret
Function at 0x140007fc0
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2110
call fcn.14000bae0
sub rsp, rax
mov rax, qword [0x140040020]
xor rax, rsp
mov qword [rsp + 0x2100], rax
add rcx, 0x10
lea rdx, [rsp + 0x100]
mov r8d, 0x1000
call fcn.1400087a0
mov edi, 1
lea rcx, [0x140007b30]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
xor ebx, ebx
mov dword [rsp + 0x58], 0x18
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], edi
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov qword [rsp + 0x98], rbx
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xcc], 0x101
mov word [rsp + 0xd0], di
call fcn.1400167a0
mov rcx, rax
call fcn.14001b94c
mov ecx, eax
call fcn.140019b98
cmp rax, 0xffffffffffffffff
mov ecx, edi
cmove rax, rbx
mov qword [rsp + 0xe0], rax
call fcn.1400167a0
mov rcx, rax
call fcn.14001b94c
mov ecx, eax
call fcn.140019b98
cmp rax, 0xffffffffffffffff
lea ecx, [rdi + 1]
cmove rax, rbx
mov qword [rsp + 0xe8], rax
call fcn.1400167a0
mov rcx, rax
call fcn.14001b94c
mov ecx, eax
call fcn.140019b98
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rsp + 0x100]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000813b
mov rcx, qword [rsp + 0x70]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x50]
jmp 0x140008159
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Failed_to_create_child_process__n
lea rcx, [0x1400307c8]
call fcn.140002300
or eax, 0xffffffff
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.14000b8e0
mov rbx, qword [rsp + 0x2128]
add rsp, 0x2110
pop rdi
ret