joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ca84
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x140017844]
mov rsi, rcx
test eax, eax
jne 0x14000cb29
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
cmp rsi, rax
je 0x14000cb27
mov ecx, 0x10
call fcn.140001bcc
mov rdi, rax
test rax, rax
jne 0x14000cacc
lea ebx, [rax + 8]
jmp 0x14000cb00
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14000caf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, rdi
mov ebx, eax
call fcn.140001c04
jmp 0x14000cafc
mov ebx, dword [rsp + 0x38]
test ebx, ebx
je 0x14000cb12
and qword [0x140017828], 0
mov eax, ebx
mov dword [0x140017844], ebx
jmp 0x14000cb29
mov rax, qword [0x140017810]
mov qword [rdi], rax
mov qword [rdi + 8], rsi
mov qword [0x140017810], rdi
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000d434
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov dword [r11 + 0x18], r8d
push rdi
sub rsp, 0x40
mov rbx, qword [rsp + 0x78]
mov rdi, rdx
mov rsi, qword [rsp + 0x70]
mov r8, rdx
lea rdx, str.SoftwareMicrosoftInternet_ExplorerMainAllowAxisCharacter
mov r9d, 0x18
mov rcx, 0xffffffff80000001
test rbx, rbx
je 0x14000d481
mov eax, dword [rbx]
mov dword [rsp + 0x60], eax
lea rax, [r11 + 0x18]
mov qword [r11 - 0x18], rax
jmp 0x14000d48c
and dword [rsp + 0x60], 0
and qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rsi
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
mov ecx, eax
lea eax, [rax - 2]
cmp eax, 1
jbe 0x14000d4ba
test rbx, rbx
je 0x14000d4ef
mov eax, dword [rsp + 0x60]
mov dword [rbx], eax
jmp 0x14000d4ef
mov qword [rsp + 0x30], rbx
lea rdx, str.SoftwareMicrosoftInternet_ExplorerMainAllowAxisCharacter
mov qword [rsp + 0x28], rsi
mov r9d, 0x18
and qword [rsp + 0x20], 0
mov r8, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
mov ecx, eax
mov rbx, qword [rsp + 0x50]
mov eax, ecx
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000fe40
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x140017018]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov esi, 0x104
mov qword [r8], r15
mov r9d, esi
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r14, r8
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14000feb3
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14000feb3
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x14000fe91
lea rax, [rdx - 2]
test r9, r9
lea r8, [0x140014a70]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov rdx, rsi
mov word [rax], r15w
call fcn.140002578
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000ffdc
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rax
mov dword [rsp + 0x20], r15d
call fcn.14000ee84
mov ebx, eax
test eax, eax
jns 0x14000ff30
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xcf
call fcn.14000f954
jmp 0x14000ffd0
lea r8, [0x140014a78]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140002578
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14000ffbd
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14000ee84
mov esi, eax
test eax, eax
jns 0x14000ff97
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd7
call fcn.14000f954
mov rcx, rbx
call fcn.14000e528
mov ebx, esi
jmp 0x14000ffd0
mov rcx, rbx
call fcn.14000e528
movsxd rax, dword [rsp + 0x24]
movsxd rcx, dword [rsp + 0x20]
shl rcx, 0x1f
or rcx, rax
mov qword [r14], rcx
mov rcx, rdi
call fcn.14000e528
jmp 0x14000ffed
mov rcx, qword [rbp + 0x168]
mov edx, 0xd5
call fcn.14000f934
mov ebx, eax
mov rcx, rdi
call fcn.14000e528
mov eax, ebx
jmp 0x140010002
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x14000fff1
xor eax, eax
jmp 0x140010002
mov rcx, qword [rbp + 0x168]
mov edx, reloc.iertutil.dll_Ordinal_201
call fcn.14000f934
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140001560
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140010d30
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 0x140010dd0
jmp 0x140010dbf
jae 0x140010e90
cmp r8, 0x201
jae 0x140010dd0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140010e28
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x140010dff
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140043390
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 0x140010e51
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140010ef8
mov r8d, r14d
cmp r15, r8
jne 0x140010db0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140010f25
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140010dbf
jmp 0x140010dd0
cmp rsi, r8
jb 0x140010f3f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400137c0
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 0x140010ee1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140007900
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 0x140010ec9
jmp 0x140010ee1
lea rcx, [0x140046470]
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.140043d10
jmp 0x140010f54
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140044160
ud2
Function at 0x1400110e0
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.140025270
mov rax, qword [rbp - 0x58]
movabs rdi, 0x8000000000000000
cmp rax, rdi
jne 0x140011136
lea rcx, [rbp - 0x50]
call fcn.140008dc0
mov qword [rsi], rdi
jmp 0x140011321
mov qword [rbp + 0x3c8], rsi
mov qword [rbp + 0x418], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x408], rax
mov qword [rbp + 0x3f0], 0
mov qword [rbp + 0x3f8], 2
mov qword [rbp + 0x400], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor ebx, ebx
xor edi, edi
xor r13d, r13d
cmp r8, 0x201
jae 0x1400111c0
jmp 0x1400111af
jae 0x140011286
cmp r8, 0x201
jae 0x1400111c0
mov r15d, 0x200
lea r14, [rbp - 0x58]
mov r12, r8
jmp 0x140011218
sub r8, r13
sub rdi, r13
cmp rdi, r8
jae 0x1400111ef
lea rcx, [rbp + 0x3f0]
mov rdx, r13
call fcn.140043390
mov rbx, qword [rbp + 0x3f0]
mov rax, qword [rbp + 0x3f8]
mov qword [rbp + 0x410], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rbp + 0x400], r13
mov rdi, rbx
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x140011247
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001135b
mov r8d, esi
cmp r12, r8
jne 0x1400111a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140011396
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1400111af
jmp 0x1400111c0
cmp r15, r8
jb 0x1400113b0
lea rcx, [rbp + 0x3a8]
mov rdx, r14
call fcn.1400137c0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
movabs rdi, 0x8000000000000000
test rbx, rbx
mov rsi, qword [rbp + 0x3c8]
je 0x1400112e8
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rbx
call fcn.140007900
cmp qword [rbp + 0x3d0], rdi
jne 0x140011338
mov qword [rsi], rdi
lea rcx, [rbp + 0x3d8]
call fcn.140008dc0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x140011321
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.140007900
mov rax, rsi
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
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x14001130c
jmp 0x140011321
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d8], rax
movabs rdi, 0x8000000000000000
mov qword [rbp + 0x3d0], rdi
test rbx, rbx
mov rsi, qword [rbp + 0x3c8]
jne 0x1400112d0
jmp 0x1400112e8
lea rcx, [0x140046470]
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.140043d10
jmp 0x1400113c5
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.140044160
ud2
Function at 0x140017330
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.140033b90
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call fcn.140042cd0
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x14001d920]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.14001d3a0
cmp qword [rbp + 0xfe8], 0
jne 0x140017507
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x1400174d3
cmp r12, 0x1000
ja 0x140017529
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x1400174a7
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140017450
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x1400174ad
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x140017490
jbe 0x140017400
jmp 0x140017515
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x1400173b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.140008dc0
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.140008dc0
jmp 0x1400174d3
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.1400441e0
jmp 0x14001753d
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.140044160
ud2
Function at 0x14001af40
Capabilities:
Read 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 [0x140048458]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14001af84
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_NtReadFile]
cmp eax, 0x103
jne 0x14001afe3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14001aff2
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14001b02a
cmp eax, 0x103
je 0x14001b034
test eax, eax
js 0x14001b00f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14001b02a
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 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.1400133f0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400093e0
mov ecx, 7
int 0x29
ud2
Function at 0x14001b0a0
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 [0x140048458]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14001b0e4
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 0x14001b14a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14001b181
test eax, eax
js 0x14001b15b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001b174
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.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.1400133f0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400093e0
mov ecx, 7
int 0x29
ud2
Function at 0x14001dde0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14001df33
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x14001de17
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14001def8
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14001df16
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 qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001de79
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x14001deab
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x14001deaf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x14001deb3
cmp eax, 0x6d
jne 0x14001dede
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x14001deb8
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x14001dee4
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.140008dc0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x14001deee
cmp rax, 1
je 0x14001de62
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 0x14001de6c
mov r8d, 0x10
mov rcx, rbx
call fcn.140043220
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14001de24
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140043220
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14001de24
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140043190
int3
Function at 0x140023450
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
lea rcx, [rsp + 0x40]
call fcn.140025270

Function at 0x140024390
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 0x1400243d3
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, [0x140011a00]
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_syspalwindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140043c40
ud2
Function at 0x140032930
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400329aa
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 0x1400329a0
cmp r11, r10
ja 0x140032a35
cmp r10, rdx
ja 0x140032a47
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400329a2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140032980
jmp 0x140032a17
ja 0x1400329aa
mov r11, r10
cmp rax, r8
jne 0x140032952
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140032a1b
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 0x1400329f0
mov r8, r10
sub ecx, r9d
jns 0x140032a0e
jmp 0x140032a1d
cmp r10, rdx
je 0x140032a29
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140032a1d
xor al, 1
cmp r8, rdx
jne 0x1400329d0
jmp 0x140032a1d
xor eax, eax
jmp 0x140032a1d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140043bb0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400441e0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140044160
int3

Function at 0x1400340d8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140034122
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140034122
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140034122
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140034122
cmp dword [rcx + 0x84], 0xe
jbe 0x140034122
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140034124
xor al, al
add rsp, 0x28
ret

Function at 0x1400389a8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400387a4
Function at 0x14003ba8c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14003babc
xor eax, eax
jmp 0x14003bb7f
mov rbp, rbx
cmp word [rax], si
je 0x14003bae1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003bac8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003bac4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14003b9ac
movsxd r14, eax
test eax, eax
jne 0x14003bb1f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14003bab5
mov rcx, r14
call fcn.14003c968
mov rdi, rax
test rax, rax
jne 0x14003bb38
xor ecx, ecx
call fcn.14003a00c
jmp 0x14003bb14
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14003b9ac
test eax, eax
jne 0x14003bb69
mov rcx, rdi
call fcn.14003a00c
jmp 0x14003bb73
xor ecx, ecx
call fcn.14003a00c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret