joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140046253
Capabilities:
Create thread

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor edi, edi
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x44], edi
mov ecx, 5
lea rdi, [rsp + 0x4c]
rep stosd dword [rdi], eax
mov rcx, rbx
mov qword [rsp + 0x50], rbx
mov esi, edx
mov dword [rsp + 0x48], edx
call fcn.140045fc1
mov rdi, rax
test rax, rax
je 0x1400462e0
mov r9, rax
mov r8d, esi
lea rcx, str.WARNING:_Found_stale__s___d__image_mounted_on__s___Attempting_to_unmount_it...
mov rdx, rbx
call fcn.140036717
mov r8, rdi
xor edx, edx
mov ecx, 0xfde9
lea rax, [0x140112be0]
mov dword [rsp + 0x28], 0x104
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
xor r8d, r8d
mov edx, esi
mov rcx, rbx
mov word [0x1401129c0], 0
call fcn.140045f0f
xor r11d, r11d
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x48]
lea r8, [0x140044a80]
mov qword [rsp + 0x28], r11
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov qword [0x140112760], rax
mov rcx, rax
test rax, rax
jne 0x140046321
lea rcx, str.Unable_to_start_mount_image_thread
call fcn.140036717
jmp 0x14004636f
mov rax, qword [0x1400b16d0]
mov edx, dword [rax]
call qword [sym.imp.KERNEL32.DLL_SetThreadPriority]
or edx, 0xffffffff
mov rcx, qword [0x140112760]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [0x140112760]
lea rdx, [rsp + 0x44]
call qword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
test eax, eax
jne 0x14004635e
xor r10d, r10d
mov dword [rsp + 0x44], r10d
xor r9d, r9d
cmp dword [rsp + 0x44], 0
mov qword [0x140112760], r9
jne 0x140046376
xor edi, edi
jmp 0x140046425
cmp word [0x140112be0], 0
jne 0x140046397
mov edx, 1
mov ecx, 1
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
jmp sub.msvcrt.dll_calloc
xor edx, edx
xor ecx, ecx
xor r8d, r8d
mov rbp, qword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov qword [rsp + 0x38], rdx
or r9d, 0xffffffff
mov qword [rsp + 0x30], rdx
xor edx, edx
mov dword [rsp + 0x28], ecx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r8
lea r8, [0x140112be0]
call rbp
mov esi, eax
cmp eax, 1
jle 0x14004636f
movsxd rcx, eax
mov edx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
mov rdi, rax
test rax, rax
je 0x14004636f
xor eax, eax
or r9d, 0xffffffff
xor edx, edx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x38], rax
lea r8, [0x140112be0]
mov ecx, 0xfde9
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rbx
call rbp
cmp esi, eax
je 0x140046425
mov rcx, rbx
call sub.msvcrt.dll_free
jmp 0x14004636f
mov rax, rdi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140046881
Capabilities:
Move file

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
mov r14d, dword [rsp + 0x2c0]
mov word [rsp + 0x45], 0x5c23
mov r13, rcx
mov ebx, edx
mov r12, r8
mov byte [rsp + 0x47], 0
mov rbp, r9
test r14d, r14d
jne 0x1400468ca
mov r8d, edx
mov rdx, rcx
lea rcx, str.Opening:__s:__d___7_Zip_
call fcn.140036717
test r12, r12
sete al
test rbp, rbp
sete dl
or al, dl
jne 0x1400469ea
test r13, r13
je 0x1400469ea
add ebx, 0x30
mov byte [rsp + 0x45], bl
test r14d, r14d
jne 0x140046905
mov r8, r12
mov rdx, rbp
lea rcx, str.Extracting:__s__From__s_
call fcn.140036717
xor r15d, r15d
lea rbx, [rsp + 0x14c]
mov rcx, rbp
mov rdi, rbx
mov rsi, rbp
call sub.msvcrt.dll_strlen
lea rcx, [rax + 1]
mov eax, 0x104
cmp rcx, rax
cmova rcx, rax
mov ecx, ecx
rep movsb byte [rdi], byte [rsi]
mov rcx, rbp
call sub.msvcrt.dll_strlen
mov rcx, rbx
lea rdx, [rax + 1]
cmp rdx, 0x104
mov edx, 0x103
cmovae rax, rdx
mov byte [rsp + rax + 0x14c], 0
call sub.msvcrt.dll_strlen
dec rax
test rax, rax
je 0x140046973
mov dl, byte [rbx + rax]
cmp dl, 0x5c
je 0x140046973
cmp dl, 0x2f
jne 0x14004695e
mov byte [rsp + rax + 0x14c], 0
lea rax, [0x1400a315a]
test r15d, r15d
jne 0x14004698c
lea rax, [rsp + 0x45]
lea rsi, [rsp + 0x48]
mov edx, 0x104
mov qword [rsp + 0x30], r12
lea r8, str.__s___y_e___s___s_s
mov rcx, rsi
mov qword [rsp + 0x28], rax
lea r9, [0x1401128a0]
mov qword [rsp + 0x20], r13
call qword [sym.imp.msvcrt.dll__snprintf]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
mov byte [rsp + 0x14b], 0
call fcn.1400358c8
test eax, eax
je 0x1400469f1
call fcn.140036bd7
lea rcx, str.__Could_not_launch_7z.exe:__s
mov rdx, rax
call fcn.140036717
xor eax, eax
jmp 0x140046b15
mov rcx, r12
call sub.msvcrt.dll_strlen
mov rsi, rax
test rsi, rsi
je 0x140046a12
mov al, byte [r12 + rsi]
cmp al, 0x5c
je 0x140046a3e
cmp al, 0x2f
je 0x140046a3e
dec rsi
jmp 0x1400469fc
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r8d, 0x103
lea rdx, [0x1400a3427]
mov rcx, rbx
sub r8, rax
mov eax, 2
cmp r8, rax
cmova r8, rax
call sub.msvcrt.dll_strncat
add rsi, r12
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov rcx, rbx
mov rdi, rax
call sub.msvcrt.dll_strlen
inc rdi
mov rdx, rsi
mov rcx, rbx
mov r8d, 0x103
sub r8, rax
cmp r8, rdi
cmova r8, rdi
call sub.msvcrt.dll_strncat
xor edx, edx
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__access]
test eax, eax
je 0x140046aa9
test r15d, r15d
jne 0x140046a91
mov r15d, 1
jmp 0x140046910
test r14d, r14d
jne 0x1400469ea
mov rdx, rbx
lea rcx, str.__7z.exe_did_not_extract__s
jmp 0x1400469e5
mov rcx, rbx
call fcn.1400449d3
mov rcx, rbp
mov rsi, rax
call fcn.1400449d3
mov r8d, 1
mov rcx, rsi
mov r12, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.DLL_MoveFileExW]
mov edi, eax
test r12, r12
je 0x140046ae0
mov rcx, r12
call sub.msvcrt.dll_free
test rsi, rsi
je 0x140046aed
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, 1
test edi, edi
jne 0x140046b15
call fcn.140036bd7
mov r8, rbp
mov rdx, rbx
lea rcx, str.__Could_not_rename__s_to__s:__s
mov r9, rax
call fcn.140036717
jmp 0x1400469ea
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140046f50
Capabilities:
Create thread

Disassembly:
sub rsp, 0x58
xor r9d, r9d
xor r10d, r10d
xor r11d, r11d
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x3c], r9d
lea r9, [rsp + 0x38]
mov qword [rsp + 0x40], rcx
xor ecx, ecx
mov dword [rsp + 0x38], edx
xor edx, edx
mov qword [rsp + 0x48], r8
lea r8, [0x140045032]
mov qword [rsp + 0x28], r10
mov dword [rsp + 0x20], r11d
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov qword [0x140112760], rax
mov rcx, rax
test rax, rax
jne 0x140046fb4
lea rcx, str.Unable_to_start_apply_image_thread
call fcn.140036717
xor eax, eax
jmp 0x140046ffc
mov rax, qword [0x1400b16d0]
mov edx, dword [rax]
call qword [sym.imp.KERNEL32.DLL_SetThreadPriority]
or edx, 0xffffffff
mov rcx, qword [0x140112760]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [0x140112760]
lea rdx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
test eax, eax
jne 0x140046fef
xor edx, edx
mov dword [rsp + 0x34], edx
xor eax, eax
mov qword [0x140112760], rax
mov eax, dword [rsp + 0x34]
add rsp, 0x58
ret

Function at 0x140047238
Capabilities:
Get common file path

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r13, rcx
mov rcx, qword [0x1400b1d00]
call fcn.14004718b
lea rcx, [0x1400a3570]
mov rbp, rax
call fcn.14004718b
mov edx, 2
mov ecx, 0x104
mov r12, rax
call sub.msvcrt.dll_calloc
xor r8d, r8d
mov rdx, r12
mov rcx, rbp
mov r9, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
mov r14, qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
call r14
mov esi, eax
test ebx, ebx
je 0x1400472d5
xor eax, eax
mov dword [rsp + 0x28], 0x104
or r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x38], rax
mov r8, rdi
mov ecx, 0xfde9
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov ebx, eax
test eax, eax
jne 0x1400472d5
call r14
mov esi, eax
test rdi, rdi
je 0x1400472e2
mov rcx, rdi
call sub.msvcrt.dll_free
test r12, r12
je 0x1400472ef
mov rcx, r12
call sub.msvcrt.dll_free
test rbp, rbp
je 0x1400472fc
mov rcx, rbp
call sub.msvcrt.dll_free
mov ecx, esi
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140047315
Capabilities:
Copy file

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rdx
call fcn.14004718b
mov rcx, rbx
mov rsi, rax
call fcn.14004718b
mov r8d, 1
mov rcx, rsi
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_CopyFileW]
mov edi, eax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebp, eax
test rsi, rsi
je 0x14004735c
mov rcx, rsi
call sub.msvcrt.dll_free
test rbx, rbx
je 0x140047369
mov rcx, rbx
call sub.msvcrt.dll_free
mov ecx, ebp
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, edi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14004737c
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x180
xor eax, eax
lea r13, [0x140112f00]
xor r9d, r9d
mov r12, rcx
lea rdi, [rsp + 0x7c]
mov ecx, 0x41
mov rbx, rdx
rep stosd dword [rdi], eax
mov ecx, 0x1ff
mov rdi, r13
mov qword [rsp + 0x68], r9
rep stosb byte [rdi], al
mov rcx, rdx
mov qword [rsp + 0x70], r9
lea r14, [rsp + 0x7c]
mov dword [rsp + 0x60], 0xffffffff
mov dword [rsp + 0x64], 0x1ff
call sub.msvcrt.dll_strlen
mov rcx, rax
mov rbp, rax
test rbp, rbp
je 0x140047479
cmp byte [rbx + rbp], 0x5c
je 0x1400473f6
dec rbp
jmp 0x1400473e2
cmp rbp, 0x103
ja 0x140047539
mov eax, 0x104
inc rcx
mov rdi, r14
mov rsi, rbx
cmp rcx, rax
cmova rcx, rax
mov ecx, ecx
rep movsb byte [rdi], byte [rsi]
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r9d, 0x20019
mov rcx, r12
lea rdx, [rax + 1]
cmp rdx, 0x104
mov edx, 0x103
cmovae rax, rdx
xor r8d, r8d
mov rdx, r14
mov byte [rsp + rax + 0x7c], 0
lea rax, [rsp + 0x70]
mov byte [rsp + rbp + 0x7c], 0
inc rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400474f2
xor r8d, r8d
mov qword [rsp + 0x70], r8
jmp 0x140047518
lea rax, [rsp + 0x68]
xor r8d, r8d
mov r9d, 0x2001d
mov rcx, r12
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWARE
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400474a9
xor ecx, ecx
mov qword [rsp + 0x68], rcx
jmp 0x140047518
lea rax, [rsp + 0x5c]
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor eax, eax
mov dword [rsp + 0x20], edx
lea rdx, str.Akeo_ConsultingRufus
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 7
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14004746c
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], r13
lea rdx, [rbx + rbp]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140047528
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140047539
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
add rsp, 0x180
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x14004754b
Capabilities:
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14004718b
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
test rbx, rbx
je 0x140047577
mov rcx, rbx
call sub.msvcrt.dll_free
mov ecx, esi
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.DLL_SetLastError]
Function at 0x140049f59
Capabilities:
Encode data using xor
Hash data using crc32b
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rcx
mov ebx, edx
test rcx, rcx
jne 0x140049f80
mov edx, 4
mov ecx, 0x100
call sub.msvcrt.dll_calloc
test rax, rax
je 0x14004a013
test ebx, ebx
je 0x140049fcb
mov r9d, 8
mov r8d, 1
mov edx, 0x80000000
lea ecx, [rdx + rdx]
sar edx, 0x1f
and edx, 0x4c11db7
xor edx, ecx
mov ecx, r8d
lea r10, [rax + rcx*4]
xor ecx, ecx
cmp ecx, r8d
jae 0x140049fc1
mov r11d, dword [rax + rcx*4]
xor r11d, edx
mov dword [r10 + rcx*4], r11d
inc rcx
jmp 0x140049fac
add r8d, r8d
dec r9d
jne 0x140049f95
jmp 0x14004a013
xor edx, edx
mov r9d, 8
mov r8d, pe_nt_image_headers64
mov dword [rax], edx
mov edx, 1
mov ecx, edx
shr ecx, 1
and edx, 1
je 0x140049fee
mov edx, 0xedb88320
xor edx, ecx
xor ecx, ecx
mov ebx, dword [rax + rcx*4]
lea r11d, [rcx + r8]
lea ecx, [r11 + r8]
xor ebx, edx
mov dword [rax + r11*4], ebx
cmp ecx, 0xff
jbe 0x140049ff2
shr r8d, 1
dec r9d
jne 0x140049fe0
add rsp, 0x20
pop rbx
ret

Function at 0x14004a03e
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
sub rsp, 0x38
test ecx, ecx
jns 0x14004a059
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
jmp 0x14004a129
test rdx, rdx
jne 0x14004a06f
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xe
jmp 0x14004a129
mov rax, qword [0x1400b15d0]
mov rax, qword [rax]
test rax, rax
je 0x14004a094
cmp dword [rax], 0
je 0x14004a094
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 4
jmp 0x14004a129
mov rax, qword [0x1400b1590]
cmp dword [rax], ecx
jne 0x14004a0e1
mov r9, qword [0x1400b15b0]
mov rax, qword [0x1400b15a0]
mov rsi, qword [r9]
mov rcx, qword [rax]
mov eax, r8d
add rax, rsi
cmp rcx, rax
jae 0x14004a0c4
mov r8d, ecx
sub r8d, esi
mov rcx, qword [0x1400b1580]
mov eax, r8d
mov rdi, rdx
add rsi, qword [rcx]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
add qword [r9], rax
mov eax, r8d
jmp 0x14004a0fa
mov rax, qword [0x1400b1600]
mov rax, qword [rax]
test rax, rax
je 0x14004a0f4
call rax
jmp 0x14004a0fa
call qword [sym.imp.msvcrt.dll__read]
test eax, eax
jle 0x14004a12c
mov rdx, qword [0x1400b1570]
movsxd rcx, eax
add rcx, qword [rdx]
mov qword [rdx], rcx
mov rdx, qword [0x1400b15f0]
mov rdx, qword [rdx]
test rdx, rdx
je 0x14004a12c
mov dword [rsp + 0x2c], eax
call rdx
mov eax, dword [rsp + 0x2c]
jmp 0x14004a12c
or eax, 0xffffffff
add rsp, 0x38
pop rsi
pop rdi
ret
Function at 0x14004ad50
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
sub rsp, 0x38
test ecx, ecx
jns 0x14004ad6b
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
jmp 0x14004ae3b
test rdx, rdx
jne 0x14004ad81
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xe
jmp 0x14004ae3b
mov rax, qword [0x1400b15d0]
mov rax, qword [rax]
test rax, rax
je 0x14004ada6
cmp dword [rax], 0
je 0x14004ada6
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 4
jmp 0x14004ae3b
mov rax, qword [0x1400b1590]
cmp dword [rax], ecx
jne 0x14004adf3
mov r9, qword [0x1400b15b0]
mov rax, qword [0x1400b15a0]
mov rsi, qword [r9]
mov rcx, qword [rax]
mov eax, r8d
add rax, rsi
cmp rcx, rax
jae 0x14004add6
mov r8d, ecx
sub r8d, esi
mov rcx, qword [0x1400b1580]
mov eax, r8d
mov rdi, rdx
add rsi, qword [rcx]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
add qword [r9], rax
mov eax, r8d
jmp 0x14004ae0c
mov rax, qword [0x1400b1600]
mov rax, qword [rax]
test rax, rax
je 0x14004ae06
call rax
jmp 0x14004ae0c
call qword [sym.imp.msvcrt.dll__read]
test eax, eax
jle 0x14004ae3e
mov rdx, qword [0x1400b1570]
movsxd rcx, eax
add rcx, qword [rdx]
mov qword [rdx], rcx
mov rdx, qword [0x1400b15f0]
mov rdx, qword [rdx]
test rdx, rdx
je 0x14004ae3e
mov dword [rsp + 0x2c], eax
call rdx
mov eax, dword [rsp + 0x2c]
jmp 0x14004ae3e
or eax, 0xffffffff
add rsp, 0x38
pop rsi
pop rdi
ret

Function at 0x14004c2c0
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
sub rsp, 0x38
test ecx, ecx
jns 0x14004c2db
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
jmp 0x14004c3ab
test rdx, rdx
jne 0x14004c2f1
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xe
jmp 0x14004c3ab
mov rax, qword [0x1400b15d0]
mov rax, qword [rax]
test rax, rax
je 0x14004c316
cmp dword [rax], 0
je 0x14004c316
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 4
jmp 0x14004c3ab
mov rax, qword [0x1400b1590]
cmp dword [rax], ecx
jne 0x14004c363
mov r9, qword [0x1400b15b0]
mov rax, qword [0x1400b15a0]
mov rsi, qword [r9]
mov rcx, qword [rax]
mov eax, r8d
add rax, rsi
cmp rcx, rax
jae 0x14004c346
mov r8d, ecx
sub r8d, esi
mov rcx, qword [0x1400b1580]
mov eax, r8d
mov rdi, rdx
add rsi, qword [rcx]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
add qword [r9], rax
mov eax, r8d
jmp 0x14004c37c
mov rax, qword [0x1400b1600]
mov rax, qword [rax]
test rax, rax
je 0x14004c376
call rax
jmp 0x14004c37c
call qword [sym.imp.msvcrt.dll__read]
test eax, eax
jle 0x14004c3ae
mov rdx, qword [0x1400b1570]
movsxd rcx, eax
add rcx, qword [rdx]
mov qword [rdx], rcx
mov rdx, qword [0x1400b15f0]
mov rdx, qword [rdx]
test rdx, rdx
je 0x14004c3ae
mov dword [rsp + 0x2c], eax
call rdx
mov eax, dword [rsp + 0x2c]
jmp 0x14004c3ae
or eax, 0xffffffff
add rsp, 0x38
pop rsi
pop rdi
ret
Function at 0x14004c970
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
sub rsp, 0x38
test ecx, ecx
jns 0x14004c98b
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
jmp 0x14004ca5b
test rdx, rdx
jne 0x14004c9a1
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xe
jmp 0x14004ca5b
mov rax, qword [0x1400b15d0]
mov rax, qword [rax]
test rax, rax
je 0x14004c9c6
cmp dword [rax], 0
je 0x14004c9c6
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 4
jmp 0x14004ca5b
mov rax, qword [0x1400b1590]
cmp dword [rax], ecx
jne 0x14004ca13
mov r9, qword [0x1400b15b0]
mov rax, qword [0x1400b15a0]
mov rsi, qword [r9]
mov rcx, qword [rax]
mov eax, r8d
add rax, rsi
cmp rcx, rax
jae 0x14004c9f6
mov r8d, ecx
sub r8d, esi
mov rcx, qword [0x1400b1580]
mov eax, r8d
mov rdi, rdx
add rsi, qword [rcx]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
add qword [r9], rax
mov eax, r8d
jmp 0x14004ca2c
mov rax, qword [0x1400b1600]
mov rax, qword [rax]
test rax, rax
je 0x14004ca26
call rax
jmp 0x14004ca2c
call qword [sym.imp.msvcrt.dll__read]
test eax, eax
jle 0x14004ca5e
mov rdx, qword [0x1400b1570]
movsxd rcx, eax
add rcx, qword [rdx]
mov qword [rdx], rcx
mov rdx, qword [0x1400b15f0]
mov rdx, qword [rdx]
test rdx, rdx
je 0x14004ca5e
mov dword [rsp + 0x2c], eax
call rdx
mov eax, dword [rsp + 0x2c]
jmp 0x14004ca5e
or eax, 0xffffffff
add rsp, 0x38
pop rsi
pop rdi
ret

Function at 0x14004f7c6
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
sub rsp, 0x28
test ecx, ecx
jns 0x14004f7e1
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
jmp 0x14004f8af
test rdx, rdx
jne 0x14004f7f7
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xe
jmp 0x14004f8af
mov rax, qword [0x1400b15d0]
mov rax, qword [rax]
test rax, rax
je 0x14004f81c
cmp dword [rax], 0
je 0x14004f81c
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 4
jmp 0x14004f8af
mov rax, qword [0x1400b1590]
cmp ecx, dword [rax]
jne 0x14004f866
mov r9, qword [0x1400b15b0]
mov rax, qword [0x1400b15a0]
mov rsi, qword [r9]
mov rcx, qword [rax]
mov eax, r8d
add rax, rsi
cmp rcx, rax
jae 0x14004f84c
mov r8d, ecx
sub r8d, esi
mov rcx, qword [0x1400b1580]
mov eax, r8d
mov rdi, rdx
add rsi, qword [rcx]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
add qword [r9], rax
jmp 0x14004f882
mov rax, qword [0x1400b1600]
mov rax, qword [rax]
test rax, rax
je 0x14004f879
call rax
jmp 0x14004f87f
call qword [sym.imp.msvcrt.dll__read]
mov r8d, eax
test r8d, r8d
jle 0x14004f8af
mov rax, qword [0x1400b1570]
movsxd rcx, r8d
add rcx, qword [rax]
mov qword [rax], rcx
mov rax, qword [0x1400b15f0]
mov rax, qword [rax]
test rax, rax
je 0x14004f8af
add rsp, 0x28
pop rsi
pop rdi
jmp rax
add rsp, 0x28
pop rsi
pop rdi
ret
Function at 0x14004fe70
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
sub rsp, 0x28
test ecx, ecx
jns 0x14004fe8b
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
jmp 0x14004ff59
test rdx, rdx
jne 0x14004fea1
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xe
jmp 0x14004ff59
mov rax, qword [0x1400b15d0]
mov rax, qword [rax]
test rax, rax
je 0x14004fec6
cmp dword [rax], 0
je 0x14004fec6
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 4
jmp 0x14004ff59
mov rax, qword [0x1400b1590]
cmp ecx, dword [rax]
jne 0x14004ff10
mov r9, qword [0x1400b15b0]
mov rax, qword [0x1400b15a0]
mov rsi, qword [r9]
mov rcx, qword [rax]
mov eax, r8d
add rax, rsi
cmp rcx, rax
jae 0x14004fef6
mov r8d, ecx
sub r8d, esi
mov rcx, qword [0x1400b1580]
mov eax, r8d
mov rdi, rdx
add rsi, qword [rcx]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
add qword [r9], rax
jmp 0x14004ff2c
mov rax, qword [0x1400b1600]
mov rax, qword [rax]
test rax, rax
je 0x14004ff23
call rax
jmp 0x14004ff29
call qword [sym.imp.msvcrt.dll__read]
mov r8d, eax
test r8d, r8d
jle 0x14004ff59
mov rax, qword [0x1400b1570]
movsxd rcx, r8d
add rcx, qword [rax]
mov qword [rax], rcx
mov rax, qword [0x1400b15f0]
mov rax, qword [rax]
test rax, rax
je 0x14004ff59
add rsp, 0x28
pop rsi
pop rdi
jmp rax
add rsp, 0x28
pop rsi
pop rdi
ret

Function at 0x140050262
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
cmp byte [rcx], 0
mov ebp, edx
je 0x140050278
xor eax, eax
jmp 0x14005038f
mov ecx, dword [rcx + 0x10]
test ecx, ecx
jns 0x140050290
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
jmp 0x140050363
mov rax, qword [0x1400b15d0]
mov rax, qword [rax]
test rax, rax
je 0x1400502b5
cmp dword [rax], 0
je 0x1400502b5
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 4
jmp 0x140050363
mov rax, qword [0x1400b1590]
lea rdx, [rsp + 0x2e]
cmp ecx, dword [rax]
jne 0x14005030b
mov r9, qword [0x1400b15b0]
mov rcx, qword [0x1400b15a0]
mov ebx, 2
mov rax, qword [r9]
mov rcx, qword [rcx]
lea r8, [rax + 2]
cmp rcx, r8
jae 0x1400502eb
mov ebx, ecx
sub ebx, eax
mov rcx, qword [0x1400b1580]
mov r8d, ebx
mov rdi, rdx
mov rsi, qword [rcx]
mov rcx, r8
add rsi, rax
add rax, r8
rep movsb byte [rdi], byte [rsi]
mov qword [r9], rax
jmp 0x14005032c
mov rax, qword [0x1400b1600]
mov r8d, 2
mov rax, qword [rax]
test rax, rax
je 0x140050324
call rax
jmp 0x14005032a
call qword [sym.imp.msvcrt.dll__read]
mov ebx, eax
test ebx, ebx
jle 0x140050363
mov rax, qword [0x1400b1570]
movsxd rcx, ebx
add rcx, qword [rax]
mov qword [rax], rcx
mov rax, qword [0x1400b15f0]
mov rax, qword [rax]
test rax, rax
je 0x140050351
call rax
cmp ebx, 2
jne 0x140050363
movzx eax, word [rsp + 0x2e]
cmp eax, ebp
je 0x140050271
mov rax, qword [0x1400b15e0]
lea rcx, str._nError:_invalid_magic
mov rax, qword [rax]
test rax, rax
je 0x14005037d
call rax
jmp 0x14005038c
call sub.msvcrt.dll_printf
mov ecx, 0xa
call sub.msvcrt.dll_putchar
or eax, 0xffffffff
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret