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

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011df2
movzx eax, al
test eax, eax
jne 0x140029bd0
mov ecx, 7
call fcn.140011b36
nop
mov byte [rsp + 0x20], 0
call fcn.140011b86
mov byte [rsp + 0x21], al
cmp dword [0x14003dd18], 1
jne 0x140029bf4
mov ecx, 7
call fcn.140011b36
nop
jmp 0x140029c4c
cmp dword [0x14003dd18], 0
jne 0x140029c47
mov dword [0x14003dd18], 1
lea rdx, [0x140033660]
lea rcx, [0x140033330]
call fcn.14001165e
test eax, eax
je 0x140029c28
mov eax, 0xff
jmp 0x140029d51
lea rdx, [0x140033220]
lea rcx, [section..rdata]
call fcn.140011b6d
mov dword [0x14003dd18], 2
jmp 0x140029c4c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011aff
call fcn.14001197e
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140029ca9
mov rcx, qword [rsp + 0x30]
call fcn.140011541
movzx eax, al
test eax, eax
je 0x140029ca9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140046020]
nop
call fcn.140011a19
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140029cdd
mov rcx, qword [rsp + 0x38]
call fcn.140011541
movzx eax, al
test eax, eax
je 0x140029cdd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011d0c
nop
call fcn.140029e00
mov dword [rsp + 0x28], eax
call fcn.140011929
movzx eax, al
test eax, eax
jne 0x140029cfc
mov ecx, dword [rsp + 0x28]
call fcn.14001112c
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140029d0b
call fcn.140011d2f
nop
xor edx, edx
mov cl, 1
call fcn.1400114e2
mov eax, dword [rsp + 0x28]
jmp 0x140029d51
add rsp, 0x68
ret
Function at 0x140009380
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140009410
jmp 0x1400093ff
jae 0x1400094d0
cmp r8, 0x201
jae 0x140009410
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140009468
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14000943f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140029f70
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140009491
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140009538
mov r8d, r14d
cmp r15, r8
jne 0x1400093f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000955b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400093ff
jmp 0x140009410
cmp rsi, r8
jb 0x140009575
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14000b770
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140009521
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1400025c0
mov rax, rsi
add rsp, 0x478
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 + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140009509
jmp 0x140009521
lea rcx, [0x14002cfa8]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14002aa60
jmp 0x14000958a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14002aeb0
ud2
Function at 0x1400095e0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.14001af40
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x140009766
mov qword [rbp + 0x400], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x1400096a0
jmp 0x14000968f
jae 0x140009778
cmp r8, 0x201
jae 0x1400096a0
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x1400096f8
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x1400096cf
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.140029f70
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3f8], r13
mov rbx, rdi
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x140009727
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000984b
mov r8d, esi
cmp r12, r8
jne 0x140009680
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140009875
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000968f
jmp 0x1400096a0
lea rcx, [rbp - 0x58]
call fcn.1400038c0
mov byte [rsi + 0x18], 2
jmp 0x14000980a
cmp r15, r8
jb 0x14000988f
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.14000b770
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x1400097c9
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.1400025c0
cmp byte [rbp + 0x3d8], 2
jne 0x140009821
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.1400038c0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x14000980a
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.1400025c0
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x400]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x1400097f5
jmp 0x14000980a
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x1400097b1
jmp 0x1400097c9
lea rcx, [0x14002cfa8]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14002aa60
jmp 0x1400098a4
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14002aeb0
ud2
Function at 0x14000e800
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.1400294c0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x1400147c0]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.140014560
cmp qword [rbp + 0xfe8], 0
jne 0x14000e9d7
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x14000e9a3
cmp r12, 0x1000
ja 0x14000e9f9
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x14000e977
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x14000e920
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x14000e97d
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x14000e960
jbe 0x14000e8d0
jmp 0x14000e9e5
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x14000e885
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.1400038c0
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.1400038c0
jmp 0x14000e9a3
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.14002af30
jmp 0x14000ea0d
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.14002aeb0
ud2
Function at 0x140011a10
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14001af40
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x140011ac5
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.1400133b0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x140011ac5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140011a99
test rsi, rsi
je 0x140011a95
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.1400025c0
xor esi, esi
jmp 0x140011ac5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x140011ac2
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.1400025c0
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140011ea0
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r9
mov rsi, rcx
lea rcx, [rbp - 0x18]
call fcn.14001af40
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
test rax, rax
je 0x140011fb2
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rdx
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.1400133b0
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x38]
test rax, rax
je 0x140011fb2
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rdx
mov r8, qword [rbp + 0x60]
lea rcx, [rbp - 0x18]
mov rdx, rdi
call fcn.14001af40
mov rax, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x10]
test rax, rax
je 0x140011fbf
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.1400133b0
mov rbx, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
test rbx, rbx
je 0x140011fbf
mov qword [rbp - 0x18], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x140012070]
lea r9, [rbp - 0x18]
mov r15, qword [rbp - 0x28]
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
mov r14, qword [rbp - 0x20]
je 0x140011fd4
mov rax, qword [rbp - 0x18]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test rdi, rdi
jne 0x140011ff2
jmp 0x140012006
mov qword [rsi + 8], rdx
mov qword [rsi], 1
jmp 0x14001201f
mov r14, qword [rbp - 0x20]
mov r15, qword [rbp - 0x28]
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x140012006
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdi, rdi
je 0x140012006
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call fcn.1400025c0
test r14, r14
je 0x14001201f
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call fcn.1400025c0
mov rax, rsi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
Function at 0x140012090
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14002eed8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400120d4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14001213a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140012171
test eax, eax
js 0x14001214b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140012164
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
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 + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14000b4b0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140003e30
mov ecx, 7
int 0x29
ud2
Function at 0x140019120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
sub esp, 0x88

Function at 0x14001a090
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14001a0d3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140009f10]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14002a9b0
ud2
Function at 0x140028300
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14002837a
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 0x140028370
cmp r11, r10
ja 0x140028413
cmp r10, rdx
ja 0x140028427
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140028372
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140028350
jmp 0x1400283e7
ja 0x14002837a
mov r11, r10
cmp rax, r8
jne 0x140028322
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400283eb
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 0x1400283c0
mov r8, r10
sub ecx, r9d
jns 0x1400283de
jmp 0x1400283ed
cmp r10, rdx
je 0x1400283f9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400283ed
xor al, 1
cmp r8, rdx
jne 0x1400283a0
jmp 0x1400283ed
xor eax, eax
jmp 0x1400283ed
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14002aa60
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14002af30
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14002aeb0
ud2

Function at 0x1400299f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140029a3a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140029a3a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140029a3a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140029a3a
cmp dword [rcx + 0x84], 0xe
jbe 0x140029a3a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140029a3c
xor al, al
add rsp, 0x28
ret

Function at 0x140001960
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400019aa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400019aa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400019aa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400019aa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400019aa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400019ac
xor al, al
add rsp, 0x28
ret
Function at 0x1400037e4
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400035b8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400035b8
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400035b8
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400035b8
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400035b8
cmp dword [rcx + 0x84], 0xe
jbe 0x1400035b8
cmp dword [rcx + 0xf8], esi
je 0x1400035b8
mov ecx, r14d
call fcn.140003700
mov ecx, 2
call fcn.140006860
nop
cmp byte [0x140072660], 0
jne 0x140003682
mov r15d, 1
mov eax, r15d
xchg dword [0x140072654], eax
test ebx, ebx
jne 0x14000362b
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140072658]
cmp rcx, rax
je 0x140003622
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140002564]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140072670]
jmp 0x140003637
cmp ebx, r15d
jne 0x14000363d
lea rcx, [0x140072688]
call fcn.140003e04
nop
test ebx, ebx
jne 0x140003654
lea rdx, [0x140067490]
lea rcx, [0x140067470]
call fcn.140003478
lea rdx, [0x1400674a0]
lea rcx, [0x140067498]
call fcn.140003478
movzx eax, byte [0x140072660]
test esi, esi
cmove eax, r15d
mov byte [0x140072660], al
jmp 0x140003682
mov ecx, 2
call fcn.1400068b4
test esi, esi
jne 0x140003699
mov ecx, r14d
call fcn.1400036b4
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140003548
Function at 0x140004e30
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140004e0d
call fcn.14000457c
mov dword [rax], 0x16
call fcn.14000445c
or eax, 0xffffffff
jmp 0x140004e2a
sub dword [rcx + 0x10], 1
jns 0x140004e1c
add rsp, 0x28
jmp 0x140009ab4
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140004dec
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140009770
call fcn.14000457c
mov dword [rax], 0x16
call fcn.14000445c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140009758
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140009758
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1400097a2
lock or dword [rax + 0x14], 0x10
jmp 0x140009758
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1400097bf
mov rcx, qword [rbp + 0x10]
call fcn.14000c024
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140004dc4
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14000ba00
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140009816
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140009758
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140009882
mov rcx, qword [rbp + 0x10]
call fcn.140004dc4
cmp eax, 0xffffffff
je 0x140009869
mov rcx, qword [rbp + 0x10]
call fcn.140004dc4
cmp eax, 0xfffffffe
je 0x140009869
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140004dc4
movsxd rdi, eax
lea rsi, [0x1400726c0]
mov rcx, rbx
sar rdi, 6
call fcn.140004dc4
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x140009870
lea rax, [0x140071150]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140009882
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1400098b8
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1400098b4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1400098b4
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14000975b
jmp 0x140009728