joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b57b0
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 0x1400b580b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1400b580b
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x1400b5826
cmp eax, 0x42
jne 0x1400b580b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1400b58d6
cmp byte [r8 + r11], 0x5f
jne 0x1400b58d6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400b593e
mov rcx, rsi
xor edx, edx
call fcn.1400b1190
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.1400b1190
test al, al
jne 0x1400b59d1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400b5862
lea rdx, [0x14013113b]
mov r8d, 1
call fcn.14000c080
test al, al
jne 0x1400b59d1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1400b581a
xor r14d, r14d
lea rbx, [0x1401314a9]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400b5894
cmp byte [rax + rcx], 0x45
je 0x1400b59f3
sub r14, 1
jb 0x1400b58b9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400b58b9
mov r8d, 2
mov rdx, rbx
call fcn.14000c080
test al, al
jne 0x1400b59d1
mov rcx, rsi
call fcn.1400b29c0
test al, al
jne 0x1400b59d1
mov rax, qword [rsi]
test rax, rax
jne 0x1400b5880
jmp 0x1400b581a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x1400b5998
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x1400b5932
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400b591c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400b590b
add dl, 0xa9
jmp 0x1400b591a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400b5998
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400b5998
movzx edx, bl
add rax, rdx
jae 0x1400b58e0
jmp 0x1400b5998
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400b5998
cmp rax, rcx
jae 0x1400b5995
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400b59eb
cmp qword [rsi + 0x20], 0
je 0x1400b59e4
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.1400b57b0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400b581c
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400b59d9
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, [0x140131488]
test r9b, r9b
cmovne rdx, rax
call fcn.14000c080
test al, al
je 0x1400b59d9
mov dil, 2
jmp 0x1400b581a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1400b581a
mov dil, 1
xor r9d, r9d
jmp 0x1400b599a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1400b581a
Function at 0x1400b838b
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
mov qword [r8], 0
mov edx, 0x53
call sub.secur32.dll_QueryContextAttributesW
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x1400b83b7
mov rdx, qword [rsp + 0x20]
jmp 0x1400b83bf
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret

Function at 0x1400b856a
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xc8], xmm0
movups xmmword [rsp + 0xb8], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0x98], xmm0
mov dword [rsp + 0x88], 4
mov dword [rsp + 0xd0], 0x400010
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x1400b85cf
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0xb0], edx
mov qword [rsp + 0xb8], rax
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x1400b8605
mov r8, qword [rcx + 0x40]
xor edx, edx
test r8, r8
je 0x1400b85fe
lea r9, [0x14015d880]
xor r10d, r10d
movzx r11d, byte [rax + r10]
or edx, dword [r9 + r11*4]
inc r10
cmp r8, r10
jne 0x1400b85ed
mov dword [rsp + 0xc0], edx
mov r14, qword [rcx + 0x10]
test r14, r14
je 0x1400b865c
mov rax, r14
shr rax, 0x3c
jne 0x1400b8730
mov rbx, qword [rcx]
lea rdi, [r14*8]
mov al, byte [0x14017e190]
mov edx, 8
mov rcx, rdi
call fcn.140004cf0
test rax, rax
je 0x1400b8737
mov rsi, rax
xor eax, eax
mov rcx, qword [rbx + rax*8]
mov qword [rsi + rax*8], rcx
inc rax
cmp r14, rax
jne 0x1400b8647
mov eax, r14d
jmp 0x1400b8663
xor eax, eax
mov esi, 8
lea rcx, [rsp + 0x88]
mov dword [rcx + 4], eax
mov qword [rcx + 8], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x40], 0
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call sub.secur32.dll_AcquireCredentialsHandleA
mov edi, eax
test eax, eax
je 0x1400b86be
shl rdi, 0x20
or rdi, 2
mov ebx, 1
jmp 0x1400b8707
movaps xmm0, xmmword [rsp + 0x50]
mov eax, 1
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
movups xmmword [rsp + 0x78], xmm0
mov al, byte [0x14017e190]
mov ecx, 0x20
mov edx, 8
call fcn.140004cf0
test rax, rax
je 0x1400b8746
mov rdi, rax
movups xmm0, xmmword [rsp + 0x68]
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
xor ebx, ebx
test r14, r14
je 0x1400b871d
mov rcx, qword [0x14017e110]
xor edx, edx
mov r8, rsi
call fcn.1400f8824
mov rax, rbx
mov rdx, rdi
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140005170
ud2
mov ecx, 8
mov rdx, rdi
call fcn.1400051b0
ud2
lea rbx, [rsp + 0x78]
mov ecx, 8
mov edx, 0x20
call fcn.1400051b0
ud2

Function at 0x1400b8936
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
mov dword [r9], r8d
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, eax
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400b8962
xor eax, eax
jmp 0x1400b896f
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
Function at 0x1400b899e
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
mov r8d, dword [rdx + 0x80]
call sub.ws2_32.dll_connect
test eax, eax
je 0x1400b89c1
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
jmp 0x1400b89c3
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400ba600
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400ba685
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x1400ba6c6
cmp dword [rsp + 0x2c], 0
je 0x1400ba6aa
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400ba6ee
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14017e130]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14017e130], rsi
jne 0x1400ba660
mov byte [0x14017e128], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x1400ba6bc
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1400ba73a
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1400ba6af
mov edi, dword [rsp + 0x28]
jmp 0x1400ba6bc
mov edi, dword [rsi + 0x18]
jmp 0x1400ba6ba
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 rdx, [0x140134630]
lea r9, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.1400bad20
ud2
mov rcx, rbx
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._rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_src_sync_atomic.rsthere_is_no_such_thing_as_an_acquire_store
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.14000b660
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str._rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_src_sync_atomic.rsthere_is_no_such_thing_as_an_acquire_store
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.1400bad60
ud2
Function at 0x1400babf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400fb0a8]
test ecx, ecx
je 0x1400bacd0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400bac24
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400bac24
add rdi, 0x10
jmp 0x1400bacc6
mov ecx, dword [0x1400fb0a8]
test ecx, ecx
je 0x1400bace3
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400bacc4
mov rsi, rax
test rax, rax
jne 0x1400bac93
movzx eax, byte [0x14017e190]
mov ecx, 0x18
mov edx, 8
call fcn.140004cf0
test rax, rax
je 0x1400bad06
mov rsi, rax
lea rax, [0x1400fb090]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400fb0a8]
test ecx, ecx
je 0x1400bacf6
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
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 0x1400bacc6
test rcx, rcx
je 0x1400bacc6
lock dec qword [rcx]
jne 0x1400bacc6
call fcn.1400ba5a0
jmp 0x1400bacc6
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400fb090]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400bac06
lea rcx, [0x1400fb090]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400bac34
lea rcx, [0x1400fb090]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400bac8b
mov ecx, 8
mov edx, 0x18
call fcn.1400051b0
ud2

Function at 0x1400bb370
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400fb0c8]
test ecx, ecx
je 0x1400bb40f
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400bb399
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x1400bb3fe
mov ecx, dword [0x1400fb0c8]
test ecx, ecx
je 0x1400bb422
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400bb404
mov rsi, rax
test rax, rax
jne 0x1400bb3f8
movzx eax, byte [0x14017e190]
mov ecx, 0x10
mov edx, 8
call fcn.140004cf0
test rax, rax
je 0x1400bb445
mov rsi, rax
lea rax, [0x1400fb0b0]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400fb0c8]
test ecx, ecx
je 0x1400bb435
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x1400bb406
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400fb0b0]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400bb385
lea rcx, [0x1400fb0b0]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400bb3a5
lea rcx, [0x1400fb0b0]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400bb3f0
mov ecx, 8
mov edx, 0x10
call fcn.1400051b0
ud2
Function at 0x1400bb9b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140133fb0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x1400bba21
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400bba57
test eax, eax
js 0x1400bba32
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400bba4a
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x140134018]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400baa10
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400b9d50
mov ecx, 7
int 0x29
ud2

Function at 0x1400bc010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400fb088]
test ecx, ecx
je 0x1400bc0cd
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400bc040
cmp qword [rax + 8], 0
je 0x1400bc040
add rax, 0x10
jmp 0x1400bc0c7
mov ecx, dword [0x1400fb088]
test ecx, ecx
je 0x1400bc0e0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400bc0c5
mov rsi, rax
test rax, rax
jne 0x1400bc0ab
movzx eax, byte [0x14017e190]
mov ecx, 0x20
mov edx, 8
call fcn.140004cf0
test rax, rax
je 0x1400bc103
mov rsi, rax
lea rax, [0x1400fb070]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400fb088]
test ecx, ecx
je 0x1400bc0f3
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x1400bc0c7
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400fb070]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400bc025
lea rcx, [0x1400fb070]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400bc050
lea rcx, [0x1400fb070]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400bc0a3
mov ecx, 8
mov edx, 0x20
call fcn.1400051b0
ud2
Function at 0x1400bfb80
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x88], 0
xorps xmm6, xmm6
movups xmmword [rsp + 0x90], xmm6
mov dword [rsp + 0xa0], 7
mov qword [rsp + 0xa4], 0
mov word [rsp + 0xac], 0
mov byte [rsp + 0xa8], 1
lea r8, [rsp + 0x88]
mov rcx, rdx
mov rdx, rax
call fcn.1400d8800
mov rdi, rdx
test rax, rax
je 0x1400bfc1c
mov qword [rsp + 0x40], 1
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rdi
call fcn.1400b9c90
mov qword [rsi], 0
jmp 0x1400bfded
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x70], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.kernel32.dll_GetFileInformationByHandle
test eax, eax
je 0x1400bfcd8
test dword [rsp + 0x40], 0x400
je 0x1400bfc7d
mov qword [rsp + 0x80], 0
lea r8, [rsp + 0x80]
mov rcx, rdi
mov edx, 9
mov r9d, 8
call sub.kernel32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x1400bfcd8
mov r12d, dword [rsp + 0x60]
mov r15d, dword [rsp + 0x64]
test rdi, rdi
je 0x1400bfd2d
mov qword [rsp + 0x40], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x1400bfdb0
mov rbx, qword [rsp + 0x40]
jmp 0x1400bfd2f
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x88], 2
call fcn.1400b9c90
mov qword [rsi], 0
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.kernel32.dll_CloseHandle
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x1400bfd9f
mov r14, rax
shl r12, 0x20
or r12, r15
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.kernel32.dll_CloseHandle
test r15, r15
je 0x1400bfd9f
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x1400bfde5
mov qword [rsi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x1400bfde5
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x88], 1
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x90], rax
call fcn.1400b9c90
mov qword [rsi], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400d9060
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rsi, rcx
lea rcx, [rsp + 0xa8]
call fcn.1400bc6a0
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400d91cb
mov qword [rsp + 0x38], rsi
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
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 0x1400d9120
jmp 0x1400d90ff
jae 0x1400d91e1
cmp r8, 0x201
jae 0x1400d9120
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x1400d9167
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x1400d9147
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.1400bcab0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rbx, qword [rsp + 0x50]
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]
mov rdx, rbp
mov r8d, r12d
call sub.kernel32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x1400d9192
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x1400d9216
mov r8d, r15d
cmp r12, r8
jne 0x1400d90f0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400d92aa
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x1400d90ff
jmp 0x1400d9120
lea rcx, [rsp + 0xb0]
call fcn.1400b9c90
mov byte [rsi + 0x18], 2
jmp 0x1400d927a
cmp rdi, r8
jb 0x1400d92c4
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.1400beb20
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x1400d922d
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x78], 2
mov rsi, qword [rsp + 0x38]
test rbx, rbx
je 0x1400d924a
mov rcx, qword [0x14017e110]
xor edx, edx
mov r8, qword [rsp + 0x28]
call fcn.1400f8824
cmp byte [rsp + 0x78], 2
jne 0x1400d928f
mov byte [rsi + 0x18], 2
lea rcx, [rsp + 0x60]
call fcn.1400b9c90
cmp qword [rsp + 0x40], 0
je 0x1400d927a
mov rcx, qword [0x14017e110]
xor edx, edx
mov r8, qword [rsp + 0x30]
call fcn.1400f8824
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rsp + 0x40], 0
jne 0x1400d9267
jmp 0x1400d927a
lea rcx, str.internal_error:_entered_unreachable_code_Users_Vadym_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.36.0_src_sync_notify.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14000c3a0
jmp 0x1400d92d9
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.14000c000
ud2
Function at 0x1400db5f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400fb0e8]
test ecx, ecx
je 0x1400db6d0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400db624
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400db624
add rdi, 0x10
jmp 0x1400db6c6
mov ecx, dword [0x1400fb0e8]
test ecx, ecx
je 0x1400db6e3
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400db6c4
mov rsi, rax
test rax, rax
jne 0x1400db693
movzx eax, byte [0x14017e190]
mov ecx, 0x18
mov edx, 8
call fcn.140004cf0
test rax, rax
je 0x1400db706
mov rsi, rax
lea rax, [0x1400fb0d0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400fb0e8]
test ecx, ecx
je 0x1400db6f6
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
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 0x1400db6c6
test rcx, rcx
je 0x1400db6c6
lock dec qword [rcx]
jne 0x1400db6c6
call fcn.1400db720
jmp 0x1400db6c6
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400fb0d0]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400db606
lea rcx, [0x1400fb0d0]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400db634
lea rcx, [0x1400fb0d0]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400db68b
mov ecx, 8
mov edx, 0x18
call fcn.1400051b0
ud2
Function at 0x1400dcc30
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov r14, rdx
mov rbx, rcx
movzx eax, byte [0x14017e190]
mov ecx, 0x10
mov edx, 8
call fcn.140004cf0
test rax, rax
je 0x1400dccfc
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400dcd70]
xor edi, edi
xor ecx, ecx
mov rdx, rbx
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400dccef
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rdi
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1400dccca
cmp qword [r14 + 0x10], 0x11
jb 0x1400dccb9
mov rdi, qword [rdi - 8]
mov rcx, qword [0x14017e110]
xor edx, edx
mov r8, rdi
call fcn.1400f8824
mov rcx, qword [0x14017e110]
xor edx, edx
mov r8, rsi
call fcn.1400f8824
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.1400051b0
ud2

Function at 0x1400dce70
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 0x1400dcea6
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, [fcn.1400d9b30]
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.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.14000b660
ud2
Function at 0x1400e1bd0
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x1400fb108]
test ecx, ecx
je 0x1400e1cc9
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e1c00
cmp qword [rax + 8], 0
je 0x1400e1c00
add rax, 0x10
jmp 0x1400e1cc3
mov ecx, dword [0x1400fb108]
test ecx, ecx
je 0x1400e1cdc
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400e1ca3
mov rsi, rax
test rax, rax
jne 0x1400e1c73
movzx eax, byte [0x14017e190]
mov ecx, 0x20
mov edx, 8
call fcn.140004cf0
test rax, rax
je 0x1400e1d02
mov rsi, rax
lea rax, [0x1400fb0f0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400fb108]
test ecx, ecx
je 0x1400e1cef
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x1400e1ca7
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400e1caf
xor eax, eax
jmp 0x1400e1cc3
call fcn.1400dce70
mov rcx, rax
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
add rsp, 0x30
pop rsi
ret
lea rcx, [0x1400fb0f0]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400e1be5
lea rcx, [0x1400fb0f0]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400e1c10
lea rcx, [0x1400fb0f0]
call fcn.1400ba600
mov ecx, eax
jmp 0x1400e1c6b
mov ecx, 8
mov edx, 0x20
call fcn.1400051b0
ud2