joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004878
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x870
mov rax, qword [0x140029038]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov esi, r9d
mov edi, ecx
cmp ecx, 0x80000003
jne 0x1400048d0
xor eax, eax
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.140005580
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x802
call fcn.140006840
mov rbx, qword [0x14002b9c8]
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.14000189c
mov r9, qword [rsp + 0x40]
lea rax, str.baselogging.cc
mov dword [rsp + 0x38], esi
lea rdx, str.Exception__x_in__s__s__u_r_n_r_n_hs:_d_r_n
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x50]
and dword [rsp + 0x28], 0
mov r8d, edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140004948
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rsp + 0x50]
call fcn.14000498c
mov r9d, 0x250012
lea r8, str.Exception
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
sub eax, 3
je 0x140004981
cmp eax, 1
jne 0x140004977
int3
mov eax, 1
jmp 0x1400048ab
or ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x14000498c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140004a19
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [rbx + 1]
mov ecx, 0x2002
movsxd rdi, eax
add rdi, rdi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400049ee
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.140006190
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rbx
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
jne 0x140004a13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140004bdc
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.SetDefaultDllDirectories
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004c0f
mov ecx, 0x800
call rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rsp + 0x30]
mov rbx, rax
call fcn.1400023cc
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140002568
mov ebx, eax
test eax, eax
js 0x140004cce
lea rdx, str.user
lea rcx, [rsp + 0x20]
call fcn.140001aec
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140002a1c
mov rdx, qword [rsp + 0x20]
test al, al
sete dil
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140004c7e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, str.unregister
lea rcx, [rsp + 0x28]
call fcn.140001aec
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140002a1c
mov rdx, qword [rsp + 0x28]
test al, al
sete bl
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140004cc2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov dl, bl
mov cl, dil
call fcn.140004b18
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.1400024e4
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001305c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001308c
xor eax, eax
jmp 0x14001314f
mov rbp, rbx
cmp word [rax], si
je 0x1400130b1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140013098
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140013094
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140012fac
movsxd r14, eax
test eax, eax
jne 0x1400130ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140013085
mov rcx, r14
call fcn.140010e10
mov rdi, rax
test rax, rax
jne 0x140013108
xor ecx, ecx
call fcn.1400107e4
jmp 0x1400130e4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140012fac
test eax, eax
jne 0x140013139
mov rcx, rdi
call fcn.1400107e4
jmp 0x140013143
xor ecx, ecx
call fcn.1400107e4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140013044
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140012e70
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400182e0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400182f0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.14000ff50
jmp 0x14000123c
mov rax, qword [0x1400182f0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400182f0]
mov dword [rax], 1
mov rax, qword [0x140018330]
mov rdx, rax
mov rax, qword [0x140018320]
mov rcx, rax
call sub.ucrtbase.dll__initterm
jmp 0x14000123c
mov dword [0x14001d024], 1
mov rax, qword [0x1400182f0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140018310]
mov rdx, rax
mov rax, qword [0x140018300]
mov rcx, rax
call sub.ucrtbase.dll__initterm
mov rax, qword [0x1400182f0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400182e0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140018230]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140018230]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.14000e428
mov rax, qword [0x140018370]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400182d0]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.ucrtbase.dll__set_invalid_parameter_handler
call fcn.14000dc20
mov eax, dword [0x14001d004]
lea rdx, [0x14001d008]
mov ecx, eax
call fcn.14000147c
call fcn.14000d897
mov rax, qword [0x140018260]
mov rax, qword [rax]
mov rdx, qword [0x14001d010]
mov qword [rax], rdx
mov rcx, qword [0x14001d010]
mov rdx, qword [0x14001d008]
mov eax, dword [0x14001d004]
mov r8, rcx
mov ecx, eax
call fcn.14000d8c0
mov dword [0x14001d01c], eax
mov eax, dword [0x14001d020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14001d01c]
mov ecx, eax
call sub.ucrtbase.dll_exit
mov eax, dword [0x14001d024]
test eax, eax
jne 0x14000136c
call sub.ucrtbase.dll__cexit
mov eax, dword [0x14001d01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001b00
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
lea rcx, [rcx + 0x70]
lea rdx, [0x140012179]
call fcn.140004570
mov rbp, rax
test rax, rax
je 0x140001c30
mov edx, dword [r12 + 4]
xor r8d, r8d
add edx, dword [rbx]
mov rcx, rax
call sub.ucrtbase.dll_fseek
test eax, eax
js 0x140001c10
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.ucrtbase.dll_malloc
mov r13, rax
test rax, rax
je 0x140001c46
cmp byte [r12 + 0x10], 1
je 0x140001bf0
mov rdi, rax
test rsi, rsi
jne 0x140001b88
jmp 0x140001bd0
add rdi, rbx
sub rsi, rbx
je 0x140001bd0
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.ucrtbase.dll_fread
test rax, rax
jne 0x140001b80
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002fb0
mov rcx, r13
call sub.ucrtbase.dll_free
xor r13d, r13d
mov rcx, rbp
call sub.ucrtbase.dll_fclose
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r8d, r8d
mov r9, rax
mov rdx, r12
mov rcx, rbp
call fcn.140001710
test eax, eax
je 0x140001bd0
jmp 0x140001bc5
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002fb0
jmp 0x140001bcd
lea rdx, [r12 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r13d, r13d
call fcn.140002e30
jmp 0x140001bd8
mov r9d, esi
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140002fb0
jmp 0x140001bcd
Function at 0x140001d10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [rcx + 0x5074], 1
mov rsi, rcx
mov rbx, rdx
jne 0x140001f10
cmp byte [rdx + 0x11], 0x6e
je 0x140001e30
lea r13, [rdx + 0x12]
lea rcx, [rcx + 0x3070]
mov rdx, r13
call fcn.140008490
mov r12, rax
test rax, rax
je 0x140001f26
lea rcx, [rsi + 0x70]
lea rdx, [0x140012179]
call fcn.140004570
mov rbp, rax
test rax, rax
je 0x140001ea0
mov edx, dword [rbx + 4]
xor r8d, r8d
add edx, dword [rsi]
mov rcx, rax
call sub.ucrtbase.dll_fseek
test eax, eax
js 0x140001ef0
cmp byte [rbx + 0x10], 1
je 0x140001e50
mov ecx, 0x2000
call sub.ucrtbase.dll_malloc
mov rdi, rax
test rax, rax
je 0x140001f3e
mov esi, dword [rbx + 0xc]
test rsi, rsi
jne 0x140001de6
jmp 0x140001ec0
mov r9, r12
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call sub.ucrtbase.dll_fwrite
test rax, rax
je 0x140001ed0
sub rsi, rbx
je 0x140001ec0
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.ucrtbase.dll_fread
test rax, rax
jne 0x140001dc0
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002fb0
mov esi, 0xffffffff
mov rcx, rdi
call sub.ucrtbase.dll_free
jmp 0x140001e63
call fcn.140001c70
mov esi, eax
test eax, eax
js 0x140001e88
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r9d, r9d
mov r8, r12
mov rdx, rbx
mov rcx, rbp
call fcn.140001710
mov esi, eax
mov rcx, rbp
call sub.ucrtbase.dll_fclose
mov rcx, r12
call sub.ucrtbase.dll_fclose
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [rbx + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140002e30
jmp 0x140001e3b
mov rdx, r13
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov esi, 0xffffffff
call fcn.140002e30
jmp 0x140001e6b
xor esi, esi
jmp 0x140001e26
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
call fcn.140002fb0
jmp 0x140001e21
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002fb0
mov esi, 0xffffffff
jmp 0x140001e63
lea rcx, str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
call fcn.140002e30
mov esi, 0xffffffff
jmp 0x140001e3b
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
call fcn.140002fb0
jmp 0x140001f1c
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.140002fb0
jmp 0x140001f06
Function at 0x140001f60
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdx, [0x140012179]
mov rbx, rcx
lea rcx, [rcx + 0x70]
call fcn.140004570
mov rsi, rax
test rax, rax
je 0x140002161
mov rax, qword [0x140017db0]
lea rdx, [rsp + 0x28]
mov r8d, 8
mov rcx, rsi
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
shr rax, 0x18
add eax, 0xc
mov byte [rsp + 0x2b], al
call fcn.140008ab0
mov rdi, rax
test rax, rax
jne 0x140001fd8
mov edi, 0xffffffff
mov rcx, rsi
call sub.ucrtbase.dll_fclose
mov eax, edi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
xor r8d, r8d
mov edx, eax
mov rcx, rsi
call sub.ucrtbase.dll_fseek
test eax, eax
js 0x140002110
lea rcx, [rbx + 0x18]
mov r9, rsi
mov r8d, 1
mov edx, 0x58
call sub.ucrtbase.dll_fread
test rax, rax
je 0x140002130
mov eax, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x28]
add rdi, 0x58
xor r8d, r8d
mov dword [rbx + 0x5078], 0
mov edx, dword [rbx + 0x24]
bswap eax
bswap ecx
mov dword [rbx + 0x20], eax
mov eax, eax
mov dword [rbx + 0x28], ecx
mov ecx, dword [rbx + 0x2c]
sub rdi, rax
bswap edx
mov qword [rbx], rdi
bswap ecx
mov dword [rbx + 0x24], edx
add edx, edi
mov dword [rbx + 0x2c], ecx
mov dword [0x14001d0b0], ecx
mov rcx, rsi
call sub.ucrtbase.dll_fseek
movsxd rdi, dword [rbx + 0x28]
mov rcx, rdi
call sub.ucrtbase.dll_malloc
mov qword [rbx + 8], rax
mov rcx, rax
test rax, rax
je 0x14000216b
mov r9, rsi
mov r8d, 1
mov rdx, rdi
call sub.ucrtbase.dll_fread
test rax, rax
je 0x1400020f0
movsxd rax, dword [rbx + 0x28]
add rax, qword [rbx + 8]
mov rcx, rsi
mov qword [rbx + 0x10], rax
call sub.ucrtbase.dll_ferror
mov edi, eax
test eax, eax
jne 0x140002150
mov rax, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
cmp rax, r8
jae 0x140001fc0
nop word [rax + rax]
mov ecx, dword [rax + 4]
mov edx, dword [rax]
bswap ecx
mov dword [rax + 4], ecx
mov ecx, dword [rax + 8]
bswap edx
mov dword [rax], edx
movsxd rdx, edx
bswap ecx
mov dword [rax + 8], ecx
mov ecx, dword [rax + 0xc]
bswap ecx
mov dword [rax + 0xc], ecx
add rax, rdx
cmp rax, r8
jb 0x1400020c0
jmp 0x140001fc0
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.140002fb0
jmp 0x140001fbb
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.140002fb0
jmp 0x140001fbb
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.140002fb0
jmp 0x140001fbb
lea rcx, str.Error_on_file._n
call fcn.140002e30
jmp 0x140001fbb
mov edi, 0xffffffff
jmp 0x140001fc8
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.140002fb0
jmp 0x140001fbb
Function at 0x140007d30
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x4020
call fcn.14000ef50
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
lea rbx, [rsp + 0x20]
call fcn.140008fd0
mov r8d, 0x2000
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140007d78
xor eax, eax
add rsp, 0x4020
pop rbx
ret
lea rdx, [rsp + 0x2020]
mov r8d, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
xor r8d, r8d
mov rdx, rbx
call fcn.140008e00
mov rcx, rax
test rax, rax
je 0x140007d66
cmp byte [rax], 0
je 0x140007d66
call sub.ucrtbase.dll__strdup
add rsp, 0x4020
pop rbx
ret

Function at 0x140007e20
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.140008fd0
xor edx, edx
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
mov esi, eax
call sub.ucrtbase.dll_free
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140008160
Capabilities:
Delete directory

Disassembly:
push r15
mov eax, 0x44b8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000ef50
sub rsp, rax
mov r8d, 0x1000
lea rax, [rsp + 0x24a0]
mov rdx, rcx
lea r12, [rsp + 0x490]
mov rsi, rax
mov rcx, rax
mov qword [rsp + 0x28], rax
call fcn.140008fd0
mov rdx, rsi
mov rcx, r12
call sub.ucrtbase.dll_wcscpy
mov rcx, r12
call sub.ucrtbase.dll_wcslen
mov r13, rax
movzx eax, word [rsp + rax*2 + 0x48e]
cmp ax, 0x2f
je 0x1400081cc
cmp ax, 0x5c
jne 0x140008220
lea rdx, [0x1400144da]
mov rcx, r12
lea rbx, [rsp + 0x260]
call sub.ucrtbase.dll_wcscat
mov rdx, rbx
mov rcx, r12
call fcn.14000f7e0
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140008238
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ucrtbase.dll__wrmdir]
nop
add rsp, 0x44b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [0x1400144d6]
mov rcx, r12
add r13, 1
call sub.ucrtbase.dll_wcscat
jmp 0x1400081cc
lea rdi, [rsp + 0x30]
mov ecx, 0x46
mov rsi, rbx
mov rdx, r13
rep movsq qword [rdi], qword [rsi]
lea rbp, [rsp + 0x30]
mov rcx, r12
mov r8, rbp
mov r15, rbp
call fcn.1400082a0
jmp 0x14000827f
mov rdi, rbp
mov ecx, 0x46
mov rsi, rbx
mov r8, r15
rep movsq qword [rdi], qword [rsi]
mov rdx, r13
mov rcx, r12
mov rbp, r15
call fcn.1400082a0
mov rdx, rbx
mov rcx, r14
call fcn.14000f8c0
test eax, eax
je 0x140008260
mov rcx, r14
call qword [sym.imp.ucrtbase.dll__findclose]
jmp 0x1400081f7

Function at 0x1400082a0
Capabilities:
Delete directory
Delete file

Disassembly:
push rbp
mov eax, 0x1038
push rdi
push rsi
push rbx
call fcn.14000ef50
sub rsp, rax
lea rsi, [r8 + 0x24]
mov rbp, rcx
mov rdi, rdx
mov rbx, r8
lea rdx, [0x1400144de]
mov rcx, rsi
call sub.ucrtbase.dll_wcscmp
test eax, eax
jne 0x1400082e0
add rsp, 0x1038
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [0x1400144e2]
mov rcx, rsi
call sub.ucrtbase.dll_wcscmp
test eax, eax
je 0x1400082d1
xor eax, eax
mov rcx, rbp
mov rdx, rsi
mov word [rbp + rdi*2], ax
call sub.ucrtbase.dll_wcscat
mov rcx, rbp
test byte [rbx], 0x10
je 0x140008340
call fcn.1400092e0
test eax, eax
jne 0x140008368
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rbp
mov rcx, rbx
call fcn.140008e00
mov rcx, rbx
call fcn.140008160
jmp 0x1400082d1
mov rbx, qword [sym.imp.ucrtbase.dll__wremove]
call rbx
test eax, eax
je 0x1400082d1
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbp
call rbx
jmp 0x1400082d1
mov rcx, rbp
call qword [sym.imp.ucrtbase.dll__wrmdir]
jmp 0x1400082d1
Function at 0x1400085b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.14000ef50
sub rsp, rax
mov rdi, r8
mov rsi, rdx
lea rdx, [0x14001457c]
call fcn.140004570
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call fcn.140008490
mov rdi, rax
test rbx, rbx
je 0x1400086a9
test rax, rax
je 0x14000869c
lea rsi, [rsp + 0x20]
nop word [rax + rax]
mov rcx, rbx
call sub.ucrtbase.dll_feof
test eax, eax
jne 0x140008698
mov r8d, 0x1000
mov r9, rbx
mov edx, 1
mov rcx, rsi
call sub.ucrtbase.dll_fread
mov r8, rax
test rax, rax
jne 0x140008648
mov rcx, rbx
call sub.ucrtbase.dll_ferror
test eax, eax
je 0x140008600
mov rcx, rbx
call sub.ucrtbase.dll_clearerr
jmp 0x140008671
mov r9, rdi
mov edx, 1
mov rcx, rsi
call sub.ucrtbase.dll_fwrite
test rax, rax
je 0x140008669
mov rcx, rdi
call sub.ucrtbase.dll_ferror
test eax, eax
je 0x140008600
mov rcx, rdi
call sub.ucrtbase.dll_clearerr
mov esi, 0xffffffff
mov rcx, rbx
call sub.ucrtbase.dll_fclose
mov rcx, rdi
call sub.ucrtbase.dll_fclose
mov eax, esi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
xor esi, esi
jmp 0x140008676
test rbx, rbx
je 0x1400086a9
mov rcx, rbx
call sub.ucrtbase.dll_fclose
test rdi, rdi
je 0x1400086b6
mov rcx, rdi
call sub.ucrtbase.dll_fclose
mov esi, 0xffffffff
jmp 0x140008686
Function at 0x140008720
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push r12
mov eax, 0x2110
push rbp
push rdi
push rsi
push rbx
call fcn.14000ef50
sub rsp, rax
mov r8d, 0x1000
xor ebx, ebx
lea rsi, [rsp + 0x110]
mov rdx, rcx
lea rbp, [rsp + 0xa0]
mov dword [rsp + 0x5c], 0
mov rcx, rsi
call fcn.140008fd0
mov edx, 1
lea rcx, [0x140007bf0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, rbp
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
pxor xmm0, xmm0
mov eax, 1
xor ecx, ecx
movups xmmword [rsp + 0xa8], xmm0
mov r12, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call r12
mov rcx, rax
call sub.ucrtbase.dll__fileno
mov rdi, qword [sym.imp.ucrtbase.dll__get_osfhandle]
mov ecx, eax
call rdi
mov ecx, 1
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf0], rax
call r12
mov rcx, rax
call sub.ucrtbase.dll__fileno
mov ecx, eax
call rdi
mov ecx, 2
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf8], rax
call r12
mov rcx, rax
call sub.ucrtbase.dll__fileno
mov ecx, eax
call rdi
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov qword [rsp + 0x40], rbp
mov rcx, rsi
mov rdx, rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400088c8
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x80]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x5c]
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, str.Error_creating_child_process__n
lea rcx, str.CreateProcessW
call fcn.140002f10
mov eax, 0xffffffff
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140008ab0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
mov ecx, 0x2000
mov rbp, rdx
mov rdi, r8
call sub.ucrtbase.dll_malloc
mov rsi, rax
test rax, rax
je 0x140008ba0
xor edx, edx
mov r8d, 2
mov rcx, r12
call sub.ucrtbase.dll_fseek
test eax, eax
js 0x140008ba0
mov rcx, r12
call sub.ucrtbase.dll_ftell
movsxd rbx, eax
cmp rbx, rdi
jb 0x140008ba0
mov r15d, 1
sub r15, rdi
mov qword [rsp + 0x28], r15
mov r13d, 0x2000
cmp rbx, r13
cmovae r13, rbx
lea r14, [r13 - 0x2000]
sub rbx, r14
cmp rbx, rdi
jb 0x140008ba0
xor r8d, r8d
mov edx, r14d
mov rcx, r12
call sub.ucrtbase.dll_fseek
test eax, eax
js 0x140008ba0
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, rsi
call sub.ucrtbase.dll_fread
cmp rax, rbx
jne 0x140008ba0
mov rdx, qword [rsp + 0x28]
lea rbx, [rdx + rax]
jmp 0x140008b8a
lea r15, [rbx - 1]
mov r8, rdi
mov rdx, rbp
lea rcx, [rsi + r15]
call sub.ucrtbase.dll_memcmp
test eax, eax
je 0x140008bc0
mov rbx, r15
test rbx, rbx
jne 0x140008b70
lea rbx, [r14 + rdi - 1]
test r14, r14
jne 0x140008b19
nop dword [rax]
xor ebx, ebx
mov rcx, rsi
call sub.ucrtbase.dll_free
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [r13 + rbx - 0x2001]
jmp 0x140008ba2