joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140090590
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x14011ebe8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1400905fa
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140090609
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140090640
cmp eax, 0x103
je 0x14009064a
test eax, eax
js 0x140090626
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140090640
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x14011ec48]
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.14006d840
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14006ccd0
mov ecx, 7
int 0x29
ud2

Function at 0x140093610
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400ee4e8]
test ecx, ecx
je 0x1400936f0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140093644
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140093644
add rdi, 0x10
jmp 0x1400936e6
mov ecx, dword [0x1400ee4e8]
test ecx, ecx
je 0x140093703
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400936e4
mov rsi, rax
test rax, rax
jne 0x1400936b3
movzx eax, byte [0x14012f410]
mov ecx, 0x18
mov edx, 8
call fcn.140007230
test rax, rax
je 0x140093726
mov rsi, rax
lea rax, [0x1400ee4d0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400ee4e8]
test ecx, ecx
je 0x140093716
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x1400936e6
test rcx, rcx
je 0x1400936e6
lock dec qword [rcx]
jne 0x1400936e6
call fcn.140093740
jmp 0x1400936e6
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400ee4d0]
call fcn.14006d430
mov ecx, eax
jmp 0x140093626
lea rcx, [0x1400ee4d0]
call fcn.14006d430
mov ecx, eax
jmp 0x140093654
lea rcx, [0x1400ee4d0]
call fcn.14006d430
mov ecx, eax
jmp 0x1400936ab
mov ecx, 8
mov edx, 0x18
call fcn.140007810
ud2
Function at 0x140093c50
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140007ab0
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x140093cae
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
cmp qword [rsp + 0x38], 0
je 0x140093d3a
mov rcx, qword [0x14012f378]
xor edx, edx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp sub.KERNEL32.dll_HeapFree
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x140093d0b
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140093d1e
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x140093d3a
mov rcx, qword [0x14012f378]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14009b840
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.14006f330
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x14009b8b5
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.14009b770
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x14009b8c3
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x14009b8e3
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x14009b8d4
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x30]
call fcn.14006cc30
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x14009b8d4
mov rcx, qword [0x14012f378]
xor edx, edx
mov r8, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp sub.KERNEL32.dll_HeapFree
Function at 0x14009d460
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x14012f410]
mov ecx, 0x10
mov edx, 8
call fcn.140007230
test rax, rax
je 0x14009d51c
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14009d580]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x14009d50f
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x14009d4ea
mov r8, qword [r14 + 0x10]
mov rcx, rbx
call fcn.1400072c0
mov rcx, qword [0x14012f378]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.140007810
ud2

Function at 0x14009d830
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1098
call fcn.1400db730
sub rsp, rax
movaps xmmword [rsp + 0x1080], xmm6
mov rsi, rdx
mov rdi, rcx
lea r14, [rsp + 0x80]
mov r8d, 0x1000
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
xorps xmm6, xmm6
lea r15, [rsp + 0x3c]
lea rbx, [0x140095580]
lea r13, [rsp + 0x60]
lea r12, [0x1400fdb58]
mov qword [rsp + 0x48], rdi

Function at 0x14009dd30
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14009dd66
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [0x14008f190]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.140031080
ud2
Function at 0x1400a2e50
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400ee508]
test ecx, ecx
je 0x1400a2f6e
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400a2e87
mov rcx, rax
cmp qword [rax + 8], 0
je 0x1400a2e87
add rcx, 0x10
jmp 0x1400a2f64
mov ecx, dword [0x1400ee508]
test ecx, ecx
je 0x1400a2f81
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400a2f47
mov rdi, rax
test rax, rax
jne 0x1400a2efa
movzx eax, byte [0x14012f410]
mov ecx, 0x20
mov edx, 8
call fcn.140007230
test rax, rax
je 0x1400a2fa7
mov rdi, rax
lea rax, [0x1400ee4f0]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1400ee508]
test ecx, ecx
je 0x1400a2f94
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x1400a2f17
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x1400a2f50
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x1400a2f4b
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400a2f50
xor ecx, ecx
jmp 0x1400a2f64
call fcn.14009dd30
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x1400ee4f0]
call fcn.14006d430
mov ecx, eax
jmp 0x1400a2e69
lea rcx, [0x1400ee4f0]
call fcn.14006d430
mov ecx, eax
jmp 0x1400a2e97
lea rcx, [0x1400ee4f0]
call fcn.14006d430
mov ecx, eax
jmp 0x1400a2ef2
mov ecx, 8
mov edx, 0x20
call fcn.140007810
ud2

Function at 0x1400a483f
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.SHELL32.dll_CommandLineToArgvW
test rax, rax
je 0x1400a48dd
mov rdi, rax
movsxd r15, dword [rsp + 0x24]
lea rbx, [rsp + 0x28]
mov qword [rbx], 8
xorps xmm0, xmm0
movups xmmword [rbx + 8], xmm0
shl r15, 3
xor r12d, r12d
lea r14, [rsp + 0x40]
cmp r15, r12
je 0x1400a48b8
lea rcx, [rdi + r12]
call fcn.1400dae19
mov r8, rdx
mov rcx, r14
mov rdx, rax
call fcn.1400a3540
mov rcx, rbx
mov rdx, r14
call fcn.1400a4bba
add r12, 8
jmp 0x1400a488b
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
test rax, rax
jne 0x1400a48ca
call sub.KERNEL32.dll_GetLastError
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi], xmm0
jmp 0x1400a48eb
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400a9b67
Capabilities:
Get hostname

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, 5
call sub.KERNEL32.dll_GetComputerNameExW
mov rcx, rsi
mov edx, eax
add rsp, 0x20
pop rsi
jmp 0x1400a3373

Function at 0x1400dc450
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 fcn.1400dd220
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400dd220
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400dc4c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14012f494]
mov rbx, rcx
test esi, esi
jle 0x1400dc5f0
mov rax, qword [0x14012f498]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400dc50b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400dc595
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400dc4f0
mov rcx, rbx
call fcn.1400dcf40
mov rdi, rax
test rax, rax
je 0x1400dc612
mov rax, qword [0x14012f498]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400dd080
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14012f498]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400dc5f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400dc58e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400dc5a0
add dword [0x14012f494], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14012f498]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400dc58e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400dc450
nop dword [rax]
xor esi, esi
jmp 0x1400dc518
mov rax, qword [0x14012f498]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400dc450
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400dc450
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400dcbb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14012f500]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14012f4e0]
test rbx, rbx
je 0x1400dcc0c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400dcc03
test eax, eax
jne 0x1400dcc03
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400dcbe8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

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

Disassembly:
mov rdx, qword [0x140121e80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400dcf60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400dcf68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400dcf60
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400dcfbd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400dcfb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400dcf60
add rax, 0x28
cmp rax, r9
jne 0x1400dcfa0
xor eax, eax
ret

Function at 0x1400dcfc0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140121e80]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400dcfdf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400dcfe8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400dcfdf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400dd080
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140121e80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400dd09f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400dd0a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400013d0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14000d028]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea r12, [rsp + 0x88]
xor r15d, r15d
mov rsi, qword [r12]
mov r14, r8
mov qword [r12], r15
mov rbp, rdx
cmp qword [rcx + 0x18], 0x10
mov rbx, rcx
jb 0x140001414
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001465
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov r8d, r14d
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12], rsi
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000149f
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14000149a
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400014ca
mov rcx, r8
call fcn.140007ca0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 0xf
mov byte [rbx], r15b
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007c80
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140001d20
Capabilities:
Timestomp file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14000d028]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rsi, [rsp + 0x68]
mov rbx, rcx
mov rdi, qword [rsi]
lea rcx, [rsp + 0x48]
mov qword [rsi], 0
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, 0x12
mov dword [rsp + 0x48], 0xb07e5
lea rdx, [rsp + 0x40]
mov word [rsp + 0x4e], ax
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
cmp qword [rbx + 0x18], 0x10
jb 0x140001d87
mov rbx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x100
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x40]
mov rbx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140007c80
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x140001e00
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0xf0
mov rax, qword [0x14000d028]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xorps xmm0, xmm0
lea rdi, [rsp + 0xf8]
mov rbx, qword [rdi]
xor eax, eax
xor edx, edx
mov qword [rdi], rdx
cmp qword [rcx + 0x18], 0x10
movups xmmword [rsp + 0x74], xmm0
mov dword [r11 - 0x24], eax
movups xmmword [r11 - 0x74], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [r11 - 0x64], xmm0
movups xmmword [r11 - 0x54], xmm0
movups xmmword [r11 - 0x44], xmm0
movups xmmword [r11 - 0x34], xmm0
mov dword [rsp + 0x70], 0x68
movups xmmword [rsp + 0x50], xmm0
jb 0x140001e74
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], edx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140001ec7
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov qword [rdi], rbx
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140007c80
mov rbx, qword [rsp + 0x108]
add rsp, 0xf0
pop rdi
ret
Function at 0x140002b00
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rsi, [rsp + 0x28]
mov rbx, rcx
mov rdi, qword [rsi]
mov qword [rsi], 0
cmp qword [rcx + 0x18], 0x10
jb 0x140002b2b
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 2
jne 0x140002b4d
cmp qword [rbx + 0x18], 0x10
mov rcx, rbx
jb 0x140002b42
mov rcx, qword [rbx]
or eax, 2
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov qword [rsi], rdi
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140002b86
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140002b81
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002ba9
mov rcx, r8
call fcn.140007ca0
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400064c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1400064e1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000650e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140006510
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140006569
test ecx, ecx
jle 0x140006549
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140006569
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140006569
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rax], al
add byte [rax], al
add eax, dword [rax]
add byte [rax], al
movabs al, byte [0x8c]
add byte [rax], al
add byte [rax], al
ret 0
Function at 0x140006590
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400065b2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400065c1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp 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]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400065e4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400065e6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006622
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400066be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000665d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000669e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400066be
cmp rbx, rax
ja 0x140006670
test rbx, rbx
je 0x1400066be
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
nop
rol byte [rax], 0
call 0x19801526c
pop qword [rax]
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rcx], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax + 0x400000c0], bh
pop qword [rax]
add byte [rax + 0x8f], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add eax, dword [rax]
add byte [rax], al
movabs al, byte [0x8c]