joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400448b1
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
mov r8, qword [rdx + 0x178]
mov rcx, qword [rdx + 0x168]
mov rdx, qword [rdx + 0x170]
lea r9, str.._registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
call fcn.1400441c5
xor ecx, ecx
test rax, rax
cmove edx, ecx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rcx + 0x30], xmm0
mov dword [rcx], edx
mov dword [rcx + 4], 1
mov qword [rcx + 8], rax
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
lea rcx, [rdi + 0x1f0]
xor r8d, r8d
xor r9d, r9d
call sub.secur32.dll_DecryptMessage
cmp eax, 0x80090318
je 0x140044994
test eax, eax
je 0x1400449b3
cmp eax, 0x90317
je 0x140044a34
cmp eax, 0x90321
jne 0x140044a3c
mov dword [rdi + 0x1d0], 0x10000
xor ebx, ebx
mov byte [rdi + 0x1d4], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x178]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.140044852
and qword [rdi + 0x210], 0
mov byte [rsi + 1], bl
jmp 0x140044a4a
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x210], rax
mov byte [rsi + 1], 0
jmp 0x140044a38
mov r8, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x168]
mov rdx, qword [rdi + 0x170]
sub r8, rcx
mov r9d, dword [rsp + 0x30]
add r9, r8
lea rbx, [rdi + 0x140]
and qword [rdi + 0x150], 0
call fcn.1400445bc
mov r8, rdx
mov rcx, rbx
mov rdx, rax
call fcn.1400c8584
and qword [rdi + 0x158], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x178]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.140044852
xor eax, eax
cmp qword [rdi + 0x178], rbx
sete al
mov qword [rdi + 0x210], rax
mov byte [rsi + 1], 0
jmp 0x140044a4a
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x140044a4a
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
Function at 0x140044a54
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp dword [rcx], 2
jne 0x140044a66
add rcx, 8
jmp fcn.1400c62da
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, r8
mov rsi, rcx
mov qword [rcx + 0x38], rdx
mov rcx, r8
call fcn.140044bf7
mov rbx, rax
mov r14, rdx
lea r15, [rsp + 0x28]
mov rcx, rsi
call fcn.140044ccb
test rdx, rdx
jne 0x140044b09
mov rcx, r15
mov rdx, rsi
call fcn.140043526
mov eax, dword [rsp + 0x28]
cmp eax, 2
je 0x140044b98
test eax, eax
je 0x140044b09
cmp qword [rsi + 0x110], 0
je 0x140044aec
mov rcx, r15
mov rdx, rsi
call fcn.140044230
cmp qword [rsp + 0x28], 0
jne 0x140044b98
cmp qword [rsp + 0x30], 0
je 0x140044b09
and qword [rsi + 0x110], 0
mov rcx, r15
mov rdx, rsi
call fcn.140044433
cmp byte [rsp + 0x28], 0
jne 0x140044b98
cmp byte [rsp + 0x29], 0
je 0x140044a92
mov rcx, rsi
call fcn.140044ccb
mov r15, rdx
test rax, rax
je 0x140044b9d
mov r13, rax
cmp r14, r15
mov r12, r15
cmovb r12, r14
lea r9, str.._registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov rcx, r12
mov rdx, rbx
mov r8, r14
call fcn.1400441e7
mov rbx, rax
mov r14, rdx
lea r9, str.._registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov rcx, r13
mov rdx, r15
mov r8, r12
call fcn.140042052
mov r9, rdx
lea rcx, str.._registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov qword [rsp + 0x20], rcx
mov rcx, rbx
mov rdx, r14
mov r8, rax
call fcn.140038946
mov rax, qword [rsi + 0x58]
add rax, r12
cmp rax, qword [rsi + 0x50]
ja 0x140044bde
mov qword [rsi + 0x58], rax
mov rcx, rdi
mov rdx, r12
call fcn.140044c64
xor r15d, r15d
jmp 0x140044bc4
mov r15, qword [rsp + 0x30]
mov qword [rsp + 0x28], r15
mov rcx, r15
call fcn.14001c529
cmp al, 0xd
jne 0x140044bc4
and qword [rsi + 0x38], 0
lea rcx, [rsp + 0x28]
call fcn.14003a9f9
mov eax, 1
jmp 0x140044bcb
and qword [rsi + 0x38], 0
xor eax, eax
mov rdx, r15
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1401263b6]
lea r8, str.._registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov edx, 0x3b
call fcn.14000b310
int3
Function at 0x14007e955
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rax, r8
mov r14, rdx
mov rsi, rcx
lea rdi, [rsp + 0x58]
mov r8d, 0xb
mov rcx, rdi
mov rdx, rax
call fcn.14007ea96
lea r13, [rsp + 0x38]
mov dword [r13], 0x800
lea r15, [rsp + 0x3c]
and dword [r15], 0
mov ecx, 0x800
call fcn.140087e20
mov rbx, rdx
lea r12, [rsp + 0x40]
mov qword [r12], rax
mov qword [r12 + 8], rdx
and qword [r12 + 0x10], 0
mov rdi, qword [rdi + 8]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbx
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x14007e9f3
mov edx, dword [rsp + 0x38]
mov rcx, r12
call fcn.1400382fb
mov rbx, qword [rsp + 0x48]
jmp 0x14007e9be
test eax, eax
jne 0x14007ea15
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x3c]
cmp eax, 0xb
jbe 0x14007ea3d
movabs rax, 0xde00000002
jmp 0x14007ea1d
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
call fcn.1400884b7
jmp 0x14007ea51
mov rcx, qword [rsp + 0x50]
mov qword [rsi + 0x10], rcx
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x18], al
mov rcx, qword [rsp + 0x58]
mov rdx, rdi
call fcn.1400884d0
nop
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140084b30
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.14000ab00
cmp rax, rcx
je 0x140084b55
cmp rdx, 4
jae 0x140084b58
xor eax, eax
xor r8d, r8d
jmp 0x140084bf0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400d49a0]
movdqa xmm3, xmmword [0x1400d49b0]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140084b80
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140084c07
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140084bf0
ret
Function at 0x140085b70
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 0x140085bcb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140085bcb
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x140085be6
cmp eax, 0x42
jne 0x140085bcb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140085c96
cmp byte [r8 + r11], 0x5f
jne 0x140085c96
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140085cfe
mov rcx, rsi
xor edx, edx
call fcn.140081560
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.140081560
test al, al
jne 0x140085d91
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140085c22
lea rdx, [0x1401288cb]
mov r8d, 1
call fcn.14000aff0
test al, al
jne 0x140085d91
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140085bda
xor r14d, r14d
lea rbx, [0x140128c39]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140085c54
cmp byte [rax + rcx], 0x45
je 0x140085db3
sub r14, 1
jb 0x140085c79
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140085c79
mov r8d, 2
mov rdx, rbx
call fcn.14000aff0
test al, al
jne 0x140085d91
mov rcx, rsi
call fcn.140082d90
test al, al
jne 0x140085d91
mov rax, qword [rsi]
test rax, rax
jne 0x140085c40
jmp 0x140085bda
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x140085d58
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x140085cf2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x140085cdc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x140085ccb
add dl, 0xa9
jmp 0x140085cda
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140085d58
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140085d58
movzx edx, bl
add rax, rdx
jae 0x140085ca0
jmp 0x140085d58
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140085d58
cmp rax, rcx
jae 0x140085d55
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140085dab
cmp qword [rsi + 0x20], 0
je 0x140085da4
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.140085b70
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140085bdc
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140085d99
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, [0x140128c18]
test r9b, r9b
cmovne rdx, rax
call fcn.14000aff0
test al, al
je 0x140085d99
mov dil, 2
jmp 0x140085bda
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140085bda
mov dil, 1
xor r9d, r9d
jmp 0x140085d5a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140085bda
Function at 0x140088798
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
movabs rax, 0x8000000000000000
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x78], xmm0
mov dword [rsp + 0x68], 4
mov dword [rsp + 0xb0], 0x400010
cmp qword [rcx + 0x18], rax
je 0x140088806
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0x90], edx
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0x98], rdx
cmp qword [rcx + 0x30], rax
je 0x140088841
mov rax, qword [rcx + 0x40]
test rax, rax
je 0x140088838
mov r8, qword [rcx + 0x38]
xor edx, edx
lea r9, [0x140158ee0]
xor r10d, r10d
movzx r11d, byte [r8 + r10]
or edx, dword [r9 + r11*4]
inc r10
cmp rax, r10
jne 0x140088825
jmp 0x14008883a
xor edx, edx
mov dword [rsp + 0xa0], edx
mov r15, qword [rcx + 0x10]
lea rsi, [r15*8]
test r15, r15
je 0x140088893
mov rax, r15
shr rax, 0x3c
jne 0x140088954
mov rbx, qword [rcx + 8]
mov ecx, 8
mov rdx, rsi
call fcn.14002639e
test rax, rax
je 0x140088959
mov rdi, rax
xor eax, eax
mov rcx, qword [rbx + rax*8]
mov qword [rdi + rax*8], rcx
inc rax
cmp r15, rax
jne 0x14008887e
mov eax, r15d
jmp 0x14008889a
xor eax, eax
mov edi, 8
lea rcx, [rsp + 0x68]
mov dword [rcx + 4], eax
mov qword [rcx + 8], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rcx
and qword [rsp + 0x40], 0
lea rdx, [0x14012ba5b]
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call sub.secur32.dll_AcquireCredentialsHandleA
test eax, eax
je 0x1400888f0
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov r14d, 1
jmp 0x140088928
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov ecx, 8
mov edx, 0x20
call fcn.14002639e
test rax, rax
je 0x140088966
mov rbx, rax
mov eax, 1
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r12
xor r14d, r14d
test r15, r15
je 0x14008893d
mov edx, 8
mov rcx, rdi
mov r8, rsi
call fcn.140002a75
mov rax, r14
mov rdx, rbx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400078a0
mov ecx, 8
mov rdx, rsi
call fcn.1400078e0
mov ecx, 8
mov edx, 0x20
call fcn.1400078e0
int3

Function at 0x140088f1f
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
and qword [r8], 0
mov edx, 0x53
call sub.secur32.dll_QueryContextAttributesW
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x140088f48
mov rdx, qword [rsp + 0x20]
jmp 0x140088f50
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x14008bc6f
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 0x14008bc9b
xor eax, eax
jmp 0x14008bca0
call fcn.140038f84
nop
add rsp, 0x38
ret
Function at 0x14008d0b0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x14008d135
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 0x14008d176
cmp dword [rsp + 0x2c], 0
je 0x14008d15a
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14008d19c
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14016a120]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14016a120], rsi
jne 0x14008d110
mov byte [0x14016a118], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x14008d16c
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x14008d1e6
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14008d15f
mov edi, dword [rsp + 0x28]
jmp 0x14008d16c
mov edi, dword [rsi + 0x18]
jmp 0x14008d16a
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, [0x140130208]
lea r9, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.14008d7c0
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, [0x140158120]
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.14000a5d0
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x140158120]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.14008d800
int3
Function at 0x14008d690
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400d20b0]
test ecx, ecx
je 0x14008d770
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14008d6c4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x14008d6c4
add rdi, 0x10
jmp 0x14008d766
mov ecx, dword [0x1400d20b0]
test ecx, ecx
je 0x14008d783
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14008d764
mov rsi, rax
test rax, rax
jne 0x14008d733
movzx eax, byte [0x14016a150]
mov ecx, 0x18
mov edx, 8
call fcn.1400073b0
test rax, rax
je 0x14008d7a6
mov rsi, rax
lea rax, [0x1400d2098]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400d20b0]
test ecx, ecx
je 0x14008d796
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 0x14008d766
test rcx, rcx
je 0x14008d766
lock dec qword [rcx]
jne 0x14008d766
call fcn.14008d060
jmp 0x14008d766
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400d2098]
call fcn.14008d0b0
mov ecx, eax
jmp 0x14008d6a6
lea rcx, [0x1400d2098]
call fcn.14008d0b0
mov ecx, eax
jmp 0x14008d6d4
lea rcx, [0x1400d2098]
call fcn.14008d0b0
mov ecx, eax
jmp 0x14008d72b
mov ecx, 8
mov edx, 0x18
call fcn.1400078e0
int3
Function at 0x14008e3b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x14012f8e0]
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 0x14008e421
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14008e457
test eax, eax
js 0x14008e432
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14008e44a
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, [0x14012f948]
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.14008d4b0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14008c970
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400d2090]
test ecx, ecx
je 0x14008eafd
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14008ea70
cmp qword [rax + 8], 0
je 0x14008ea70
add rax, 0x10
jmp 0x14008eaf7
mov ecx, dword [0x1400d2090]
test ecx, ecx
je 0x14008eb10
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14008eaf5
mov rsi, rax
test rax, rax
jne 0x14008eadb
movzx eax, byte [0x14016a150]
mov ecx, 0x20
mov edx, 8
call fcn.1400073b0
test rax, rax
je 0x14008eb33
mov rsi, rax
lea rax, [0x1400d2078]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400d2090]
test ecx, ecx
je 0x14008eb23
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 0x14008eaf7
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400d2078]
call fcn.14008d0b0
mov ecx, eax
jmp 0x14008ea55
lea rcx, [0x1400d2078]
call fcn.14008d0b0
mov ecx, eax
jmp 0x14008ea80
lea rcx, [0x1400d2078]
call fcn.14008d0b0
mov ecx, eax
jmp 0x14008ead3
mov ecx, 8
mov edx, 0x20
call fcn.1400078e0
int3
Function at 0x140092720
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x38], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 7
mov qword [rsp + 0x54], 0
mov word [rsp + 0x5c], 0
mov byte [rsp + 0x58], 1
lea r8, [rsp + 0x38]
mov rcx, rdx
mov rdx, rax
call fcn.1400ab0a0
mov rdi, rdx
test rax, rax
je 0x1400927b4
mov qword [rsp + 0x80], 1
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call fcn.14008c8d0
mov qword [rsi], 0
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.1400ab2f0
cmp dword [rsp + 0x38], 2
jne 0x1400927e3
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x14009282f
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmm2, xmmword [rsp + 0x58]
movups xmm3, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc0], rax
movaps xmmword [rsp + 0xb0], xmm3
movaps xmmword [rsp + 0xa0], xmm2
movaps xmmword [rsp + 0x90], xmm1
cmp qword [rsp + 0x80], 2
jne 0x14009285b
lea rcx, [rsp + 0x88]
call fcn.14008c8d0
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.kernel32.dll_CloseHandle
mov r12, qword [rsp + 0xb8]
test rdi, rdi
je 0x1400928b9
mov qword [rsp + 0x80], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x140092935
mov rbx, qword [rsp + 0x80]
jmp 0x1400928bb
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 0x140092924
mov r14, rax
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 0x140092924
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x140092961
mov qword [rsi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x140092961
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x38], 1
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.14008c8d0
mov qword [rsi], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
jmp 0x1400927a3
Function at 0x1400abb10
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
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0xa8]
call fcn.14008efa0
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
jne 0x1400abb5f
lea rcx, [rsp + 0xb0]
call fcn.14008c8d0
mov qword [rsi], rdi
jmp 0x1400abd3b
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
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 0x1400abbf0
jmp 0x1400abbcf
jae 0x1400abc97
cmp r8, 0x201
jae 0x1400abbf0
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x1400abc37
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x1400abc17
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.14008f4b0
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]
mov rdx, rbp
mov r8d, r12d
call sub.kernel32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x1400abc5e
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x1400abcd6
mov r8d, r15d
cmp r12, r8
jne 0x1400abbc0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400abd6b
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x1400abbcf
jmp 0x1400abbf0
cmp rdi, r8
jb 0x1400abd85
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.1400913d0
movabs rdi, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x1400abcf7
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x68], rax
movabs rdi, 0x8000000000000000
mov qword [rsp + 0x60], rdi
mov rsi, qword [rsp + 0x38]
test rbx, rbx
je 0x1400abd10
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.140007440
cmp qword [rsp + 0x60], rdi
jne 0x1400abd50
mov qword [rsi], rdi
lea rcx, [rsp + 0x68]
call fcn.14008c8d0
cmp qword [rsp + 0x40], 0
je 0x1400abd3b
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.140007440
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 0x1400abd2c
jmp 0x1400abd3b
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14000b310
jmp 0x1400abd9a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.14000af70
ud2