joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025e40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x14006a168]
test ecx, ecx
je 0x140025f19
dec ecx
call fcn.1400620d4
cmp rax, 2
jb 0x140025e74
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140025e74
add rdi, 0x10
jmp 0x140025f0f
mov ecx, dword [0x14006a168]
test ecx, ecx
je 0x140025f2c
dec ecx
call fcn.1400620d4
cmp rax, 1
je 0x140025f0d
mov rsi, rax
test rax, rax
jne 0x140025edc
movzx eax, byte [0x1402641d8]
mov edx, 0x18
xor ecx, ecx
call fcn.140053b40
test rax, rax
je 0x140025f4f
mov rsi, rax
lea rax, [0x14006a150]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14006a168]
test ecx, ecx
je 0x140025f3f
dec ecx
mov rdx, rsi
call fcn.1400620dc
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 0x140025f0f
test rcx, rcx
je 0x140025f0f
lock dec qword [rcx]
jne 0x140025f0f
call fcn.140025810
jmp 0x140025f0f
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14006a150]
call fcn.140025860
mov ecx, eax
jmp 0x140025e56
lea rcx, [0x14006a150]
call fcn.140025860
mov ecx, eax
jmp 0x140025e84
lea rcx, [0x14006a150]
call fcn.140025860
mov ecx, eax
jmp 0x140025ed4
mov ecx, 8
mov edx, 0x18
call fcn.14000bfa0
int3

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14006a188]
test ecx, ecx
je 0x1400265bc
dec ecx
call fcn.1400620d4
cmp rax, 2
jb 0x140026549
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x1400265ab
mov ecx, dword [0x14006a188]
test ecx, ecx
je 0x1400265cf
dec ecx
call fcn.1400620d4
cmp rax, 1
je 0x1400265b1
mov rsi, rax
test rax, rax
jne 0x1400265a5
movzx eax, byte [0x1402641d8]
mov edx, 0x10
xor ecx, ecx
call fcn.140053b40
test rax, rax
je 0x1400265f2
mov rsi, rax
lea rax, [0x14006a170]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x14006a188]
test ecx, ecx
je 0x1400265e2
dec ecx
mov rdx, rsi
call fcn.1400620dc
mov word [rsi + 8], 1
add rsi, 9
jmp 0x1400265b3
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14006a170]
call fcn.140025860
mov ecx, eax
jmp 0x140026535
lea rcx, [0x14006a170]
call fcn.140025860
mov ecx, eax
jmp 0x140026555
lea rcx, [0x14006a170]
call fcn.140025860
mov ecx, eax
jmp 0x14002659d
mov ecx, 8
mov edx, 0x10
call fcn.14000bfa0
int3
Function at 0x140026bb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140257a98]
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_NtWriteFile
cmp eax, 0x103
jne 0x140026c21
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140026c57
test eax, eax
js 0x140026c32
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140026c4a
mov ecx, eax
call sub.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.140025dc0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140025130
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14006a148]
test ecx, ecx
je 0x1400271fa
dec ecx
call fcn.1400620d4
cmp rax, 2
jb 0x140027170
cmp qword [rax + 8], 0
je 0x140027170
add rax, 0x10
jmp 0x1400271f4
mov ecx, dword [0x14006a148]
test ecx, ecx
je 0x14002720d
dec ecx
call fcn.1400620d4
cmp rax, 1
je 0x1400271f2
mov rsi, rax
test rax, rax
jne 0x1400271d8
movzx eax, byte [0x1402641d8]
mov edx, 0x20
xor ecx, ecx
call fcn.140053b40
test rax, rax
je 0x140027230
mov rsi, rax
lea rax, [0x14006a130]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14006a148]
test ecx, ecx
je 0x140027220
dec ecx
mov rdx, rsi
call fcn.1400620dc
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x1400271f4
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14006a130]
call fcn.140025860
mov ecx, eax
jmp 0x140027155
lea rcx, [0x14006a130]
call fcn.140025860
mov ecx, eax
jmp 0x140027180
lea rcx, [0x14006a130]
call fcn.140025860
mov ecx, eax
jmp 0x1400271d0
mov ecx, 8
mov edx, 0x20
call fcn.14000bfa0
int3
Function at 0x14002ae00
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x38], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 7
mov qword [rsp + 0x54], 0
mov word [rsp + 0x5c], 0
mov byte [rsp + 0x58], 1
lea r8, [rsp + 0x38]
mov rcx, rdx
mov rdx, rax
call fcn.140043570
mov rdi, rdx
test rax, rax
je 0x14002ae90
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call fcn.140025090
mov qword [rsi], 0
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.1400437c0
cmp dword [rsp + 0x38], 2
jne 0x14002aebf
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x14002af0b
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmm2, xmmword [rsp + 0x58]
movups xmm3, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc0], rax
movaps xmmword [rsp + 0xb0], xmm3
movaps xmmword [rsp + 0xa0], xmm2
movaps xmmword [rsp + 0x90], xmm1
cmp qword [rsp + 0x80], 2
jne 0x14002af37
lea rcx, [rsp + 0x88]
call fcn.140025090
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.140061e24
mov r12, qword [rsp + 0xb8]
test rdi, rdi
je 0x14002af95
mov qword [rsp + 0x80], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x14002b011
mov rbx, qword [rsp + 0x80]
jmp 0x14002af97
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x14002b000
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call fcn.140061e24
test r15, r15
je 0x14002b000
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x14002b03d
mov qword [rsi], 0
mov rcx, rbx
call fcn.140061e24
jmp 0x14002b03d
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x38], 1
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.140025090
mov qword [rsi], 0
mov rcx, rdi
call fcn.140061e24
jmp 0x14002ae7f
Function at 0x140044000
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rsi, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0xa8]
call fcn.140027710
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
jne 0x14004404f
lea rcx, [rsp + 0xb0]
call fcn.140025090
mov qword [rsi], rdi
jmp 0x14004422b
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x58], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov esi, 0xffffffff
xor r14d, r14d
xor r13d, r13d
cmp r8, 0x201
jae 0x1400440e0
jmp 0x1400440bf
jae 0x140044187
cmp r8, 0x201
jae 0x1400440e0
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x140044127
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x140044107
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.140027c20
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
cmp rbx, rsi
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rsp + 0x58], r13
mov r14, rbx
mov rdi, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
mov r8d, r12d
call sub.kernel32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x14004414e
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x1400441c6
mov r8d, r15d
cmp r12, r8
jne 0x1400440b0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14004425b
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x1400440bf
jmp 0x1400440e0
cmp rdi, r8
jb 0x140044275
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.1400296e0
movabs rdi, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x1400441e7
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x68], rax
movabs rdi, 0x8000000000000000
mov qword [rsp + 0x60], rdi
mov rsi, qword [rsp + 0x38]
test rbx, rbx
je 0x140044200
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.14000a8d0
cmp qword [rsp + 0x60], rdi
jne 0x140044240
mov qword [rsi], rdi
lea rcx, [rsp + 0x68]
call fcn.140025090
cmp qword [rsp + 0x40], 0
je 0x14004422b
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.14000a8d0
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rsp + 0x40], 0
jne 0x14004421c
jmp 0x14004422b
lea rcx, str.internal_error:_entered_unreachable_code_home_floppa_.cargo_registry_src_index.crates.io_6f17d22bba15001f_rayon_core_1.12.1_src_job.rs
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.14000e620
jmp 0x14004428a
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.14000e280
ud2
Function at 0x140045d80
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140257a98]
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 0x140045dea
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140045df9
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140045e30
cmp eax, 0x103
je 0x140045e3a
test eax, eax
js 0x140045e16
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140045e30
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, 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.140025dc0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140025130
mov ecx, 7
int 0x29
ud2

Function at 0x140046e50
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0x28]
call fcn.140027710
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
cmp rax, rdi
je 0x140046efd
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.1400438d0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rbx, rdi
je 0x140046efd
mov rcx, rsi
xor edx, edx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
je 0x140046ed9
test rbx, rbx
je 0x140046ed5
mov edx, 2
mov rcx, rsi
call fcn.14000a8d0
xor esi, esi
jmp 0x140046efd
call sub.kernel32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
test rbx, rbx
je 0x140046efa
mov edx, 2
mov rcx, rsi
call fcn.14000a8d0
mov rsi, rdi
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400481f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x14006a1a8]
test ecx, ecx
je 0x1400482c9
dec ecx
call fcn.1400620d4
cmp rax, 2
jb 0x140048224
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140048224
add rdi, 0x10
jmp 0x1400482bf
mov ecx, dword [0x14006a1a8]
test ecx, ecx
je 0x1400482dc
dec ecx
call fcn.1400620d4
cmp rax, 1
je 0x1400482bd
mov rsi, rax
test rax, rax
jne 0x14004828c
movzx eax, byte [0x1402641d8]
mov edx, 0x18
xor ecx, ecx
call fcn.140053b40
test rax, rax
je 0x1400482ff
mov rsi, rax
lea rax, [0x14006a190]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14006a1a8]
test ecx, ecx
je 0x1400482ef
dec ecx
mov rdx, rsi
call fcn.1400620dc
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 0x1400482bf
test rcx, rcx
je 0x1400482bf
lock dec qword [rcx]
jne 0x1400482bf
call fcn.140048310
jmp 0x1400482bf
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14006a190]
call fcn.140025860
mov ecx, eax
jmp 0x140048206
lea rcx, [0x14006a190]
call fcn.140025860
mov ecx, eax
jmp 0x140048234
lea rcx, [0x14006a190]
call fcn.140025860
mov ecx, eax
jmp 0x140048284
mov ecx, 8
mov edx, 0x18
call fcn.14000bfa0
int3
Function at 0x14004f4f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rsp + 0x40]
call fcn.140027710
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
cmp rcx, rbx
jne 0x14004f52d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
jmp 0x14004f55a
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.14004f420
mov r14, qword [rsp + 0x28]
cmp r14, rbx
jne 0x14004f573
lea rcx, [rsp + 0x30]
call fcn.140025090
mov qword [rsi], rbx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x14004f597
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x14004f567
mov qword [rsi], rbx
test r14, r14
je 0x14004f567
mov edx, 2
mov rcx, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14000a8d0
Function at 0x140051050
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 [0x1402641d8]
mov edx, 0x10
xor ecx, ecx
call fcn.140053b40
test rax, rax
je 0x140051105
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140051160]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400510f8
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1400510d7
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.14000a8d0
mov edx, 8
mov rcx, rsi
call fcn.14000a8d0
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.14000bfa0
ud2

Function at 0x140051400
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.140061d50
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, [0x140049060]
lea r13, [rsp + 0x60]
lea r12, [0x14006d5e8]
mov qword [rsp + 0x48], rdi

Function at 0x140051900
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 0x140051936
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, [0x140044bf0]
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_syspalwindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.14000d7d0
ud2
Function at 0x140053490
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1400535d9
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x1400534c7
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1400535c3
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1400535a6
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x140053528
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x140053559
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x14005355d
call sub.kernel32.dll_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x140053561
cmp eax, 0x6d
jne 0x14005358c
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x140053566
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x140053592
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.140025090
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x14005359c
cmp rax, 1
je 0x140053511
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x14005351b
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.14002ad00
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x1400534d4
mov r8d, 0x10
mov rcx, rbx
call fcn.14002ad00
mov rax, qword [rbx]
jmp 0x1400534c7
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400535f0
int3

Function at 0x1400581e0
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0x28]
call fcn.140027710
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
cmp rax, rdi
je 0x14005828b
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.1400438d0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rbx, rdi
je 0x14005828b
mov rcx, rsi
call sub.kernel32.dll_DeleteFileW
test eax, eax
je 0x140058267
test rbx, rbx
je 0x140058263
mov edx, 2
mov rcx, rsi
call fcn.14000a8d0
xor esi, esi
jmp 0x14005828b
call sub.kernel32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
test rbx, rbx
je 0x140058288
mov edx, 2
mov rcx, rsi
call fcn.14000a8d0
mov rsi, rdi
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400582a0
Capabilities:
Copy file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rbx, r9
mov rdi, rcx
movabs r15, 0x8000000000000000
lea rcx, [rsp + 0x48]
call fcn.140027710
mov rax, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
cmp rax, r15
je 0x14005830b
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov r8b, 1
call fcn.1400438d0
mov r14, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
cmp r14, r15
jne 0x140058324
mov qword [rdi + 8], rsi
mov qword [rdi], 1
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r8, qword [rsp + 0xd0]
lea rcx, [rsp + 0x48]
mov rdx, rbx
call fcn.140027710
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
cmp rax, r15
je 0x14005837d
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov r8b, 1
call fcn.1400438d0
mov r12, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
cmp r12, r15
jne 0x14005839f
mov qword [rdi + 8], rbx
mov qword [rdi], 1
test r14, r14
je 0x140058316
mov edx, 2
mov rcx, rsi
call fcn.14000a8d0
jmp 0x140058316
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x140058440]
lea r9, [rsp + 0x30]
mov rcx, rsi
mov rdx, rbx
call sub.kernel32.dll_CopyFileExW
test eax, eax
je 0x1400583eb
mov rax, qword [rsp + 0x30]
mov qword [rdi + 8], rax
mov qword [rdi], 0
test r12, r12
jne 0x140058408
jmp 0x140058388
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rdi + 8], rax
mov qword [rdi], 1
test r12, r12
je 0x140058388
mov edx, 2
mov rcx, rbx
call fcn.14000a8d0
jmp 0x140058388