joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401681fc
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1401f84c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x14023c510]
mov rax, qword gs:[0x58]
mov edx, 8
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x14023b850], ecx
jg 0x1401682de
mov eax, ebx
cmp rbx, rax
jne 0x1401682a0
xor ecx, ecx
test rbx, rbx
setne cl
xor eax, eax
test ebx, ebx
setne al
cmp ecx, eax
jne 0x1401682a0
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [0x14023b848]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x140168321
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401897b0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.140009bd0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140167f2c
lea rdx, [0x1401f1560]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x14023b850]
call fcn.140189878
cmp dword [0x14023b850], 0xffffffff
jne 0x140168248
lea rcx, [0x14023b848]
call fcn.140167e40
lea rcx, [0x14019ab00]
call fcn.140189c24
nop
lea rcx, [0x14023b850]
call fcn.14018980c
jmp 0x140168248
mov ecx, eax
call fcn.140168364
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x1401a2628]
lea rcx, [rsp + 0x20]
call fcn.140009bd0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140167f2c
lea rdx, [0x1401f1560]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140169768
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
cmp r8, 8
jb 0x1401697db
mov rbp, r8
shr rbp, 3
imul rax, rbp, 0xfffffffffffffff8
add rdi, rax
mov r8d, 8
lea rcx, [rsp + 0x58]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 8
lea rcx, [rsp + 0x50]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x50]
add rsi, 8
xor rax, qword [rsp + 0x58]
add rbx, 8
or r14, rax
sub rbp, 1
jne 0x14016979a
mov rcx, r14
shr rcx, 0x20
or ecx, r14d
mov edx, ecx
mov eax, ecx
shr edx, 8
or edx, ecx
shr eax, 0x10
and edx, 0xff00
or edx, eax
movzx eax, cl
shr edx, 8
or edx, eax
test rdi, rdi
je 0x14016981d
sub rsi, rbx
movzx ecx, byte [rsi + rbx]
movzx eax, byte [rbx]
inc rbx
xor ecx, eax
or edx, ecx
sub rdi, 1
jne 0x140169809
mov rbx, qword [rsp + 0x40]
test edx, edx
mov rbp, qword [rsp + 0x48]
sete al
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140169838
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
je 0x1401698fe
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, r9
mov r15d, 4
mov rdi, r8
mov rsi, rdx
mov r14, rcx
cmp rbx, r15
jb 0x1401698c9
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r15
lea rcx, [rsp + 0x20]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r15
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x68]
lea rdx, [rsp + 0x24]
xor eax, dword [rsp + 0x20]
mov r8, r15
mov rcx, r14
mov dword [rsp + 0x24], eax
call sub.VCRUNTIME140.dll_memcpy
add r14, r15
add rsi, r15
add rdi, r15
sub rbp, 1
jne 0x14016987e
test rbx, rbx
je 0x1401698e6
sub rsi, rdi
sub r14, rdi
mov al, byte [rsi + rdi]
xor al, byte [rdi]
mov byte [r14 + rdi], al
inc rdi
sub rbx, 1
jne 0x1401698d4
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140169900
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1401699ad
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, r8
mov r14d, 4
mov rsi, rdx
mov rdi, rcx
cmp rbx, r14
jb 0x140169985
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r14
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r14
lea rcx, [rsp + 0x60]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x60]
lea rdx, [rsp + 0x20]
xor eax, dword [rsp + 0x68]
mov r8, r14
mov rcx, rdi
mov dword [rsp + 0x20], eax
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
add rsi, r14
sub rbp, 1
jne 0x14016993d
test rbx, rbx
je 0x14016999b
sub rsi, rdi
mov al, byte [rsi + rdi]
xor byte [rdi], al
inc rdi
sub rbx, 1
jne 0x14016998d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14016f8c8
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm1, xmmword [rcx]
mov r9d, 4
shl edx, 2
mov r8, rcx
movdqu xmm0, xmmword [rcx + rdx*4]
movdqu xmmword [rcx], xmm0
movdqu xmmword [rcx + rdx*4], xmm1
add edx, 0xfffffffc
cmp edx, r9d
jbe 0x14016f917
aesimc xmm0, xmmword [r8 + rdx*4]
mov ecx, r9d
add r9d, 4
aesimc xmm1, xmmword [r8 + rcx*4]
movdqu xmmword [r8 + rcx*4], xmm0
movdqu xmmword [r8 + rdx*4], xmm1
add edx, 0xfffffffc
cmp r9d, edx
jb 0x14016f8ee
mov eax, r9d
aesimc xmm0, xmmword [r8 + rax*4]
movdqu xmmword [r8 + rax*4], xmm0
ret

Function at 0x140180ab0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov ebx, dword [rcx + 0x14]
mov rsi, rcx
call fcn.1401807e0
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.1401807e0
mov rdx, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
test al, al
je 0x140180c3b
xor eax, eax
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r14
cmp ebx, 2
mov qword [rsp + 0x20], r15
lea r14, [rsp + 0x40]
setne al
lea r15, [rsp + 0x40]
add r14, rax
xor rax, 1
add r15, rax
movzx edi, byte [r14]
movzx eax, byte [r15]
shl edi, 8
or edi, eax
lea eax, [rdi - 0xdc00]
cmp eax, 0x3ff
ja 0x140180b45
lea rcx, [rsi + 0x18]
mov edx, 0xfffd
call fcn.140180880
jmp 0x140180c2c
lea eax, [rdi - 0xd800]
mov qword [rsp + 0x48], rbp
cmp eax, 0x3ff
ja 0x140180c19
mov rcx, rsi
call fcn.1401807e0
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.1401807e0
mov rdx, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
lea rbp, [rsi + 0x18]
test al, al
je 0x140180bf9
nop
movzx eax, byte [r15]
movzx ebx, byte [r14]
shl ebx, 8
or ebx, eax
lea eax, [rbx - 0xdc00]
cmp eax, 0x3ff
jbe 0x140180c00
lea rbp, [rsi + 0x18]
mov edx, 0xfffd
mov rcx, rbp
call fcn.140180880
lea eax, [rbx - 0xd800]
cmp eax, 0x7ff
ja 0x140180c1d
mov rcx, rsi
mov edi, ebx
call fcn.1401807e0
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.1401807e0
mov rdx, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
test al, al
jne 0x140180b90
mov edx, 0xfffd
jmp 0x140180c1f
and edi, 0x3ff
and ebx, 0x3ff
shl edi, 0xa
or edi, ebx
add edi, 0x10000
jmp 0x140180c1d
lea rbp, [rsi + 0x18]
mov edx, edi
mov rcx, rbp
call fcn.140180880
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
Function at 0x140188cc8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140188d02
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140188d07
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140188d50
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1401a4b50]
cmp byte [rcx + rax], 0
je 0x140188d50
dec r8
sub rdx, 1
jne 0x140188d36
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14018a6cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14018a716
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14018a716
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14018a716
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14018a716
cmp dword [rcx + 0x84], 0xe
jbe 0x14018a716
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14018a718
xor al, al
add rsp, 0x28
ret
Function at 0x140004c10
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x140004c4d
lea rax, [rbx - 1]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x98], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.140004dac
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140004d4c
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa0], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.140004dac
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jne 0x140004cc0
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.140002780
mov esi, eax
cmp dword [rsp + 0x40], ebx
je 0x140004d8b
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x140004d8b
call fcn.140003f08
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jne 0x140004d72
mov rcx, r14
call fcn.140003f08
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
Function at 0x180001f10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r9, dword [rcx + 0x3c]
mov r15, rcx
mov ecx, 0x8664
lea rax, [r15 + 0x78]
add rax, r9
lea r8, [r15 + 0x88]
add r8, r9
cmp word [r9 + r15 + 4], cx
cmovne r8, rax
mov eax, dword [r8]
test eax, eax
je 0x18000203f
lea r14, [r15 + rax]
cmp rdx, 0xffff
ja 0x180001f91
mov eax, dword [r14 + 0x10]
movzx edx, dx
sub rdx, rax
mov eax, dword [r14 + 0x14]
cmp rdx, rax
jae 0x18000203f
mov ecx, dword [r14 + 0x1c]
add rcx, r15
mov eax, dword [rcx + rdx*4]
add rax, r15
jmp 0x180002041
mov r13d, dword [r14 + 0x20]
xor ebp, ebp
mov eax, dword [r14 + 0x24]
add r13, r15
add rax, r15
mov qword [rsp + 0x80], rax
cmp dword [r14 + 0x18], ebp
jbe 0x18000203f
mov esi, dword [r13 + rbp*4]
add rsi, r15
call fcn.180002810
mov qword [rsp + 0x70], rax
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x180001fd0
mov dword [rsp + 0x28], 0xeeeeeeee
mov r9, rax
mov r8d, 1
mov dword [rsp + 0x20], 0x7fed7fed
mov edx, ebx
mov rcx, rsi
call fcn.180002720
mov r9, qword [rsp + 0x70]
mov r8d, 2
mov edx, ebx
mov dword [rsp + 0x28], 0xeeeeeeee
mov rcx, rsi
mov edi, eax
mov dword [rsp + 0x20], 0x7fed7fed
call fcn.180002720
shl rdi, 0x20
mov ecx, eax
or rcx, rdi
cmp qword [rsp + 0x78], rcx
je 0x180002059
inc ebp
cmp ebp, dword [r14 + 0x18]
jb 0x180001fb3
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rsp + 0x80]
mov ecx, dword [r14 + 0x1c]
add rcx, r15
movzx edx, word [rax + rbp*2]
mov eax, dword [rcx + rdx*4]
add rax, r15
jmp 0x180002041
Function at 0x14000fc40
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 0x14000fcd0
cmp r11, r10
ja 0x14000fd46
cmp r10, rdx
ja 0x14000fd58
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14000fcd2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000fcb0
jmp 0x14000fd34
ja 0x14000fcda
mov r11, r10
cmp rax, r8
jne 0x14000fc74
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 0x14000fd10
mov rdi, r8
sub ecx, edx
jns 0x14000fd2b
jmp 0x14000fd36
cmp r8, rsi
je 0x14000fd67
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000fd36
xor al, 1
cmp rdi, rsi
jne 0x14000fcf0
jmp 0x14000fd36
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.1400a8be0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400a88d0
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.1400a8d50
int3

Function at 0x140012daf
Capabilities:
Hash data using fnv

Disassembly:
mov rax, qword [rcx]
xor r9d, r9d
movabs r10, 0x100000001b3
cmp r8, r9
je 0x140012dd5
movzx r11d, byte [rdx + r9]
xor rax, r11
imul rax, r10
inc r9
jmp 0x140012dbf
mov qword [rcx], rax
ret

Function at 0x140012f68
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [rcx]
xor ecx, ecx
test rbx, rbx
setne cl
call fcn.140012d84
test rbx, rbx
je 0x140012fa1
mov rdx, qword [rdi + 8]
mov r8, qword [rdi + 0x10]
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140012daf
mov cl, byte [rdi + 8]
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140012da7
Function at 0x1400336c1
Capabilities:
Link many functions at runtime

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov r14, qword [0x140117160]
test r14, r14
jne 0x1400337f8
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x14003372b
mov rbx, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14003372b
mov rdi, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rbx
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14003372b
mov r15, rax
xor ebx, ebx
jmp 0x1400337b0
lea rcx, [0x1400d7800]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x14003380c
mov rdi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14003380c
mov r14, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14003380c
mov rbx, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14003380c
mov rdi, rax
lea rcx, [rsp + 0x28]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call r14
test eax, eax
jne 0x14003380c
mov r15, qword [rsp + 0x28]
mov ecx, 0x18
call fcn.140030f82
mov r14, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rax + 0x10], r15
xor eax, eax
lock cmpxchg qword [0x140117160], r14
je 0x1400337f8
mov rdi, rax
cmp qword [r14], 0
je 0x1400337e8
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov edx, 8
mov rcx, r14
call fcn.140007740
mov r14, rdi
and qword [rsi + 8], 0
mov qword [rsi], r14
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, str.parking_lot_requires_either_NT_Keyed_Events__WinXP__or_WaitOnAddress_WakeByAddress__Win8_C:Users_fhnir.cargo_registry_srcindex.crates.io_6f17d22bba15001fparking_lot_core_0.9.9_src_thread_parkerwindowsmod.rs
lea r8, [0x1400d7908]
mov edx, 0x5b
call fcn.1400a9c2f
int3
Function at 0x140034c66
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x50]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call fcn.140036b26
test rax, rax
je 0x140034c9e
mov edx, 4
mov rcx, rax
call fcn.140007740
jmp 0x140034d00
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
lea rdx, [rsp + 0x70]
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx], xmm0
lea rbx, [rsp + 0x90]
mov rcx, rbx
call fcn.1400341d3
mov rax, qword [rbx]
movups xmm0, xmmword [rbx + 8]
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rbx + 0x18]
movaps xmmword [rsp + 0x30], xmm0
mov rcx, qword [rbx + 0x28]
mov qword [rsp + 0x40], rcx
mov qword [rdi], rax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rdi + 8], xmm0
movups xmmword [rdi + 0x18], xmm1
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x28], rax
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, 0xc0
pop rbx
pop rdi
pop rsi
jmp fcn.140034244
Function at 0x140036b26
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 0x140036bb6
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 0x140036b53
mov ebx, eax
mov rcx, r14
mov edx, r15d
call rsi
test al, al
jne 0x140036b53
and ebx, 0x7fffffff
je 0x140036bb6
mov al, byte [0x1401172e0]
mov edx, 4
xor ecx, ecx
call fcn.140090a70
test rax, rax
je 0x140036bc9
mov dword [rax], ebx
jmp 0x140036bb8
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.1400a8580
int3

Function at 0x14003a0b5
Capabilities:
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, 0x6f8
mov r13, r8
mov r12, rdx
mov qword [rsp + 0x148], rcx
mov word [rax + rcx*2], fs
add dword [rax], eax
add byte [rax - 0x75], cl
xchg edx, eax
add byte [rax + rax], al
add byte [rax - 0x7d], cl
ret 0x4810
lea esi, [rsp + 0x1b0]
mov rcx, rsi
call fcn.14001230f
cmp qword [rsi], 0
jne 0x14003bc51
mov rcx, qword [rsp + 0x1b8]
mov dl, byte [rsp + 0x1c0]
mov rax, qword [rcx + 0x28]
or rax, qword [rcx + 0x38]
je 0x14003a11b
call fcn.140031368
jmp 0x14003a146
mov rsi, qword [rcx + 0x230]
call fcn.140031368
cmp rsi, 1
ja 0x14003a146
mov rdx, qword [r12 + 0x400]
add rdx, 0x10
lea rcx, [r12 + 0x3a0]
call fcn.14003fcbd
mov rax, qword [r12 + 0x378]
cmp rax, 2
add dh, byte [rbp + 7]
mov eax, 2
jmp 0x14003a1cd
lea rsi, [r12 + 0x378]
lea rdx, [r12 + 0x390]
test rax, rax
je 0x14003a194
mov rcx, qword [r12 + 0x380]
mov rax, qword [r12 + 0x388]
mov r8, qword [rax + 0x10]
dec r8
and r8, 0xfffffffffffffff0
add rcx, r8
add rcx, 0x10
jmp 0x14003a1a4
mov rcx, qword [r12 + 0x380]
mov rax, qword [r12 + 0x388]
call qword [rax + 0x70]
mov r14, rax
lea r15, [rsp + 0x1b0]
mov rcx, r15
mov rdx, rsi
call fcn.14009ff7b
mov rax, qword [r15]
movups xmm0, xmmword [r15 + 8]
movups xmm0, xmmword [rdi + 8]
movaps xmmword [rsp + 0x2f0], xmm0
mov rcx, qword [r12 + 0x398]
mov qword [rsp + 0x4b8], rax
movaps xmm0, xmmword [rsp + 0x2f0]
add byte [rdi], cl
adc dword [rsp + 0x4c0], eax
mov qword [rsp + 0x4d0], r14
mov qword [rsp + 0x4d8], rcx
cmp rax, 2
je 0x14003a218
lea rdx, [rsp + 0x4d0]
lea rcx, [rsp + 0x4b8]
call fcn.14009fff7
mov qword [rsp + 0x608], 2
and qword [rsp + 0x628], 0
lea rax, [r12 + 0x48]
mov qword [rsp + 0x80], rax
lea rax, [r12 + 0x3a0]
mov qword [rsp + 0x198], rax
add byte [rax], al
mov rax, qword [rsp + 0x1b8]
mov cl, byte [rsp + 0x1c0]
mov word [rax + rax*8], fs
add dword [rax], eax
add byte [rbp + rcx*4 - 0x7c], cl
and al, 0xf0
add al, byte [rax]
add byte [rcx - 0x77], cl
add byte [rcx - 0x78], al
or byte [rax - 0x73], cl
add eax, 0x9df62
Function at 0x140065694
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
mov r8, qword [rdx + 0x78]
mov rcx, qword [rdx + 0x68]
mov rdx, qword [rdx + 0x70]
lea r9, [0x1400dd2a8]
call fcn.140065437
xor ecx, ecx
test rax, rax
cmove edx, ecx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rcx + 0x30], xmm0
mov dword [rcx], edx
mov dword [rcx + 4], 1
mov qword [rcx + 8], rax
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
lea rcx, [rdi + 0xf0]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x1400657e3
test eax, eax
je 0x140065770
cmp eax, 0x90317
je 0x1400657dd
cmp eax, 0x90321
jne 0x140065801
mov dword [rdi + 0xd0], 0x10000
xor ebx, ebx
mov byte [rdi + 0xd4], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x78]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.14006563e
and qword [rdi + 0x110], 0
mov byte [rsi + 1], bl
jmp 0x14006580f
mov r8, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
sub r8, rcx
mov r9d, dword [rsp + 0x30]
add r9, r8
lea rbx, [rdi + 0x40]
and qword [rdi + 0x50], 0
call fcn.140065823
lea r8, [rdx + rax]
mov rcx, rbx
mov rdx, rax
call fcn.1400a6e65
and qword [rdi + 0x58], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x78]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.14006563e
xor eax, eax
cmp qword [rdi + 0x78], rbx
sete al
mov qword [rdi + 0x110], rax
mov byte [rsi + 1], 0
jmp 0x14006580f
mov byte [rsi + 1], 1
jmp 0x1400657fd
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x110], rax
mov byte [rsi + 1], 0
xor ebx, ebx
jmp 0x14006580f
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret