joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000b190
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x18000b210
cmp r10, r11
jb 0x18000b287
cmp r10, rdx
ja 0x18000b299
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x18000b212
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x18000b1f0
jmp 0x18000b274
ja 0x18000b21a
mov r11, r10
cmp rax, r8
jne 0x18000b1be
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x18000b250
mov rdi, r8
sub ecx, edx
jns 0x18000b26b
jmp 0x18000b276
cmp r8, rsi
je 0x18000b2a8
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x18000b276
xor al, 1
cmp rdi, rsi
jne 0x18000b230
jmp 0x18000b276
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call sym.core::slice::index::slice_index_order_fail::h786748ba81f41b02
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call sym.core::slice::index::slice_end_index_len_fail::hdaa9bbd2fcad4cbb
lea rcx, str.librarycore_srcunicodeprintable.rs
call sym.core::option::unwrap_failed::h38ae581b954ce070
int3

Function at 0x180011800
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x180011825
cmp rax, rcx
je 0x18001182b
cmp rdx, 4
jae 0x18001182f
xor eax, eax
xor r8d, r8d
jmp 0x1800118c0
pop rbp
jmp sym.core::str::count::do_count_chars::h0eb3508aff42cff4
xor eax, eax
pop rbp
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x180062720]
movdqa xmm3, xmmword [0x180062730]
pxor xmm1, xmm1
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 0x180011850
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1800118d7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x1800118c0
pop rbp
ret
Function at 0x180015b00
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x180015b42
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x180015b4a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x180015b5b
jmp 0x180015b72
xor r10d, r10d
jmp 0x180015bfd
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x180015b72
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x180015b89
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x180015ba9
add r11, r8
jmp 0x180015cdb
mov rcx, qword [rax + 0x18]
xor rcx, rsi
mov rdi, qword [rax + 0x10]
mov r9, qword [rax]
add r9, rdi
mov r11, qword [rax + 8]
add r11, rcx
rol rdi, 0xd
xor rdi, r9
rol rcx, 0x10
rol r9, 0x20
xor rcx, r11
add r11, rdi
rol rdi, 0x11
add r9, rcx
xor rdi, r11
rol rcx, 0x15
mov qword [rax + 0x10], rdi
xor rcx, r9
rol r11, 0x20
mov qword [rax + 0x18], rcx
mov qword [rax + 8], r11
xor r9, rsi
mov qword [rax], r9
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x180015c72
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
mov rbx, qword [rdx + r10]
xor rdi, rbx
add rcx, rsi
rol rsi, 0xd
add r9, rdi
xor rsi, rcx
rol rdi, 0x10
xor rdi, r9
rol rcx, 0x20
add r9, rsi
add rcx, rdi
rol rsi, 0x11
xor rsi, r9
rol rdi, 0x15
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x180015c20
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x180015c90
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x180015ca2
jmp 0x180015cbd
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x180015cbd
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x180015cd7
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x180016160
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov esi, dword [0x180061078]
test esi, esi
je 0x180016209
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1800161fc
je 0x1800161fa
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm6, xmmword [rsp + 0x20]
movzx eax, byte [0x18007f088]
mov edx, 0x18
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h1ca289f3d44bb24b
test rax, rax
je 0x18001622a
movups xmmword [rax], xmm6
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 fcn.18004367c
test rdi, rdi
je 0x1800161f5
mov rcx, qword [0x18007f078]
xor edx, edx
mov r8, rdi
call fcn.1800435e4
mov rax, rsi
jmp 0x1800161fc
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
lea rcx, sym.std::sys::thread_local::os::destroy_value::h2c279e50529633ce
call sym.std::sys::thread_local::key::windows::LazyKey::init::h597144e332ffcf99
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x180016189
jmp 0x1800161fc
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::h526f0ddc898dc940
int3
Function at 0x1800163c0
Capabilities:
Encrypt data using rc4 via systemfunction032
Link many functions at runtime

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov edi, ecx
call sub.kernel32.dll_CreateTimerQueue
test rax, rax
je 0x180016408
mov rsi, rax
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_CreateEventW
test rax, rax
je 0x180016408
xor ecx, ecx
call sub.kernel32.dll_GetModuleHandleA
test rax, rax
je 0x180016408
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
jne 0x180016419
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [0x180074632]
mov rcx, r14
call sub.kernel32.dll_LoadLibraryA
lea rdx, str.RtlCaptureContext
mov rcx, rax
call sub.kernel32.dll_GetProcAddress
mov rbx, rax
mov rcx, r14
call sub.kernel32.dll_GetModuleHandleA
lea rdx, str.NtContinue
mov rcx, rax
call sub.kernel32.dll_GetProcAddress
mov r14, rax
lea rcx, str.Advapi32
call sub.kernel32.dll_LoadLibraryA
lea rdx, str.SystemFunction032
mov rcx, rax
call sub.kernel32.dll_GetProcAddress
mov r15, rax
lea r13, str.kernel32.dll
mov rcx, r13
call sub.kernel32.dll_LoadLibraryA
lea rdx, str.VirtualProtect
mov rcx, rax
call sub.kernel32.dll_GetProcAddress
mov rbp, rax
mov rcx, r13
call sub.kernel32.dll_LoadLibraryA
lea rdx, str.WaitForSingleObject
mov rcx, rax
call sub.kernel32.dll_GetProcAddress
mov r12, rax
mov rcx, r13
call sub.kernel32.dll_LoadLibraryA
lea rdx, str.SetEvent
mov rcx, rax
call sub.kernel32.dll_GetProcAddress
movq xmm0, r15
movq xmm1, rbp
punpcklqdq xmm0, xmm1
movq xmm1, rbx
movq xmm2, r14
punpcklqdq xmm2, xmm1
pxor xmm1, xmm1
pcmpeqd xmm2, xmm1
pcmpeqd xmm0, xmm1
movdqa xmm1, xmm2
shufps xmm1, xmm0, 0xdd
shufps xmm2, xmm0, 0x88
andps xmm2, xmm1
movmskps ecx, xmm2
test ecx, ecx
jne 0x180016408
test r12, r12
je 0x180016408
test rax, rax
je 0x180016408
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_CreateEventW
test rax, rax
je 0x180016408
mov rbx, rax
mov rcx, rax
mov edx, edi
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x180016408
mov rcx, rbx
call sub.kernel32.dll_SetEvent
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x18004352c
jmp qword [sym.imp.kernel32.dll_DeleteTimerQueue]

Function at 0x180017910
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rsi, rcx
mov edi, dword [rcx + 0x10]
mov edx, 1
mov ecx, edi
call fcn.18004367c
mov rcx, qword [0x18007f078]
xor edx, edx
mov r8, rsi
call fcn.1800435e4
mov ecx, edi
xor edx, edx
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp fcn.18004367c

Function at 0x180017950
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rsi, rcx
mov edi, dword [rcx + 8]
mov edx, 1
mov ecx, edi
call fcn.18004367c
mov rcx, qword [0x18007f078]
xor edx, edx
mov r8, rsi
call fcn.1800435e4
mov ecx, edi
xor edx, edx
add rsp, 0x20
and byte [rdi + 0x5e], bl
Function at 0x1800181d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x180075cf0]
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 0x18001823f
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0x103
je 0x18001826b
test eax, eax
js 0x18001824b
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x180018261
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, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
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 sym.std::io::Write::write_fmt::hdc620d2dd22aa030
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call sym.core::ptr::drop_in_place_core::result::Result____std::io::error::Error__::hfcc0b544997c6b8c
mov ecx, 7
int 0x29
ud2

Function at 0x180018c00
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 [0x180061098]
test esi, esi
je 0x180018ca9
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x180018ca0
je 0x180018c49
test rdi, rdi
je 0x180018c4d
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x180018c4f
mov rbx, qword [rdi + 8]
jmp 0x180018c4f
xor eax, eax
jmp 0x180018ca0
xor ebx, ebx
movzx eax, byte [0x18007f088]
mov edx, 0x10
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h1ca289f3d44bb24b
test rax, rax
je 0x180018cca
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 fcn.18004367c
test rdi, rdi
je 0x180018c9d
mov rcx, qword [0x18007f078]
xor edx, edx
mov r8, rdi
call fcn.1800435e4
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os::destroy_value::hae0938d07776a6a0
call sym.std::sys::thread_local::key::windows::LazyKey::init::h597144e332ffcf99
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x180018c2d
jmp 0x180018ca0
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h526f0ddc898dc940
int3
Function at 0x180018ce0
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 [0x1800610b8]
test esi, esi
je 0x180018d88
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x180018d7f
je 0x180018d7d
movzx eax, byte [0x18007f088]
mov edx, 0x10
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h1ca289f3d44bb24b
test rax, rax
je 0x180018da9
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 fcn.18004367c
test rdi, rdi
je 0x180018d78
mov rax, qword [rdi]
test rax, rax
je 0x180018d67
lock dec qword [rax]
jne 0x180018d67
mov rcx, qword [rdi]
call sym.alloc::sync::Arc_T_A_::drop_slow::h2e9684c2aaf21016
mov rcx, qword [0x18007f078]
xor edx, edx
mov r8, rdi
call fcn.1800435e4
mov rax, rsi
jmp 0x180018d7f
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os::destroy_value::h09a9b347479260fe
call sym.std::sys::thread_local::key::windows::LazyKey::init::h597144e332ffcf99
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x180018d0a
jmp 0x180018d7f
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h526f0ddc898dc940
int3
Function at 0x180018f00
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 0x180018f95
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 0x180018fd4
cmp dword [rbp], 0
je 0x180018fb8
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x180018fe9
mov edi, eax
mov rax, qword [sym.std::sys::thread_local::guard::windows::tls_callback::hb3b522923a445e95]
mov rax, qword [0x18007f080]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x18007f080], rsi
jne 0x180018f70
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 0x180018fc9
call sub.kernel32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x18001902b
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x180018fbd
mov edi, dword [rbp + 4]
jmp 0x180018fc9
mov edi, dword [rsi + 0x18]
jmp 0x180018fc7
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 sym.core::panicking::assert_failed::h0803915418e34f99
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 sym.core::panicking::panic_fmt::h50bba86df16ca19f
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 sym.core::panicking::assert_failed::h42eecccc4207c29f
int3
Function at 0x180019340
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
cmp edx, 3
je 0x18001935c
test edx, edx
jne 0x1800194c5
mov bl, 1
mov rdi, qword [0x18007f080]
nop word cs:[rax + rax]
test rdi, rdi
je 0x1800193b0
mov esi, dword [rdi + 0x18]
mov r14, qword [rdi]
test r14, r14
je 0x18001951a
mov rdi, qword [rdi + 8]
test esi, esi
je 0x180019370
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x180019370
xor ebx, ebx
mov ecx, esi
xor edx, edx
mov rsi, rax
call fcn.18004367c
mov rcx, rsi
call r14
jmp 0x180019370
test bl, 1
jne 0x1800194c5
mov bl, 1
mov rdi, qword [0x18007f080]
nop word cs:[rax + rax]
test rdi, rdi
je 0x180019410
mov esi, dword [rdi + 0x18]
mov r14, qword [rdi]
test r14, r14
je 0x18001951a
mov rdi, qword [rdi + 8]
test esi, esi
je 0x1800193d0
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x1800193d0
xor ebx, ebx
mov ecx, esi
xor edx, edx
mov rsi, rax
call fcn.18004367c
mov rcx, rsi
call r14
jmp 0x1800193d0
test bl, 1
jne 0x1800194c5
mov bl, 1
mov rdi, qword [0x18007f080]
nop word cs:[rax + rax]
test rdi, rdi
je 0x180019470
mov esi, dword [rdi + 0x18]
mov r14, qword [rdi]
test r14, r14
je 0x18001951a
mov rdi, qword [rdi + 8]
test esi, esi
je 0x180019430
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x180019430
xor ebx, ebx
mov ecx, esi
xor edx, edx
mov rsi, rax
call fcn.18004367c
mov rcx, rsi
call r14
jmp 0x180019430
test bl, 1
jne 0x1800194c5
mov bl, 1
mov rdi, qword [0x18007f080]
nop
test rdi, rdi
je 0x1800194c0
mov esi, dword [rdi + 0x18]
mov r14, qword [rdi]
test r14, r14
je 0x18001951a
mov rdi, qword [rdi + 8]
test esi, esi
je 0x180019480
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x180019480
xor ebx, ebx
mov ecx, esi
xor edx, edx
mov rsi, rax
call fcn.18004367c
mov rcx, rsi
call r14
jmp 0x180019480
test bl, 1
je 0x1800194d0
mov rbx, qword [0x18007f080]
nop word [rax + rax]

Function at 0x180019790
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [rcx + 8]
mov edx, 1
mov ecx, esi
call fcn.18004367c
mov rax, qword [rdi]
test rax, rax
je 0x1800197c4
lock dec qword [rax]
jne 0x1800197c4
mov rcx, qword [rdi]
call sym.alloc::sync::Arc_T_A_::drop_slow::h2e9684c2aaf21016
mov rcx, qword [0x18007f078]
xor edx, edx
mov r8, rdi
call fcn.1800435e4
mov ecx, esi
xor edx, edx
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp fcn.18004367c
Function at 0x180019820
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 [0x180061058]
test esi, esi
je 0x1800198ae
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1800198a5
je 0x1800198a3
movzx eax, byte [0x18007f088]
mov edx, 0x18
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h1ca289f3d44bb24b
test rax, rax
je 0x1800198cf
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 fcn.18004367c
test rdi, rdi
je 0x18001989e
mov rcx, qword [0x18007f078]
xor edx, edx
mov r8, rdi
call fcn.1800435e4
mov rax, rsi
jmp 0x1800198a5
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os::destroy_value::h2c279e50529633ce
call sym.std::sys::thread_local::key::windows::LazyKey::init::h597144e332ffcf99
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x180019846
jmp 0x1800198a5
mov ecx, 8

Function at 0x18001c400
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
and al, 0x20
Function at 0x18001c930
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 sym.std::sys::pal::windows::fs::File::open::hc26adf99dd0cd861
mov rdi, rdx
test rax, rax
je 0x18001c9b7
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x38], rdi
call sym.core::ptr::drop_in_place_std::io::error::Error_::h3466fc80fe41233f
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 sym.std::sys::pal::windows::fs::File::file_attr::hd835218852a56d09
cmp dword [rbp + 0x18], 2
jne 0x18001c9db
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 2
jmp 0x18001ca12
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 0x18001ca3b
lea rcx, [rbp - 0x38]
call sym.core::ptr::drop_in_place_std::io::error::Error_::h3466fc80fe41233f
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.1800434ec
mov r12, qword [rbp - 8]
test rdi, rdi
je 0x18001ca89
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 0x18001cb05
mov rbx, qword [rbp - 0x40]
jmp 0x18001ca8b
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 0x18001caf4
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.1800434ec
test r15, r15
je 0x18001caf4
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x18001cb2e
mov qword [rsi], 0
mov rcx, rbx
call fcn.1800434ec
jmp 0x18001cb2e
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 sym.core::ptr::drop_in_place_std::io::error::Error_::h3466fc80fe41233f
mov qword [rsi], 0
mov rcx, rdi
call fcn.1800434ec
jmp 0x18001c9a5
Function at 0x18003b260
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
and al, 0x80
add byte [rax], al
add byte [rax - 0x77], cl
invalid