joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401d6660
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1401cbd38
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1401d6701
cmp ebx, dword [rsp + 0x30]
je 0x1401d66fa
test esi, esi
je 0x1401d66fa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401d66d5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401d66e2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401d66bf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401d66e6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401d6703
mov eax, 1
jmp 0x1401d6703
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1401db370
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401db398
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401db398
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001943c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400306f8], rbx
je 0x1400194a3
cmp rax, rbx
jne 0x140019496
mov ebx, 1
mov esi, ebx
jmp 0x1400194a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14001947b
mov ebx, 1
mov eax, dword [0x140030700]
cmp eax, ebx
jne 0x1400194c0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14001952c
mov eax, dword [0x140030700]
test eax, eax
jne 0x140019521
mov dword [0x140030700], ebx
lea r15, [0x14001dcb8]
lea rdi, [0x14001dca0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140019513
test eax, eax
jne 0x140019517
cmp qword [rdi], r14
je 0x140019508
mov rax, qword [rdi]
mov rcx, qword [0x14001dc18]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400194ea
test eax, eax
je 0x140019527
mov eax, 0xff
jmp 0x140019682
mov dword [0x14002ffb4], ebx
mov edi, 0x1f
mov eax, dword [0x140030700]
cmp eax, ebx
jne 0x140019553
lea rdx, [0x14001dc98]
lea rcx, [0x14001dc20]
call sub.msvcrt.dll__initterm
mov dword [0x140030700], 2
test esi, esi
jne 0x140019561
mov rax, r14
xchg qword [0x1400306f8], rax
cmp qword [0x140030718], r14
je 0x140019594
lea rcx, [0x140030718]
call fcn.140019a50
test eax, eax
je 0x140019594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140030718]
mov r9, qword [0x14001dc18]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400195ad
mov eax, 0xff
jmp 0x140019682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140019633
test ax, ax
je 0x1400195c8
test edx, edx
jne 0x140019633
sub ax, bx
cmp ax, di
ja 0x1400195de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400195c8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140003e4c
mov dword [0x14002ffb0], eax
cmp dword [0x14002ffd0], r14d
jne 0x14001961c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14002ffb4], r14d
jne 0x140019631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14002ffb0]
jmp 0x140019682
cmp ax, 0x22
jne 0x140019647
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400195b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140162000
add rsp, 0x28
jmp 0x14001943c
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
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.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
nop
push rcx
pop rax
mov ecx, dword [rcx + 0x18]
or ecx, ecx
je 0x1400091d0
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140046794
nop
push rax
pop rcx
call fcn.140017830
mov ecx, eax
jmp 0x1400091c3
Function at 0x14000da65
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
push rcx
pop rax
nop
mov ecx, dword [rcx + 0x18]
or ecx, ecx
je 0x14000da7e
dec ecx
add rsp, 0x28
jmp fcn.14004679c
push rax
nop
pop rcx
call fcn.140017830
mov ecx, eax
jmp 0x14000da75
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
xor ebx, ebx
xor r15d, r15d
cmp r15, rdi
je 0x14000fae8
mov rbp, r15
mov ecx, dword [r12 + r15*4]
add rcx, r14
nop
push rcx
pop rax
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
xor ebx, ebx
movzx eax, word [rbx + 4]
add rbx, 0x12
mov rdx, rbx
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
nop
push rcx
pop rsi
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
xor eax, eax
jmp 0x1400144ee
mov rcx, rsi
sub 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, [0x1400b48cb]
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, [0x1400b4c39]
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
pop rdx
nop
call fcn.140004aa0
test al, al
jne 0x140014581
mov rcx, rsi
call fcn.140011610
test al, al
jne 0x140014581
mov rax, qword [rsi]
test 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
nop
pop rcx
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, [0x1400b4c18]
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
sub 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
nop
push rcx
pop rsi
cmp qword [rcx], 0
je 0x1400178b5
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
push rbx
pop rcx
nop
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 [0x1400bf108]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1400bf108], rsi
jne 0x140017890
mov byte [0x1400bf100], 1
push rbx
pop rcx
nop
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
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]
test 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
pop rsi
nop
test rax, rax
jne 0x140017eac
movzx eax, byte [0x1400bf128]
mov edx, 0x18
sub ecx, ecx
call fcn.1400370d0
test rax, rax
je 0x140017f1f
mov rsi, rax
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
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
test rax, rax
jne 0x140019148
movzx eax, byte [0x1400bf128]
mov edx, 0x20
xor ecx, ecx
call fcn.1400370d0
or rax, rax
je 0x1400191a0
push rax
pop rsi
nop
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
xor 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
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
push rbp
pop rdx
nop
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]
push rbp
nop
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
nop
push rdi
pop rcx
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
lea r8, str.Mx_v_
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]
or ecx, ecx
je 0x140036509
dec ecx
call fcn.14004679c
cmp rax, 2
jb 0x140036464
push rax
nop
pop rdi
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
mov rsi, rax
or rax, rax
jne 0x1400364cc
movzx eax, byte [0x1400bf128]
mov edx, 0x18
xor 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
xor 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.Hs_v_
lea rcx, [rsp + 0x50]
call fcn.140003f70
ud2
Function at 0x14003ea18
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, rdx
push rcx
nop
pop rsi
lea rdx, [rsp + 0x2c]
push rax
pop rcx
nop
call sub.SHELL32.dll_CommandLineToArgvW
test rax, rax
je 0x14003eab4
mov rdi, rax
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 0x14003ea99
mov r15, qword [rdi + r13]
mov rcx, r15
call sub.msvcrt.dll_wcslen
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.14003bf2a
push rbx
pop rcx
nop
mov rdx, r14
call fcn.14003ed21
add r13, 8
jmp 0x14003ea69
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 0x14003eac5
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
push rcx
nop
pop rsi
mov ecx, dword [0x140049150]
or 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
mov rdi, rax
cmp rax, 1
je 0x140045112
or rdi, rdi
jne 0x1400450b6
mov al, byte [0x1400bf128]
mov edx, 0x20
xor ecx, ecx
call fcn.1400370d0
or rax, rax
je 0x140045155
mov rdi, rax
lea rax, [0x140049138]
mov qword [rdi], rax
and qword [rdi + 8], 0
mov ecx, dword [0x140049150]
or ecx, ecx
je 0x140045142
dec ecx
push rdi
pop rdx
nop
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
test 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
sub 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