joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004abd7
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 + 0x170]
mov rcx, qword [rdx + 0x160]
mov rdx, qword [rdx + 0x168]
lea r9, [0x1400fadb8]
call fcn.14004a52c
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 + 0x1e8]
xor r8d, r8d
xor r9d, r9d
call sub.secur32.dll_DecryptMessage
cmp eax, 0x80090318
je 0x14004ad45
test eax, eax
je 0x14004acbe
cmp eax, 0x90317
je 0x14004ad3f
cmp eax, 0x90321
jne 0x14004ad63
mov dword [rdi + 0x1c8], 0x10000
xor ebx, ebx
mov byte [rdi + 0x1cc], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x170]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.14004ab78
and qword [rdi + 0x208], 0
mov byte [rsi + 1], bl
jmp 0x14004ad71
mov r8, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x160]
mov rdx, qword [rdi + 0x168]
sub r8, rcx
mov r9d, dword [rsp + 0x30]
add r9, r8
lea rbx, [rdi + 0x138]
and qword [rdi + 0x148], 0
call fcn.14004a947
mov r8, rdx
mov rcx, rbx
mov rdx, rax
call fcn.14000f02c
and qword [rdi + 0x150], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x170]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.14004ab78
xor eax, eax
cmp qword [rdi + 0x170], rbx
sete al
mov qword [rdi + 0x208], rax
mov byte [rsi + 1], 0
jmp 0x14004ad71
mov byte [rsi + 1], 1
jmp 0x14004ad5f
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x208], rax
mov byte [rsi + 1], 0
xor ebx, ebx
jmp 0x14004ad71
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 0x14004ad7b
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp dword [rcx], 2
jne 0x14004ad8d
add rcx, 8
jmp fcn.1400ae934
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, r8
mov rsi, rcx
mov qword [rcx + 0xe0], rdx
mov rcx, r8
call fcn.14004af01
mov r14, rax
mov r15, rdx
lea r12, [rsp + 0x30]
mov rcx, rsi
call fcn.14004afd5
test rdx, rdx
jne 0x14004ae27
mov rcx, r12
mov rdx, rsi
call fcn.1400498ce
mov eax, dword [rsp + 0x30]
cmp eax, 2
je 0x14004ae8e
test eax, eax
je 0x14004ae27
cmp qword [rsi + 0x108], 0
je 0x14004ae0e
mov rcx, rsi
call fcn.14004a5cc
mov rbx, rdx
test rax, rax
jne 0x14004ae9a
test rbx, rbx
je 0x14004ae27
and qword [rsi + 0x108], 0
mov rcx, r12
mov rdx, rsi
call fcn.14004a7ba
cmp byte [rsp + 0x30], 0
jne 0x14004ae8e
cmp byte [rsp + 0x31], 0
je 0x14004adba
mov rcx, rsi
call fcn.14004afd5
mov rbx, rdx
test rax, rax
je 0x14004ae9a
mov r12, rax
cmp r15, rbx
cmovb rbx, r15
lea r9, [0x1400fa680]
mov rcx, rbx
mov rdx, r14
mov r8, r15
call fcn.14004a54e
lea rcx, [0x1400fa698]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov r8, r12
mov r9, rbx
call fcn.140033e08
mov rax, qword [rsi + 0x28]
add rax, rbx
cmp rax, qword [rsi + 0x20]
ja 0x14004aee8
mov qword [rsi + 0x28], rax
mov rcx, rdi
mov rdx, rbx
call fcn.14004af6e
jmp 0x14004aecb
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x30], rbx
jmp 0x14004aea4
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x14004aecb
mov rcx, rbx
call fcn.140014285
and qword [rsi + 0xe0], 0
cmp al, 0xd
jne 0x14004aed5
lea rcx, [rsp + 0x30]
call fcn.140024c85
mov eax, 1
xor ebx, ebx
jmp 0x14004aed7
and qword [rsi + 0xe0], 0
xor ebx, ebx
xor eax, eax
mov rdx, rbx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x1400fa79e]
lea r8, [0x1400fa7e0]
mov edx, 0x3b
call fcn.1400087a0
int3
Function at 0x14007a593
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 rbx, rdx
mov rsi, rcx
lea rdi, [rsp + 0x58]
mov r8d, 0xb
mov rcx, rdi
mov rdx, rax
call fcn.14007a6c3
lea r13, [rsp + 0x38]
mov dword [r13], 0x800
lea r15, [rsp + 0x3c]
and dword [r15], 0
lea r12, [rsp + 0x40]
mov edx, 0x800
mov rcx, r12
call fcn.140068b1c
mov rdi, qword [rdi + 8]
mov r14, qword [rsp + 0x48]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call sub.ADVAPI32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x14007a622
mov edx, dword [rsp + 0x38]
mov rcx, r12
call fcn.140033625
jmp 0x14007a5ed
test eax, eax
jne 0x14007a644
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x3c]
cmp eax, 0xb
jbe 0x14007a66c
movabs rax, 0xde00000002
jmp 0x14007a64c
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, r14
call fcn.140033810
jmp 0x14007a680
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.14008229d
nop
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14007e870
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140007f50
cmp rax, rcx
je 0x14007e895
cmp rdx, 4
jae 0x14007e898
xor eax, eax
xor r8d, r8d
jmp 0x14007e930
xor eax, eax
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400bc720]
movdqa xmm3, xmmword [0x1400bc730]
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 0x14007e8c0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14007e947
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14007e930
ret
Function at 0x14007f800
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov r10, qword [rcx]
test r10, r10
je 0x14007f87e
mov r11, qword [rcx + 8]
mov r8, qword [rcx + 0x10]
cmp r8, r11
jae 0x14007f87e
movzx eax, byte [r10 + r8]
cmp eax, 0x49
mov rbx, rcx
je 0x14007f896
cmp eax, 0x42
jne 0x14007f87e
lea rsi, [r8 + 1]
mov qword [rcx + 0x10], rsi
mov r9b, 1
cmp rsi, r11
jae 0x14007f9bd
cmp byte [r10 + rsi], 0x5f
jne 0x14007f94c
lea rax, [r8 + 2]
mov qword [rcx + 0x10], rax
xor eax, eax
cmp rax, r8
jae 0x14007f9bd
mov edx, dword [rcx + 0x18]
inc edx
cmp edx, 0x1f4
jbe 0x14007fa17
mov dil, 1
xor r9d, r9d
jmp 0x14007f9bf
xor edx, edx
call fcn.14007b370
mov esi, eax
add sil, sil
mov eax, esi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc r8
mov qword [rcx + 0x10], r8
xor edx, edx
call fcn.14007b370
test al, al
jne 0x14007f9fd
mov rdx, rbx
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14007f8d5
lea rdx, [0x1400fccbb]
mov r8d, 1
call fcn.1400084c0
mov rdx, rbx
test al, al
jne 0x14007f9fd
mov rax, qword [rdx]
mov sil, 1
test rax, rax
je 0x14007f88a
xor r14d, r14d
lea rdi, [0x1400fd011]
nop word [rax + rax]
mov rcx, qword [rdx + 0x10]
cmp rcx, qword [rdx + 8]
jae 0x14007f904
cmp byte [rax + rcx], 0x45
je 0x14007fa54
sub r14, 1
jb 0x14007f92c
mov rcx, qword [rdx + 0x20]
test rcx, rcx
je 0x14007f92c
mov r8d, 2
mov rdx, rdi
call fcn.1400084c0
mov rdx, rbx
test al, al
jne 0x14007f9fd
mov rcx, rdx
call fcn.14007cb30
test al, al
jne 0x14007f9fd
mov rdx, rbx
mov rax, qword [rbx]
test rax, rax
jne 0x14007f8f0
jmp 0x14007f88a
xor eax, eax
mov r14d, 0x3e
nop word cs:[rax + rax]
movzx edx, byte [r10 + rsi]
cmp dl, 0x5f
je 0x14007f9ad
lea edi, [rdx - 0x30]
cmp dil, 0xa
jb 0x14007f98f
lea edi, [rdx - 0x61]
cmp dil, 0x1a
jae 0x14007f981
add dl, 0xa9
jmp 0x14007f98d
lea edi, [rdx - 0x41]
cmp dil, 0x1a
jae 0x14007f9bd
add dl, 0xe3
mov edi, edx
inc rsi
mov qword [rcx + 0x10], rsi
mul r14
jo 0x14007f9bd
movzx edx, dil
xor edi, edi
add rax, rdx
jb 0x14007f9bf
cmp rsi, r11
jb 0x14007f960
jmp 0x14007f9bf
inc rsi
mov qword [rcx + 0x10], rsi
inc rax
jne 0x14007f859
xor edi, edi
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x14007fa05
mov ecx, r9d
xor cl, 1
movzx ecx, cl
lea r8, [rcx + rcx*8]
add r8, 0x10
lea rcx, str.invalid_syntaxrecursion_limit_reached_for_____::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x1400fcff0]
test r9b, r9b
cmovne rdx, rcx
mov rcx, rax
call fcn.1400084c0
mov rcx, rbx
test al, al
je 0x14007fa05
mov sil, 2
jmp 0x14007f88a
mov qword [rcx], 0
mov byte [rcx + 8], dil
xor esi, esi
jmp 0x14007f88a
cmp qword [rcx + 0x20], 0
je 0x14007fa10
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rcx + 0x10], rax
mov dword [rcx + 0x18], edx
mov rsi, rcx
call fcn.14007f800
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14007f88c
inc rcx
mov qword [rdx + 0x10], rcx
jmp 0x14007f88a
Function at 0x1400826be
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
movabs rax, 0x8000000000000000
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x60], 4
mov dword [rsp + 0xa8], 0x400010
cmp qword [rcx + 0x18], rax
je 0x14008272a
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0x88], edx
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0x90], rdx
cmp qword [rcx + 0x30], rax
je 0x140082765
mov rax, qword [rcx + 0x40]
test rax, rax
je 0x14008275c
mov r8, qword [rcx + 0x38]
xor edx, edx
lea r9, [0x140105688]
xor r10d, r10d
movzx r11d, byte [r8 + r10]
or edx, dword [r9 + r11*4]
inc r10
cmp rax, r10
jne 0x140082749
jmp 0x14008275e
xor edx, edx
mov dword [rsp + 0x98], edx
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x1400827b6
mov rax, rsi
shr rax, 0x3c
jne 0x14008287b
mov r14, qword [rcx + 8]
lea rbx, [rsi*8]
mov ecx, 8
mov rdx, rbx
call fcn.1400aa80d
test rax, rax
je 0x140082880
mov rdi, rax
xor eax, eax
mov rcx, qword [r14 + rax*8]
mov qword [rdi + rax*8], rcx
inc rax
cmp rsi, rax
jne 0x1400827a2
mov eax, esi
jmp 0x1400827bf
xor esi, esi
mov edi, 8
xor eax, eax
lea rcx, [rsp + 0x60]
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, [0x1400fd393]
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call sub.secur32.dll_AcquireCredentialsHandleA
test eax, eax
je 0x140082815
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov r14d, 1
jmp 0x14008284d
mov r14, qword [rsp + 0x50]
mov r15, qword [rsp + 0x58]
mov ecx, 8
mov edx, 0x20
call fcn.1400aa80d
test rax, rax
je 0x14008288d
mov rbx, rax
mov eax, 1
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r15
xor r14d, r14d
test rsi, rsi
je 0x140082866
shl rsi, 3
mov edx, 8
mov rcx, rdi
mov r8, rsi
call fcn.140010cf9
mov rax, r14
mov rdx, rbx
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140004ee0
mov ecx, 8
mov rdx, rbx
call fcn.140004f20
mov ecx, 8
mov edx, 0x20
call fcn.140004f20
int3

Function at 0x140082e49
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 0x140082e72
mov rdx, qword [rsp + 0x20]
jmp 0x140082e7a
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x140083760
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 0x14008378c
xor eax, eax
jmp 0x140083791
call fcn.140034376
nop
add rsp, 0x38
ret

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

Disassembly:
push rsi
sub rsp, 0x40
mov ecx, dword [0x1400ba090]
test ecx, ecx
je 0x1400841b2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400840f0
cmp qword [rax + 8], 0
je 0x1400840f0
add rax, 0x10
jmp 0x1400841ac
mov ecx, dword [0x1400ba090]
test ecx, ecx
je 0x1400841c5
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400841aa
test rax, rax
jne 0x140084170
mov qword [rsp + 0x30], 0
lea rax, str._G_b_
mov qword [rsp + 0x28], rax
movzx eax, byte [0x140115108]
mov edx, 0x18
xor ecx, ecx
call fcn.1400a5400
test rax, rax
je 0x1400841f1
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400ba090]
test ecx, ecx
je 0x1400841d8
dec ecx
mov rdx, rax
mov rsi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rsi
mov rdx, rax
add rax, 0x10
mov rcx, qword [rdx + 0x10]
cmp qword [rdx + 8], 0
mov qword [rdx + 8], 1
mov qword [rdx + 0x10], 0
je 0x1400841ac
test rcx, rcx
je 0x1400841ac
lock dec qword [rcx]
jne 0x1400841ac
mov rsi, rax
call fcn.140084220
mov rax, rsi
jmp 0x1400841ac
xor eax, eax
add rsp, 0x40
pop rsi
ret
lea rcx, str._G_b_
call fcn.1400842d0
mov ecx, eax
jmp 0x1400840d5
lea rcx, str._G_b_
call fcn.1400842d0
mov ecx, eax
jmp 0x140084100
lea rcx, str._G_b_
mov rsi, rax
call fcn.1400842d0
mov ecx, eax
mov rax, rsi
jmp 0x140084162
mov ecx, 8
mov edx, 0x18
call fcn.140004f20
ud2
Function at 0x1400842d0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140084360
mov rax, qword [0x140118038]
mov dword [rsp + 0x2c], 0
lea rdi, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rdi
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x1400843a1
cmp dword [rsp + 0x2c], 0
je 0x140084385
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400843c7
mov ebx, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401150e8]
nop dword [rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401150e8], rsi
jne 0x140084340
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
mov eax, ebx
jmp 0x140084399
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140084411
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14008438a
mov eax, dword [rsp + 0x28]
jmp 0x140084399
mov eax, dword [rsi + 0x18]
jmp 0x140084397
mov ecx, dword [rsp + 0x28]
mov esi, eax
call sub.KERNEL32.dll_TlsFree
mov eax, esi
dec eax
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rdx, [0x1400ff6e0]
lea r9, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.140084470
mov rcx, rdi
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_9b00956e56009bab2aa15d7bff10916599e3d6d6librarycore_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_syspalwindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.140007a70
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str._rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6librarycore_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.1400844b0
int3
Function at 0x140085880
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400ba070]
test ecx, ecx
je 0x14008593d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400858b0
cmp qword [rax + 8], 0
je 0x1400858b0
add rax, 0x10
jmp 0x140085937
mov ecx, dword [0x1400ba070]
test ecx, ecx
je 0x140085950
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140085935
test rax, rax
jne 0x140085918
movzx eax, byte [0x140115108]
mov edx, 0x20
xor ecx, ecx
call fcn.1400a5400
test rax, rax
je 0x140085979
lea rcx, [0x1400ba058]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1400ba070]
test ecx, ecx
je 0x140085963
dec ecx
mov rdx, rax
mov rsi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rsi
mov qword [rax + 8], 1
mov rcx, rax
add rax, 0x10
mov qword [rcx + 0x10], 0
mov byte [rcx + 0x18], 0
jmp 0x140085937
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400ba058]
call fcn.1400842d0
mov ecx, eax
jmp 0x140085895
lea rcx, [0x1400ba058]
call fcn.1400842d0
mov ecx, eax
jmp 0x1400858c0
lea rcx, [0x1400ba058]
mov rsi, rax
call fcn.1400842d0
mov ecx, eax
mov rax, rsi
jmp 0x14008590a
mov ecx, 8
mov edx, 0x20
call fcn.140004f20
int3

Function at 0x1400895b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx r9d, byte [rdx + 0x38]
cmp r9b, 1
ja 0x14008962c
movzx r8d, byte [rdx + 0x3a]
test r8b, r8b
jne 0x140089605
movzx esi, byte [rdx + 0x10]
lea eax, [rsi - 5]
cmp al, 1
ja 0x140089605
mov r10, qword [rdx]
mov rax, qword [rdx + 8]
xor r11d, r11d
test r9b, r9b
jne 0x1400895fc
cmp sil, 6
je 0x1400895fc
mov r11d, 2
cmp rax, 1
jbe 0x1400897ed
cmp r11, rax
jne 0x140089739
xor eax, eax
xor r8d, r8d
xor eax, eax
add rax, r10
lea rsi, [r10 + r11]
inc rsi
cmp rsi, rax
sete al
movzx r10d, byte [r10 + r11]
test al, 1
jne 0x1400897c2
cmp r10b, 0x2e
Function at 0x1400a2950
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.140085e60
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
jne 0x1400a299f
lea rcx, [rsp + 0xb0]
call fcn.140084e80
mov qword [rsi], rdi
jmp 0x1400a2bb8
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x38], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x58], rax
xor r14d, r14d
mov ebx, 0xffffffff
xor esi, esi
xor r15d, r15d
cmp r8, 0x201
jae 0x1400a2a30
jmp 0x1400a2a0f
jae 0x1400a2ae4
cmp r8, 0x201
jae 0x1400a2a30
mov r12d, 0x200
lea r13, [rsp + 0xa8]
mov rbp, r8
jmp 0x1400a2a77
sub r8, r15
sub rsi, r15
cmp rsi, r8
jae 0x1400a2a57
lea rcx, [rsp + 0x28]
mov rdx, r15
call fcn.1400862f0
mov r14, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
cmp r14, rbx
mov r15d, 0xffffffff
cmovb r15, r14
mov qword [rsp + 0x38], r15
mov rsi, r14
mov r12, r15
mov r13, qword [rsp + 0x58]
mov rbp, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x40]
mov rdx, r13
mov r8d, ebp
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov edi, eax
test eax, eax
jne 0x1400a2aa1
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400a2b57
mov r8d, edi
cmp rbp, r8
jne 0x1400a2a00
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400a2bcd
add rbp, rbp
mov eax, 0xffffffff
cmp rbp, rax
mov ebx, 0xffffffff
cmovae rbp, rax
mov r8, rbp
cmp r8, 0x201
jb 0x1400a2a0f
jmp 0x1400a2a30
cmp r12, r8
jb 0x1400a2be7
lea rcx, [rsp + 0x88]
mov rdx, r13
call fcn.140088ab0
movabs rdi, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
cmp qword [rsp + 0x28], 0
mov rsi, qword [rsp + 0x48]
je 0x1400a2b3d
mov rcx, qword [rsp + 0x30]
mov edx, 2
call fcn.140004ab0
cmp qword [rsp + 0x60], rdi
je 0x1400a2b94
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x1400a2ba1
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x68], rax
movabs rdi, 0x8000000000000000
mov qword [rsp + 0x60], rdi
cmp qword [rsp + 0x28], 0
je 0x1400a2b8f
mov rcx, qword [rsp + 0x30]
mov edx, 2
call fcn.140004ab0
mov rsi, qword [rsp + 0x48]
mov qword [rsi], rdi
lea rcx, [rsp + 0x68]
call fcn.140084e80
cmp qword [rsp + 0x50], 0
je 0x1400a2bb8
mov edx, 2
mov rcx, qword [rsp + 0x40]
call fcn.140004ab0
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.internal_error:_entered_unreachable_code_rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6library_std_src_threadmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1400087a0
jmp 0x1400a2bfc
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.140008430
ud2
Function at 0x1400a3fe0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x40
mov ecx, dword [0x1400ba0d0]
test ecx, ecx
je 0x1400a40d2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400a4010
cmp qword [rax + 8], 0
je 0x1400a4010
add rax, 0x10
jmp 0x1400a40cc
mov ecx, dword [0x1400ba0d0]
test ecx, ecx
je 0x1400a40e5
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400a40ca
test rax, rax
jne 0x1400a4090
mov qword [rsp + 0x30], 0
lea rax, [0x1400ba0b8]
mov qword [rsp + 0x28], rax
movzx eax, byte [0x140115108]
mov edx, 0x18
xor ecx, ecx
call fcn.1400a5400
test rax, rax
je 0x1400a4111
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400ba0d0]
test ecx, ecx
je 0x1400a40f8
dec ecx
mov rdx, rax
mov rsi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rsi
mov rdx, rax
add rax, 0x10
mov rcx, qword [rdx + 0x10]
cmp qword [rdx + 8], 0
mov qword [rdx + 8], 1
mov qword [rdx + 0x10], 0
je 0x1400a40cc
test rcx, rcx
je 0x1400a40cc
lock dec qword [rcx]
jne 0x1400a40cc
mov rsi, rax
call fcn.1400a4140
mov rax, rsi
jmp 0x1400a40cc
xor eax, eax
add rsp, 0x40
pop rsi
ret
lea rcx, [0x1400ba0b8]
call fcn.1400842d0
mov ecx, eax
jmp 0x1400a3ff5
lea rcx, [0x1400ba0b8]
call fcn.1400842d0
mov ecx, eax
jmp 0x1400a4020
lea rcx, [0x1400ba0b8]
mov rsi, rax
call fcn.1400842d0
mov ecx, eax
mov rax, rsi
jmp 0x1400a4082
mov ecx, 8
mov edx, 0x18
call fcn.140004f20
ud2

Function at 0x1400a43f0
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x200
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rsp + 0x26], ax
mov rax, qword [0x1401150d8]
cmp rax, 3
jne 0x1400a44f9
lea rax, [rsp + 0x26]
mov qword [rsp + 0x30], rax
cmp rdi, 0x17f
ja 0x1400a4509
lea rbx, [rsp + 0x80]
mov rcx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov byte [rsp + rdi + 0x80], 0
inc rdi
lea rcx, [rsp + 0x38]
mov rdx, rbx
mov r8, rdi
call fcn.140009710
cmp qword [rsp + 0x38], 0
je 0x1400a4482
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400a44ee
mov rcx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1400a44d3
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1400a44e7
mov rax, qword [rsp + 0x28]
movzx ecx, word [rsp + 0x26]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
add rsp, 0x200
pop rbx
pop rdi
pop rsi
ret
mov rbx, rdx
call fcn.1400a49e0
mov rdx, rbx
jmp 0x1400a4421
lea r9, [rsp + 0x30]
mov rcx, rsi
mov r8, rdi
call fcn.1400a4a40
jmp 0x1400a44ee