joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002f10
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor r15d, r15d
lea rbp, [0x1400067b6]
mov ebx, r15d
mov rdi, rdx
nop dword [rax]
mov r14, qword [rdi + 0x10]
inc rbx
cmp qword [rdi + 0x18], 0xf
mov rsi, rdi
jbe 0x140002f64
mov rsi, qword [rdi]
cmp rbx, r14
jae 0x140002fc6
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x1400067b4]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rsp + rax + 0x50], 1
cmp rcx, rbp
jne 0x140002f90
lea rcx, [r14 + rsi]
add rbx, rsi
cmp rbx, rcx
jae 0x140002fc6
nop dword [rax]
movzx eax, byte [rbx]
cmp byte [rsp + rax + 0x50], r15b
jne 0x14000309c
inc rbx
cmp rbx, rcx
jb 0x140002fb0
mov rbx, 0xffffffffffffffff
cmp r14, rbx
mov qword [rsp + 0x38], r15
mov r8, rbx
mov qword [rsp + 0x40], r15
cmovb r8, r14
xorps xmm0, xmm0
cmp qword [rdi + 0x18], 0xf
mov rdx, rdi
movups xmmword [rsp + 0x28], xmm0
jbe 0x140002ff6
mov rdx, qword [rdi]
lea rcx, [rsp + 0x28]
call fcn.140001200
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
test eax, eax
je 0x140003026
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0x11
jne 0x1400030a4
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140003063
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000305e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400030e1
call fcn.140004974
cmp rbx, 0xffffffffffffffff
jne 0x140002f50
mov al, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400046d0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
sub rbx, rsi
jmp 0x140002fcd
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x1400030dd
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400030d8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400030e1
call fcn.140004974
xor al, al
jmp 0x14000306f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140003270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, rdx
mov rdi, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x14000329f
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140003498
test al, 0x10
je 0x140003498
mov rbp, qword [rdi + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, rbp
cmp rax, 1
jb 0x1400034bb
cmp qword [rdi + 0x18], 0xf
jbe 0x1400032de
mov rdi, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea r15, [rbp + 1]
mov esi, 0xf
lea rbx, [rsp + 0x20]
cmp r15, rsi
jbe 0x14000337c
mov rsi, r15
or rsi, 0xf
cmp rsi, rcx
jbe 0x14000333e
mov rsi, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400046f0
test rax, rax
je 0x140003421
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140003377
mov eax, 0x16
cmp rsi, rax
cmovb rsi, rax
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x140003366
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400034c1
jmp 0x14000331f
test rcx, rcx
je 0x140003375
call fcn.1400046f0
mov rbx, rax
jmp 0x140003377
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], rsi
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rbp], 0x5c
mov byte [rbx + r15], 0
mov r8, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 0xf
jbe 0x1400033ab
mov r14, qword [r14]
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.140001e30
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14000342d
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003428
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003428
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004974
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140003451
test al, 0x10
jne 0x140003451
mov bl, 1
jmp 0x140003453
xor bl, bl
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140003493
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000348e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000348e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004974
movzx eax, bl
jmp 0x14000349a
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400046d0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400011e0
int3
call fcn.140001140
int3
Function at 0x140003860
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 0x140003888
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 0x1400038ae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400038b0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003909
test ecx, ecx
jle 0x1400038e9
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 0x140003909
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003909
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 0x140003930
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 0x140003952
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140003968
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 0x140003984
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003986
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400039c2
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 0x140003a5e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400039fd
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 0x140003a3e
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 0x140003a5e
cmp rbx, rax
ja 0x140003a10
test rbx, rbx
je 0x140003a5e
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 0x140003ec0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140003eed
xor eax, eax
jmp 0x140004059
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003f27
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003f27
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 0x140004059
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000404c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003f6a
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 0x140003f95
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 0x140004051
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 0x140004004
sub eax, 1
je 0x140004004
cmp eax, 2
jne 0x14000404c
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 0x140004051
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004032
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 0x14000404c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004051
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400046d0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140004240
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004313
cmp byte [rcx + 0x71], 0
je 0x140004313
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000430f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400042d4
sub eax, 1
je 0x1400042d8
cmp eax, 2
jne 0x14000430f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400046d0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004306
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000430f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400042bc
xor al, al
jmp 0x1400042bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400046d0
add rsp, 0x60
pop rbx
ret

Function at 0x1400050f8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005142
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005142
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005142
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005142
cmp dword [rcx + 0x84], 0xe
jbe 0x140005142
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140005144
xor al, al
add rsp, 0x28
ret
Function at 0x1400055c0
Capabilities:
Create directory
Query environment variable

Disassembly:
push rdi
mov eax, 0x4030
call fcn.14000a080
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140006d20
mov rdi, rax
test rax, rax
jne 0x140005609
lea rcx, str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.140001c50
xor eax, eax
jmp 0x140005718
mov r8d, 0x1000
mov qword [rsp + 0x4048], rbx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov rcx, rdi
mov ebx, eax
call fcn.140014068
test ebx, ebx
jne 0x140005646
lea rcx, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.140001c50
xor eax, eax
jmp 0x140005710
lea rcx, [rsp + 0x20]
call fcn.1400068d0
test eax, eax
je 0x140005660
lea rcx, [rsp + 0x20]
call fcn.140015fd8
jmp 0x140005672
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.1400152e8
mov rbx, rax
test rax, rax
jne 0x14000568d
lea rcx, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.140001c50
xor eax, eax
jmp 0x140005710
xor edx, edx
lea rcx, [rsp + 0x2020]
mov r8d, 0x2000
call fcn.14000b7c0
mov edx, 0x5c
mov rcx, rbx
call fcn.14000b634
mov rdi, rax
test rax, rax
je 0x140005702
nop word [rax + rax]
mov r8, rdi
lea rcx, [rsp + 0x2020]
sub r8, rbx
mov rdx, rbx
sar r8, 1
inc r8
call fcn.14001605c
xor edx, edx
lea rcx, [rsp + 0x2020]
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov edx, 0x5c
lea rcx, [rdi + 2]
call fcn.14000b634
mov rdi, rax
test rax, rax
jne 0x1400056c0
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov rax, rbx
mov rbx, qword [rsp + 0x4048]
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000a050
add rsp, 0x4030
pop rdi
ret

Function at 0x140005740
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1030
call fcn.14000a080
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [0x14002a570]
call fcn.140002dc0
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call fcn.140005b80
xor edi, edi
mov rbx, rax
test rsi, rsi
je 0x140005833
mov rcx, rsi
test rax, rax
je 0x14000583b
call fcn.14000e5d4
test eax, eax
jne 0x14000581f
nop word [rax + rax]
mov r9, rsi
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14000e88c
test rax, rax
jne 0x1400057de
mov rcx, rsi
call fcn.14000e600
test eax, eax
je 0x140005804
mov rcx, rsi
jmp 0x140005815
mov r9, rbx
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.14000efcc
test rax, rax
je 0x140005812
mov rcx, rbx
call fcn.14000e600
test eax, eax
jne 0x140005812
mov rcx, rsi
call fcn.14000e5d4
test eax, eax
je 0x1400057b0
jmp 0x14000581f
mov rcx, rbx
call fcn.14001741c
mov edi, 0xffffffff
mov rcx, rsi
call fcn.14000e53c
mov rcx, rbx
call fcn.14000e53c
mov eax, edi
jmp 0x140005845
test rbx, rbx
je 0x140005840
mov rcx, rbx
call fcn.14000e53c
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000a050
add rsp, 0x1030
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400058c0
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
mov eax, 0x2060
call fcn.14000a080
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rbp, rdx
mov r14, rcx
test rdx, rdx
je 0x14000594b
lea rcx, [0x14002cb34]
call fcn.140005ad0
mov rcx, rbp
mov rsi, rax
call fcn.1400055c0
mov rdi, rax
test rax, rax
je 0x140005a1f
mov rdx, rax
lea rcx, [0x14002cb38]
call fcn.140016748
mov rcx, rdi
mov ebx, eax
call fcn.140014068
test ebx, ebx
je 0x140005950
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.140001c50
xor eax, eax
jmp 0x140005aa8
mov rsi, qword [rsp + 0x20]
lea rdx, [rsp + 0x50]
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 + 0x28]
call fcn.140006580
xor ebx, ebx
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.140017400
mov rcx, rax
mov rdi, rax
call fcn.1400069d0
test eax, eax
je 0x140005a26
mov rcx, rdi
call fcn.140014068
inc ebx
cmp ebx, 5
jl 0x140005980
test rbp, rbp
je 0x140005a1f
xor r8d, r8d
lea rdx, [0x14002cb34]
xor ecx, ecx
call fcn.140006d20
test rsi, rsi
je 0x140005a09
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.140006d20
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140016748
mov rcx, rdi
call fcn.140014068
mov rcx, rbx
call fcn.140014068
mov rcx, rsi
call fcn.140014068
xor eax, eax
jmp 0x140005aa8
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.140014068
xor eax, eax
jmp 0x140005aa8
mov r8d, 0x1000
mov rdx, rdi
mov rcx, r14
call fcn.140006e30
mov rcx, rdi
call fcn.140014068
test rbp, rbp
je 0x140005aa3
xor r8d, r8d
lea rdx, [0x14002cb34]
xor ecx, ecx
call fcn.140006d20
test rsi, rsi
je 0x140005a8d
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.140006d20
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140016748
mov rcx, rdi
call fcn.140014068
mov rcx, rbx
call fcn.140014068
mov rcx, rsi
jmp 0x140005a9e
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.140014068
mov eax, 1
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.14000a050
lea r11, [rsp + 0x2060]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140005ad0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4038
call fcn.14000a080
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140006d20
mov r8d, 0x2000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x140005b66
mov r8d, 0x2000
lea rdx, [rsp + 0x2020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
xor r8d, r8d
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.140006e30
test rax, rax
je 0x140005b66
cmp byte [rax], 0
je 0x140005b66
mov rcx, rax
call fcn.14001919c
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000a050
add rsp, 0x4038
ret
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000a050
add rsp, 0x4038
ret

Function at 0x140006070
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140006d20
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
mov rcx, rdi
mov ebx, eax
call fcn.140014068
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400060b0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2110
call fcn.14000a080
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2100], rax
mov rdx, rcx
xor edi, edi
lea rcx, [rsp + 0x100]
mov dword [rsp + 0x50], edi
mov r8d, 0x1000
call fcn.140006d20
mov ebx, 1
lea rcx, [0x1400055a0]
mov edx, ebx
call qword [sym.imp.KERNEL32.DLL_SetConsoleCtrlHandler]
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], ebx
call qword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
xorps xmm0, xmm0
mov qword [rsp + 0x98], rdi
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xcc], 0x101
mov word [rsp + 0xd0], bx
call fcn.140014240
mov rcx, rax
call fcn.140019214
mov ecx, eax
call fcn.140016f8c
mov ecx, ebx
mov qword [rsp + 0xe0], rax
call fcn.140014240
mov rcx, rax
call fcn.140019214
mov ecx, eax
call fcn.140016f8c
lea ecx, [rdi + 2]
mov qword [rsp + 0xe8], rax
call fcn.140014240
mov rcx, rax
call fcn.140019214
mov ecx, eax
call fcn.140016f8c
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], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x140006218
mov rcx, qword [rsp + 0x70]
mov 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 0x140006230
lea rdx, str.Error_creating_child_process__n
lea rcx, [0x14002cc38]
call fcn.140001cb0
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.14000a050
mov rbx, qword [rsp + 0x2128]
add rsp, 0x2110
pop rdi
ret
Function at 0x1400069d0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2070
call fcn.14000a080
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2060], rax
xor ebx, ebx
mov qword [rsp + 0x38], 0xffffffffffffffff
mov qword [rsp + 0x40], rbx
mov rdi, rcx
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x38]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140006aa1
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140006a58
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x140006aa1
mov edx, dword [rsp + 0x30]
mov ecx, 1
call fcn.140014060
mov rbx, rax
test rax, rax
je 0x140006aa1
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r8, rbx
mov edx, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140006aa1
mov rcx, qword [rbx]
lea rdx, [rsp + 0x40]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
mov rcx, rbx
call fcn.140014068
mov rcx, qword [rsp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x140006aba
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rsp + 0x40]
lea r9, str.S_1_3_4
test rbx, rbx
lea r8, str.D:_A__FA____s_
mov edx, 0x1000
lea rcx, [rsp + 0x60]
cmovne r9, rbx
call fcn.1400066d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xor r9d, r9d
mov dword [rsp + 0x48], 0x18
lea r8, [rsp + 0x50]
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x60]
lea edx, [r9 + 1]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x140006b2e
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
dec eax
jmp 0x140006b33
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2060]
xor rcx, rsp
call fcn.14000a050
mov rbx, qword [rsp + 0x2088]
add rsp, 0x2070
pop rdi
ret