joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003e34
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003e7e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003e7e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003e7e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003e7e
cmp dword [rcx + 0x84], 0xe
jbe 0x140003e7e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003e80
xor al, al
add rsp, 0x28
ret
Function at 0x1400d4d10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x1400d4da0
cmp r10, r11
jb 0x1400d4e16
cmp r10, rdx
ja 0x1400d4e2a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x1400d4da2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x1400d4d80
jmp 0x1400d4e04
ja 0x1400d4daa
mov r11, r10
cmp rax, r8
jne 0x1400d4d44
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x1400d4de0
mov rdi, r8
sub ecx, edx
jns 0x1400d4dfb
jmp 0x1400d4e06
cmp r8, rsi
je 0x1400d4e3b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x1400d4e06
xor al, 1
cmp rdi, rsi
jne 0x1400d4dc0
jmp 0x1400d4e06
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1401029a0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140102730
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_eb26296b556cef10fb713a38f3d16b9886080f26library_alloc_srccollections_btree_navigate.rs
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1401027b0
ud2
Function at 0x1400d8ca3
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call fcn.1400db332
test rax, rax
je 0x1400d8cdb
mov edx, 4
mov rcx, rax
call fcn.1400d0ba0
jmp 0x1400d8d14
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx + 0x10], xmm1
movaps xmmword [rdx], xmm0
lea rbx, [rsp + 0x70]
mov rcx, rbx
call fcn.1400d8106
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi + 0x20], xmm2
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
and qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
jmp fcn.1400d8186
Function at 0x1400db332
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rcx
mov r12d, 0x20
mov r13d, 0xffffffff
mov rbp, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov rsi, qword [sym.imp.advapi32.dll_SystemFunction036]
test r12, r12
je 0x1400db3c5
mov r14, rdi
cmp r12, r13
mov r15d, 0xffffffff
cmovb r15, r12
add rdi, r15
sub r12, r15
xor ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call rbp
cmp eax, 0xc0000000
jb 0x1400db35f
mov ebx, eax
mov rcx, r14
mov edx, r15d
call rsi
test al, al
jne 0x1400db35f
xor ebx, 0x80000000
je 0x1400db3c5
mov al, byte [0x1401e1298]
mov ecx, 4
mov edx, 4
call fcn.1400d0b50
test rax, rax
je 0x1400db3d8
mov dword [rax], ebx
jmp 0x1400db3c7
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 4
mov edx, 4
call fcn.140102520
ud2

Function at 0x1400db3e9
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov esi, ecx
mov eax, 0x30
mov rax, qword gs:[eax]
mov rax, qword [rax + 0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x10
mov rdi, qword [rdi]
movzx edx, word [rdi + 0x58]
mov rcx, qword [rdi + 0x60]
call fcn.1400db4d9
cmp eax, 0x1edab0ed
jne 0x1400db411
mov r14, qword [rdi + 0x30]
movsxd rax, dword [r14 + 0x3c]
mov eax, dword [rax + r14 + 0x88]
test rax, rax
je 0x1400db4aa
mov edi, dword [rax + r14 + 0x18]
mov ecx, dword [rax + r14 + 0x1c]
add rcx, r14
mov qword [rsp + 0x20], rcx
mov r12d, dword [rax + r14 + 0x20]
add r12, r14
mov r13d, dword [rax + r14 + 0x24]
add r13, r14
xor ebx, ebx
xor r15d, r15d
cmp r15, rdi
je 0x1400db4ac
mov rbp, r15
mov ecx, dword [r12 + r15*4]
add rcx, r14
mov rdx, 0xffffffffffffffff
cmp byte [rcx + rdx + 1], 0
lea rdx, [rdx + 1]
jne 0x1400db47a
lea r15, [rbp + 1]
call fcn.1400db4d9
cmp eax, esi
jne 0x1400db464
movzx ecx, word [r13 + rbp*2]
cmp rdi, rcx
jbe 0x1400db4c8
mov rax, qword [rsp + 0x20]
mov ebx, dword [rax + rcx*4]
add rbx, r14
jmp 0x1400db4ac
xor ebx, ebx
movzx eax, word [rbx + 4]
add rbx, 0x12
mov rdx, rbx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.C:Usersuser.cargogitcheckouts_rust_syscalls_37fffce23c87cda7162451a_src_syscall_resolve.rs
mov rdx, rdi
call fcn.140102630
ud2

Function at 0x1400db4d9
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
xor r8d, r8d
cmp r8, rdx
jae 0x1400db515
mov r9b, byte [rcx + r8]
test r9b, r9b
jne 0x1400db4f4
inc r8
jmp 0x1400db4e1
lea r10d, [r9 - 0x20]
cmp r9b, 0x61
movzx r9d, r9b
movzx r10d, r10b
cmovb r10d, r9d
imul r9d, eax, 0x21
movzx eax, r10b
add eax, r9d
jmp 0x1400db4ef
ret
Function at 0x1400dfea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x1400dfefb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1400dfefb
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x1400dff16
cmp eax, 0x42
jne 0x1400dfefb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1400dffc6
cmp byte [r9 + r11], 0x5f
jne 0x1400dffc6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400e002e
mov rcx, rsi
xor edx, edx
call fcn.1400db730
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.1400db730
test al, al
jne 0x1400e00c1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400dff52
lea rdx, [0x1401d5ddb]
mov r8d, 1
call fcn.1400d2980
test al, al
jne 0x1400e00c1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1400dff0a
xor r14d, r14d
lea rbx, [0x1401d61be]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400dff84
cmp byte [rax + rcx], 0x45
je 0x1400e00e3
sub r14, 1
jb 0x1400dffa9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400dffa9
mov r8d, 2
mov rdx, rbx
call fcn.1400d2980
test al, al
jne 0x1400e00c1
mov rcx, rsi
call fcn.1400e0100
test al, al
jne 0x1400e00c1
mov rax, qword [rsi]
test rax, rax
jne 0x1400dff70
jmp 0x1400dff0a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x1400e0088
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x1400e0022
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400e000c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400dfffb
add dl, 0xa9
jmp 0x1400e000a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400e0088
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400e0088
movzx edx, bl
add rax, rdx
jae 0x1400dffd0
jmp 0x1400e0088
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400e0088
cmp rax, rcx
jae 0x1400e0085
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400e00db
cmp qword [rsi + 0x20], 0
je 0x1400e00ef
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.1400dfea0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400dff0c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400e00c9
lea rax, [0x1401d6189]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.1400d2980
test al, al
je 0x1400e00c9
mov dil, 2
jmp 0x1400dff0a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1400dff0a
mov dil, 1
xor r8d, r8d
jmp 0x1400e008a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1400dff0a
xor edi, edi
jmp 0x1400dff0a
Function at 0x1400e77f0
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 0x1400e7820
test ecx, ecx
jne 0x1400e7870
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400e782c
test ecx, ecx
jne 0x1400e7870
mov rcx, rdi
call fcn.1400e76d0
movzx eax, al
test bpl, bpl
jne 0x1400e7877
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x1400e7863.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x1400e79e8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x1400e7863.2
xor eax, eax
test bpl, bpl
je 0x1400e783c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1400e79c9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x1400e78aa
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1400e7929
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 0x1400e78f0
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1400e790b
inc rax
dec rdi
cmp rax, 1
jne 0x1400e78d0
jmp 0x1400e7929
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1400e790b
cmp ebx, 0x5c
je 0x1400e790b
inc rax
dec rdi
cmp rax, 1
jne 0x1400e78f0
jmp 0x1400e7929
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x1400e79d7
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x1400e7953
mov al, 9
cmp rdx, 2
je 0x1400e7957
cmp rdx, 1
jne 0x1400e7967
cmp byte [r8], 0x2e
jne 0x1400e7967
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1400e7967
mov al, 0xa
jmp 0x1400e7967
cmp byte [r8], 0x2e
jne 0x1400e7967
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
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.0x1400e7863.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.0x1400e7863.2
mov ecx, 2
jmp case.0x1400e7863.2
lea r8, str.library_std_srcpath.rs
call fcn.1401026b0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1401026b0
ud2
Function at 0x1400e7ee0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x58]
call fcn.1400e5090
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x410], rax
test rax, rax
je 0x1400e8065
mov qword [rbp + 0x3c8], rsi
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x408], rax
mov qword [rbp + 0x3f0], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f8], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x418], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x1400e7fa0
jmp 0x1400e7f8f
jae 0x1400e8077
cmp r8, 0x201
jae 0x1400e7fa0
lea r12, [rbp - 0x58]
mov esi, 0x200
mov r15, r8
jmp 0x1400e7ff8
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x1400e7fcf
lea rcx, [rbp + 0x3f0]
mov rdx, r13
call fcn.1401034f0
mov rax, qword [rbp + 0x3f0]
mov qword [rbp + 0x418], rax
mov rdi, qword [rbp + 0x3f8]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x400], r13
mov rbx, rdi
mov r12, qword [rbp + 0x418]
mov rsi, r13
mov r15, r13
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x410]
mov rdx, r12
mov r8d, r15d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x1400e8027
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x1400e80ad
mov r8d, r14d
cmp r15, r8
jne 0x1400e7f80
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400e814f
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400e7f8f
jmp 0x1400e7fa0
lea rcx, [rbp - 0x50]
call fcn.1400e2790
mov byte [rsi + 0x18], 2
jmp 0x1400e8119
cmp rsi, r8
jb 0x1400e8169
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.1400e63a0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
jmp 0x1400e80c8
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d0], rax
mov byte [rbp + 0x3e8], 2
test rdi, rdi
mov rsi, qword [rbp + 0x3c8]
je 0x1400e80e5
mov edx, 2
mov rcx, qword [rbp + 0x418]
call fcn.1400d0ba0
cmp byte [rbp + 0x3e8], 2
jne 0x1400e812e
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3d0]
call fcn.1400e2790
cmp qword [rbp + 0x408], 0
je 0x1400e8119
mov edx, 2
mov rcx, qword [rbp + 0x410]
call fcn.1400d0ba0
nop
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3d0]
movaps xmm1, xmmword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rbp + 0x408], 0
jne 0x1400e8108
jmp 0x1400e8119
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1401027b0
jmp 0x1400e817e
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140102730
ud2
Function at 0x1400ea120
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1401d8a68]
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 qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1400ea18c
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400ea19b
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400ea1d3
cmp eax, 0x103
je 0x1400ea1dd
test eax, eax
js 0x1400ea1b8
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400ea1d3
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, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 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.1400e3200
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400e32a0
mov ecx, 7
int 0x29
ud2
Function at 0x1400f5760
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.1400e5090
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x1400f57d6
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.1400f5650
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x1400f57e4
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f5804
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x1400f57f5
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x30]
call fcn.1400e2790
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 0x1400f57f5
mov edx, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.1400d0ba0
Function at 0x1400f8330
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 0x1400f836f
mov rax, qword [rbp - 0x20]
add rsp, 0x80
pop rbp
ret
call sub.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, [0x1400e89f0]
mov qword [rbp - 0x28], rax
lea rax, [0x1401d8f28]
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.1401025f0
ud2

Function at 0x1400fa1e0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1400fa32e
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x1400fa218
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1400fa317
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1400fa2f9
sub rax, rdx
add rdx, qword [rbx]
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 qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x1400fa27b
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x1400fa2a3
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
xor eax, eax
jmp 0x1400fa2e5
call sub.kernel32.dll_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x6d
je 0x1400fa2ab
cmp eax, 0x3e5
jne 0x1400fa2df
lea rax, [rsp + 0x30]
jmp 0x1400fa2b9
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1400fa2e5
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.1400e2790
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x1400fa2ef
cmp rax, 1
je 0x1400fa262
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 0x1400fa26c
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1401035b0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x1400fa225
mov r8d, 0x10
mov rcx, rbx
call fcn.1401035b0
mov rax, qword [rbx + 8]
jmp 0x1400fa218
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1401037a0
ud2

Function at 0x1400feb74
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400febbe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400febbe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400febbe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400febbe
cmp dword [rcx + 0x84], 0xe
jbe 0x1400febbe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400febc0
xor al, al
add rsp, 0x28
ret
Function at 0x415b60
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x415d0b
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00430100
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
nop
jne 0x415bce
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x415be1
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x415c05
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x415c19
cmp rbx, 0x1000
jae 0x415bd8
nop
jmp 0x415c89
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x415c2d
xor edx, edx
jmp 0x415c80
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00430100
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop
test dl, dl
jne 0x415c0f
jmp 0x415bf5
call fcn.0045f700
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.004350c0
lea rax, [0x004dd28a]
mov ebx, 0x18
nop dword [rax + rax]
call fcn.004359c0
mov rax, qword [rsp + 0x38]
call fcn.004356c0
lea rax, [0x004dd332]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.004359c0
mov rax, qword [rsp + 0x30]
call fcn.004356c0
call fcn.00435320
call fcn.00435140
lea rax, [0x004dfe6f]
mov ebx, 0x21
call fcn.00433940
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045bb80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00415b60
Function at 0x415d40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x415f6a
sub rsp, 0x58
mov qword [rsp + 0x50], rbp
lea rbp, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00430180
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x415dbb
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x415dce
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x415df0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x415e04
cmp rbx, 0x1000
jae 0x415dc5
jmp 0x415e8e
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x415e16
xor esi, esi
jmp 0x415e80
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
nop dword [rax]
call fcn.00430180
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
test sil, sil
jne 0x415dfa
jmp 0x415de2
call fcn.0045f700
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x415f09
call fcn.004350c0
lea rax, [0x004dd8dc]
mov ebx, 0x19
call fcn.004359c0
mov rax, qword [rsp + 0x68]
call fcn.004356c0
lea rax, [0x004dd332]
mov ebx, 0x19
nop
call fcn.004359c0
mov eax, dword [rsp + 0x34]
call fcn.004356c0
call fcn.00435320
call fcn.00435140
lea rax, [0x004d925b]
mov ebx, 0xd
call fcn.00433940
cmp eax, 0x5af
je 0x415eb3
call fcn.004350c0
lea rax, [0x004dd8dc]
mov ebx, 0x19
call fcn.004359c0
mov rax, qword [rsp + 0x38]
call fcn.004356c0
lea rax, [0x004dd332]
mov ebx, 0x19
nop dword [rax]
call fcn.004359c0
mov eax, dword [rsp + 0x34]
call fcn.004356c0
call fcn.00435320
call fcn.00435140
lea rax, [0x004df6be]
mov ebx, 0x1f
call fcn.00433940
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045bb80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00415d40