joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c4da0
Capabilities:
Encode data using base64

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rsi, rcx
mov r15, qword [rcx + 0x28]
movzx ecx, byte [rcx + 0x158]
shr r15, cl
mov rdi, r15
test r15, r15
mov qword [rbp - 0x28], r15
je 0x1400c4fa2
mov rax, r15
shr rax, 0x3d
jne 0x1400c4fe0
lea r14, [r15*4]
movzx eax, byte [0x14031b901]
mov edx, 4
mov rcx, r14
call fcn.1400016f0
test rax, rax
je 0x1400c4fe5
mov rbx, rax
cmp r15, 8
jae 0x1400c4e1f
xor eax, eax
jmp 0x1400c4e70
mov rax, r15
and rax, 0xfffffffffffffff8
movdqa xmm0, xmmword [0x140299660]
xor ecx, ecx
movdqa xmm1, xmmword [0x1402ab5c0]
movdqa xmm2, xmmword [str._b_b_b_b]
movdqa xmm3, xmm0
paddd xmm3, xmm1
movdqu xmmword [rbx + rcx*4], xmm0
movdqu xmmword [rbx + rcx*4 + 0x10], xmm3
add rcx, 8
paddd xmm0, xmm2
cmp rax, rcx
jne 0x1400c4e40
cmp r15, rax
je 0x1400c4e7f
nop word cs:[rax + rax]
mov dword [rbx + rax*4], eax
lea rcx, [rax + 1]
mov rax, rcx
cmp r15, rcx
jne 0x1400c4e70
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], 0
lea r14, [rbp - 0x20]
mov r15d, edi
lea rax, [rdi - 0x80000000]
cmp rax, 0xffffffff80000001
jb 0x1400c4f44
dec r15d
mov rcx, qword [rsi + 0x158]
and ecx, 0x3f
mov r8, qword [rsi + 0x160]
mov r9, qword [rsi + 0x20]
mov rdx, qword [rsi + 0x28]
nop dword [rax]
sub rdi, 1
jb 0x1400c4f4d
mov eax, edi
shl rax, cl
add rax, r8
cmp rax, rdx
jae 0x1400c4f86
mov rax, qword [r9 + rax*8]
shr rax, 0x2a
cmp eax, 0x3ffffe
ja 0x1400c4ed0
mov qword [rbp], rbx
mov byte [rbp + 0xf], 0
mov rcx, r14
mov rdx, rsi
mov r8d, r15d
mov r9d, edi
call fcn.1400bb070
mov dword [rsi + 0x170], r15d
test r15d, r15d
jne 0x1400c4e9a
mov qword [rbp], rbx
mov byte [rbp + 0xf], 0
lea rcx, str.match_states_should_be_a_proper_subset_of_all_states
lea r8, [0x1402ad640]
mov edx, 0x34
call fcn.1402737c0
jmp 0x1400c5029
test rdi, rdi
jne 0x1400c4ff2
movdqu xmm0, xmmword [rbp - 0x20]
movdqu xmm1, xmmword [rbp - 0x10]
movdqa xmmword [rbp - 0x40], xmm1
movdqa xmmword [rbp - 0x50], xmm0
mov qword [rbp], rbx
mov byte [rbp + 0xf], 1
lea rcx, [rbp - 0x50]
mov rdx, rsi
call fcn.1400bb160
nop
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rbp], rbx
mov byte [rbp + 0xf], 0
lea r8, [0x1402ad8b0]
mov rcx, rax
call fcn.140273a00
jmp 0x1400c5029
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], 4
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], 0
mov qword [rbp], 4
mov byte [rbp + 0xf], 0
lea rcx, str.called__Option::unwrap____on_a__None__valueC:Usershulk.cargo_registry_srcindex.crates.io_6f17d22bba15001f_regex_automata_0.4.6_srcdfaonepass.rs
lea r8, [0x1402ad8e0]
mov edx, 0x2b
call fcn.140273900
jmp 0x1400c5029
call fcn.140189020
mov ecx, 4
mov rdx, r14
call fcn.140273560
dec rdi
mov qword [rbp - 0x50], rdi
mov qword [rbp], rbx
mov byte [rbp + 0xf], 0
lea rax, [0x1402ad5f0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1402ad566]
lea r9, [0x1402ad378]
lea r8, [rbp - 0x50]
mov edx, 0x15
call fcn.140273cd0
ud2
Function at 0x1400de230
Capabilities:
Encode data using base64

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rdx
mov rbx, qword [rcx + 8]
mov qword [rbp - 8], rcx
mov r14, qword [rcx + 0x10]
test r14, r14
mov qword [rbp - 0x18], rbx
je 0x1400de298
mov rax, r14
shr rax, 0x3d
jne 0x1400de3c3
lea rdi, [r14*4]
movzx eax, byte [0x14031b901]
mov edx, 4
mov rcx, rdi
call fcn.1400016f0
test rax, rax
je 0x1400de3ca
mov r15, rax
jmp 0x1400de2a0
mov r15d, 4
xor edi, edi
mov rcx, r15
mov rdx, rbx
mov r8, rdi
call fcn.140263720
mov r8, qword [rsi + 0x10]
test r8, r8
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x10], r15
je 0x1400de336
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 0x18]
and ecx, 0x3f
xor eax, eax
jmp 0x1400de2dc
mov dword [rbx + rax*4], r10d
inc rax
cmp rax, r8
je 0x1400de336
mov r9, rax
shl r9, cl
cmp rax, r14
je 0x1400de3af
mov edx, dword [r15 + rax*4]
cmp edx, r9d
je 0x1400de2d4
nop word cs:[rax + rax]
mov r10d, edx
mov edx, edx
shr rdx, cl
cmp rdx, r14
jae 0x1400de39b
mov edx, dword [r15 + rdx*4]
cmp edx, r9d
jne 0x1400de300
cmp rax, r14
jb 0x1400de2d0
lea r8, [0x1402b1fb8]
mov rcx, rax
mov rdx, r14
call fcn.140273a00
jmp 0x1400de3d7
mov rdx, qword [rbp - 8]
lea r8, [rdx + 0x18]
mov rcx, rsi
call fcn.1400e5ca0
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x1400de362
shl rdx, 2
mov r8d, 4
mov rcx, qword [rbp - 0x10]
call fcn.140001700
mov rax, qword [rbp - 8]
mov rdx, qword [rax]
test rdx, rdx
mov rcx, qword [rbp - 0x18]
je 0x1400de38d
shl rdx, 2
mov r8d, 4
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp fcn.140001700
nop
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
lea r8, [0x1402b1fa0]
mov rcx, rdx
mov rdx, r14
call fcn.140273a00
jmp 0x1400de3d7
lea r8, [0x1402b1f88]
mov rcx, r14
mov rdx, r14
call fcn.140273a00
jmp 0x1400de3d7
call fcn.140189020
jmp 0x1400de3d7
mov ecx, 4
mov rdx, rdi
call fcn.140273560
ud2
Function at 0x140134330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rdx]
movzx eax, byte [rcx + 0x24]
cmp al, 2
je 0x140134379
and al, 1
jne 0x140134379
movzx eax, byte [rdi + 0x34]
xor al, 4
or al, byte [rdi + 0x35]
mov eax, dword [rdi + 0x30]
jne 0x14013437c
cmp eax, 0xff
ja 0x14013437c
test al, al
js 0x1401343d9
movzx eax, al
shl rax, 0x20
test al, 1
je 0x140134388
jmp 0x140134463
mov eax, dword [rdi + 0x30]
shl rax, 0x20
test al, 1
jne 0x140134463
mov rcx, rax
shr rcx, 0x27
jne 0x14013439d
shr rax, 0x20
mov byte [rsi + 8], al
jmp 0x140134466
mov r14, qword [rdx + 8]
mov rbx, qword [rdx + 0x10]
test rbx, rbx
je 0x140134414
js 0x1401344bb
movzx eax, byte [0x14031b901]
mov edx, 1
mov rcx, rbx
call fcn.1400016f0
mov r15, rax
test rax, rax
jne 0x14013441a
mov ecx, 1
mov rdx, rbx
call fcn.140273560
cmp byte [rcx + 0x27], 0
je 0x140134450
mov r14, qword [rdx + 8]
mov rbx, qword [rdx + 0x10]
test rbx, rbx
je 0x14013447f
js 0x1401344bb
movzx eax, byte [0x14031b901]
mov edx, 1
mov rcx, rbx
call fcn.1400016f0
mov r15, rax
test rax, rax
jne 0x140134485
jmp 0x1401343cc
mov r15d, 1
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.140263720
mov qword [rsi], rbx
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], rbx
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmm2, xmmword [rdi + 0x20]
movups xmmword [rsi + 0x18], xmm0
movups xmmword [rsi + 0x28], xmm1
movups xmmword [rsi + 0x38], xmm2
mov byte [rsi + 0x48], 0
jmp 0x140134473
movzx eax, al
shl rax, 8
or rax, 1
test al, 1
je 0x140134388
mov byte [rsi + 8], ah
movabs rax, 0x8000000000000000
mov qword [rsi], rax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov r15d, 1
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.140263720
mov qword [rsi], rbx
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], rbx
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmm2, xmmword [rdi + 0x20]
movups xmmword [rsi + 0x18], xmm0
movups xmmword [rsi + 0x28], xmm1
movups xmmword [rsi + 0x38], xmm2
mov byte [rsi + 0x48], 1
jmp 0x140134473
call fcn.140189020
int3

Function at 0x140145bf0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret
Function at 0x140150930
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp - 8], 0
lea r9, [rbp - 8]
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.shell32.dll_SHGetKnownFolderPath]
mov rcx, qword [rbp - 8]
test eax, eax
je 0x14015097d
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x1401509ac
call qword [sym.imp.kernel32.dll_lstrlenW]
movsxd r8, eax
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 0x28]
call fcn.1401759f0
mov rcx, qword [rbp - 8]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movups xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x140153d10
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov r8, rdx
mov rax, qword [rcx + 0x38]
test rax, rax
jle 0x140153d37
cmp qword [rcx + 0x40], 0
js 0x140153d37
add rax, 0xffffffffffffff00
mov qword [rcx + 0x38], rax
mov edx, 6
jmp fcn.1401541f0
mov rdx, r8
jmp fcn.140153d40
Function at 0x140156cc0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x140156d32
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
mov r15, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov r12, qword [sym.imp.advapi32.dll_SystemFunction036]
jmp 0x140156cf8
add rdi, rbx
sub rsi, rbx
je 0x140156d32
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call r15
cmp eax, 0xbfffffff
jbe 0x140156cf0
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
jne 0x140156cf0
add ebp, 0x80000000
jmp 0x140156d34
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140170440
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
test rax, rax
je 0x140170476
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140170486
lea rax, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x50
pop rsi
ret
Function at 0x1401704a0
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], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x140170540
jmp 0x14017052f
jae 0x140170600
cmp r8, 0x201
jae 0x140170540
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140170598
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14017056f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1402723a0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
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 0x1401705c1
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140170668
mov r8d, r14d
cmp r15, r8
jne 0x140170520
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140170695
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14017052f
jmp 0x140170540
cmp rsi, r8
jb 0x1401706af
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1401759f0
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 rbx, rbx
je 0x140170651
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140001700
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 + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x140170639
jmp 0x140170651
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140273900
jmp 0x1401706c4
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140273df0
ud2
Function at 0x140170cb0
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x140170cc0
mov rcx, rdx
mov rdx, r8
jmp fcn.140170cd0
mov rcx, rdx
mov rdx, r8
jmp fcn.14017c180

Function at 0x1401757c0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x140175821
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x140175821
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x140175821
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x140175821
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x140175863
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1006
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140175850
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x38
ret

Function at 0x140175870
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x1401758d1
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x1401758d1
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x1401758d1
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x1401758d1
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x140175913
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140175900
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x38
ret

Function at 0x140175920
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9

Function at 0x140175980
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1401759b4
cdqe
jmp 0x1401759c3
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1401759cb
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1401759dc
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret
Function at 0x14017c180
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140180360
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x14017c241
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.14017e9a0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
cmp rdi, rbx
je 0x14017c241
mov rcx, rsi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x14017c215
test rdi, rdi
je 0x14017c211
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140001700
xor esi, esi
jmp 0x14017c241
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14017c23e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140001700
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x14017c250
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.140180360
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x14017c30f
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.14017e9a0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
cmp rdi, rbx
je 0x14017c30f
mov rcx, rsi
call qword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x14017c2e3
test rdi, rdi
je 0x14017c2df
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140001700
xor esi, esi
jmp 0x14017c30f
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14017c30c
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140001700
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x14017c320
Capabilities:
Move file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r9
mov rbx, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x20]
call fcn.140180360
mov rax, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x18]
movabs r14, 0x8000000000000000
cmp rax, r14
je 0x14017c460
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.14017e9a0
mov rax, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rax, r14
je 0x14017c460
mov qword [rbp - 0x28], rsi
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x20]
mov rdx, rbx
mov r8, rdi
call fcn.140180360
mov rax, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x18]
cmp rax, r14
je 0x14017c3eb
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.14017e9a0
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rdi, r14
jne 0x14017c40e
mov r14, qword [rbp - 8]
mov r15, qword [rbp - 0x28]
test r14, r14
je 0x14017c460
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call fcn.140001700
jmp 0x14017c460
mov r15, qword [rbp - 0x28]
mov rcx, r15
mov rdx, rsi
mov r8d, 1
call qword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
mov r14, qword [rbp - 8]
je 0x14017c470
test rdi, rdi
je 0x14017c445
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140001700
test r14, r14
je 0x14017c45e
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call fcn.140001700
xor esi, esi
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14017c499
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140001700
mov rsi, rbx
test r14, r14
jne 0x14017c3f8
jmp 0x14017c460
Function at 0x14017cb40
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 [0x1402c7a20]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14017cb84
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 0x14017cbea
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14017cc21
test eax, eax
js 0x14017cbfb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14017cc14
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.8z__
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.140174e70
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14016de60
mov ecx, 7
int 0x29
ud2

Function at 0x14017f160
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x14017f198
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.14017f1b0
nop
add rsp, 0x38
ret

Function at 0x14017f1b0
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 0x14017f1f3
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, case.0x140170d3b.114
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.140273830
ud2

Function at 0x14017f850
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
push rax