joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003050
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x110
movaps xmmword [rax - 0x18], xmm6
mov r14, r8
movaps xmmword [rax - 0x28], xmm7
mov rsi, rdx
movaps xmmword [rax - 0x38], xmm8
mov rbp, rcx
movaps xmmword [rax - 0x48], xmm9
movaps xmmword [rax - 0x58], xmm10
movaps xmmword [rax - 0x68], xmm11
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd r9, dword [r10 + 0x3c]
mov edi, dword [r9 + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x180003127
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x180003127
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xee528c46
lea rcx, [rbx + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x180003122
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x180003100
cmp r8d, 0xdfe88280
je 0x18000312c
test r9d, r9d
jne 0x1800030e0
mov rax, qword [rax]
jmp 0x1800030b0
mov ecx, dword [rdi + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rcx, rbp
add rax, r10
call rax
movsd xmm7, qword [rsi]
mov rcx, rbp
movsd xmm8, qword [rsi + 8]
addsd xmm7, qword [0x180015c00]
addsd xmm8, qword [0x180015c00]
movups xmm9, xmmword [0x180015b30]
movups xmm10, xmmword [0x18001c368]
movaps xmm11, xmmword [r14]
movaps xmm6, xmmword [rsi]
call fcn.1800027a0
cmp word [rax], 0
je 0x1800031a6
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp word [rax + rcx*2], 0
jne 0x180003190
xor edx, edx
add ecx, 1
je 0x1800031aa
mov rdx, rax
jmp 0x1800031aa
xor edx, edx
mov ecx, edx
mov rax, qword [0x1800187d8]
movaps xmm0, xmmword [0x180015ec0]
mov rbx, qword [0x180018860]
mov qword [rsp + 0x20], rax
mov rax, qword [0x18001c820]
movsd qword [rsp + 0x38], xmm6
unpckhpd xmm6, xmm6
movsd qword [rsp + 0x40], xmm6
movsd qword [rsp + 0x80], xmm7
movsd qword [rsp + 0x88], xmm8
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x68], 0
mov word [rsp + 0x90], 0x101
mov byte [rsp + 0x92], 1
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm11
movups xmmword [rsp + 0x6c], xmm10
movups xmmword [rsp + 0x94], xmm9
test rax, rax
jne 0x180003258
mov rax, qword [0x180018980]
lea r8, str.Canvas.K2_DrawText
add rax, 0x16e11a4
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call rax
mov qword [0x18001c820], rax
mov r9, qword [rbx]
lea r8, [rsp + 0x20]
mov rdx, rax
mov rcx, rbx
call qword [r9 + 0x268]
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
mov rsp, r11
pop r14
ret
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
push rdx
nop
pop rax
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]
test 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
nop
push rcx
pop rax
mov ecx, dword [rcx + 0x18]
or ecx, ecx
je 0x1400091d0
dec ecx
push rsi
pop rdx
nop
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
push rcx
pop rax
nop
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14000dabb
dec ecx
add rsp, 0x28
jmp fcn.14004679c
nop
push rax
pop rcx
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
nop
pop rax
nop
push rax
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
nop
pop rdx
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
mov rdx, rdi
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
mov rsi, rcx
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
sub edx, edx
call fcn.14000fdf0
test al, al
jne 0x140014581
mov rcx, qword [rsi + 0x20]
or 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
or 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
mov rdx, rbx
call fcn.140004aa0
test al, al
jne 0x140014581
push rsi
pop rcx
nop
call fcn.140011610
test al, al
jne 0x140014581
mov rax, qword [rsi]
test rax, rax
jne 0x140014430
jmp 0x1400143ca
sub 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
sub 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
sub 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]
push rbx
nop
pop rcx
xor edx, edx
xor 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
sub 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
sub 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
push rbx
pop rcx
nop
mov edx, 4
xor 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
pop rdi
nop
cmp qword [rax + 8], 0
je 0x140017e44
add rdi, 0x10
jmp 0x140017edf
mov ecx, dword [0x1400490f0]
or ecx, ecx
je 0x140017efc
dec ecx
call fcn.14004679c
cmp rax, 1
je 0x140017edd
push rax
nop
pop rsi
test rax, rax
jne 0x140017eac
movzx eax, byte [0x14028a128]
mov edx, 0x18
xor 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
push rsi
nop
pop rdx
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
xor edi, edi
push rdi
nop
pop rax
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
or rax, rax
jne 0x140019148
movzx eax, byte [0x14028a128]
mov edx, 0x20
xor ecx, ecx
call fcn.1400370d0
or 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
push rsi
pop rdx
nop
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
push rcx
pop rsi
nop
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]
nop
push rbp
pop rdx
mov r8d, r12d
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x140035102
call sub.KERNEL32.dll_GetLastError
or 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]
mov rdx, rbp
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
or 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
push rdi
pop rcx
nop
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
test 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
mov rdx, rdi
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
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140036464
add rdi, 0x10
jmp 0x1400364ff
mov ecx, dword [0x140049130]
test ecx, ecx
je 0x14003651c
dec ecx
call fcn.14004679c
cmp rax, 1
je 0x1400364fd
nop
push rax
pop rsi
or rax, rax
jne 0x1400364cc
movzx eax, byte [0x14028a128]
mov edx, 0x18
sub ecx, ecx
call fcn.1400370d0
test rax, rax
je 0x14003653f
push rax
pop rsi
nop
lea rax, [0x140049118]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140049130]
or ecx, ecx
je 0x14003652f
dec ecx
push rsi
nop
pop rdx
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
sub edi, edi
nop
push rdi
pop rax
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
nop
push rcx
pop rsi
lea rdx, [rsp + 0x2c]
push rax
pop rcx
nop
call sub.SHELL32.dll_CommandLineToArgvW
test rax, rax
je 0x14003e9c1
push rax
nop
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
nop
push rbx
pop rcx
mov rdx, r14
call fcn.14003ec2e
add r13, 8
jmp 0x14003e976
push rdi
pop rcx
nop
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]
test ecx, ecx
je 0x14004512f
dec ecx
call fcn.14004679c
push rax
pop rdi
nop
cmp rax, 1
je 0x140045112
or rdi, rdi
jne 0x1400450b6
mov al, byte [0x14028a128]
mov edx, 0x20
sub ecx, ecx
call fcn.1400370d0
test rax, rax
je 0x140045155
push rax
nop
pop rdi
lea rax, [0x140049138]
mov qword [rdi], rax
and qword [rdi + 8], 0
mov ecx, dword [0x140049150]
test ecx, ecx
je 0x140045142
dec ecx
mov rdx, rdi
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