joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a62b0
Capabilities:
Get number of processors

Disassembly:
push rsi
push rdi
sub rsp, 0xb8
movaps xmmword [rsp + 0xa0], xmm6
mov rsi, rcx
mov rdi, qword [rcx + 8]
mov eax, dword [0x140195c60]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rcx, qword [rax + 0xd0]
lea rax, [rax + 0xd8]
test rcx, rcx
cmove rax, rcx
je 0x1400a6309
test rax, rax
je 0x1400a6315
movups xmm6, xmmword [rax + 0x20]
mov qword [rax + 0x20], 1
mov qword [rax + 0x28], rdi
jmp 0x1400a6318
xor ecx, ecx
call fcn.1400f2bf0
test rax, rax
jne 0x1400a62f7
xorps xmm6, xmm6
lea rdi, [rsi + 0x10]
movzx eax, byte [rsi + 0x80]
lea ecx, [rax - 3]
movzx edx, cl
lea r8, [rdx + 1]
xor ecx, ecx
cmp dl, 2
cmovb rcx, r8
cmp rcx, 1
je 0x1400a634f
test rcx, rcx
jne 0x1400a638d
cmp al, 2
je 0x1400a638d
mov rcx, rdi
call fcn.140042dd0
jmp 0x1400a638d
cmp qword [rdi], 0
je 0x1400a638d
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400a638d
mov rax, qword [rsi + 0x20]
call qword [rax]
mov rax, qword [rsi + 0x20]
cmp qword [rax + 8], 0
je 0x1400a638d
mov r8, qword [rsi + 0x18]
cmp qword [rax + 0x10], 0x11
jb 0x1400a637e
mov r8, qword [r8 - 8]
mov rcx, qword [0x140195bd0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rdi + 0x60], xmm0
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rdi + 0x50], xmm0
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rdi + 0x40], xmm0
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmm2, xmmword [rsp + 0x50]
movups xmm3, xmmword [rsp + 0x60]
movups xmmword [rdi + 0x30], xmm3
movups xmmword [rdi + 0x20], xmm2
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov byte [rsi + 0x80], 4
mov eax, dword [rsp + 0x29]
mov ecx, dword [rsp + 0x2c]
mov dword [rsi + 0x84], ecx
mov dword [rsi + 0x81], eax
mov eax, dword [0x140195c60]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rcx, qword [rax + 0xd0]
lea rax, [rax + 0xd8]
test rcx, rcx
cmove rax, rcx
jne 0x1400a641d
xor ecx, ecx
call fcn.1400f2bf0
test rax, rax
je 0x1400a6426
movups xmmword [rax + 0x20], xmm6
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rdi
pop rsi
ret
Function at 0x1400c85d0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
lea rax, [r8 + 0xb]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], r8
mov word [rsp + 0x48], 0
mov dword [rsp + 0x50], 1
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x38]
call fcn.1400be700
mov dword [rsp + 0x30], 0x800
mov dword [rsp + 0x34], 0
mov rcx, qword [0x140195bd0]
test rcx, rcx
jne 0x1400c8646
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1400c877d
mov rcx, rax
mov qword [0x140195bd0], rax
mov r8d, 0x800
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1400c877d
mov rbx, rax
mov qword [rsp + 0x38], 0x800
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov r14, qword [rsp + 0x60]
lea r13, [rsp + 0x30]
lea r15, [rsp + 0x34]
lea r12, [rsp + 0x38]
nop dword [rax + rax]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbx
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
mov r9, r15
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x1400c86d8
mov r8d, dword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x48]
sub rax, rdx
cmp rax, r8
jae 0x1400c8690
mov rcx, r12
call fcn.1401270c0
mov rbx, qword [rsp + 0x40]
jmp 0x1400c8690
test eax, eax
jne 0x1400c8709
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x34]
cmp eax, 0xb
jbe 0x1400c875f
movabs rax, 0xde00000002
mov qword [rsi], rax
mov byte [rsi + 0x18], 0xc
cmp qword [rsp + 0x38], 0
jne 0x1400c8720
jmp 0x1400c8732
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov byte [rsi + 0x18], 0xc
cmp qword [rsp + 0x38], 0
je 0x1400c8732
mov rcx, qword [0x140195bd0]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rsp + 0x58], 0
je 0x1400c874e
mov r8, qword [rsp + 0x60]
mov rcx, qword [0x140195bd0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x48]
mov qword [rsi + 0x10], rcx
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x18], al
cmp qword [rsp + 0x58], 0
jne 0x1400c873a
jmp 0x1400c874e
mov ecx, 0x800
mov edx, 1
call fcn.14011dd70
ud2
Function at 0x1400d8d60
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 0x1400d8dbb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1400d8dbb
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x1400d8dd6
cmp eax, 0x42
jne 0x1400d8dbb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1400d8e86
cmp byte [r9 + r11], 0x5f
jne 0x1400d8e86
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400d8eee
mov rcx, rsi
xor edx, edx
call fcn.1400d3f50
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.1400d3f50
test al, al
jne 0x1400d8f81
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400d8e12
lea rdx, [0x14015966b]
mov r8d, 1
call fcn.140006450
test al, al
jne 0x1400d8f81
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1400d8dca
xor r14d, r14d
lea rbx, [0x140159a36]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400d8e44
cmp byte [rax + rcx], 0x45
je 0x1400d8faa
sub r14, 1
jb 0x1400d8e69
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400d8e69
mov r8d, 2
mov rdx, rbx
call fcn.140006450
test al, al
jne 0x1400d8f81
mov rcx, rsi
call fcn.1400d8fc0
test al, al
jne 0x1400d8f81
mov rax, qword [rsi]
test rax, rax
jne 0x1400d8e30
jmp 0x1400d8dca
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x1400d8f48
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x1400d8ee2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400d8ecc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400d8ebb
add dl, 0xa9
jmp 0x1400d8eca
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400d8f48
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400d8f48
movzx edx, bl
add rax, rdx
jae 0x1400d8e90
jmp 0x1400d8f48
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400d8f48
cmp rax, rcx
jae 0x1400d8f45
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400d8f89
cmp qword [rsi + 0x20], 0
je 0x1400d8fb6
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.1400d8d60
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400d8dcc
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400d8f98
lea rax, [0x140159a01]
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.140006450
test al, al
je 0x1400d8f98
mov dil, 2
jmp 0x1400d8dca
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x1400d8f53
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1400d8dca
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1400d8dca
xor edi, edi
jmp 0x1400d8dca
Function at 0x1400df3a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
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 + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400df419
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x58]
cmp eax, 0x103
je 0x1400df450
test eax, eax
js 0x1400df42a
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400df443
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, [0x14015ba40]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 1
mov qword [rsp + 0xa8], 0
lea rax, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.12.3_srcdecode.rs
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x68], rax
lea rax, [0x1400067b0]
mov qword [rsp + 0x70], rax
lea rax, str.fatal_runtime_error:
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 2
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x78]
call fcn.1400dd340
mov rcx, rax
call fcn.1400dd4a0
mov ecx, 7
int 0x29
ud2
Function at 0x1400e2af0
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 0x1400e2b20
test ecx, ecx
jne 0x1400e2b70
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400e2b2c
test ecx, ecx
jne 0x1400e2b70
mov rcx, rdi
call fcn.1400e29d0
movzx eax, al
test bpl, bpl
jne 0x1400e2b77
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x1400e2b63.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x1400e2ce8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x1400e2b63.2
xor eax, eax
test bpl, bpl
je 0x1400e2b3c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1400e2cc9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x1400e2baa
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1400e2c29
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 0x1400e2bf0
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1400e2c0b
inc rax
dec rdi
cmp rax, 1
jne 0x1400e2bd0
jmp 0x1400e2c29
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1400e2c0b
cmp ebx, 0x5c
je 0x1400e2c0b
inc rax
dec rdi
cmp rax, 1
jne 0x1400e2bf0
jmp 0x1400e2c29
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x1400e2cd7
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x1400e2c53
mov al, 9
cmp rdx, 2
je 0x1400e2c57
cmp rdx, 1
jne 0x1400e2c67
cmp byte [r8], 0x2e
jne 0x1400e2c67
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1400e2c67
mov al, 0xa
jmp 0x1400e2c67
cmp byte [r8], 0x2e
jne 0x1400e2c67
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.0x1400e2b63.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.0x1400e2b63.2
mov ecx, 2
jmp case.0x1400e2b63.2
lea r8, str.library_std_srcpath.rs
call fcn.14011e110
ud2
lea r8, str.library_std_srcpath.rs
call fcn.14011e110
ud2
Function at 0x1400e5e90
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
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 + 0x58]
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 0x1400e5f02
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x58]
cmp eax, 0xc0000011
jne 0x1400e5f11
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400e5f49
cmp eax, 0x103
je 0x1400e5f53
test eax, eax
js 0x1400e5f2e
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400e5f49
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, [0x14015ba40]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 1
mov qword [rsp + 0xa8], 0
lea rax, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_base64_0.12.3_srcdecode.rs
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x68], rax
lea rax, [0x1400067b0]
mov qword [rsp + 0x70], rax
lea rax, str.fatal_runtime_error:
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 2
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x78]
call fcn.1400dd340
mov rcx, rax
call fcn.1400dd4a0
mov ecx, 7
int 0x29
ud2
Function at 0x1400e72b0
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1e8
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x140195bd8]
cmp rax, 3
jne 0x1400e73d9
cmp rbx, 0x17f
ja 0x1400e73eb
lea rcx, [rsp + 0x68]
mov rdx, r14
mov r8, rbx
call fcn.140110cd0
mov byte [rsp + rbx + 0x68], 0
lea r8, [rbx + 1]
cmp rbx, 0xe
ja 0x1400e7329
lea rcx, [rbx + 1]
xor eax, eax
xor edx, edx
nop
cmp byte [rsp + rdx + 0x68], 0
je 0x1400e733c
inc rdx
cmp rcx, rdx
jne 0x1400e7310
mov rdx, r8
test rax, rax
jne 0x1400e7346
jmp 0x1400e73a2
lea rdx, [rsp + 0x68]
xor ecx, ecx
call fcn.140006fc0
test rax, rax
jne 0x1400e7346
jmp 0x1400e73a2
mov eax, 1
test rax, rax
je 0x1400e73a2
cmp rdx, rbx
jne 0x1400e73a2
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x68]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1400e73b6
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x1400e73c9
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400e73cc
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140125ca0
cmp rbx, 0x17f
jbe 0x1400e72e8
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140125d10
Function at 0x1400e7da0
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 rcx, qword [0x140195bd0]
test rcx, rcx
jne 0x1400e7ded
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1400e7eac
mov rcx, rax
mov qword [0x140195bd0], rax
mov r8d, 0x10
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1400e7eac
mov r14, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400e7f50]
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 0x1400e7e9e
mov rcx, qword [r14]
mov rax, qword [r14 + 8]
mov qword [rbp - 0x10], r14
call qword [rax]
mov rsi, qword [rbp - 0x10]
mov rax, qword [rsi + 8]
cmp qword [rax + 8], 0
je 0x1400e7e77
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x1400e7e68
mov r8, qword [r8 - 8]
mov rcx, qword [0x140195bd0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x140195bd0]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
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.14011dd70
ud2

Function at 0x1400e80b0
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 0x1400e80f3
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, [fcn.1400e3fe0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
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.14011e050
ud2
Function at 0x1401149fc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140114828

Function at 0x140122a50
Capabilities:
Link many functions at runtime

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x140122abb
mov rsi, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140122abb
mov rbx, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140122abb
mov rsi, rax
mov r15d, 1
mov rcx, qword [0x140195bd0]
test rcx, rcx
jne 0x140122b6b
jmp 0x140122b56
lea rcx, [0x140151828]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x140122bd4
mov rdi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140122bd4
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140122bd4
mov rsi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140122bd4
mov rdi, rax
lea rcx, [rsp + 0x28]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x140122bd4
mov rbx, qword [rsp + 0x28]
xor r15d, r15d
mov rcx, qword [0x140195bd0]
test rcx, rcx
jne 0x140122b6b
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x140122bdb
mov rcx, rax
mov qword [0x140195bd0], rax
mov r8d, 0x20
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x140122bdb
mov r14, rax
mov qword [rax], r15
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
xor eax, eax
lock cmpxchg qword [0x140195b10], r14
je 0x140122bc5
mov rsi, rax
cmp qword [r14], 0
jne 0x140122bb0
mov rcx, qword [r14 + 8]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [0x140195bd0]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
mov r14, rsi
mov rax, r14
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140122a10
ud2
mov ecx, 0x20
mov edx, 8
call fcn.14011dd70
ud2
Function at 0x8f60e0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x8f60ed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x8f60fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x8f60e5
lea eax, [rcx + 1]
jmp 0x8f610b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x8f611e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x8f6104
sub eax, 3
jb 0x8f613e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x8f618d
sar eax, 1
movsxd rbp, eax
jb 0x8f6174
jmp 0x8f614c
add ebx, ebx
jne 0x8f614a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x8f6174
inc ecx
add ebx, ebx
jne 0x8f615a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x8f6174
call r11
adc ecx, ecx
add ebx, ebx
jne 0x8f616d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x8f615c
add ecx, 2
jmp 0x8f6179
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.008f60a2
jmp 0x8f60ed
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x93000
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x8f61dd
cmp rsi, rcx
jae 0x8f61e5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x8f61c4
cmp al, 0x8f
ja 0x8f61c4
cmp byte [rsi - 2], 0xf
je 0x8f61ca
sub al, 0xe8
cmp al, 1
ja 0x8f61ae
cmp rsi, rcx
jae 0x8f61e5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x8f61b4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x8f61e5
lodsb al, byte [rsi]
jmp 0x8f61c4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x4f2000]
mov eax, dword [rdi]
or eax, eax
je 0x8f6242
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4f6000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x8f61f2
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x8f623c
mov qword [rbx], rax
add rbx, 8
jmp 0x8f6212
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x8f6286
cmp al, 0xef
ja 0x8f626e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x8f624e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x8f625d
mov eax, dword [rdi]
add rdi, 4
jmp 0x8f625d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.008f6305], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.008f6305
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x8f62f5
sub rsp, 0xffffffffffffff80
jmp 0x4014b0
Function at 0x180004500
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x1800045b8
mov qword [rsp + 0x40], rdi
lea r8, [0x180004450]
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
lea r8, [0x1800044d0]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov r9, rbx
mov qword [rsp + 0x28], rdi
lea r8, [0x1800042b0]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r9, rbx
mov qword [rsp + 0x28], rdi
lea r8, [0x180003f30]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
lea r8, [0x180004260]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rbx
ret