joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014b290
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rdi, rcx
call fcn.14014b41c
cmp rax, 2
jb 0x14014b2c9
mov rcx, rax
cmp qword [rax + 8], 0
je 0x14014b2c9
add rcx, 0x10
jmp 0x14014b3ed
call fcn.14014b41c
cmp rax, 1
je 0x14014b3eb
mov rsi, rax
test rax, rax
jne 0x14014b319
mov ecx, 0x18
mov edx, 8
call fcn.1400cc513
mov rsi, rax
lea rax, [0x140273118]
mov qword [rsi], rax
and qword [rsi + 8], 0
mov ecx, dword [0x140273130]
test ecx, ecx
je 0x14014b409
dec ecx
mov rdx, rsi
call fcn.1401c0bb4
mov qword [rsp + 0x20], rsi
test rdi, rdi
je 0x14014b34d
mov rax, qword [rdi]
and qword [rdi], 0
test rax, rax
je 0x14014b34d
mov rax, qword [rdi + 8]
mov rdx, qword [rsp + 0x20]
lea rcx, [rdx + 0x10]
mov qword [rdx + 8], 1
mov qword [rdx + 0x10], rax
jmp 0x14014b3ed
lea rdi, [rsp + 0x28]
mov rcx, rdi
call fcn.14009280b
mov rcx, rdi
call fcn.14014b445
mov rbx, rax
mov r14, rdx
movabs r12, 0x736f6d6570736575
xor r12, rax
movabs r13, 0x646f72616e646f6d
xor r13, rdx
movabs rbp, 0x6c7967656e657261
xor rbp, rax
movabs rsi, 0x7465646279746573
xor rsi, rdx
mov r15d, 1
xor eax, eax
xorps xmm6, xmm6
test rax, rax
jne 0x14014b333
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], r14
movups xmmword [rdi + 0x30], xmm6
and qword [rdi + 0x40], 0
mov rcx, rdi
mov rdx, r15
call fcn.140125ef0
mov rcx, rdi
call fcn.14008a2d7
inc r15
jmp 0x14014b3a7
xor ecx, ecx
mov rax, rcx
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140273118]
call fcn.14016c7a0
mov ecx, eax
jmp 0x14014b311

Function at 0x14014b41c
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140273130]
test ecx, ecx
je 0x14014b435
dec ecx
add rsp, 0x28
jmp fcn.1401c0bbc
lea rcx, [0x140273118]
call fcn.14016c7a0
mov ecx, eax
jmp 0x14014b42c
Function at 0x1401560e9
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.1400ba3b0
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.14011fba2
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 0x140156178
mov edx, dword [rsp + 0x38]
mov rcx, r12
call fcn.1401082fd
jmp 0x140156143
test eax, eax
jne 0x14015619a
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x3c]
cmp eax, 0xb
jbe 0x1401561c2
movabs rax, 0xde00000002
jmp 0x1401561a2
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.1400899b6
jmp 0x1401561d6
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.1401b5b40
nop
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140161f30
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 0x140161fae
mov r11, qword [rcx + 8]
mov r8, qword [rcx + 0x10]
cmp r8, r11
jae 0x140161fae
movzx eax, byte [r10 + r8]
cmp eax, 0x49
mov rbx, rcx
je 0x140161fc6
cmp eax, 0x42
jne 0x140161fae
lea rsi, [r8 + 1]
mov qword [rcx + 0x10], rsi
mov r9b, 1
cmp rsi, r11
jae 0x1401620ed
cmp byte [r10 + rsi], 0x5f
jne 0x14016207c
lea rax, [r8 + 2]
mov qword [rcx + 0x10], rax
xor eax, eax
cmp rax, r8
jae 0x1401620ed
mov edx, dword [rcx + 0x18]
inc edx
cmp edx, 0x1f4
jbe 0x140162147
mov dil, 1
xor r9d, r9d
jmp 0x1401620ef
xor edx, edx
call fcn.14015db60
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.14015db60
test al, al
jne 0x14016212d
mov rdx, rbx
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140162005
lea rdx, [0x1403561ce]
mov r8d, 1
call fcn.140080be0
mov rdx, rbx
test al, al
jne 0x14016212d
mov rax, qword [rdx]
mov sil, 1
test rax, rax
je 0x140161fba
xor r14d, r14d
lea rdi, [0x1403247b8]
nop word [rax + rax]
mov rcx, qword [rdx + 0x10]
cmp rcx, qword [rdx + 8]
jae 0x140162034
cmp byte [rax + rcx], 0x45
je 0x140162184
sub r14, 1
jb 0x14016205c
mov rcx, qword [rdx + 0x20]
test rcx, rcx
je 0x14016205c
mov r8d, 2
mov rdx, rdi
call fcn.140080be0
mov rdx, rbx
test al, al
jne 0x14016212d
mov rcx, rdx
call fcn.14015f320
test al, al
jne 0x14016212d
mov rdx, rbx
mov rax, qword [rbx]
test rax, rax
jne 0x140162020
jmp 0x140161fba
xor eax, eax
mov r14d, 0x3e
nop word cs:[rax + rax]
movzx edx, byte [r10 + rsi]
cmp dl, 0x5f
je 0x1401620dd
lea edi, [rdx - 0x30]
cmp dil, 0xa
jb 0x1401620bf
lea edi, [rdx - 0x61]
cmp dil, 0x1a
jae 0x1401620b1
add dl, 0xa9
jmp 0x1401620bd
lea edi, [rdx - 0x41]
cmp dil, 0x1a
jae 0x1401620ed
add dl, 0xe3
mov edi, edx
inc rsi
mov qword [rcx + 0x10], rsi
mul r14
jo 0x1401620ed
movzx edx, dil
xor edi, edi
add rax, rdx
jb 0x1401620ef
cmp rsi, r11
jb 0x140162090
jmp 0x1401620ef
inc rsi
mov qword [rcx + 0x10], rsi
inc rax
jne 0x140161f89
xor edi, edi
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x140162135
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, [0x140324798]
test r9b, r9b
cmovne rdx, rcx
mov rcx, rax
call fcn.140080be0
mov rcx, rbx
test al, al
je 0x140162135
mov sil, 2
jmp 0x140161fba
mov qword [rcx], 0
mov byte [rcx + 8], dil
xor esi, esi
jmp 0x140161fba
cmp qword [rcx + 0x20], 0
je 0x140162140
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.140161f30
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140161fbc
inc rcx
mov qword [rdx + 0x10], rcx
jmp 0x140161fba
Function at 0x14016bc2a
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 0x14016bc56
xor eax, eax
jmp 0x14016bc5b
call fcn.1400bdc45
nop
add rsp, 0x38
ret

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

Disassembly:
push rsi
sub rsp, 0x40
mov ecx, dword [0x1402731b0]
test ecx, ecx
je 0x14016c682
dec ecx
call fcn.1401c0bbc
cmp rax, 2
jb 0x14016c5c0
cmp qword [rax + 8], 0
je 0x14016c5c0
add rax, 0x10
jmp 0x14016c67c
mov ecx, dword [0x1402731b0]
test ecx, ecx
je 0x14016c695
dec ecx
call fcn.1401c0bbc
cmp rax, 1
je 0x14016c67a
test rax, rax
jne 0x14016c640
mov qword [rsp + 0x30], 0
lea rax, [0x140273198]
mov qword [rsp + 0x28], rax
movzx eax, byte [0x14039f278]
mov edx, 0x18
xor ecx, ecx
call fcn.1401a0460
test rax, rax
je 0x14016c6c1
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rax], xmm0
mov ecx, dword [0x1402731b0]
test ecx, ecx
je 0x14016c6a8
dec ecx
mov rdx, rax
mov rsi, rax
call fcn.1401c0bb4
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 0x14016c67c
test rcx, rcx
je 0x14016c67c
lock dec qword [rcx]
jne 0x14016c67c
mov rsi, rax
call fcn.14016c6f0
mov rax, rsi
jmp 0x14016c67c
xor eax, eax
add rsp, 0x40
pop rsi
ret
lea rcx, [0x140273198]
call fcn.14016c7a0
mov ecx, eax
jmp 0x14016c5a5
lea rcx, [0x140273198]
call fcn.14016c7a0
mov ecx, eax
jmp 0x14016c5d0
lea rcx, [0x140273198]
mov rsi, rax
call fcn.14016c7a0
mov ecx, eax
mov rax, rsi
jmp 0x14016c632
mov ecx, 8
mov edx, 0x18
call fcn.1400529c0
ud2
Function at 0x14016c7a0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x14016c830
mov rax, qword [0x1403a3038]
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 0x14016c871
cmp dword [rsp + 0x2c], 0
je 0x14016c855
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14016c897
mov ebx, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14039f238]
nop dword [rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14039f238], rsi
jne 0x14016c810
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
mov eax, ebx
jmp 0x14016c869
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x14016c8e1
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14016c85a
mov eax, dword [rsp + 0x28]
jmp 0x14016c869
mov eax, dword [rsi + 0x18]
jmp 0x14016c867
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, [0x14032c340]
lea r9, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.14016c940
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.Malformed_XML.
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.14007fc50
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.Malformed_XML.
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.14016c980
int3

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1402731d0]
test ecx, ecx
je 0x14016d096
dec ecx
call fcn.1401c0bbc
cmp rax, 2
jb 0x14016d026
cmp byte [rax + 8], 0
jne 0x14016d088
mov ecx, dword [0x1402731d0]
test ecx, ecx
je 0x14016d0a9
dec ecx
call fcn.1401c0bbc
cmp rax, 1
je 0x14016d08e
test rax, rax
jne 0x14016d082
movzx eax, byte [0x14039f278]
mov edx, 0x10
xor ecx, ecx
call fcn.1401a0460
test rax, rax
je 0x14016d0d2
lea rcx, [0x1402731b8]
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x1402731d0]
test ecx, ecx
je 0x14016d0bc
dec ecx
mov rdx, rax
mov rsi, rax
call fcn.1401c0bb4
mov rax, rsi
mov word [rax + 8], 1
add rax, 9
jmp 0x14016d090
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1402731b8]
call fcn.14016c7a0
mov ecx, eax
jmp 0x14016d015
lea rcx, [0x1402731b8]
call fcn.14016c7a0
mov ecx, eax
jmp 0x14016d032
lea rcx, [0x1402731b8]
mov rsi, rax
call fcn.14016c7a0
mov ecx, eax
mov rax, rsi
jmp 0x14016d074
mov ecx, 8
mov edx, 0x10
call fcn.1400529c0
int3
Function at 0x14016d750
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
movups xmm0, xmmword [0x14032c080]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x14016d7ba
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14016d7e6
test eax, eax
js 0x14016d7c7
mov rdx, qword [rsp + 0x68]
xor eax, eax
jmp 0x14016d7dd
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x14032c0e8]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.14016bfd0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x78]
call fcn.14016c050
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140273190]
test ecx, ecx
je 0x14016ddfd
dec ecx
call fcn.1401c0bbc
cmp rax, 2
jb 0x14016dd70
cmp qword [rax + 8], 0
je 0x14016dd70
add rax, 0x10
jmp 0x14016ddf7
mov ecx, dword [0x140273190]
test ecx, ecx
je 0x14016de10
dec ecx
call fcn.1401c0bbc
cmp rax, 1
je 0x14016ddf5
test rax, rax
jne 0x14016ddd8
movzx eax, byte [0x14039f278]
mov edx, 0x20
xor ecx, ecx
call fcn.1401a0460
test rax, rax
je 0x14016de39
lea rcx, [0x140273178]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x140273190]
test ecx, ecx
je 0x14016de23
dec ecx
mov rdx, rax
mov rsi, rax
call fcn.1401c0bb4
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 0x14016ddf7
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140273178]
call fcn.14016c7a0
mov ecx, eax
jmp 0x14016dd55
lea rcx, [0x140273178]
call fcn.14016c7a0
mov ecx, eax
jmp 0x14016dd80
lea rcx, [0x140273178]
mov rsi, rax
call fcn.14016c7a0
mov ecx, eax
mov rax, rsi
jmp 0x14016ddca
mov ecx, 8
mov edx, 0x20
call fcn.1400529c0
int3
Function at 0x140170110
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x38], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x48], rax
xor esi, esi
mov edi, 0xffffffff
xor r13d, r13d
xor ebx, ebx
cmp r8, 0x201
jae 0x1401701a0
jmp 0x14017017f
jae 0x14017024e
cmp r8, 0x201
jae 0x1401701a0
mov r14d, 0x200
lea r15, [rsp + 0x98]
mov r12, r8
jmp 0x1401701e6
sub r8, rbx
sub r13, rbx
cmp r13, r8
jae 0x1401701c7
lea rcx, [rsp + 0x28]
mov rdx, rbx
call fcn.14016e830
mov rsi, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
cmp rsi, rdi
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rsp + 0x38], rbx
mov r13, rsi
mov r14, rbx
mov r15, qword [rsp + 0x48]
mov r12, rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, r12d
mov rdx, r15
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebp, eax
test eax, eax
jne 0x14017020b
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1401702b3
mov r8d, ebp
cmp r12, r8
jne 0x140170170
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1401702e0
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
mov edi, 0xffffffff
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14017017f
jmp 0x1401701a0
cmp r14, r8
jb 0x1401702fa
lea rcx, [rsp + 0x50]
mov rdx, r15
call fcn.140170950
movups xmm0, xmmword [rsp + 0x50]
movups xmm1, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x80], xmm1
movaps xmmword [rsp + 0x70], xmm0
mov rax, qword [rsp + 0x40]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
cmp qword [rsp + 0x28], 0
je 0x14017029e
mov rcx, qword [rsp + 0x30]
mov edx, 2
call fcn.1400322f0
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
cmp qword [rsp + 0x28], 0
jne 0x14017028f
jmp 0x14017029e
lea rcx, str.internal_error:_entered_unreachable_code__
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140080ec0
jmp 0x14017030f
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140080b50
ud2
Function at 0x140173f20
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.14018c7e0
mov rdi, rdx
test rax, rax
je 0x140173fb4
mov qword [rsp + 0x80], 1
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call fcn.14016d350
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.14018ca40
cmp dword [rsp + 0x38], 2
jne 0x140173fe3
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x14017402f
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 0x14017405b
lea rcx, [rsp + 0x88]
call fcn.14016d350
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.1401c0f54
mov r12, qword [rsp + 0xb8]
test rdi, rdi
je 0x1401740b9
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 0x140174135
mov rbx, qword [rsp + 0x80]
jmp 0x1401740bb
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 0x140174124
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 fcn.1401c0f54
test r15, r15
je 0x140174124
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x140174161
mov qword [rsi], 0
mov rcx, rbx
call fcn.1401c0f54
jmp 0x140174161
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.14016d350
mov qword [rsi], 0
mov rcx, rdi
call fcn.1401c0f54
jmp 0x140173fa3
Function at 0x14018dae0
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.14016e320
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
jne 0x14018db2f
lea rcx, [rsp + 0xb0]
call fcn.14016d350
mov qword [rsi], rdi
jmp 0x14018dd48
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 0x14018dbc0
jmp 0x14018db9f
jae 0x14018dc74
cmp r8, 0x201
jae 0x14018dbc0
mov r12d, 0x200
lea r13, [rsp + 0xa8]
mov rbp, r8
jmp 0x14018dc07
sub r8, r15
sub rsi, r15
cmp rsi, r8
jae 0x14018dbe7
lea rcx, [rsp + 0x28]
mov rdx, r15
call fcn.14016e830
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 0x14018dc31
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14018dce7
mov r8d, edi
cmp rbp, r8
jne 0x14018db90
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14018dd5d
add rbp, rbp
mov eax, 0xffffffff
cmp rbp, rax
mov ebx, 0xffffffff
cmovae rbp, rax
mov r8, rbp
cmp r8, 0x201
jb 0x14018db9f
jmp 0x14018dbc0
cmp r12, r8
jb 0x14018dd77
lea rcx, [rsp + 0x88]
mov rdx, r13
call fcn.140170950
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 0x14018dccd
mov rcx, qword [rsp + 0x30]
mov edx, 2
call fcn.1400322f0
cmp qword [rsp + 0x60], rdi
je 0x14018dd24
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x14018dd31
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 0x14018dd1f
mov rcx, qword [rsp + 0x30]
mov edx, 2
call fcn.1400322f0
mov rsi, qword [rsp + 0x48]
mov qword [rsi], rdi
lea rcx, [rsp + 0x68]
call fcn.14016d350
cmp qword [rsp + 0x50], 0
je 0x14018dd48
mov edx, 2
mov rcx, qword [rsp + 0x40]
call fcn.1400322f0
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__
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140080ec0
jmp 0x14018dd8c
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.140080b50
ud2
Function at 0x14018f030
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rbx, r9
mov r14, r8
mov r8, rdx
mov rdx, rcx
movabs r13, 0x8000000000000000
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r9
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.14016e320
mov r15, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
cmp r15, r13
jne 0x14018f08d
mov rbx, rdi
jmp 0x14018f0e6
lea rcx, [rsp + 0x30]
mov rdx, r14
mov r8, rbx
call fcn.14016e320
mov r12, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
cmp r12, r13
jne 0x14018f0b1
mov rbx, r14
jmp 0x14018f0d4
mov rcx, rdi
mov rdx, r14
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
je 0x14018f0fe
xor ebx, ebx
test r12, r12
je 0x14018f0d4
mov edx, 2
mov rcx, r14
call fcn.1400322f0
test r15, r15
je 0x14018f0e6
mov edx, 2
mov rcx, rdi
call fcn.1400322f0
test rbx, rbx
jne 0x14018f114
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test r12, r12
jne 0x14018f0c7
jmp 0x14018f0d4
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [0x14018f1e0]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x50], rax
lea rax, [fcn.14018e6c0]
mov qword [rsp + 0x58], rax
lea rax, str.failed_to_set_environment_variable____to___:
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 3
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], 3
lea rdx, str.library_std_srcenv.rs
lea rcx, [rsp + 0x80]
call fcn.14007fc50
ud2