joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007740
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 0x1400077d0
cmp r11, r10
ja 0x140007846
cmp r10, rdx
ja 0x140007858
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x1400077d2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x1400077b0
jmp 0x140007834
ja 0x1400077da
mov r11, r10
cmp rax, r8
jne 0x140007774
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 0x140007810
mov rdi, r8
sub ecx, edx
jns 0x14000782b
jmp 0x140007836
cmp r8, rsi
je 0x140007867
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140007836
xor al, 1
cmp rdi, rsi
jne 0x1400077f0
jmp 0x140007836
sub 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.140005450
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140004a20
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140005f30
int3

Function at 0x140009186
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140049028]
or ecx, ecx
je 0x14000919f
dec ecx
add rsp, 0x28
jmp fcn.14004679c
lea rcx, [0x140049010]
call fcn.140017830
mov ecx, eax
jmp 0x140009196

Function at 0x1400091af
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
nop
push rdx
pop rsi
mov rax, rcx
mov ecx, dword [rcx + 0x18]
or ecx, ecx
je 0x1400091d0
dec ecx
push rsi
nop
pop rdx
add rsp, 0x20
pop rsi
jmp fcn.140046794
nop
push rax
pop rcx
call fcn.140017830
mov ecx, eax
jmp 0x1400091c3
Function at 0x14000daa2
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14000dabb
dec ecx
add rsp, 0x28
jmp fcn.14004679c
mov rcx, rax
call fcn.140017830
mov ecx, eax
jmp 0x14000dab2
Function at 0x14000fa26
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov esi, ecx
mov eax, 0x30
mov rax, qword gs:[eax]
mov rax, qword [rax + 0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x10
mov rdi, qword [rdi]
movzx edx, word [rdi + 0x58]
mov rcx, qword [rdi + 0x60]
call fcn.14000fb14
cmp eax, 0x1edab0ed
jne 0x14000fa4e
mov r14, qword [rdi + 0x30]
movsxd rax, dword [r14 + 0x3c]
mov eax, dword [rax + r14 + 0x88]
test rax, rax
je 0x14000fae6
mov edi, dword [rax + r14 + 0x18]
mov ecx, dword [rax + r14 + 0x1c]
add rcx, r14
mov qword [rsp + 0x20], rcx
mov r12d, dword [rax + r14 + 0x20]
add r12, r14
mov r13d, dword [rax + r14 + 0x24]
add r13, r14
sub ebx, ebx
xor r15d, r15d
cmp r15, rdi
je 0x14000fae8
mov rbp, r15
mov ecx, dword [r12 + r15*4]
add rcx, r14
push rcx
pop rax
nop
push rax
nop
pop rdx
inc rax
cmp byte [rdx], 0
jne 0x14000fab3
lea r15, [rbp + 1]
sub rdx, rcx
call fcn.14000fb14
cmp eax, esi
jne 0x14000faa1
movzx ecx, word [r13 + rbp*2]
cmp rdi, rcx
jbe 0x14000fb04
mov rax, qword [rsp + 0x20]
mov ebx, dword [rax + rcx*4]
add rbx, r14
jmp 0x14000fae8
sub ebx, ebx
movzx eax, word [rbx + 4]
add rbx, 0x12
push rbx
pop rdx
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str._home_torcrypt_.cargo_git_checkouts_rust_syscalls_68f3d3f4128be087_162451a_src_syscall_resolve.rs
push rdi
nop
pop rdx
call fcn.140004030
int3

Function at 0x14000fb14
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
xor r8d, r8d
cmp r8, rdx
jae 0x14000fb50
mov r9b, byte [rcx + r8]
or r9b, r9b
jne 0x14000fb2f
inc r8
jmp 0x14000fb1c
lea r10d, [r9 - 0x20]
cmp r9b, 0x61
movzx r9d, r9b
movzx r10d, r10b
cmovb r10d, r9d
imul r9d, eax, 0x21
movzx eax, r10b
add eax, r9d
jmp 0x14000fb2a
ret
Function at 0x140014360
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
push rcx
pop rsi
nop
mov r8, qword [rcx]
test r8, r8
je 0x1400143bb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1400143bb
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x1400143d6
cmp eax, 0x42
jne 0x1400143bb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140014486
cmp byte [r8 + r11], 0x5f
jne 0x140014486
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
sub eax, eax
jmp 0x1400144ee
nop
push rsi
pop rcx
xor edx, edx
call fcn.14000fdf0
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
nop
push rsi
pop rcx
xor edx, edx
call fcn.14000fdf0
test al, al
jne 0x140014581
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140014412
lea rdx, [0x14027fecb]
mov r8d, 1
call fcn.140004aa0
test al, al
jne 0x140014581
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1400143ca
xor r14d, r14d
lea rbx, [0x140280239]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140014444
cmp byte [rax + rcx], 0x45
je 0x1400145a3
sub r14, 1
jb 0x140014469
mov rcx, qword [rsi + 0x20]
or rcx, rcx
je 0x140014469
mov r8d, 2
push rbx
nop
pop rdx
call fcn.140004aa0
test al, al
jne 0x140014581
mov rcx, rsi
call fcn.140011610
test al, al
jne 0x140014581
mov rax, qword [rsi]
or rax, rax
jne 0x140014430
jmp 0x1400143ca
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x140014548
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x1400144e2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400144cc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400144bb
add dl, 0xa9
jmp 0x1400144ca
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140014548
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140014548
movzx edx, bl
add rax, rdx
jae 0x140014490
jmp 0x140014548
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140014548
cmp rax, rcx
jae 0x140014545
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14001459b
cmp qword [rsi + 0x20], 0
je 0x140014594
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
push rsi
pop rcx
nop
call fcn.140014360
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400143cc
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140014589
mov eax, r9d
xor al, 1
movzx eax, al
lea r8, [rax + rax*8]
add r8, 0x10
lea rax, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x140280218]
or r9b, r9b
cmovne rdx, rax
call fcn.140004aa0
test al, al
je 0x140014589
mov dil, 2
jmp 0x1400143ca
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1400143ca
mov dil, 1
xor r9d, r9d
jmp 0x14001454a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1400143ca
Function at 0x140017830
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
push rcx
pop rsi
nop
cmp qword [rcx], 0
je 0x1400178b5
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
nop
push rbx
pop rcx
xor edx, edx
sub r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x1400178f6
cmp dword [rsp + 0x2c], 0
je 0x1400178da
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14001790e
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14028a108]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14028a108], rsi
jne 0x140017890
mov byte [0x14028a100], 1
nop
push rbx
pop rcx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x1400178ec
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140017958
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1400178df
mov edi, dword [rsp + 0x28]
jmp 0x1400178ec
mov edi, dword [rsi + 0x18]
jmp 0x1400178ea
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140017f30
mov rcx, rbx
mov edx, 4
sub r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_std_src_threadlocal.rs
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.140003f70
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_std_src_threadlocal.rs
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140017f80
int3
Function at 0x140017e10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400490f0]
or ecx, ecx
je 0x140017ee9
dec ecx
call fcn.14004679c
cmp rax, 2
jb 0x140017e44
push rax
nop
pop rdi
cmp qword [rax + 8], 0
je 0x140017e44
add rdi, 0x10
jmp 0x140017edf
mov ecx, dword [0x1400490f0]
test ecx, ecx
je 0x140017efc
dec ecx
call fcn.14004679c
cmp rax, 1
je 0x140017edd
push rax
pop rsi
nop
test rax, rax
jne 0x140017eac
movzx eax, byte [0x14028a128]
mov edx, 0x18
sub ecx, ecx
call fcn.1400370d0
or rax, rax
je 0x140017f1f
nop
push rax
pop rsi
lea rax, [0x1400490d8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400490f0]
or ecx, ecx
je 0x140017f0f
dec ecx
mov rdx, rsi
call fcn.140046794
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x140017edf
or rcx, rcx
je 0x140017edf
lock dec qword [rcx]
jne 0x140017edf
call fcn.1400177e0
jmp 0x140017edf
sub edi, edi
push rdi
pop rax
nop
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400490d8]
call fcn.140017830
mov ecx, eax
jmp 0x140017e26
lea rcx, [0x1400490d8]
call fcn.140017830
mov ecx, eax
jmp 0x140017e54
lea rcx, [0x1400490d8]
call fcn.140017830
mov ecx, eax
jmp 0x140017ea4
mov ecx, 8
mov edx, 0x18
call fcn.140003420
int3
Function at 0x1400190b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400490d0]
or ecx, ecx
je 0x14001916a
dec ecx
call fcn.14004679c
cmp rax, 2
jb 0x1400190e0
cmp qword [rax + 8], 0
je 0x1400190e0
add rax, 0x10
jmp 0x140019164
mov ecx, dword [0x1400490d0]
or ecx, ecx
je 0x14001917d
dec ecx
call fcn.14004679c
cmp rax, 1
je 0x140019162
nop
push rax
pop rsi
test rax, rax
jne 0x140019148
movzx eax, byte [0x14028a128]
mov edx, 0x20
sub ecx, ecx
call fcn.1400370d0
test rax, rax
je 0x1400191a0
mov rsi, rax
lea rax, [0x1400490b8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400490d0]
or ecx, ecx
je 0x140019190
dec ecx
mov rdx, rsi
call fcn.140046794
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x140019164
sub eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400490b8]
call fcn.140017830
mov ecx, eax
jmp 0x1400190c5
lea rcx, [0x1400490b8]
call fcn.140017830
mov ecx, eax
jmp 0x1400190f0
lea rcx, [0x1400490b8]
call fcn.140017830
mov ecx, eax
jmp 0x140019140
mov ecx, 8
mov edx, 0x20
call fcn.140003420
int3
Function at 0x140034fb0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rsi, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0x98]
call fcn.140019600
mov rax, qword [rsp + 0x98]
cmp rax, rdi
jne 0x140034fff
mov rcx, qword [rsp + 0xa0]
call fcn.140017080
mov qword [rsi], rdi
jmp 0x1400351b5
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x58], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov esi, 0xffffffff
xor r14d, r14d
xor r13d, r13d
cmp r8, 0x201
jae 0x140035090
jmp 0x14003506f
jae 0x14003513b
cmp r8, 0x201
jae 0x140035090
mov edi, 0x200
lea rbp, [rsp + 0x98]
mov r12, r8
jmp 0x1400350d7
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x1400350b7
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.140019a80
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
cmp rbx, rsi
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rsp + 0x58], r13
mov r14, rbx
mov rdi, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
sub ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
mov r8d, r12d
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x140035102
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400351e9
mov r8d, r15d
cmp r12, r8
jne 0x140035060
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140035213
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x14003506f
jmp 0x140035090
cmp rdi, r8
jb 0x14003522d
lea rcx, [rsp + 0x78]
nop
push rbp
pop rdx
call fcn.14001ad40
movabs r14, 0x8000000000000000
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x60], xmm0
test rbx, rbx
je 0x140035189
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.140002f40
cmp rsi, r14
jne 0x1400351ca
mov rax, qword [rsp + 0x38]
mov qword [rax], r14
mov rcx, rdi
call fcn.140017080
cmp qword [rsp + 0x40], 0
je 0x1400351b5
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.140002f40
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x38]
mov qword [rax], rsi
mov qword [rax + 8], rdi
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x10], xmm0
cmp qword [rsp + 0x40], 0
jne 0x1400351a6
jmp 0x1400351b5
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
movabs r14, 0x8000000000000000
mov rsi, r14
or rbx, rbx
jne 0x14003517a
jmp 0x140035189
lea rcx, str.internal_error:_entered_unreachable_code_home_torcrypt_.cargo_registry_src_index.crates.io_6f17d22bba15001f_rayon_core_1.12.1_src_job.rs_5__
lea r8, str.M.__
mov edx, 0x28
call fcn.140004dc0
jmp 0x140035242
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
nop
push rdi
pop rdx
mov r8, rax
call fcn.140004a20
ud2
Function at 0x140036430
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x140049130]
test ecx, ecx
je 0x140036509
dec ecx
call fcn.14004679c
cmp rax, 2
jb 0x140036464
nop
push rax
pop rdi
cmp qword [rax + 8], 0
je 0x140036464
add rdi, 0x10
jmp 0x1400364ff
mov ecx, dword [0x140049130]
or ecx, ecx
je 0x14003651c
dec ecx
call fcn.14004679c
cmp rax, 1
je 0x1400364fd
push rax
nop
pop rsi
or rax, rax
jne 0x1400364cc
movzx eax, byte [0x14028a128]
mov edx, 0x18
xor ecx, ecx
call fcn.1400370d0
or rax, rax
je 0x14003653f
nop
push rax
pop rsi
lea rax, [0x140049118]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140049130]
test ecx, ecx
je 0x14003652f
dec ecx
push rsi
pop rdx
nop
call fcn.140046794
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x1400364ff
test rcx, rcx
je 0x1400364ff
lock dec qword [rcx]
jne 0x1400364ff
call fcn.140036550
jmp 0x1400364ff
xor edi, edi
push rdi
pop rax
nop
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140049118]
call fcn.140017830
mov ecx, eax
jmp 0x140036446
lea rcx, [0x140049118]
call fcn.140017830
mov ecx, eax
jmp 0x140036474
lea rcx, [0x140049118]
call fcn.140017830
mov ecx, eax
jmp 0x1400364c4
mov ecx, 8
mov edx, 0x18
call fcn.140003420
int3

Function at 0x140036b00
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140036b36
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [0x140035bb0]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.H___
lea rcx, [rsp + 0x50]
call fcn.140003f70
ud2
Function at 0x14003e925
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
push rdx
nop
pop rax
push rcx
pop rsi
nop
lea rdx, [rsp + 0x2c]
push rax
pop rcx
nop
call sub.SHELL32.dll_CommandLineToArgvW
test rax, rax
je 0x14003e9c1
nop
push rax
pop rdi
lea rbx, [rsp + 0x30]
and qword [rbx], 0
mov qword [rbx + 8], 8
and qword [rbx + 0x10], 0
movsxd r12, dword [rsp + 0x2c]
shl r12, 3
xor r13d, r13d
lea r14, [rsp + 0x48]
cmp r12, r13
je 0x14003e9a6
mov r15, qword [rdi + r13]
mov rcx, r15
call sub.msvcrt.dll_wcslen
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.14003e2b1
push rbx
nop
pop rcx
mov rdx, r14
call fcn.14003ec2e
add r13, 8
jmp 0x14003e976
nop
push rdi
pop rcx
call sub.KERNEL32.dll_LocalFree
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
jmp 0x14003e9d2
and qword [rsi], 0
mov qword [rsi + 8], 8
and qword [rsi + 0x10], 0
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14004500f
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x140049150]
test ecx, ecx
je 0x14004511c
dec ecx
call fcn.14004679c
cmp rax, 2
jb 0x14004504a
cmp qword [rax + 8], 0
je 0x14004504a
mov rcx, rax
add rcx, 0x10
mov rax, qword [rax + 0x10]
jmp 0x1400450fd
mov ecx, dword [0x140049150]
or ecx, ecx
je 0x14004512f
dec ecx
call fcn.14004679c
push rax
nop
pop rdi
cmp rax, 1
je 0x140045112
test rdi, rdi
jne 0x1400450b6
mov al, byte [0x14028a128]
mov edx, 0x20
xor ecx, ecx
call fcn.1400370d0
test rax, rax
je 0x140045155
push rax
pop rdi
nop
lea rax, [0x140049138]
mov qword [rdi], rax
and qword [rdi + 8], 0
mov ecx, dword [0x140049150]
test ecx, ecx
je 0x140045142
dec ecx
push rdi
nop
pop rdx
call fcn.140046794
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
or eax, eax
js 0x1400450e4
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400450e9
call fcn.140036b00
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
mov rdx, qword [rcx + 8]
lea r8, [rax + 1]
mov qword [rcx], r8
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rdx
xor edi, edi
mov qword [rsi], rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x140049138]
call fcn.140017830
mov ecx, eax
jmp 0x140045028
lea rcx, [0x140049138]
call fcn.140017830
mov ecx, eax
jmp 0x14004505a
lea rcx, [0x140049138]
call fcn.140017830
mov ecx, eax
jmp 0x1400450ae
mov ecx, 8
mov edx, 0x20
call fcn.140003420
int3
Function at 0x140045fd9
Capabilities:
Reference wmi statements

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
and qword [rsp + 0x38], 0
push rdx
nop
pop rsi
push rcx
pop rdi
nop
cmp qword [rdx + 0x10], 0
je 0x14004609d
lea rcx, [0x140283ac2]
call sub.OLEAUT32.dll_SysAllocString
mov rbx, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.OLEAUT32.dll_SysAllocString
mov r14, rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
and qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r14
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebp, eax
push rbx
pop rcx
nop
call sub.OLEAUT32.dll_SysFreeString
mov rcx, r14
call sub.OLEAUT32.dll_SysFreeString
or ebp, ebp
js 0x14004609d
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x20]
mov rdx, qword [rsi + 0x28]
call fcn.140040c77
mov qword [rsi + 0x20], 1
mov qword [rsi + 0x28], rbx
mov rax, qword [rsi + 0x30]
mov qword [rdi + 0x30], rax
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x28], rax
jmp 0x1400460ac
mov qword [rdi], 2
push rsi
nop
pop rcx
call fcn.140040bfb
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x1400474a0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400482b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400482b0
mov rdx, r12
nop
push rax
pop rcx
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140047510
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x14028a1b4]
mov r12, rcx
nop
push rdx
pop rsi
mov rbx, r8
test edi, edi
jle 0x1400476c0
mov rax, qword [0x14028a1b8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14004755c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400475e7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140047540
mov rcx, r12
call fcn.140047fc0
nop
push rax
pop rbp
test rax, rax
je 0x14004771d
mov rax, qword [0x14028a1b8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.1400480f0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14028a1b8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
or rax, rax
je 0x140047702
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400475e0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140047670
add dword [0x14028a1b4], 1
cmp ebx, 8
jae 0x140047618
test bl, 4
jne 0x1400476d0
test ebx, ebx
je 0x140047609
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1400476f0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140047609
and ebx, 0xfffffff8
sub eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14004764a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x14028a1b8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
or eax, eax
jne 0x1400475e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400474a0
sub edi, edi
jmp 0x140047567
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140047609
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140047609
mov rax, qword [0x14028a1b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.1400474a0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400474a0
nop
nop dword [rax]