joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000523c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
sub rsp, 0x40
mov esi, dword [rsp + 0x88]
lea eax, [rdx - 0x2fd2]
xor esi, 0x2f3a
mov dword [rsp + 0x60], eax
mov edi, ecx
mov dword [rsp + 0x88], esi
xor edi, 0x8ec
lea ebx, [r9 + 0x8cc]
mov dword [rsp + 0x30], ebx
lea r8d, [rdx - 0x2a3]
mov dword [rsp + 0x34], edi
cmp eax, edi
jge 0x1800052b3
mov rax, qword [rsp + 0x80]
mov rdx, qword [section..data]
mov ecx, dword [rax + 0x1c]
mov eax, dword [rdx + 0x3c]
add ecx, 0xab835
imul eax, ecx
mov dword [rdx + 0x3c], eax
jmp 0x18000535d
mov eax, dword [0x1800e80a4]
add eax, 0xffffda3d
cmp ebx, eax
jb 0x18000535d
mov ebp, edi
mov edi, dword [rsp + 0x60]
or ebp, 0x25c3
lea esi, [rdi + rbx]
xor esi, 0x1fba
mov rax, qword [rsp + 0x80]
mov r9d, esi
mov ecx, dword [0x1800e8050]
mov r8d, dword [0x1800e804c]
sub r8d, dword [0x1800e8068]
sub ecx, dword [rax + 0x4c]
mov rax, qword [section..data]
sub ecx, 0x2a4d
mov edx, dword [rax + 0x20]
mov eax, ebp
xor eax, dword [0x1800e80e8]
mov dword [rsp + 0x28], eax
lea rax, [0x1800e8010]
imul edx, edi
mov qword [rsp + 0x20], rax
or edx, 0x2b45
call fcn.18000523c
mov ecx, dword [0x1800e80a4]
add ebx, 3
add ecx, 0xffffda3d
mov r8d, eax
cmp ebx, ecx
jae 0x1800052db
mov ebx, dword [rsp + 0x30]
mov edi, dword [rsp + 0x34]
mov esi, dword [rsp + 0x88]
mov r9d, dword [rsp + 0x78]
mov ecx, ebx
xor ecx, 0x1acf
cmp r8d, ecx
jge 0x180005391
lea eax, [r9 + 0x1140]
cmp esi, eax
jg 0x180005391
xor ebx, 0xbdc
cmp esi, ebx
je 0x180005391
mov rcx, qword [section..data]
mov eax, dword [rcx + 0x50]
xor eax, 0xdd994
add dword [rcx + 0x1c], eax
lea eax, [rdi + 0x592]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005a90
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 0x140005ab8
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 0x140005ade
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140005ae0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140005b39
test ecx, ecx
jle 0x140005b19
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 0x140005b39
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140005b39
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 0x140005b60
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 0x140005b82
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140005b98
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 0x140005bb4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005bb6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005bf2
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 0x140005c8e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140005c2d
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 0x140005c6e
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 0x140005c8e
cmp rbx, rax
ja 0x140005c40
test rbx, rbx
je 0x140005c8e
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 0x1400060f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000611d
xor eax, eax
jmp 0x140006289
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140006157
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140006157
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 0x140006289
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000627c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000619a
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 0x1400061c5
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 0x140006281
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 0x140006234
sub eax, 1
je 0x140006234
cmp eax, 2
jne 0x14000627c
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 0x140006281
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140006262
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 0x14000627c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140006281
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140017420
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400078c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140007993
cmp byte [rcx + 0x71], 0
je 0x140007993
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000798f
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 0x140007954
sub eax, 1
je 0x140007958
cmp eax, 2
jne 0x14000798f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140017420
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140007986
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 0x14000798f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000793c
xor al, al
jmp 0x14000793c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140017420
add rsp, 0x60
pop rbx
ret
Function at 0x140016e3c
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 0x140016e76
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140016e7b
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 0x140016ec4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14001a650]
cmp byte [rcx + rax], 0
je 0x140016ec4
dec r8
sub rdx, 1
jne 0x140016eaa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140017e10
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.14000bb70
sub rsp, rax
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rsi, rdx
xor edi, edi
lea rdx, [0x14002b874]
call fcn.140003f70
mov rbx, rax
test rax, rax
je 0x140007462
lea rdx, [0x14002b96c]
mov rcx, rsi
call fcn.140003f70
mov rsi, rax
mov rcx, rbx
test rax, rax
jne 0x14000746c
call fcn.14000f36c
mov eax, 0xffffffff
jmp 0x140007501
call fcn.14000f404
test eax, eax
jne 0x1400074ef
nop word [rax + rax]
mov r9, rbx
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14000f6bc
test rax, rax
je 0x1400074d6
mov r9, rsi
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.14000fdfc
test rax, rax
je 0x1400074d1
mov rcx, rsi
call fcn.14000f430
test eax, eax
jne 0x1400074d1
mov rcx, rbx
call fcn.14000f404
test eax, eax
je 0x140007480
jmp 0x1400074ef
mov rcx, rsi
jmp 0x1400074e5
mov rcx, rbx
call fcn.14000f430
test eax, eax
je 0x1400074ef
mov rcx, rbx
call fcn.140016628
mov edi, 0xffffffff
mov rcx, rbx
call fcn.14000f36c
mov rcx, rsi
call fcn.14000f36c
mov eax, edi
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000b870
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140007530
Capabilities:
Create directory

Disassembly:
push rdi
push r14
mov eax, 0x3058
call fcn.14000bb70
sub rsp, rax
mov rax, qword [0x14003e040]
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 0x140007560
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], 0
jne 0x140007571
inc rax
mov qword [rsp + 0x3050], rbx
add rax, rcx
mov qword [rsp + 0x3048], rbp
mov qword [rsp + 0x3040], rsi
cmp rax, 0x1000
jae 0x140007666
mov r9, rdx
mov dword [rsp + 0x20], 0x5c
mov edx, 0x1000
lea r8, str._s_c
lea rcx, [rsp + 0x30]
call fcn.140001bf0
mov edx, 0x5c
movsxd rbp, eax
mov rcx, rdi
call fcn.14000c730
mov rbx, rax
test rax, rax
je 0x140007662
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, [0x14002d36c]
mov rdx, rsi
mov rcx, rbp
call fcn.140001bf0
lea rcx, [rsp + 0x30]
call fcn.140003f10
test eax, eax
jne 0x14000764c
mov r8d, 0x1000
lea rdx, [rsp + 0x1030]
lea rcx, [rsp + 0x30]
call fcn.1400086b0
mov rdx, qword [r14 + 0x3038]
lea rcx, [rsp + 0x1030]
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x140007666
lea rcx, [rbx + 1]
mov edx, 0x5c
call fcn.14000c730
mov rbx, rax
test rax, rax
jne 0x1400075f0
xor eax, eax
jmp 0x14000766b
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.14000b870
add rsp, 0x3058
pop r14
pop rdi
ret
Function at 0x1400077d0
Capabilities:
Create directory
Get disk information
Query environment variable

Disassembly:
push rdi
mov eax, 0x4040
call fcn.14000bb70
sub rsp, rax
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x4030], rax
xor r8d, r8d
xor edx, edx
call fcn.1400086b0
mov rdi, rax
test rax, rax
jne 0x140007816
lea rcx, str.LOADER:_failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.1400026c0
xor eax, eax
jmp 0x140007997
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.14001415c
test ebx, ebx
jne 0x140007853
lea rcx, str.LOADER:_failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.1400026c0
xor eax, eax
jmp 0x14000798f
lea rcx, [rsp + 0x30]
call fcn.140008520
test eax, eax
je 0x1400078bf
cmp word [rsp + 0x34], 0x5c
je 0x140007885
lea rcx, [rsp + 0x30]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140007872
mov eax, dword [0x14002d490]
mov dword [rcx], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
jg 0x1400078b0
mov r8d, eax
lea rdx, [rsp + 0x30]
lea rcx, str.LOADER:_runtime_tmpdir_points_to_non_existent_drive__ls__type:__d___n
call fcn.1400026c0
xor eax, eax
jmp 0x14000798f
lea rcx, [rsp + 0x30]
call fcn.140016c7c
jmp 0x14000798f
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.140017118
mov rbx, rax
test rax, rax
jne 0x1400078ec
lea rcx, str.LOADER:_failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.1400026c0
xor eax, eax
jmp 0x14000798f
mov edx, 0x5c
mov rcx, rbx
call fcn.14000c8f0
mov rdi, rax
test rax, rax
je 0x14000794e
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.140002590
xor edx, edx
lea rcx, [rsp + 0x2030]
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov edx, 0x5c
lea rcx, [rdi + 2]
call fcn.14000c8f0
mov rdi, rax
test rax, rax
jne 0x140007901
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x14000798c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x14000798c
mov r8, rbx
lea rdx, str.LOADER:_failed_to_create_runtime_tmpdir_path__ls__n
lea rcx, str.CreateDirectory
call fcn.1400029e0
mov rcx, rbx
call fcn.14001415c
xor eax, eax
jmp 0x14000798f
mov rax, rbx
mov rbx, qword [rsp + 0x4058]
mov rcx, qword [rsp + 0x4030]
xor rcx, rsp
call fcn.14000b870
add rsp, 0x4040
pop rdi
ret
Function at 0x1400079b0
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.14000bb70
sub rsp, rax
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x2270], rax
mov rbp, rcx
lea r8, [0x14002d780]
mov r9, rcx
mov ebx, 0x1000
mov edx, ebx
lea rcx, [rsp + 0x270]
call fcn.140002590
mov edi, eax
cmp eax, ebx
jge 0x140007af3
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 0x140007af3
nop
movzx edx, word [rsp + 0x4c]
movzx ecx, word [rsp + 0x4e]
cmp dx, 0x2e
jne 0x140007a57
test cx, cx
je 0x140007ac3
cmp dx, dx
jne 0x140007a57
cmp cx, dx
jne 0x140007a57
cmp word [rsp + 0x50], 0
je 0x140007ac3
movsxd rax, edi
lea rcx, [rsp + 0x270]
movsxd rdx, ebx
lea r9, [rsp + 0x4c]
lea r8, [0x14002d78c]
lea rcx, [rcx + rax*2]
call fcn.140002590
cmp eax, ebx
jge 0x140007ac3
mov eax, dword [rsp + 0x20]
test al, 0x10
je 0x140007ab5
bt eax, 0xa
jae 0x140007aa6
cmp dword [rsp + 0x44], 0xa000000c
jne 0x140007aa6
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x140007ac3
lea rcx, [rsp + 0x270]
call fcn.1400079b0
jmp 0x140007ac3
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 0x140007a30
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
jmp 0x140007af8
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2270]
xor rcx, rsp
call fcn.14000b870
lea r11, [rsp + 0x2280]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, 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.14000bb70
sub rsp, rax
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x2040], rax
xor r14d, r14d
mov rbp, rcx
cmp qword [rcx + 0x3040], r14
je 0x140007cda
lea rcx, [0x14002d658]
call fcn.140007e10
mov rcx, qword [rbp + 0x3040]
mov r14, rax
call fcn.1400077d0
mov rdi, rax
test rax, rax
je 0x140007cc8
mov rdx, rax
lea rcx, [0x14002d660]
call fcn.140017548
mov rcx, rdi
mov ebx, eax
call fcn.14001415c
test ebx, ebx
je 0x140007cda
lea rcx, str.LOADER:_failed_to_set_the_TMP_environment_variable._n
call fcn.1400026c0
mov rcx, r14
call fcn.14001415c
mov 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.140002530
xor ebx, ebx
mov esi, 0xffffffff
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140017e80
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.14001415c
inc ebx
cmp ebx, 5
jl 0x140007d10
jmp 0x140007d76
lea rdx, [rbp + 0x2022]
mov r8d, 0x1000
call fcn.140008760
test rax, rax
jne 0x140007d6c
lea rcx, str.LOADER:_length_of_teporary_directory_path_exceeds_maximum_path_length__n
call fcn.1400026c0
jmp 0x140007d6e
xor esi, esi
mov rcx, rdi
call fcn.14001415c
cmp qword [rbp + 0x3040], 0
je 0x140007de3
xor r8d, r8d
lea rcx, [0x14002d658]
xor edx, edx
call fcn.1400086b0
test r14, r14
je 0x140007dc9
xor r8d, r8d
xor edx, edx
mov rcx, r14
mov rdi, rax
call fcn.1400086b0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140017548
mov rcx, rdi
call fcn.14001415c
mov rcx, rbx
call fcn.14001415c
mov rcx, r14
jmp 0x140007dde
lea rdx, [0x14002d374]
mov rcx, rax
mov rbx, rax
call fcn.140017548
mov rcx, rbx
call fcn.14001415c
mov eax, esi
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.14000b870
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.14000bb70
sub rsp, rax
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x4020], rax
xor r8d, r8d
xor edx, edx
call fcn.1400086b0
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffe
ja 0x140007ea2
mov r8d, 0x1000
lea rdx, [rsp + 0x2020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0xffe
ja 0x140007ea2
xor r8d, r8d
lea rcx, [rsp + 0x2020]
xor edx, edx
call fcn.140008760
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000b870
add rsp, 0x4038
ret
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000b870
add rsp, 0x4038
ret
Function at 0x140007fc0
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.14000bb70
sub rsp, rax
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x2100], rax
add rcx, 0x10
lea rdx, [rsp + 0x100]
mov r8d, 0x1000
call fcn.1400086b0
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.140014700
mov rcx, rax
call fcn.14001978c
mov ecx, eax
call fcn.140017a2c
cmp rax, 0xffffffffffffffff
mov ecx, edi
cmove rax, rbx
mov qword [rsp + 0xe0], rax
call fcn.140014700
mov rcx, rax
call fcn.14001978c
mov ecx, eax
call fcn.140017a2c
cmp rax, 0xffffffffffffffff
mov ecx, 2
cmove rax, rbx
mov qword [rsp + 0xe8], rax
call fcn.140014700
mov rcx, rax
call fcn.14001978c
mov ecx, eax
call fcn.140017a2c
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 0x14000813f
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 0x140008157
lea rdx, str.Failed_to_create_child_process__n
lea rcx, [0x14002d7e8]
call fcn.1400029e0
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.14000b870
mov rbx, qword [rsp + 0x2128]
add rsp, 0x2110
pop rdi
ret