joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140054760
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
sub rsp, 0x168
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe0], 0xfffffffffffffffe
mov dword [rbp - 0xc], r8d
mov qword [rbp - 8], rcx
mov qword [rbp], rcx
mov qword [rbp + 0x18], rdx
lea rcx, [rbp + 0x20]
mov qword [rbp + 8], rcx
mov edx, 0x100
call fcn.14003a1d0
mov rcx, qword [rbp + 8]
call fcn.14003b940
mov qword [rbp + 0x10], rax
jmp 0x1400547ad
mov rax, qword [rbp + 0x10]
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
mov rcx, qword [rax]
call fcn.140053f10
mov qword [rbp - 0x18], rax
jmp 0x1400547c9
lea rcx, [rbp + 0x20]
call fcn.14003a3b0
mov qword [rbp - 0x20], rax
jmp 0x1400547d8
mov r8, qword [rbp - 0x20]
mov edx, dword [rbp - 0xc]
mov rcx, qword [rbp - 0x18]
mov qword [rbp + 0xc8], 0
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0xc0], rax
mov r9, qword [rbp + 0xc0]
mov qword [rbp + 0xd8], 0
mov rax, qword [rbp + 0xd8]
mov qword [rbp + 0xd0], rax
mov r10, qword [rbp + 0xd0]
mov qword [rbp + 0xb8], 0
mov rax, qword [rbp + 0xb8]
mov qword [rbp + 0xb0], rax
mov r11, qword [rbp + 0xb0]
mov qword [rbp + 0xa8], 0
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0xa0], rax
mov rsi, qword [rbp + 0xa0]
mov rax, rsp
mov qword [rax + 0x38], rsi
mov qword [rax + 0x30], r11
mov qword [rax + 0x28], r10
mov qword [rax + 0x20], r9
mov rax, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea r9, [rbp + 0x3c]
call rax
mov dword [rbp - 0x24], eax
jmp 0x140054888
mov eax, dword [rbp - 0x24]
cmp eax, 0x103
je 0x14005489c
mov eax, dword [rbp - 0x24]
cmp eax, 0
jne 0x1400548c2
jmp 0x1400548b2
mov rax, qword [rbp - 8]
movabs rcx, 0x8000000000000001
mov qword [rax], rcx
jmp 0x14005494b
mov eax, dword [rbp + 0x3c]
mov edx, eax
lea rcx, [rbp + 0x20]
call fcn.14003b930
jmp 0x1400548d3
mov ecx, dword [rbp - 0x24]
call fcn.140040730
mov qword [rbp - 0x30], rax
jmp 0x140054962
lea rcx, [rbp + 0x20]
call fcn.14003c190
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x38], rax
jmp 0x1400548e6
mov r8, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp + 0x80]
call fcn.1400728c0
jmp 0x1400548fc
mov rax, qword [rbp - 8]
mov rcx, qword [rbp + 0x80]
mov qword [rbp + 0x60], rcx
mov rcx, qword [rbp + 0x88]
mov qword [rbp + 0x68], rcx
mov rcx, qword [rbp + 0x90]
mov qword [rbp + 0x70], rcx
mov rcx, qword [rbp + 0x98]
mov qword [rbp + 0x78], rcx
mov rcx, qword [rbp + 0x60]
mov qword [rax], rcx
mov rcx, qword [rbp + 0x68]
mov qword [rax + 8], rcx
mov rcx, qword [rbp + 0x70]
mov qword [rax + 0x10], rcx
mov rcx, qword [rbp + 0x78]
mov qword [rax + 0x18], rcx
lea rcx, [rbp + 0x20]
call fcn.140009e50
mov rax, qword [rbp]
add rsp, 0x168
pop rsi
pop rbp
ret
mov rax, qword [rbp - 8]
mov rcx, qword [rbp - 0x30]
mov qword [rbp + 0x48], rcx
movabs rcx, 0x8000000000000000
mov qword [rbp + 0x40], rcx
mov rcx, qword [rbp + 0x40]
mov qword [rax], rcx
mov rcx, qword [rbp + 0x48]
mov qword [rax + 8], rcx
mov rcx, qword [rbp + 0x50]
mov qword [rax + 0x10], rcx
mov rcx, qword [rbp + 0x58]
mov qword [rax + 0x18], rcx
jmp 0x14005494b
Function at 0x14005f8f0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0xe8
lea rcx, [rsp + 0x88]
xor edx, edx
mov r8d, 0x30
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x88]
mov r8d, 0x30
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0xb8]
lea rdx, [rsp + 0x58]
mov r8d, 0x30
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0xb8]
mov r8d, 0x30
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x28]
call sub.KERNEL32.dll_GetNativeSystemInfo
mov ax, word [rsp + 0x28]
add rsp, 0xe8
ret

Function at 0x14006f850
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 0x14006f8f0
jmp 0x14006f8df
jae 0x14006f9b0
cmp r8, 0x201
jae 0x14006f8f0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14006f948
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14006f91f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140095ff0
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 0x14006f971
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14006fa18
mov r8d, r14d
cmp r15, r8
jne 0x14006f8d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14006fa45
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14006f8df
jmp 0x14006f8f0
cmp rsi, r8
jb 0x14006fa5f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400728c0
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 0x14006fa01
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140002a40
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 0x14006f9e9
jmp 0x14006fa01
lea rcx, [0x14009f090]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140096ac0
jmp 0x14006fa74
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140097010
ud2
Function at 0x14006fc00
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.140085a70
mov rax, qword [rbp - 0x58]
movabs rdi, 0x8000000000000000
cmp rax, rdi
jne 0x14006fc56
lea rcx, [rbp - 0x50]
call fcn.1400684b0
mov qword [rsi], rdi
jmp 0x14006fe41
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 0x14006fce0
jmp 0x14006fccf
jae 0x14006fda6
cmp r8, 0x201
jae 0x14006fce0
mov r15d, 0x200
lea r14, [rbp - 0x58]
mov r12, r8
jmp 0x14006fd38
sub r8, r13
sub rdi, r13
cmp rdi, r8
jae 0x14006fd0f
lea rcx, [rbp + 0x3f0]
mov rdx, r13
call fcn.140095ff0
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 0x14006fd67
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14006fe7b
mov r8d, esi
cmp r12, r8
jne 0x14006fcc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14006feb6
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14006fccf
jmp 0x14006fce0
cmp r15, r8
jb 0x14006fed0
lea rcx, [rbp + 0x3a8]
mov rdx, r14
call fcn.1400728c0
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 0x14006fe08
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rbx
call fcn.140002a40
cmp qword [rbp + 0x3d0], rdi
jne 0x14006fe58
mov qword [rsi], rdi
lea rcx, [rbp + 0x3d8]
call fcn.1400684b0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x14006fe41
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.140002a40
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 0x14006fe2c
jmp 0x14006fe41
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 0x14006fdf0
jmp 0x14006fe08
lea rcx, [0x14009f090]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140096ac0
jmp 0x14006fee5
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.140097010
ud2
Function at 0x140076930
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.1400954e0
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 sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x14007e370]
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.14007de60
cmp qword [rbp + 0xfe8], 0
jne 0x140076b07
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x140076ad3
cmp r12, 0x1000
ja 0x140076b29
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 0x140076aa7
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140076a50
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x140076aad
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x140076a90
jbe 0x140076a00
jmp 0x140076b15
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x1400769b5
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.1400684b0
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.1400684b0
jmp 0x140076ad3
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.140097090
jmp 0x140076b3d
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.140097010
ud2
Function at 0x14007b260
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 [0x1400a1178]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14007b2a4
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 0x14007b303
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14007b312
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14007b34a
cmp eax, 0x103
je 0x14007b354
test eax, eax
js 0x14007b32f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14007b34a
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, [0x1400a11d8]
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.140072600
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140068ad0
mov ecx, 7
int 0x29
ud2

Function at 0x14007b3c0
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 [0x1400a1178]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14007b404
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 0x14007b46a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14007b4a1
test eax, eax
js 0x14007b47b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14007b494
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, [0x1400a11d8]
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.140072600
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140068ad0
mov ecx, 7
int 0x29
ud2
Function at 0x14007d460
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x28], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x24], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
mov r12, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 0x10], rax
nop

Function at 0x14007de60
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x78
sub esp, 0x78

Function at 0x14007e830
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14007e983
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x14007e867
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14007e948
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14007e966
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 0x14007e8c9
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x14007e8fb
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x14007e8ff
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 0x14007e903
cmp eax, 0x6d
jne 0x14007e92e
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x14007e908
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x14007e934
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.1400684b0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x14007e93e
cmp rax, 1
je 0x14007e8b2
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 0x14007e8bc
mov r8d, 0x10
mov rcx, rbx
call fcn.1400960b0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14007e874
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1400960b0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14007e874
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140095f60
int3
Function at 0x140084aa0
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 0x140084ad8
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.140084af0
nop
add rsp, 0x38
ret

Function at 0x140084af0
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 0x140084b33
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, [0x140070aa0]
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.1400969f0
ud2

Function at 0x1400851a0
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 r14, rdx
mov rsi, rcx
movzx eax, byte [0x1400c3121]
mov ecx, 0x10
mov edx, 8
call fcn.140002a30
dec dword [rax - 0x7b]
ror byte [rdi], 0x84
invalid
add byte [rax], al
invalid
mov rbx, rax
mov qword [rax], r14
xor byte [rax - 0x77], cl
js 0x1400851f1
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rdi
mov ecx, 8
mov edx, 0x10
call fcn.140096900
ud2
Function at 0x140093d70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x140093dea
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 0x140093de0
cmp r11, r10
ja 0x140093e81
cmp r10, rdx
ja 0x140093e93
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140093de2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140093dc0
jmp 0x140093e57
ja 0x140093dea
mov r11, r10
cmp rax, r8
jne 0x140093d92
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140093e5b
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 0x140093e30
mov r8, r10
sub ecx, r9d
jns 0x140093e4e
jmp 0x140093e5d
cmp r10, rdx
je 0x140093e69
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140093e5d
xor al, 1
cmp r8, rdx
jne 0x140093e10
jmp 0x140093e5d
xor eax, eax
jmp 0x140093e5d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400a421b]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140096ac0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140097090
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140097010
int3

Function at 0x140095a10
Capabilities:
Parse pe header

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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1e8
mov r13, rcx
mov rax, qword [0x140353a28]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
lea r14, [rcx + 4]
movzx r15d, dl
movzx r12d, r8b
mov eax, 0xae3dc830
lea rdi, [rsp + 0x48]
mov rbp, qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, 0xfd2c0be8
mov esi, 0xcc6ddc9
jmp 0x140054a90
mov eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x40]
xchg dword [rcx], eax
mov rax, qword [rsp + 0x30]
mov eax, 0x8bcb4efb
nop word cs:[rax + rax]
cmp eax, 0xcc6ddc8
jg 0x140054ae0
cmp eax, 0xc1ed45d7
jg 0x140054b30
cmp eax, 0xa55c50d6
je 0x140054b7f
cmp eax, 0xae3dc830
jne 0x140054c03
mov eax, 1
lock xadd dword [r13], eax
add eax, 1
mov dword [rsp + 0x28], eax
mov eax, 0x7ff3fa7c
jmp 0x140054a90
cmp eax, 0x55ca3d43
jg 0x140054b50
cmp eax, 0xcc6ddc9
je 0x140054b9d
cmp eax, 0x4cd98e94
jne 0x140054a90
mov rcx, qword [rsp + 0x38]
shl ecx, 8
mov eax, dword [rsp + 0x24]
mov eax, dword [rsp + 0x24]
mov eax, dword [rsp + 0x24]
mov eax, dword [rsp + 0x24]
mov eax, dword [rsp + 0x24]
mov eax, dword [rsp + 0x24]
or ecx, dword [rsp + 0x24]
mov rdx, rdi
call rbp
mov eax, 0xcc6ddc9
jmp 0x140054a90
cmp eax, 0xc1ed45d8
je 0x140054a71
cmp eax, 0xfd2c0be8
jne 0x140054a90
mov eax, 0xc1ed45d8
jmp 0x140054a90
cmp eax, 0x55ca3d44
je 0x140054bdd
cmp eax, 0x7ff3fa7c
jne 0x140054a90
mov eax, dword [rsp + 0x28]
cmp eax, 1
mov eax, 0x8bcb4efb
mov ecx, 0xa55c50d6
cmove eax, ecx
jmp 0x140054a90
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x30]
mov dword [rsp + 0x24], r15d
mov qword [rsp + 0x38], r12
mov eax, 0x55ca3d44
jmp 0x140054a90
mov rcx, qword [rsp + 0x38]
shl ecx, 8
or ecx, dword [rsp + 0x24]
mov rdx, rdi
call rbp
mov dword [rsp + 0x2c], eax
mov qword [rsp + 0x40], r14
mov eax, dword [0x140356048]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov eax, 0x4cd98e94
cmove eax, ebx
cmp dword [0x14035604c], 0xa
cmovl eax, ebx
jmp 0x140054a90
mov eax, dword [0x140356048]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov eax, 0x4cd98e94
cmove eax, esi
cmp dword [0x14035604c], 0xa
cmovl eax, esi
jmp 0x140054a90
cmp eax, 0x8bcb4efb
jne 0x140054a90
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1402de620
nop
add rsp, 0x1e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret