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

Disassembly:
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 0x14001b1e8
call fcn.14001299c
mov dword [rax], socket
call fcn.140011994
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 0x14001b1d0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14001b1d0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14001b21a
lock or dword [rax + 0x14], 0x10
jmp 0x14001b1d0
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14001b237
mov rcx, qword [rbp + 0x10]
call fcn.14001c9cc
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140019880
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14001cf60
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14001b28e
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 0x14001b1d0
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14001b2fa
mov rcx, qword [rbp + 0x10]
call fcn.140019880
cmp eax, 0xffffffff
je 0x14001b2e1
mov rcx, qword [rbp + 0x10]
call fcn.140019880
cmp eax, 0xfffffffe
je 0x14001b2e1
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140019880
movsxd rdi, eax
lea rsi, [0x140042740]
mov rcx, rbx
sar rdi, 6
call fcn.140019880
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14001b2e8
lea rax, [0x140040350]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001b2fa
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14001b330
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14001b32c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14001b32c
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 0x14001b1d3
jmp 0x14001b1a0

Function at 0x14001d7a4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001d7c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001292c
or eax, 0xffffffff
jmp 0x14001d7c6
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000d370
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 r13d, r13d
cmp r8, 0x201
jae 0x14000d410
jmp 0x14000d3ff
jae 0x14000d4d0
cmp r8, 0x201
jae 0x14000d410
lea r12, [rbp - 0x58]
mov esi, 0x200
mov r15, r8
jmp 0x14000d468
sub r8, r13
sub rdi, r13
cmp rdi, r8
jae 0x14000d43f
lea rcx, [rbp + 0x3c8]
mov rdx, r13
call fcn.1400313f0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rbp + 0x3d8], r13
mov rdi, rbx
mov r12, qword [rbp + 0x3e8]
mov rsi, r13
mov r15, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14000d491
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000d538
mov r8d, r14d
cmp r15, r8
jne 0x14000d3f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000d55b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000d3ff
jmp 0x14000d410
cmp rsi, r8
jb 0x14000d575
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.14000fef0
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 0x14000d521
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.1400056e0
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 rbx, rbx
jne 0x14000d509
jmp 0x14000d521
lea rcx, [0x140034088]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140032100
jmp 0x14000d58a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400324f0
ud2
Function at 0x140010910
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140010940
test ecx, ecx
jne 0x140010990
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14001094c
test ecx, ecx
jne 0x140010990
mov rcx, rdi
call fcn.1400107f0
movzx eax, al
test bpl, bpl
jne 0x140010997
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140010983.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140010b08]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140010983.2
xor eax, eax
test bpl, bpl
je 0x14001095c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140010ae9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x1400109ca
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140010a49
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140010a10
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140010a2b
inc rax
dec rdi
cmp rax, 1
jne 0x1400109f0
jmp 0x140010a49
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140010a2b
cmp ebx, 0x5c
je 0x140010a2b
inc rax
dec rdi
cmp rax, 1
jne 0x140010a10
jmp 0x140010a49
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140010af7
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140010a73
mov al, 9
cmp rdx, 2
je 0x140010a77
cmp rdx, 1
jne 0x140010a87
cmp byte [r8], 0x2e
jne 0x140010a87
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140010a87
mov al, 0xa
jmp 0x140010a87
cmp byte [r8], 0x2e
jne 0x140010a87
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov qword [rsi + 8], r8
mov qword [rsi + 0x10], rdx
mov byte [rsi + 0x18], al
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140010983.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140010983.2
mov ecx, 2
jmp case.0x140010983.2
lea r8, str.library_std_srcpath.rs
call fcn.1400324e0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1400324e0
ud2
Function at 0x140014440
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10a8
call fcn.140030870
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1010], xmm6
mov qword [rbp + 0x1008], 0xfffffffffffffffe
mov rsi, rdx
mov r12, rcx
mov qword [rbp + 0xfc0], rcx
mov qword [rbp + 0xfc8], rdx
lea rbx, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xff8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfd0], xmm6
mov qword [rbp + 0xfe0], 0
lea rax, [rbp + 0xff8]
mov qword [rbp + 0xfe8], rax
lea r14, [0x14001aa80]
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0xfd0]
mov rcx, r12
mov rdx, rbx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x140014664
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
lea rbx, [rbp + 0xfd0]
mov r13, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov qword [rbp + 0xff0], r12
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xff8], 0
je 0x140014520
cmp dword [rbp + 0xffc], 0
jne 0x140014679
mov r15d, dword [rbp + 0x1000]
mov qword [rbp + 0xfb0], 0
mov qword [rbp + 0xfb8], r15
test r15, r15
je 0x140014679
cmp r15d, 0x1000
ja 0x1400146b9
xor r12d, r12d
nop word cs:[rax + rax]
cmp r12, r15
ja 0x1400146a5
lea rdx, [r12 + rbp]
add rdx, 0xffffffffffffffb0
mov r8d, r15d
sub r8d, r12d
mov dword [rbp + 0xff8], 0
movaps xmmword [rbp + 0xfd0], xmm6
mov qword [rbp + 0xfe0], 0
lea rax, [rbp + 0xff8]
mov qword [rbp + 0xfe8], rax
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r9, rbx
call r13
test eax, eax
je 0x14001466c
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xff8], 0
je 0x1400145e0
cmp dword [rbp + 0xffc], 0
jne 0x140014672
mov eax, dword [rbp + 0x1000]
add r12, rax
cmp r12, r15
jne 0x140014580
mov dword [rbp + 0xff8], 0
movaps xmmword [rbp + 0xfd0], xmm6
mov qword [rbp + 0xfe0], 0
lea rax, [rbp + 0xff8]
mov qword [rbp + 0xfe8], rax
mov qword [rsp + 0x20], r14
mov r12, qword [rbp + 0xff0]
mov rcx, r12
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x140014520
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140014679
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12, qword [rbp + 0xff0]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rbp + 0x1010]
add rsp, 0x10a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.140032500
jmp 0x1400146cd
mov ecx, r15d
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
call fcn.1400324f0
ud2
Function at 0x140017ff0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
mov edx, 0xffffffff
cmp r9, rdx
cmovb rdx, r9
mov qword [rsp + 0x78], rcx
lea r9, [rsp + 0x80]
mov qword [rsp + 0x80], rax
test rcx, rcx
cmove r9, rcx
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x58]
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_NtReadFile]
cmp eax, 0x103
jne 0x140018094
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x58]
cmp eax, 0xc0000011
jne 0x1400180a3
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400180db
cmp eax, 0x103
je 0x1400180e5
test eax, eax
js 0x1400180c0
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400180db
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xd8
pop rdi
pop rsi
ret
mov byte [rsp + 0x54], 0
mov dword [rsp + 0x50], 0
lea rax, str.I_O_error:_operation_failed_to_complete_synchronously
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 1
mov qword [rsp + 0x78], 0
lea rax, [0x140033a38]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rax
lea rax, [0x14002c2f0]
mov qword [rsp + 0x70], rax
lea rax, [0x1400344c0]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 2
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0xa8]
call fcn.14000fa50
mov rcx, rax
call fcn.140007370
mov ecx, 7
int 0x29
ud2
Function at 0x1400181b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
mov edx, 0xffffffff
cmp r9, rdx
cmovb rdx, r9
mov qword [rsp + 0x78], rcx
lea r9, [rsp + 0x80]
mov qword [rsp + 0x80], rax
test rcx, rcx
cmove r9, rcx
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x58]
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 0x14001825b
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x58]
cmp eax, 0x103
je 0x140018292
test eax, eax
js 0x14001826c
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140018285
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, 0xd8
pop rdi
pop rsi
ret
mov byte [rsp + 0x54], 0
mov dword [rsp + 0x50], 0
lea rax, str.I_O_error:_operation_failed_to_complete_synchronously
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 1
mov qword [rsp + 0x78], 0
lea rax, [0x140033a38]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rax
lea rax, [0x14002c2f0]
mov qword [rsp + 0x70], rax
lea rax, [0x1400344c0]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 2
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0xa8]
call fcn.14000fa50
mov rcx, rax
call fcn.140007370
mov ecx, 7
int 0x29
ud2
Function at 0x14001af20
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14001b02d
mov rsi, rcx
mov rbx, qword [rdi + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x14001af57
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14001aff2
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14001b010
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x20]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001afae
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14001afcb
jmp 0x14001afc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14001afc6
cmp eax, 0x6d
jne 0x14001afe2
mov byte [rsi + 1], 0
jmp 0x14001afd6
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14001afd8
mov r8d, 0x10
mov rcx, rbx
call fcn.1400314b0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14001af64
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1400314b0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14001af64
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140031320
ud2
Function at 0x14001f8b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x30]
call fcn.140017970
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x14001f8ff
mov rbx, qword [rbp - 0x30]
mov r14, qword [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001f96a
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x14001f95f
mov rdx, qword [rbp - 0x30]
mov eax, edx
and eax, 3
cmp eax, 1
jne 0x14001f957
lea rax, [rdx - 1]
mov qword [rbp - 0x18], rax
mov rcx, qword [rdx - 1]
mov qword [rbp - 0x10], rdx
mov rax, qword [rdx + 7]
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rdi, qword [rbp - 0x18]
je 0x14001f944
mov r8, qword [rax + 0x10]
mov rcx, qword [rdi]
call fcn.1400056e0
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.1400056e0
mov qword [rsi + 8], 0
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rsi + 8], 0
test rbx, rbx
je 0x14001f95f
add rbx, rbx
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.1400056e0

Function at 0x140020590
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 0x1400205d3
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, [0x14000e040]
mov qword [rbp - 0x28], rax
lea rax, [0x140036478]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x60], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140032060
ud2
Function at 0x140020c30
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], r8
mov ecx, 0x10
mov edx, 8
call fcn.1400056d0
test rax, rax
je 0x140020d0a
mov r14, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140020d90]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140020cfc
mov rcx, qword [r14]
mov qword [rbp - 0x10], r14
mov rax, qword [r14 + 8]
call qword [rax]
mov rsi, qword [rbp - 0x10]
mov rax, qword [rsi + 8]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140020cd4
mov r8, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.1400056e0
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call fcn.1400056e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov ecx, 0x10
mov edx, 8
call fcn.140031fe0
ud2

Function at 0x14002f0d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14002f14a
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 0x14002f140
cmp r10, r11
jb 0x14002f1e3
cmp r10, rdx
ja 0x14002f1f7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14002f142
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14002f120
jmp 0x14002f1b7
ja 0x14002f14a
mov r11, r10
cmp rax, r8
jne 0x14002f0f2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14002f1bb
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 0x14002f190
mov r8, r10
sub ecx, r9d
jns 0x14002f1ae
jmp 0x14002f1bd
cmp r10, rdx
je 0x14002f1c9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002f1bd
xor al, 1
cmp r8, rdx
jne 0x14002f170
jmp 0x14002f1bd
xor eax, eax
jmp 0x14002f1bd
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__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140032100
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140032500
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400324f0
ud2
Function at 0x140001ef4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001f3e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001f3e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001f3e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001f3e
cmp dword [rcx + 0x84], 0xe
jbe 0x140001f3e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001f40
xor al, al
add rsp, 0x28
ret
Function at 0x140035ae8
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14011aa00]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebx, ebx
cmp qword [0x140114298], rbx
jne 0x140035b73
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x1400d8948]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140035b68
mov rdx, qword [rsp + 0x20]
cmp word [rdx], bx
je 0x140035b40
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bx
jne 0x140035b34
mov rbx, rax
mov r8, rbx
lea rcx, [0x140114288]
call fcn.140005bc4
mov r8d, 0x18
lea rdx, str.MicrosoftUEVTemplates
lea rcx, [0x140114288]
call fcn.140005ce8
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rax, [0x140114288]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400afcd0
add rsp, 0x30
pop rbx
ret