joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ab60
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x48ad9b
push rbp
mov rbp, rsp
sub rsp, 0x78
mov ebx, dword [rax + 0x2c]
test ebx, ebx
jne 0x48abfa
mov qword [rsp + 0x88], rax
lea rbx, [0x004f8200]
mov rcx, rax
lea rax, [0x005dc5a0]
call fcn.0047ff60
test cl, cl
jne 0x48abe3
mov rax, qword [rsp + 0x88]
call fcn.0048a620
mov ecx, 1
mov rdi, rax
mov rsi, rbx
lea rax, [rsp + 0x28]
lea rbx, [0x00529980]
call fcn.0044d940
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbx
call fcn.0048ade0
mov rcx, qword [rsp + 0x88]
xor edx, edx
jmp 0x48ac17
lea rdx, [0x004f5260]
cmp rax, rdx
jne 0x48ac05
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
ret
call fcn.00467240
add rsp, 0x78
pop rbp
ret
mov rbx, rdx
lea rcx, [0x004dea40]
call fcn.0040ac40
inc rdx
cmp rbx, rdx
jle 0x48ac61
mov rsi, qword [rax + rdx*8]
cmp qword [rsi + 0x30], rcx
jne 0x48ac14
lea rax, [0x005dc5a0]
lea rbx, [0x004f8200]
lea rdi, [0x004f5260]
nop dword [rax + rax]
call fcn.00480120
lea rdx, [0x004f5260]
cmp rax, rdx
jne 0x48ad8b
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
nop
ret
lea rcx, [0x004d6500]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x58], rcx
lea rax, [0x004e37c0]
call fcn.0040d460
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x58]
test byte [rcx], al
cmp dword [0x006216a0], 0
nop
je 0x48acbb
mov rbx, rax
lea rax, [0x004e37c0]
call fcn.004100c0
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx]
mov qword [rax], rdx
movups xmm0, xmmword [rcx + 8]
movups xmmword [rax + 8], xmm0
movups xmm0, xmmword [rcx + 0x18]
movups xmmword [rax + 0x18], xmm0
movups xmm0, xmmword [rcx + 0x28]
movups xmmword [rax + 0x28], xmm0
mov rbx, qword [rsp + 0x48]
xor ecx, ecx
xor edi, edi
xor esi, esi
mov r8d, esi
mov rax, qword [rsp + 0x50]
call fcn.004014c0
call fcn.00467300
mov rsi, qword [rsp + 0x70]
mov dword [rsi + 0x28], eax
mov dword [rsi + 0x2c], 0
mov rcx, qword [rsp + 0x88]
mov edx, dword [rcx + 0x10]
xor eax, eax
jmp 0x48ad22
imul edx, edx, 0x1000193
xor edx, 0x2a
mov eax, 1
test rax, rax
jle 0x48ad14
mov dword [rsi + 0x10], edx
cmp dword [0x006216a0], 0
je 0x48ad43
call fcn.0046dbc0
mov qword [r11], rcx
mov rdx, qword [rsi + 0x30]
mov qword [r11 + 8], rdx
mov qword [rsi + 0x30], rcx
lea rax, [0x005dc5a0]
lea rbx, [0x004f8200]
lea rdi, [0x004f5260]
nop dword [rax]
call fcn.00480120
lea rdx, [0x004f5260]
cmp rax, rdx
jne 0x48ad7c
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
ret
mov rbx, rdx
lea rcx, [0x004dea40]
call fcn.0040ac40
mov rbx, rdx
lea rcx, [0x004dea40]
call fcn.0040ac40
nop
mov qword [rsp + 8], rax
call fcn.0046bc80
mov rax, qword [rsp + 8]
jmp fcn.0048ab60
Function at 0x48fc00
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x49033f
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x48fc2d
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x48feb1
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x48fedd
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x0052d9c0]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004da1a0]
lea rbx, [0x0052b2f0]
call fcn.00465f40
inc rax
cmp rax, r8
jge 0x48ff02
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x48ff37
lea rdi, [0x004da220]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x48fc23
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x48ff1b
jmp 0x48fef0
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.0046bc80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.0048fc00

Function at 0x4904e0
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x4904f7
inc rax
cmp rax, 4
jge 0x49050f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x4904f4
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x490520
inc rax
cmp rax, 4
jge 0x49052e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x490557
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x49053b
jmp 0x49051d

Function at 0x493fc0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x49408a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00403860
xorps xmm15, xmm15
mov r14, qword [0x00621620]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x49406f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004da2a0]
xor ebx, ebx
mov rcx, rdx
call fcn.00467660
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.00494c00
inc rbx
cmp rcx, rbx
jae 0x49405e
mov edi, 1
lea rsi, [0x004da2a0]
call fcn.00467740
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x0052b620]
lea rsi, [0x0052a960]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046bc80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00493fc0
Function at 0x4a17e0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4a188c
push rbp
mov rbp, rsp
sub rsp, 0x40
mov byte [rsp + 0x60], cl
mov byte [rsp + 0x61], dil
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], cl
call fcn.00403860
xorps xmm15, xmm15
mov r14, qword [0x00621620]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
je 0x4a1853
lea rax, [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.0044dd80
movzx edx, byte [rsp + 0x61]
movzx esi, byte [rsp + 0x60]
xor ecx, ecx
jmp 0x4a1866
mov rax, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
inc rcx
cmp rbx, rcx
jle 0x4a1879
movzx edi, byte [rax + rcx]
cmp dil, sil
jne 0x4a1863
mov byte [rax + rcx], dl
jmp 0x4a1863
mov rcx, rbx
mov rbx, rax
xor eax, eax
call fcn.004680a0
add rsp, 0x40
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov byte [rsp + 0x18], cl
mov byte [rsp + 0x19], dil
nop
call fcn.0046bc80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
movzx ecx, byte [rsp + 0x18]
movzx edi, byte [rsp + 0x19]
jmp fcn.004a17e0

Function at 0x4bf3e0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov rdi, qword [rsp + 8]
mov r9, rdi
mov rsi, qword [rsp + 0x10]
mov r10, rsi
xor rax, rax
mov eax, 0x1505
xor r15, r15
mov r15b, 0xf1
cmp rsi, 0
je 0x4bf42e
xor byte [rdi], r15b
inc rdi
dec rsi
cmp rsi, 0
jne 0x4bf404
mov rdi, r9
mov rsi, r10
mov bl, byte [rdi]
inc rdi
imul rax, rax, 0x21
add rax, rbx
dec rsi
cmp rsi, 0
jne 0x4bf419
mov qword [rsp + 0x20], rax
ret

Function at 0x4bfa00
Capabilities:
Access peb ldr_data

Disassembly:
xor rax, rax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 8], rax
ret
Function at 0x1400019a0
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov r13, rdx
lea rcx, [rcx + 0x70]
lea rdx, [0x140023129]
call fcn.1400044d0
mov r12, rax
test rax, rax
je 0x140001ad0
mov edx, dword [r13 + 4]
xor r8d, r8d
add edx, dword [rbx]
mov rcx, rax
call fcn.1400190a0
test eax, eax
js 0x140001ab0
mov ebx, dword [r13 + 0xc]
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r14, rax
test rax, rax
je 0x140001ae5
cmp byte [r13 + 0x10], 1
je 0x140001a90
mov rdi, rax
mov ebp, 0x2000
test rbx, rbx
jne 0x140001a28
jmp 0x140001a71
add rdi, rsi
sub rbx, rsi
je 0x140001a71
cmp rbx, 0x2000
mov rsi, rbp
mov r9, r12
mov rcx, rdi
cmovbe rsi, rbx
mov r8d, 1
mov rdx, rsi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001a20
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002f50
mov rcx, r14
xor r14d, r14d
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rax, r14
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor r8d, r8d
mov r9, rax
mov rdx, r13
mov rcx, r12
call fcn.1400015a0
test eax, eax
je 0x140001a71
jmp 0x140001a66
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
xor r14d, r14d
lea rcx, str.fseek
call fcn.140002f50
jmp 0x140001a71
lea rdx, [r13 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r14d, r14d
call fcn.140002dc0
jmp 0x140001a79
mov r9d, ebx
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140002f50
jmp 0x140001a71
Function at 0x140001bc0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x5074], 1
mov r12, rcx
mov r15, rdx
jne 0x140001dc0
cmp byte [rdx + 0x11], 0x6e
je 0x140001cf8
lea rdi, [rdx + 0x12]
lea rcx, [rcx + 0x3070]
mov rdx, rdi
call fcn.140008650
mov r14, rax
test rax, rax
je 0x140001dd6
lea rcx, [r12 + 0x70]
lea rdx, [0x140023129]
call fcn.1400044d0
mov r13, rax
test rax, rax
je 0x140001d58
mov edx, dword [r15 + 4]
xor r8d, r8d
add edx, dword [r12]
mov rcx, rax
call fcn.1400190a0
test eax, eax
js 0x140001da0
cmp byte [r15 + 0x10], 1
je 0x140001d18
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x140001df6
mov ebx, dword [r15 + 0xc]
test rbx, rbx
je 0x140001d70
mov r15d, 0x2000
jmp 0x140001ca6
mov r9, r14
mov r8d, 1
mov rdx, rsi
mov rcx, r12
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140001d80
sub rbx, rsi
je 0x140001d70
cmp rbx, 0x2000
mov rsi, r15
mov r9, r13
mov rcx, r12
cmovbe rsi, rbx
mov r8d, 1
mov rdx, rsi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001c80
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov ebx, 0xffffffff
lea rcx, str.fread
call fcn.140002f50
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x140001d2b
call fcn.140001b10
mov ebx, eax
test eax, eax
js 0x140001d40
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
xor r9d, r9d
mov r8, r14
mov rdx, r15
mov rcx, r13
call fcn.1400015a0
mov ebx, eax
mov rcx, r13
call sub.msvcrt.dll_fclose
mov rcx, r14
call sub.msvcrt.dll_fclose
jmp 0x140001d03
lea rdx, [r15 + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140002dc0
jmp 0x140001d03
mov rdx, rdi
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov ebx, 0xffffffff
call fcn.140002dc0
jmp 0x140001d33
xor ebx, ebx
jmp 0x140001ce8
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
mov ebx, 0xffffffff
lea rcx, str.fwrite
call fcn.140002f50
jmp 0x140001ce8
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov ebx, 0xffffffff
lea rcx, str.fseek
call fcn.140002f50
jmp 0x140001d2b
lea rcx, str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
mov ebx, 0xffffffff
call fcn.140002dc0
jmp 0x140001d03
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
mov ebx, 0xffffffff
lea rcx, str.fopen
call fcn.140002f50
jmp 0x140001d03
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
or ebx, 0xffffffff
call fcn.140002f50
jmp 0x140001d2b
Function at 0x140001e20
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x30
lea rdx, [0x140023129]
mov rbx, rcx
lea rcx, [rcx + 0x70]
call fcn.1400044d0
mov r12, rax
test rax, rax
je 0x140002027
mov rax, qword [0x140029580]
lea rdx, [rsp + 0x28]
mov r8d, 8
mov rcx, r12
mov r13d, 0xffffffff
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
shr rax, 0x18
add eax, 0xc
mov byte [rsp + 0x2b], al
call fcn.140008cb0
mov rsi, rax
test rax, rax
jne 0x140001ea0
mov rcx, r12
call sub.msvcrt.dll_fclose
mov eax, r13d
add rsp, 0x30
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
xor r8d, r8d
mov edx, eax
mov rcx, r12
call fcn.1400190a0
test eax, eax
js 0x140001fd0
lea rcx, [rbx + 0x18]
mov r9, r12
mov r8d, 1
mov edx, 0x58
call sub.msvcrt.dll_fread
test rax, rax
je 0x140001ff0
mov eax, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x28]
add rsi, 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 rsi, rax
bswap edx
mov qword [rbx], rsi
bswap ecx
mov dword [rbx + 0x24], edx
add edx, esi
mov dword [rbx + 0x2c], ecx
mov dword [0x14002f050], ecx
mov rcx, r12
call fcn.1400190a0
movsxd r14, dword [rbx + 0x28]
mov rcx, r14
call sub.msvcrt.dll_malloc
mov qword [rbx + 8], rax
mov rcx, rax
test rax, rax
je 0x140002032
mov r9, r12
mov r8d, 1
mov rdx, r14
call sub.msvcrt.dll_fread
test rax, rax
je 0x140001fb0
movsxd rax, dword [rbx + 0x28]
add rax, qword [rbx + 8]
mov rcx, r12
mov qword [rbx + 0x10], rax
call sub.msvcrt.dll_ferror
mov r13d, eax
test eax, eax
jne 0x140002010
mov rax, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
cmp rax, r8
jae 0x140001e86
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 r8, rax
ja 0x140001f80
jmp 0x140001e86
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.140002f50
jmp 0x140001e86
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.140002f50
jmp 0x140001e86
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.140002f50
jmp 0x140001e86
lea rcx, str.Error_on_file._n
mov r13d, 0xffffffff
call fcn.140002dc0
jmp 0x140001e86
mov r13d, 0xffffffff
jmp 0x140001e8e
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.140002f50
jmp 0x140001e86
Function at 0x140007f20
Capabilities:
Query environment variable

Disassembly:
push r12
mov eax, 0x4020
call fcn.14000e730
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
lea r12, [rsp + 0x20]
call fcn.1400091b0
mov r8d, 0x2000
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140007f68
xor eax, eax
add rsp, 0x4020
pop r12
ret
lea rdx, [rsp + 0x2020]
mov r8d, 0x2000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
xor r8d, r8d
mov rdx, r12
call fcn.140008fe0
mov rcx, rax
test rax, rax
je 0x140007f57
cmp byte [rax], 0
je 0x140007f57
call sub.msvcrt.dll__strdup
add rsp, 0x4020
pop r12
ret

Function at 0x140008010
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.1400091b0
xor edx, edx
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, r12
mov r13d, eax
call sub.msvcrt.dll_free
mov eax, r13d
add rsp, 0x28
pop r12
pop r13
ret
Function at 0x140008320
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.14000e730
sub rsp, rax
mov r8d, 0x1000
lea rax, [rsp + 0x24a0]
mov rdx, rcx
lea rbx, [rsp + 0x490]
mov rsi, rax
mov rcx, rax
mov qword [rsp + 0x28], rax
call fcn.1400091b0
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_wcscpy
mov rcx, rbx
call sub.msvcrt.dll_wcslen
mov r13, rax
movzx eax, word [rsp + rax*2 + 0x48e]
cmp ax, 0x2f
je 0x14000838c
cmp ax, 0x5c
jne 0x1400083e0
lea rdx, [0x14002557a]
mov rcx, rbx
lea rbp, [rsp + 0x260]
call sub.msvcrt.dll_wcscat
mov rdx, rbp
mov rcx, rbx
call fcn.140018cc0
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400083f8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.msvcrt.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, [0x140025576]
mov rcx, rbx
add r13, 1
call sub.msvcrt.dll_wcscat
jmp 0x14000838c
lea rdi, [rsp + 0x30]
mov ecx, 0x46
mov rsi, rbp
mov rdx, r13
rep movsq qword [rdi], qword [rsi]
lea r12, [rsp + 0x30]
mov rcx, rbx
mov r8, r12
mov r15, r12
call fcn.140008460
jmp 0x14000843f
mov rdi, r12
mov ecx, 0x46
mov rsi, rbp
mov r8, r15
rep movsq qword [rdi], qword [rsi]
mov rdx, r13
mov rcx, rbx
mov r12, r15
call fcn.140008460
mov rdx, rbp
mov rcx, r14
call fcn.140018d90
test eax, eax
je 0x140008420
mov rcx, r14
call qword [sym.imp.msvcrt.dll__findclose]
jmp 0x1400083b7

Function at 0x140008460
Capabilities:
Delete directory
Delete file

Disassembly:
push r13
mov eax, 0x1038
push r12
push rsi
push rbx
call fcn.14000e730
sub rsp, rax
lea r12, [r8 + 0x24]
mov r13, rcx
mov rsi, rdx
mov rbx, r8
lea rdx, [0x14002557e]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1400084a8
add rsp, 0x1038
pop rbx
pop rsi
pop r12
pop r13
ret
lea rdx, [0x140025582]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140008493
xor eax, eax
mov rcx, r13
mov rdx, r12
mov word [r13 + rsi*2], ax
call sub.msvcrt.dll_wcscat
mov rcx, r13
test byte [rbx], 0x10
je 0x140008500
call fcn.1400094d0
test eax, eax
jne 0x140008528
lea r12, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, r13
mov rcx, r12
call fcn.140008fe0
mov rcx, r12
call fcn.140008320
jmp 0x140008493
mov rbx, qword [sym.imp.msvcrt.dll__wremove]
call rbx
test eax, eax
je 0x140008493
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r13
call rbx
jmp 0x140008493
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x140008493
Function at 0x140008780
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r14
mov eax, 0x1028
push r13
push r12
push rbx
call fcn.14000e730
sub rsp, rax
mov r13, rdx
mov r14, r8
lea rdx, [0x14002561c]
call fcn.1400044d0
mov rcx, r13
mov rdx, r14
mov r12, rax
call fcn.140008650
mov r13, rax
test r12, r12
je 0x14000888a
test rax, rax
je 0x14000887d
lea rbx, [rsp + 0x20]
nop
mov rcx, r12
call sub.msvcrt.dll_feof
test eax, eax
jne 0x140008878
mov r8d, 0x1000
mov r9, r12
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fread
mov r8, rax
test rax, rax
jne 0x140008820
mov rcx, r12
call sub.msvcrt.dll_ferror
test eax, eax
je 0x1400087d0
mov rcx, r12
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x14000884f
mov r9, r13
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140008841
mov rcx, r13
call sub.msvcrt.dll_ferror
test eax, eax
je 0x1400087d0
mov rcx, r13
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rcx, r13
call sub.msvcrt.dll_fclose
mov eax, r14d
add rsp, 0x1028
pop rbx
pop r12
pop r13
pop r14
ret
xor r14d, r14d
jmp 0x14000884f
test r12, r12
je 0x14000888a
mov rcx, r12
call sub.msvcrt.dll_fclose
mov r14d, 0xffffffff
test r13, r13
jne 0x140008857
jmp 0x14000885f
Function at 0x140008900
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.14000e730
sub rsp, rax
mov r8d, 0x1000
xor ebx, ebx
lea r12, [rsp + 0x110]
mov rdx, rcx
lea rdi, [rsp + 0xa0]
mov dword [rsp + 0x5c], 0
mov rcx, r12
call fcn.1400091b0
mov edx, 1
lea rcx, [0x140007dd0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, rdi
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov rbp, qword [fcn.140020e10]
xor ecx, ecx
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov rsi, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call rsi
mov ecx, 1
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf0], rax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rsi
mov ecx, 2
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf8], rax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rsi
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], rdi
mov rcx, r12
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 0x140008ab0
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.140002ea0
mov eax, 0xffffffff
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140008cb0
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 rdi, rcx
mov ecx, 0x2000
mov rsi, rdx
mov rbx, r8
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x140008da0
xor edx, edx
mov r8d, 2
mov rcx, rdi
call fcn.1400190a0
test eax, eax
js 0x140008da0
mov rcx, rdi
call fcn.140019150
movsxd r8, eax
cmp r8, rbx
jb 0x140008da0
mov r13d, 1
sub r13, rbx
mov qword [rsp + 0x28], r13
cmp r8, 0x2000
mov r14d, 0x2000
cmovae r14, r8
lea rbp, [r14 - 0x2000]
sub r8, rbp
mov r15, r8
cmp rbx, r8
ja 0x140008da0
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.1400190a0
test eax, eax
js 0x140008da0
mov r9, rdi
mov r8, r15
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fread
cmp rax, r15
jne 0x140008da0
mov rdx, qword [rsp + 0x28]
lea r15, [rdx + rax]
jmp 0x140008d8a
lea r13, [r15 - 1]
mov r8, rbx
mov rdx, rsi
lea rcx, [r12 + r13]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140008dc0
mov r15, r13
test r15, r15
jne 0x140008d70
lea r8, [rbp + rbx - 1]
test rbp, rbp
jne 0x140008d19
nop dword [rax]
xor r13d, r13d
mov rcx, r12
call sub.msvcrt.dll_free
mov rax, r13
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r13, [r14 + r15 - 0x2001]
jmp 0x140008da3