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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xf8
mov rbx, rcx
mov esi, dword [0x14004c018]
test esi, esi
je 0x14000b508
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov r14, rax
cmp rax, 1
ja 0x14000b4f8
je 0x14000b4f5
test rbx, rbx
je 0x14000b3c4
mov rdi, qword [rbx]
and qword [rbx], 0
test rdi, rdi
jne 0x14000b4ba
xorps xmm0, xmm0
lea rdi, [rsp + 0x20]
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14000e79e
test rax, rax
jne 0x14000b51b
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.14000b2c3
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 ecx, 0x170
mov edx, 0x10
call fcn.14000b5f5
mov rdi, rax
mov eax, 1
mov qword [rdi], rax
mov qword [rdi + 8], rax
lea rcx, [rdi + 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 ecx, 0x10
mov edx, 8
call fcn.14000b5f5
mov r14, 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, r14
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14000b4f8
mov rcx, rdi
call fcn.14000b5bd
jmp 0x14000b4f8
xor r14d, r14d
mov rax, r14
add rsp, 0xf8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, section..data
call fcn.140016e60
mov esi, eax
jmp 0x14000b395
mov qword [rsp + 0x20], rax
lea rax, [0x1401be510]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rax], rdi
lea rdx, [0x1401be420]
lea rcx, [rsp + 0xb0]
mov qword [rcx], rdx
mov edx, 1
mov qword [rcx + 8], rdx
and qword [rcx + 0x20], 0
lea r8, [0x14000e73e]
mov qword [rax + 8], r8
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rdx
lea rdx, str.C:Userswin10_x64.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rand_0.8.5_src_rngs_thread.rscould_not_initialize_thread_rng:
call fcn.140004390
int3
Function at 0x14000e79e
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 0x14000e82a
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 0x14000e7be
mov ebx, eax
mov rcx, r14
mov edx, r15d
call sub.advapi32.dll_SystemFunction036
test al, al
jne 0x14000e7be
and ebx, 0x7fffffff
je 0x14000e828
mov al, byte [0x1401c90e8]
mov ecx, 4
call fcn.140045e10
test rax, rax
je 0x14000e83d
mov rsi, rax
mov dword [rax], ebx
jmp 0x14000e82a
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.140003b80
int3

Function at 0x140011f70
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x140011f95
cmp rax, rcx
je 0x140011f9b
cmp rdx, 4
jae 0x140011fa2
xor eax, eax
xor r8d, r8d
jmp 0x140012040
pop rbp
jmp fcn.1400048a0
xor eax, eax
jmp 0x140012057
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14004d550]
movdqa xmm3, xmmword [0x14004d560]
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 0x140011fd0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140012057
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140012040
pop rbp
ret
Function at 0x140013050
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 0x1400130d1
mov r11, qword [rcx + 8]
mov r8, qword [rcx + 0x10]
cmp r8, r11
jae 0x1400130d1
movzx eax, byte [r10 + r8]
cmp eax, 0x49
mov rbx, rcx
je 0x1400130ea
cmp eax, 0x42
jne 0x1400130d1
lea rsi, [r8 + 1]
mov qword [rcx + 0x10], rsi
cmp rsi, r11
jae 0x14001319c
cmp byte [r10 + rsi], 0x5f
jne 0x14001319c
lea rax, [r8 + 2]
mov qword [rcx + 0x10], rax
xor eax, eax
cmp rax, r8
jae 0x14001321b
mov edx, dword [rcx + 0x18]
inc edx
cmp edx, 0x1f4
jbe 0x140013278
mov sil, 1
xor r9d, r9d
jmp 0x140013220
xor edx, edx
call fcn.14000eb30
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.14000eb30
test al, al
jne 0x14001325e
mov rdx, rbx
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140013129
lea rdx, [0x1401be913]
mov r8d, 1
call fcn.140004d80
mov rdx, rbx
test al, al
jne 0x14001325e
mov rax, qword [rdx]
mov sil, 1
test rax, rax
je 0x1400130dd
xor r14d, r14d
lea rdi, [0x1401bec69]
nop
mov rcx, qword [rdx + 0x10]
cmp rcx, qword [rdx + 8]
jae 0x140013154
cmp byte [rax + rcx], 0x45
je 0x1400132b1
sub r14, 1
jb 0x14001317c
mov rcx, qword [rdx + 0x20]
test rcx, rcx
je 0x14001317c
mov r8d, 2
mov rdx, rdi
call fcn.140004d80
mov rdx, rbx
test al, al
jne 0x14001325e
mov rcx, rdx
call fcn.140010370
test al, al
jne 0x14001325e
mov rdx, rbx
mov rax, qword [rbx]
test rax, rax
jne 0x140013140
jmp 0x1400130dd
xor eax, eax
mov edi, 0x3e
nop word cs:[rax + rax]
mov r9b, 1
cmp rsi, r11
jae 0x14001321e
movzx edx, byte [r10 + rsi]
cmp dl, 0x5f
je 0x140013202
lea r14d, [rdx - 0x30]
cmp r14b, 0xa
jb 0x1400131eb
lea r14d, [rdx - 0x61]
cmp r14b, 0x1a
jae 0x1400131db
add dl, 0xa9
jmp 0x1400131e8
lea r14d, [rdx - 0x41]
cmp r14b, 0x1a
jae 0x14001321e
add dl, 0xe3
mov r14d, edx
inc rsi
mov qword [rcx + 0x10], rsi
mul rdi
jo 0x14001321e
movzx edx, r14b
add rax, rdx
jae 0x1400131b0
jmp 0x14001321e
inc rsi
mov qword [rcx + 0x10], rsi
cmp rax, 0xffffffffffffffff
je 0x14001321e
inc rax
cmp rax, r8
jb 0x1400130b5
mov r9b, 1
xor esi, esi
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x140013266
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, [0x1401bec48]
test r9b, r9b
cmovne rdx, rcx
mov rcx, rax
call fcn.140004d80
mov rcx, rbx
test al, al
je 0x140013266
mov sil, 2
jmp 0x1400130dd
mov qword [rcx], 0
mov byte [rcx + 8], sil
xor esi, esi
jmp 0x1400130dd
cmp qword [rcx + 0x20], 0
je 0x140013271
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.140013050
movaps xmm0, xmmword [rbp - 0x20]
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400130df
inc rcx
mov qword [rdx + 0x10], rcx
jmp 0x1400130dd
Function at 0x140016380
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1401c1450]
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 0x1400163ef
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14001641b
test eax, eax
js 0x1400163fb
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140016411
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, [0x1401c14b0]
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.140015b70
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140015c20
mov ecx, 7
int 0x29
ud2

Function at 0x140016bd0
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 [0x14004c0b8]
test esi, esi
je 0x140016c73
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140016c6a
je 0x140016c19
test rdi, rdi
je 0x140016c1d
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x140016c1f
mov rbx, qword [rdi + 8]
jmp 0x140016c1f
xor eax, eax
jmp 0x140016c6a
xor ebx, ebx
movzx eax, byte [0x1401c90e8]
mov ecx, 0x10
call fcn.140045e10
test rax, rax
je 0x140016c86
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 0x140016c67
mov edx, 8
mov rcx, rdi
call fcn.1400014a0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14004c0a0]
call fcn.140016e60
mov esi, eax
jmp 0x140016bf0
mov ecx, 8
mov edx, 0x10
call fcn.140003b80
int3
Function at 0x140016ca0
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 [0x14004c0d8]
test esi, esi
je 0x140016d3e
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140016d35
je 0x140016d33
movzx eax, byte [0x1401c90e8]
mov ecx, 0x10
call fcn.140045e10
test rax, rax
je 0x140016d51
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 0x140016d2e
mov rax, qword [rdi]
test rax, rax
je 0x140016d21
lock dec qword [rax]
jne 0x140016d21
mov rcx, rdi
call fcn.1400156a0
mov edx, 8
mov rcx, rdi
call fcn.1400014a0
mov rax, rsi
jmp 0x140016d35
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14004c0c0]
call fcn.140016e60
mov esi, eax
jmp 0x140016cbd
mov ecx, 8
mov edx, 0x10
call fcn.140003b80
int3

Function at 0x140016e60
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 0x140016ef5
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 0x140016f34
cmp dword [rbp], 0
je 0x140016f18
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140016f49
mov edi, eax
mov rax, qword [0x1401cc038]
mov rax, qword [0x1401c90d8]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401c90d8], rsi
jne 0x140016ed0
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 0x140016f29
call sub.kernel32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x140016f8b
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140016f1d
mov edi, dword [rbp + 4]
jmp 0x140016f29
mov edi, dword [rsi + 0x18]
jmp 0x140016f27
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.140016fc0
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.140004390
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.140017010
int3

Function at 0x140017360
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 [0x14004c078]
add eax, dword [rax]
Function at 0x14001a260
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]
movaps xmmword [rbp + 0x60], xmm6
mov rax, r8
mov rsi, rcx
mov dword [rbp - 0x40], 0
xorps xmm6, xmm6
movups xmmword [rbp - 0x38], xmm6
mov dword [rbp - 0x28], 7
mov qword [rbp - 0x24], 0
mov word [rbp - 0x1c], 0
mov byte [rbp - 0x20], 1
lea r8, [rbp - 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.140036240
mov rdi, rdx
test rax, rax
je 0x14001a2de
mov qword [rbp + 0x20], rax
lea rcx, [rbp + 0x28]
mov qword [rbp + 0x28], rdi
call fcn.140015c40
mov qword [rsi], 0
jmp 0x14001a481
movaps xmmword [rbp + 0x40], xmm6
movaps xmmword [rbp + 0x30], xmm6
movaps xmmword [rbp + 0x20], xmm6
mov dword [rbp + 0x50], 0
lea rdx, [rbp + 0x20]
mov rcx, rdi
call sub.kernel32.dll_GetFileInformationByHandle
test eax, eax
je 0x14001a387
test dword [rbp + 0x20], 0x400
je 0x14001a331
mov qword [rbp + 0x18], 0
lea r8, [rbp + 0x18]
mov rcx, rdi
mov edx, 9
mov r9d, 8
call sub.kernel32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x14001a387
mov r12d, dword [rbp + 0x40]
mov r15d, dword [rbp + 0x44]
test rdi, rdi
je 0x14001a3cd
mov qword [rbp + 0x20], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp + 0x20]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x14001a450
mov rbx, qword [rbp + 0x20]
jmp 0x14001a3cf
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 2
call fcn.140015c40
mov qword [rsi], 0
mov rcx, rdi
movaps xmm6, xmmword [rbp + 0x60]
add rsp, 0xf0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp sub.kernel32.dll_CloseHandle
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 0x14001a43f
mov r14, rax
shl r12, 0x20
or r12, r15
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.kernel32.dll_CloseHandle
test r15, r15
je 0x14001a43f
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x14001a479
mov qword [rsi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x14001a479
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x40], 1
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x38], rax
call fcn.140015c40
mov qword [rsi], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
movaps xmm6, xmmword [rbp + 0x60]
add rsp, 0xf0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x14002fc70
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 0x140030147
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 0x140036fc0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
add byte [rax - 0x77], cl
invalid
movabs rdi, 0x8000000000000000
lea rcx, [rbp - 0x60]
call fcn.1400364c0
mov rax, qword [rbp - 0x60]
cmp rax, rdi
jne 0x14003700b
lea rcx, [rbp - 0x58]
call fcn.140015c40
mov qword [rsi], rdi
jmp 0x140037244
mov qword [rbp + 0x3f0], rsi
mov qword [rbp + 0x3e8], rax
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x3f8], rax
mov qword [rbp + 0x400], 0
mov qword [rbp + 0x408], 2
mov qword [rbp + 0x410], 0
mov r8d, 0x200
mov eax, 2
add al, byte [rax]
add byte [rax], al
Function at 0x14003a240
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
sub esp, 0x28
Function at 0x1400415a0
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.1400364c0
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
cmp rcx, rbx
jne 0x1400415de
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], rbx
jmp 0x140041604
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.1400414c0
mov r14, qword [rbp - 0x10]
cmp r14, rbx
jne 0x14004161d
lea rcx, [rbp - 8]
call fcn.140015c40
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 0x14004163f
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x140041610
mov qword [rsi], rbx
test r14, r14
je 0x140041610
mov edx, 2
mov rcx, rdi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp fcn.1400014a0
Function at 0x1400433b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10a8
call fcn.140049ca0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1010], xmm6
mov rsi, rdx
mov r14, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call sub.msvcrt.dll_memset
xorps xmm6, xmm6
lea r12, [rbp + 0x1004]
lea rdi, case.0x140038c85.174
lea rbx, [rbp + 0xfc0]
mov qword [rbp + 0xfe8], r14
mov dword [rbp + 0x1004], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
mov qword [rbp + 0xfd8], r12
mov qword [rsp + 0x20], rdi
mov rcx, r14
mov rdx, r13
mov r8d, 0x1000
mov r9, rbx
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x1400435e6
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.kernel32.dll_SleepEx
cmp dword [rbp + 0x1004], 0
je 0x140043460
mov eax, dword [rbp + 0x1008]
mov r15d, dword [rbp + 0x100c]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
xor edx, edx
test eax, eax
setne dl
cmovne r15, rcx
mov qword [rbp + 0xff0], rdx
mov qword [rbp + 0xff8], r15
jne 0x14004360b
test r15, r15
je 0x1400435b7
cmp r15, 0x1000
ja 0x140043784
xor r14d, r14d
nop dword [rax + rax]
mov r8d, r15d
sub r8d, r14d
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0x1004], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
mov qword [rbp + 0xfd8], r12
mov qword [rsp + 0x20], rdi
mov rcx, rsi
mov r9, rbx
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x14004358c
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.kernel32.dll_SleepEx
cmp dword [rbp + 0x1004], 0
je 0x140043520
mov ecx, dword [rbp + 0x1008]
mov eax, dword [rbp + 0x100c]
mov rdx, rcx
shl rdx, 0x20
or rdx, 2
xor r8d, r8d
test ecx, ecx
setne r8b
cmove rdx, rax
mov qword [rbp + 0xff0], r8
mov qword [rbp + 0xff8], rdx
jne 0x1400435ab
add r14, rax
cmp r14, r15
je 0x140043580
jbe 0x1400434d0
jmp 0x140043770
mov r14, qword [rbp + 0xfe8]
jmp 0x140043411
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xff0], 1
mov qword [rbp + 0xff8], rax
lea rcx, [rbp + 0xff8]
call fcn.140015c40
call sub.kernel32.dll_GetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
mov qword [rbp + 0xff0], 1
mov qword [rbp + 0xff8], r15
mov rcx, r15
mov eax, ecx
and eax, 3
shr rcx, 0x20
cmp eax, 2
jne 0x140043630
call fcn.140017960
cmp ecx, 0x28
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r14
mov rdx, r15
call fcn.1400060d0
jmp 0x140043798
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.140004d10
ud2
Function at 0x140045bb0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140045cf1
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
je 0x140045cc6
sub r8, rdx
add rdx, qword [rbx + 8]
mov rax, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp r8, rcx
cmovae r8, rcx
mov dword [rbp - 0x38], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x140045c2f
mov eax, dword [rbp - 0x38]
mov ecx, 2
test rax, rax
je 0x140045c70
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x140045c74
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x38], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x140045c78
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x140045ca2
mov rax, rbp
jmp 0x140045c84
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x140045ca8
mov qword [rbp], 1
lea rax, [rbp - 8]
mov qword [rax], 0
lea rcx, [rbp - 0x38]
call fcn.140015c40
mov rcx, qword [rbp]
mov rax, qword [rbp - 8]
cmp rcx, 2
jne 0x140045cb3
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
test rcx, rcx
jne 0x140045c18
mov ecx, 1
jmp 0x140045c22
test r8, r8
mov ecx, 0x10
mov eax, 1
cmove rax, rcx
mov rcx, rbx
mov rdx, r8
mov r8, rax
call fcn.140019fd0
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x140045be1
mov qword [rbp - 0x38], 0
lea rdx, [rbp - 0x38]
mov rcx, rdi
call fcn.140045d10
int3

Function at 0x14004a9d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14004b7a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14004b7a0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]