joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140f46058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140f461df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140f46089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f4606f
add dl, dl
jne 0x140f46096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f460f6
xor eax, eax
add dl, dl
jne 0x140f460a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f461ad
add dl, dl
jne 0x140f460b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f460c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f460d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f460dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140f460ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140f4607e
mov eax, 1
add dl, dl
jne 0x140f46106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f46113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f460fb
sub eax, ebx
mov ebx, 1
jne 0x140f4614c
mov ecx, 1
add dl, dl
jne 0x140f4612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f4613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f46123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f4607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140f46168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f46175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f4615d
cmp eax, 0x7d00
jae 0x140f4619b
cmp eax, 0x500
jb 0x140f46196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f4607e
cmp eax, 0x7f
ja 0x140f4619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f4607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140f461d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140f4607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001487
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
aesimc xmm0, xmmword [rdx + 0x10]
aesimc xmm1, xmmword [rdx + 0x20]
aesimc xmm2, xmmword [rdx + 0x30]
aesimc xmm3, xmmword [rdx + 0x40]
aesimc xmm4, xmmword [rdx + 0x50]
aesimc xmm5, xmmword [rdx + 0x60]
aesimc xmm6, xmmword [rdx + 0x70]
aesimc xmm7, xmmword [rdx + 0x80]
aesimc xmm8, xmmword [rdx + 0x90]
movaps xmm9, xmmword [rdx]
movaps xmm10, xmmword [rdx + 0xa0]
movaps xmmword [rcx], xmm9
movdqa xmmword [rcx + 0x10], xmm0
movdqa xmmword [rcx + 0x20], xmm1
movdqa xmmword [rcx + 0x30], xmm2
movdqa xmmword [rcx + 0x40], xmm3
movdqa xmmword [rcx + 0x50], xmm4
movdqa xmmword [rcx + 0x60], xmm5
movdqa xmmword [rcx + 0x70], xmm6
movdqa xmmword [rcx + 0x80], xmm7
movdqa xmmword [rcx + 0x90], xmm8
movaps xmmword [rcx + 0xa0], xmm10
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x140002079
Capabilities:
Get system information on windows

Disassembly:
mov edx, 0x10101
jmp fcn.14004c9bb
Function at 0x14000ce30
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 0x14000ceb0
cmp r10, r11
jb 0x14000cf27
cmp r10, rdx
ja 0x14000cf39
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x14000ceb2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000ce90
jmp 0x14000cf14
ja 0x14000ceba
mov r11, r10
cmp rax, r8
jne 0x14000ce5e
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 0x14000cef0
mov rdi, r8
sub ecx, edx
jns 0x14000cf0b
jmp 0x14000cf16
cmp r8, rsi
je 0x14000cf48
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000cf16
xor al, 1
cmp rdi, rsi
jne 0x14000ced0
jmp 0x14000cf16
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 fcn.14000b820
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14000a510
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14000b890
int3

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, dword [0x140051020]
test esi, esi
je 0x140012376
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
cmp rax, 1
ja 0x14001236b
je 0x140012369
call fcn.14000e86f
call fcn.14000ea97
mov rbx, rax
mov ecx, 0x10
mov edx, 8
call fcn.14000e65d
mov rdi, rax
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rbx, rax
mov ecx, esi
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
test rbx, rbx
je 0x14001236b
mov rcx, rbx
call fcn.14000dec3
jmp 0x14001236b
xor edi, edi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140051008]
call fcn.14001e450
mov esi, eax
jmp 0x14001230f
Function at 0x1400126a3
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rcx
mov esi, dword [0x140051100]
test esi, esi
je 0x140012731
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rbx, rax
cmp rax, 1
ja 0x140012724
je 0x1400126e4
test rdi, rdi
je 0x1400126e8
mov r14, qword [rdi]
and qword [rdi], 0
test r14, r14
je 0x1400126eb
mov r14, qword [rdi + 8]
jmp 0x1400126eb
xor ebx, ebx
jmp 0x140012724
xor r14d, r14d
mov ecx, 0x10
mov edx, 8
call fcn.14001172a
mov rbx, rax
mov qword [rax], r14
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 0x140012724
mov rcx, rdi
call fcn.140012032
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400510e8]
call fcn.14001e450
mov esi, eax
jmp 0x1400126bb
jmp 0x1400126a3
Function at 0x1400191a0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x1400191c5
cmp rax, rcx
je 0x1400191cb
cmp rdx, 4
jae 0x1400191d2
xor eax, eax
xor r8d, r8d
jmp 0x140019270
pop rbp
jmp fcn.14000a0a0
xor eax, eax
jmp 0x140019287
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140052430]
movdqa xmm3, xmmword [0x140052440]
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 0x140019200
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140019287
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140019270
pop rbp
ret
Function at 0x14001a1a0
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 0x14001a221
mov r11, qword [rcx + 8]
mov r8, qword [rcx + 0x10]
cmp r8, r11
jae 0x14001a221
movzx eax, byte [r10 + r8]
cmp eax, 0x49
mov rbx, rcx
je 0x14001a23a
cmp eax, 0x42
jne 0x14001a221
lea rsi, [r8 + 1]
mov qword [rcx + 0x10], rsi
cmp rsi, r11
jae 0x14001a2ec
cmp byte [r10 + rsi], 0x5f
jne 0x14001a2ec
lea rax, [r8 + 2]
mov qword [rcx + 0x10], rax
xor eax, eax
cmp rax, r8
jae 0x14001a36b
mov edx, dword [rcx + 0x18]
inc edx
cmp edx, 0x1f4
jbe 0x14001a3c8
mov sil, 1
xor r9d, r9d
jmp 0x14001a370
xor edx, edx
call fcn.140015d90
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.140015d90
test al, al
jne 0x14001a3ae
mov rdx, rbx
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001a279
lea rdx, [0x1403e7e6b]
mov r8d, 1
call fcn.14000a580
mov rdx, rbx
test al, al
jne 0x14001a3ae
mov rax, qword [rdx]
mov sil, 1
test rax, rax
je 0x14001a22d
xor r14d, r14d
lea rdi, [0x1403e81c1]
nop
mov rcx, qword [rdx + 0x10]
cmp rcx, qword [rdx + 8]
jae 0x14001a2a4
cmp byte [rax + rcx], 0x45
je 0x14001a401
sub r14, 1
jb 0x14001a2cc
mov rcx, qword [rdx + 0x20]
test rcx, rcx
je 0x14001a2cc
mov r8d, 2
mov rdx, rdi
call fcn.14000a580
mov rdx, rbx
test al, al
jne 0x14001a3ae
mov rcx, rdx
call fcn.1400175a0
test al, al
jne 0x14001a3ae
mov rdx, rbx
mov rax, qword [rbx]
test rax, rax
jne 0x14001a290
jmp 0x14001a22d
xor eax, eax
mov edi, 0x3e
nop word cs:[rax + rax]
mov r9b, 1
cmp rsi, r11
jae 0x14001a36e
movzx edx, byte [r10 + rsi]
cmp dl, 0x5f
je 0x14001a352
lea r14d, [rdx - 0x30]
cmp r14b, 0xa
jb 0x14001a33b
lea r14d, [rdx - 0x61]
cmp r14b, 0x1a
jae 0x14001a32b
add dl, 0xa9
jmp 0x14001a338
lea r14d, [rdx - 0x41]
cmp r14b, 0x1a
jae 0x14001a36e
add dl, 0xe3
mov r14d, edx
inc rsi
mov qword [rcx + 0x10], rsi
mul rdi
jo 0x14001a36e
movzx edx, r14b
add rax, rdx
jae 0x14001a300
jmp 0x14001a36e
inc rsi
mov qword [rcx + 0x10], rsi
cmp rax, 0xffffffffffffffff
je 0x14001a36e
inc rax
cmp rax, r8
jb 0x14001a205
mov r9b, 1
xor esi, esi
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x14001a3b6
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, [0x1403e81a0]
test r9b, r9b
cmovne rdx, rcx
mov rcx, rax
call fcn.14000a580
mov rcx, rbx
test al, al
je 0x14001a3b6
mov sil, 2
jmp 0x14001a22d
mov qword [rcx], 0
mov byte [rcx + 8], sil
xor esi, esi
jmp 0x14001a22d
cmp qword [rcx + 0x20], 0
je 0x14001a3c1
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.14001a1a0
movaps xmm0, xmmword [rbp - 0x20]
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14001a22f
inc rcx
mov qword [rdx + 0x10], rcx
jmp 0x14001a22d
Function at 0x14001e1d0
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 [0x1400510c0]
test esi, esi
je 0x14001e275
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14001e26c
je 0x14001e219
test rdi, rdi
je 0x14001e21d
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x14001e21f
mov rbx, qword [rdi + 8]
jmp 0x14001e21f
xor eax, eax
jmp 0x14001e26c
xor ebx, ebx
movzx eax, byte [0x1403f6148]
mov edx, 0x10
xor ecx, ecx
call fcn.1400417c0
test rax, rax
je 0x14001e288
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 0x14001e269
mov edx, 8
mov rcx, rdi
call fcn.140007e10
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400510a8]
call fcn.14001e450
mov esi, eax
jmp 0x14001e1f0
mov ecx, 8
mov edx, 0x10
call fcn.140008e80
int3

Function at 0x14001e2a0
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 [0x1400510e0]
test esi, esi
je 0x14001e340
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14001e337
je 0x14001e335
movzx eax, byte [0x1403f6148]
mov edx, 0x10
xor ecx, ecx
call fcn.1400417c0
test rax, rax
je 0x14001e353
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 0x14001e330
mov rax, qword [rdi]
test rax, rax
je 0x14001e323
lock dec qword [rax]
jne 0x14001e323
mov rcx, qword [rdi]
call fcn.14001c820
mov edx, 8
mov rcx, rdi
call fcn.140007e10
mov rax, rsi
jmp 0x14001e337
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400510c8]
call fcn.14001e450
mov esi, eax
jmp 0x14001e2bd
mov ecx, 8
mov edx, 0x10
call fcn.140008e80
int3
Function at 0x14001e450
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 0x14001e4e5
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 0x14001e524
cmp dword [rbp], 0
je 0x14001e508
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14001e539
mov edi, eax
mov rax, qword [0x1403f9038]
mov rax, qword [0x1403f6138]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1403f6138], rsi
jne 0x14001e4c0
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 0x14001e519
call sub.kernel32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x14001e57b
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14001e50d
mov edi, dword [rbp + 4]
jmp 0x14001e519
mov edi, dword [rsi + 0x18]
jmp 0x14001e517
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.14001e5b0
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.140009b90
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.14001e600
int3

Function at 0x14001eb60
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 [0x140051080]
test esi, esi
je 0x14001ebea
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14001ebe1
je 0x14001ebdf
movzx eax, byte [0x1403f6148]
mov edx, 0x18
xor ecx, ecx
call fcn.1400417c0
test rax, rax
je 0x14001ebfd
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 0x14001ebda
mov edx, 8
mov rcx, rdi
call fcn.140007e10
mov rax, rsi
jmp 0x14001ebe1
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140051068]
call fcn.14001e450
mov esi, eax
jmp 0x14001eb79
mov ecx, 8
mov edx, 0x18
call fcn.140008e80
int3
Function at 0x140021ab0
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov rax, r8
mov rsi, rcx
mov dword [rbp - 0x48], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x30], 7
mov qword [rbp - 0x2c], 0
mov word [rbp - 0x24], 0
mov byte [rbp - 0x28], 1
lea r8, [rbp - 0x48]
mov rcx, rdx
mov rdx, rax
call fcn.14003da70
mov rdi, rdx
test rax, rax
je 0x140021b21
mov rcx, rdi
call fcn.14001d170
mov qword [rsi], 0
jmp 0x140021c47
lea rcx, [rbp - 0x48]
mov rdx, rdi
call fcn.14003dcf0
cmp dword [rbp - 0x48], 2
jne 0x140021b5c
mov rcx, qword [rbp - 0x40]
call fcn.14001d170
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp sub.kernel32.dll_CloseHandle
mov r12, qword [rbp - 0x10]
test rdi, rdi
je 0x140021baa
mov qword [rbp - 0x48], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp - 0x48]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x140021c26
mov rbx, qword [rbp - 0x48]
jmp 0x140021bac
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 0x140021c15
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 sub.kernel32.dll_CloseHandle
test r15, r15
je 0x140021c15
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x140021c3f
mov qword [rsi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x140021c3f
call sub.kernel32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
call fcn.14001d170
mov qword [rsi], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
nop
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x140037490
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 0x140037967
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 0x140039310
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 0x1400395a8
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 0x1400405d0
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 [0x1400510a0]
test esi, esi
je 0x140040670
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140040667
je 0x140040665
movzx eax, byte [0x1403f6148]
mov edx, 0x10
xor ecx, ecx
call fcn.1400417c0
test rax, rax
je 0x140040683
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 0x140040660
mov rax, qword [rdi]
test rax, rax
je 0x140040653
lock dec qword [rax]
jne 0x140040653
mov rcx, qword [rdi]
call fcn.1400406a0
mov edx, 8
mov rcx, rdi
call fcn.140007e10
mov rax, rsi
jmp 0x140040667
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140051088]
call fcn.14001e450
mov esi, eax
jmp 0x1400405ed
mov ecx, 8
mov edx, 0x10
call fcn.140008e80
int3

Function at 0x140043c70
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
mov r9, rcx
mov ecx, 0xfffffff4
pop rbp
jmp fcn.14001d580

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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rcx
mov esi, dword [0x140051120]
test esi, esi
je 0x1400456e4
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rbx, rax
cmp rax, 1
ja 0x1400456d7
je 0x14004568f
test rdi, rdi
je 0x140045693
cmp dword [rdi], 0
je 0x140045698
mov r14, qword [rdi + 4]
jmp 0x14004569b
xor ebx, ebx
jmp 0x1400456d7
xor r14d, r14d
xor r14d, r14d
and dword [rdi], 0
lea rcx, [0x140051108]
call fcn.14001e450
mov esi, eax
jmp 0x14004566d

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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rcx
mov esi, dword [0x140051100]
test esi, esi
je 0x140012731
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rbx, rax
cmp rax, 1
ja 0x140012724
je 0x1400126e4
test rdi, rdi
je 0x1400126e8
mov r14, qword [rdi]
and qword [rdi], 0
test r14, r14
je 0x1400126eb
mov r14, qword [rdi + 8]
jmp 0x1400126eb
xor ebx, ebx
jmp 0x140012724
xor r14d, r14d
mov ecx, 0x10
mov edx, 8
call fcn.14001172a
mov rbx, rax
mov qword [rax], r14
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 0x140012724
mov rcx, rdi
call fcn.140012032
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400510e8]
call fcn.14001e450
mov esi, eax
jmp 0x1400126bb
jmp 0x1400126a3
Function at 0x140048929
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x1400489c5
mov rdi, rax
lea rbx, [rsp + 0x30]
and qword [rbx], 0
mov qword [rbx + 8], 8
and qword [rbx + 0x10], 0
movsxd r12, dword [rsp + 0x2c]
shl r12, 3
xor r13d, r13d
lea r14, [rsp + 0x48]
cmp r12, r13
je 0x1400489aa
mov r15, qword [rdi + r13]
mov rcx, r15
call sub.msvcrt.dll_wcslen
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.1400456f7
mov rcx, rbx
mov rdx, r14
call fcn.140048c09
add r13, 8
jmp 0x14004897a
mov rcx, rdi
call sub.kernel32.dll_LocalFree
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
jmp 0x1400489d6
and qword [rsi], 0
mov qword [rsi + 8], 8
and qword [rsi + 0x10], 0
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret