joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000af94
Capabilities:
Hash data with crc32

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r9, r8
mov rax, rdx
not ecx
lea rdi, [0x1400d5388]
mov ebx, 0xff
lea rsi, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001fcrc32fast_1.4.2_src_baseline.rs
cmp r9, 0x40
jb 0x14000b0c4
mov r14d, 4
sub r14, 1
jb 0x14000afb9
cmp r9, 0xf
jbe 0x14000b0f1
movzx edx, byte [rax + 0xf]
movzx r8d, byte [rax + 0xe]
mov ebp, dword [rdi + r8*4 + 0x400]
xor ebp, dword [rdi + rdx*4]
movzx edx, byte [rax + 0xd]
xor ebp, dword [rdi + rdx*4 + 0x800]
movzx edx, byte [rax + 0xc]
xor ebp, dword [rdi + rdx*4 + 0xc00]
movzx edx, byte [rax + 0xb]
xor ebp, dword [rdi + rdx*4 + 0x1000]
movzx edx, byte [rax + 0xa]
xor ebp, dword [rdi + rdx*4 + 0x1400]
movzx edx, byte [rax + 9]
xor ebp, dword [rdi + rdx*4 + 0x1800]
movzx edx, byte [rax + 8]
xor ebp, dword [rdi + rdx*4 + 0x1c00]
movzx edx, byte [rax + 7]
xor ebp, dword [rdi + rdx*4 + 0x2000]
movzx edx, byte [rax + 6]
xor ebp, dword [rdi + rdx*4 + 0x2400]
movzx edx, byte [rax + 5]
xor ebp, dword [rdi + rdx*4 + 0x2800]
movzx edx, byte [rax + 4]
xor ebp, dword [rdi + rdx*4 + 0x2c00]
mov edx, ecx
shr edx, 0x18
movzx r8d, byte [rax + 3]
xor r8d, edx
xor ebp, dword [rdi + r8*4 + 0x3000]
mov edx, ecx
shr edx, 0x10
and edx, ebx
movzx r8d, byte [rax + 2]
xor r8d, edx
xor ebp, dword [rdi + r8*4 + 0x3400]
mov edx, ecx
shr edx, 8
and edx, ebx
movzx r8d, byte [rax + 1]
xor r8d, edx
xor ebp, dword [rdi + r8*4 + 0x3800]
and ecx, ebx
movzx edx, byte [rax]
xor edx, ecx
xor ebp, dword [rdi + rdx*4 + 0x3c00]
mov rcx, rax
mov rdx, r9
mov r8, rsi
call fcn.14000b5d7
mov r9, rdx
mov ecx, ebp
jmp 0x14000afc9
xor edx, edx
cmp r9, rdx
je 0x14000b0e2
mov r8b, byte [rax + rdx]
xor r8b, cl
movzx r8d, r8b
shr ecx, 8
xor ecx, dword [rdi + r8*4]
inc rdx
jmp 0x14000b0c6
not ecx
mov eax, ecx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001fcrc32fast_1.4.2_src_baseline.rs
mov ecx, 0xf
mov rdx, r9
call fcn.140006f00
int3
Function at 0x14000b7ac
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
movups xmm0, xmmword [0x1400d9418]
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm0
lea rdi, [rsp + 0x28]
and qword [rdi], 0
xor edx, edx
xor r8d, r8d
mov r9, rdi
call sub.shell32.dll_SHGetKnownFolderPath
mov rcx, qword [rdi]
test eax, eax
je 0x14000b7f5
call sub.ole32.dll_CoTaskMemFree
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x14000b814
call sub.kernel32.dll_lstrlenW
movsxd r8, eax
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.140020a10
mov rcx, qword [rsp + 0x28]
call sub.ole32.dll_CoTaskMemFree
nop
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140013b0c
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call fcn.140015bd1
test rax, rax
je 0x140013b4a
lea rdx, [0x1400daf30]
mov rcx, rax
call fcn.140013096
mov rax, qword [rdi + 0x30]
jmp 0x140013b87
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx + 0x10], xmm1
movaps xmmword [rdx], xmm0
lea rbx, [rsp + 0x70]
mov rcx, rbx
call fcn.140013003
mov rax, qword [rdi + 0x30]
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi + 0x20], xmm2
and qword [rdi + 0x40], 0
add rax, 0xffffffffffffff00
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
jmp fcn.1400130ea
Function at 0x140013bf3
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xf8
mov r14, rcx
mov esi, dword [0x140055028]
test esi, esi
je 0x140013d9b
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rbx, rax
cmp rax, 1
ja 0x140013d8b
je 0x140013d89
test r14, r14
je 0x140013c41
mov rdi, qword [r14]
and qword [r14], 0
test rdi, rdi
jne 0x140013d46
xorps xmm0, xmm0
lea rdi, [rsp + 0x20]
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140015bd1
test rax, rax
jne 0x140013dbf
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rdi, [rsp + 0x80]
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
lea rbx, [rsp + 0xc0]
mov rcx, rbx
mov rdx, rdi
call fcn.140013003
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi + 0x20], xmm2
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x70], xmm2
mov al, byte [0x1400f4110]
mov edx, 0x170
xor ecx, ecx
call fcn.14004f370
test rax, rax
je 0x140013e1c
mov rdi, rax
mov eax, 1
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov rcx, rdi
add rcx, 0x10
mov r8d, 0x100
xor edx, edx
call sub.msvcrt.dll_memset
mov qword [rdi + 0x110], 0x40
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
movups xmm2, xmmword [rsp + 0x68]
movups xmmword [rdi + 0x118], xmm0
movups xmmword [rdi + 0x128], xmm1
movups xmmword [rdi + 0x138], xmm2
mov rax, qword [rsp + 0x78]
mov qword [rdi + 0x148], rax
mov eax, 0x10000
mov qword [rdi + 0x150], rax
mov qword [rdi + 0x158], rax
and qword [rdi + 0x160], 0
mov al, byte [0x1400f4110]
mov edx, 0x10
xor ecx, ecx
call fcn.14004f370
test rax, rax
je 0x140013dae
mov rbx, rax
mov qword [rax], rdi
mov dword [rax + 8], esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140013d8b
mov rcx, rdi
call fcn.140013074
jmp 0x140013d8b
xor ebx, ebx
mov rax, rbx
add rsp, 0xf8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140055010]
call fcn.14001e9f0
mov esi, eax
jmp 0x140013c12
mov ecx, 8
mov edx, 0x10
call fcn.140006660
jmp 0x140013e1a
mov qword [rsp + 0x20], rax
lea rax, [0x1400daf30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rax], rdi
lea rdx, [0x1400dae38]
lea rcx, [rsp + 0xb0]
mov qword [rcx], rdx
mov edx, 1
mov qword [rcx + 8], rdx
and qword [rcx + 0x20], 0
lea r8, [0x140015b71]
mov qword [rax + 8], r8
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rdx
lea rdx, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rand_0.8.5_src_rngs_thread.rscould_not_initialize_thread_rng:
call fcn.140006e50
ud2
mov ecx, 0x10
mov edx, 0x170
call fcn.140006660
mov rsi, rax
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
call fcn.140013096
jmp 0x140013e4f
mov rcx, rsi
call fcn.1400535a0
int3
Function at 0x140015bd1
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov r12d, 0x20
xor esi, esi
mov r13d, 0xffffffff
test r12, r12
je 0x140015c5f
mov r14, rdi
cmp r12, r13
mov r15d, 0xffffffff
cmovb r15, r12
add rdi, r15
sub r12, r15
xor ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x140015bf1
mov ebx, eax
mov rcx, r14
mov edx, r15d
call sub.advapi32.dll_SystemFunction036
test al, al
jne 0x140015bf1
and ebx, 0x7fffffff
je 0x140015c5d
mov al, byte [0x1400f4110]
mov edx, 4
xor ecx, ecx
call fcn.14004f370
test rax, rax
je 0x140015c72
mov rsi, rax
mov dword [rax], ebx
jmp 0x140015c5f
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 4
mov edx, 4
call fcn.140006660
int3

Function at 0x140019370
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x140019395
cmp rax, rcx
je 0x14001939b
cmp rdx, 4
jae 0x1400193a2
xor eax, eax
xor r8d, r8d
jmp 0x140019440
pop rbp
jmp fcn.140007360
xor eax, eax
jmp 0x140019457
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140056730]
movdqa xmm3, xmmword [0x140056740]
pxor xmm1, xmm1
nop word cs:[rax + 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 0x1400193d0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140019457
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140019440
pop rbp
ret
Function at 0x14001a430
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov r10, qword [rcx]
test r10, r10
je 0x14001a4b1
mov r11, qword [rcx + 8]
mov r8, qword [rcx + 0x10]
cmp r8, r11
jae 0x14001a4b1
movzx eax, byte [r10 + r8]
cmp eax, 0x49
mov rbx, rcx
je 0x14001a4ca
cmp eax, 0x42
jne 0x14001a4b1
lea rsi, [r8 + 1]
mov qword [rcx + 0x10], rsi
cmp rsi, r11
jae 0x14001a57c
cmp byte [r10 + rsi], 0x5f
jne 0x14001a57c
lea rax, [r8 + 2]
mov qword [rcx + 0x10], rax
xor eax, eax
cmp rax, r8
jae 0x14001a5fb
mov edx, dword [rcx + 0x18]
inc edx
cmp edx, 0x1f4
jbe 0x14001a658
mov sil, 1
xor r9d, r9d
jmp 0x14001a600
xor edx, edx
call fcn.140015f60
mov esi, eax
add sil, sil
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
inc r8
mov qword [rcx + 0x10], r8
xor edx, edx
call fcn.140015f60
test al, al
jne 0x14001a63e
mov rdx, rbx
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001a509
lea rdx, [0x1400db32b]
mov r8d, 1
call fcn.140007840
mov rdx, rbx
test al, al
jne 0x14001a63e
mov rax, qword [rdx]
mov sil, 1
test rax, rax
je 0x14001a4bd
xor r14d, r14d
lea rdi, [0x1400db681]
nop
mov rcx, qword [rdx + 0x10]
cmp rcx, qword [rdx + 8]
jae 0x14001a534
cmp byte [rax + rcx], 0x45
je 0x14001a691
sub r14, 1
jb 0x14001a55c
mov rcx, qword [rdx + 0x20]
test rcx, rcx
je 0x14001a55c
mov r8d, 2
mov rdx, rdi
call fcn.140007840
mov rdx, rbx
test al, al
jne 0x14001a63e
mov rcx, rdx
call fcn.140017770
test al, al
jne 0x14001a63e
mov rdx, rbx
mov rax, qword [rbx]
test rax, rax
jne 0x14001a520
jmp 0x14001a4bd
xor eax, eax
mov edi, 0x3e
nop word cs:[rax + rax]
mov r9b, 1
cmp rsi, r11
jae 0x14001a5fe
movzx edx, byte [r10 + rsi]
cmp dl, 0x5f
je 0x14001a5e2
lea r14d, [rdx - 0x30]
cmp r14b, 0xa
jb 0x14001a5cb
lea r14d, [rdx - 0x61]
cmp r14b, 0x1a
jae 0x14001a5bb
add dl, 0xa9
jmp 0x14001a5c8
lea r14d, [rdx - 0x41]
cmp r14b, 0x1a
jae 0x14001a5fe
add dl, 0xe3
mov r14d, edx
inc rsi
mov qword [rcx + 0x10], rsi
mul rdi
jo 0x14001a5fe
movzx edx, r14b
add rax, rdx
jae 0x14001a590
jmp 0x14001a5fe
inc rsi
mov qword [rcx + 0x10], rsi
cmp rax, 0xffffffffffffffff
je 0x14001a5fe
inc rax
cmp rax, r8
jb 0x14001a495
mov r9b, 1
xor esi, esi
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x14001a646
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, [0x1400db660]
test r9b, r9b
cmovne rdx, rcx
mov rcx, rax
call fcn.140007840
mov rcx, rbx
test al, al
je 0x14001a646
mov sil, 2
jmp 0x14001a4bd
mov qword [rcx], 0
mov byte [rcx + 8], sil
xor esi, esi
jmp 0x14001a4bd
cmp qword [rcx + 0x20], 0
je 0x14001a651
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp - 0x20], xmm0
mov qword [rcx + 0x10], rax
mov dword [rcx + 0x18], edx
mov rsi, rcx
call fcn.14001a430
movaps xmm0, xmmword [rbp - 0x20]
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14001a4bf
inc rcx
mov qword [rdx + 0x10], rcx
jmp 0x14001a4bd
Function at 0x14001dd60
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1400de460]
movaps xmmword [rbp], 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
mov rax, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x14001ddcf
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14001ddfb
test eax, eax
js 0x14001dddb
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14001ddf1
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x1400de4c0]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14001d550
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14001d600
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x1400550c8]
test esi, esi
je 0x14001e815
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14001e80c
je 0x14001e7b9
test rdi, rdi
je 0x14001e7bd
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x14001e7bf
mov rbx, qword [rdi + 8]
jmp 0x14001e7bf
xor eax, eax
jmp 0x14001e80c
xor ebx, ebx
movzx eax, byte [0x1400f4110]
mov edx, 0x10
xor ecx, ecx
call fcn.14004f370
test rax, rax
je 0x14001e828
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14001e809
mov edx, 8
mov rcx, rdi
call fcn.14000b630
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400550b0]
call fcn.14001e9f0
mov esi, eax
jmp 0x14001e790
mov ecx, 8
mov edx, 0x10
call fcn.140006660
int3
Function at 0x14001e840
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x1400550e8]
test esi, esi
je 0x14001e8e0
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14001e8d7
je 0x14001e8d5
movzx eax, byte [0x1400f4110]
mov edx, 0x10
xor ecx, ecx
call fcn.14004f370
test rax, rax
je 0x14001e8f3
mov qword [rax], 0
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14001e8d0
mov rax, qword [rdi]
test rax, rax
je 0x14001e8c3
lock dec qword [rax]
jne 0x14001e8c3
mov rcx, qword [rdi]
call fcn.14001ccb0
mov edx, 8
mov rcx, rdi
call fcn.14000b630
mov rax, rsi
jmp 0x14001e8d7
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400550d0]
call fcn.14001e9f0
mov esi, eax
jmp 0x14001e85d
mov ecx, 8
mov edx, 0x10
call fcn.140006660
int3

Function at 0x14001e9f0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
cmp qword [rcx], 0
je 0x14001ea85
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rbp - 4], eax
cmp eax, 1
jne 0x14001eac4
cmp dword [rbp], 0
je 0x14001eaa8
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14001ead9
mov edi, eax
mov rax, qword [0x1400f7038]
mov rax, qword [0x1400f4100]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1400f4100], rsi
jne 0x14001ea60
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x14001eab9
call sub.kernel32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x14001eb1b
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14001eaad
mov edi, dword [rbp + 4]
jmp 0x14001eab9
mov edi, dword [rsi + 0x18]
jmp 0x14001eab7
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x38], 0
lea rcx, [rbp - 4]
lea rdx, [rbp - 0x38]
call fcn.14001eb50
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rdx, str.library_std_src_sys_thread_localkeywindows.rs
lea rcx, [rbp - 0x38]
call fcn.140006e50
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x38]
call fcn.14001eba0
int3
Function at 0x14001f100
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x140055088]
test esi, esi
je 0x14001f18a
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14001f181
je 0x14001f17f
movzx eax, byte [0x1400f4110]
mov edx, 0x18
xor ecx, ecx
call fcn.14004f370
test rax, rax
je 0x14001f19d
mov qword [rax], 0
mov byte [rax + 8], 0
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14001f17a
mov edx, 8
mov rcx, rdi
call fcn.14000b630
mov rax, rsi
jmp 0x14001f181
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140055070]
call fcn.14001e9f0
mov esi, eax
jmp 0x14001f119
mov ecx, 8
mov edx, 0x18
call fcn.140006660
int3
Function at 0x1400222d0
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xf0
lea rbp, [rsp + 0x80]
mov rax, r8
mov rsi, rcx
mov dword [rbp + 0x18], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov dword [rbp + 0x30], 7
mov qword [rbp + 0x34], 0
mov word [rbp + 0x3c], 0
mov byte [rbp + 0x38], 1
lea r8, [rbp + 0x18]
mov rcx, rdx
mov rdx, rax
call fcn.14003e3a0
mov rdi, rdx
test rax, rax
je 0x140022357
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x38], rdi
call fcn.14001d620
mov qword [rsi], 0
add rsp, 0xf0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0x18]
mov rdx, rdi
call fcn.14003e620
cmp dword [rbp + 0x18], 2
jne 0x14002237b
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 2
jmp 0x1400223b2
movups xmm0, xmmword [rbp + 0x18]
movups xmm1, xmmword [rbp + 0x28]
movups xmm2, xmmword [rbp + 0x38]
movups xmm3, xmmword [rbp + 0x48]
movaps xmmword [rbp - 0x40], xmm0
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x10], rax
movups xmm0, xmmword [rbp + 0x58]
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm3
movaps xmmword [rbp - 0x20], xmm2
movaps xmmword [rbp - 0x30], xmm1
cmp qword [rbp - 0x40], 2
jne 0x1400223db
lea rcx, [rbp - 0x38]
call fcn.14001d620
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xf0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp fcn.140052f3c
mov r12, qword [rbp - 8]
test rdi, rdi
je 0x140022429
mov qword [rbp - 0x40], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp - 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x1400224a5
mov rbx, qword [rbp - 0x40]
jmp 0x14002242b
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 0x140022494
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.140052f3c
test r15, r15
je 0x140022494
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x1400224ce
mov qword [rsi], 0
mov rcx, rbx
call fcn.140052f3c
jmp 0x1400224ce
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x18], 1
lea rcx, [rbp + 0x20]
mov qword [rbp + 0x20], rax
call fcn.14001d620
mov qword [rsi], 0
mov rcx, rdi
call fcn.140052f3c
jmp 0x140022345
Function at 0x140037dc0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x168
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xd0], xmm15
movaps xmmword [rbp + 0xc0], xmm14
movaps xmmword [rbp + 0xb0], xmm13
movaps xmmword [rbp + 0xa0], xmm12
movaps xmmword [rbp + 0x90], xmm11
movaps xmmword [rbp + 0x80], xmm10
movaps xmmword [rbp + 0x70], xmm9
movaps xmmword [rbp + 0x60], xmm8
movaps xmmword [rbp + 0x50], xmm7
movaps xmmword [rbp + 0x40], xmm6
mov rsi, r8
mov rbx, rdx
cmp rdx, 0x21
jb 0x140038297
mov r15, r9
mov rax, qword [rbp + 0x158]
mov qword [rbp + 0x30], rax
mov edi, dword [rbp + 0x150]
lea rax, [rsi - 0x20]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], r9

Function at 0x140039c40
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x158
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xc0], xmm15
movaps xmmword [rbp + 0xb0], xmm14
movaps xmmword [rbp + 0xa0], xmm13
movaps xmmword [rbp + 0x90], xmm12
movaps xmmword [rbp + 0x80], xmm11
movaps xmmword [rbp + 0x70], xmm10
movaps xmmword [rbp + 0x60], xmm9
movaps xmmword [rbp + 0x50], xmm8
movaps xmmword [rbp + 0x40], xmm7
movaps xmmword [rbp + 0x30], xmm6
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
cmp rdx, 0x21
jae 0x140039ed8
mov r15, r9
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x20], rax
mov r13d, dword [rbp + 0x140]
lea rax, [rsi - 0x20]
mov qword [rbp], rax
mov qword [rbp + 0x28], r9
Function at 0x1400434c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x1400550a8]
test esi, esi
je 0x140043560
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140043557
je 0x140043555
movzx eax, byte [0x1400f4110]
mov edx, 0x10
xor ecx, ecx
call fcn.14004f370
test rax, rax
je case.0x140041283.468
mov qword [rax], 0
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140043550
mov rax, qword [rdi]
test rax, rax
je 0x140043543
lock dec qword [rax]
jne 0x140043543
mov rcx, qword [rdi]
call fcn.140043590
xor eax, eax
lea rcx, [0x140055090]
call fcn.14001e9f0
mov esi, eax
jmp 0x1400434dd
Function at 0x140049f50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rbp - 0x28]
call fcn.14003e730
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
cmp rcx, rbx
jne 0x140049f8e
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], rbx
jmp 0x140049fb4
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rdx
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.140049e70
mov r14, qword [rbp - 0x10]
cmp r14, rbx
jne 0x140049fcd
lea rcx, [rbp - 8]
call fcn.14001d620
mov qword [rsi], rbx
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rdi, qword [rbp - 8]
mov r15, qword [rbp]
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x140049fef
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x140049fc0
mov qword [rsi], rbx
test r14, r14
je 0x140049fc0
mov edx, 2
mov rcx, rdi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp fcn.14000b630