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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
test rdx, rdx
mov rbx, rcx
mov rsi, rdx
je 0x14000fb18
cmp eax, 1
je 0x14000fa4b
call fcn.14000e970
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.14000e2f0
mov r12d, dword [rbx]
test r12d, r12d
je 0x14000fa60
cmp r12d, 1
jne 0x14000faf0
mov rcx, rbp
call fcn.14000e5e0
test rdi, rdi
je 0x14000fa4b
mov rcx, rdi
call fcn.14000ed10
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x14000edf0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14000f070
mov ecx, dword [0x140028128]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x14000fb58
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14000f070
mov ecx, dword [0x140028128]
call r12
test rax, rax
je 0x14000fb40
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14000f070
mov ecx, dword [0x140028128]
call r12
test rax, rax
je 0x14000fb30
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x14000fa36
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.14000dcf0
jmp 0x14000fa36
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14000f120
test rax, rax
jne 0x14000fad9
jmp 0x140027695
call fcn.14000f120
test rax, rax
jne 0x14000fab5
jmp 0x1400276ae
call fcn.14000f120
test rax, rax
jne 0x14000fa8f
jmp 0x1400276a4
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x14000fde0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.14000f070
mov ecx, dword [0x140028128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14000fe58
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140012930
cmp esi, dword [rbx + 0x48]
jae 0x14000fe33
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14000fe33
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140012970
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14000f120
mov rbx, rax
jmp 0x14000fe0d
Function at 0x14000fe70
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14000f070
mov ecx, dword [0x140028128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14000ff80
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.140012930
cmp esi, dword [rbx + 0x48]
jae 0x14000ff00
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call fcn.140012970
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
test rax, rax
mov rdi, rax
je 0x14000ff8d
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x14000ff8d
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x14000fec4
call fcn.14000f120
mov rbx, rax
jmp 0x14000feaf
mov rcx, r14
call fcn.140012970
mov eax, 0xc
jmp 0x14000fee2

Function at 0x140010010
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14000f070
mov ecx, dword [0x140028128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010038
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14000f120
test rax, rax
jne 0x14001002a
add rsp, 0x28
ret

Function at 0x1400100a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14000f070
mov ecx, dword [0x140028128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400100c8
add rax, 0x18
add rsp, 0x28
ret
call fcn.14000f120
test rax, rax
jne 0x1400100ba
jmp 0x1400100be

Function at 0x1400101e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140036208]
test eax, eax
jne 0x1400101f8
xor eax, eax
add rsp, 0x28
ret
call fcn.14000f070
mov ecx, dword [0x140028128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010228
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x1400101ee
test byte [rax + 0x40], 3
je 0x1400101ee
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x1400101f0
call fcn.14000f120
test rax, rax
jne 0x14001020e
jmp 0x1400101ee
Function at 0x140010240
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14000f070
mov ecx, dword [0x140028128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010280
test ebx, ebx
jle 0x140010270
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.14000f120
test rax, rax
jne 0x14001025d
add rsp, 0x20
pop rbx
ret

Function at 0x140010370
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14000f070
mov ecx, dword [0x140028128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400103e8
test byte [rbx + 0x40], 0xc
jne 0x14001039f
mov eax, dword [0x140036208]
test eax, eax
jne 0x1400103b0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14000e2f0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400103d3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400103d3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400103fc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14000e5e0
call fcn.14000f120
test rax, rax
mov rbx, rax
jne 0x14001038f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001041a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14000e5e0
call fcn.140010290
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400104a0
call fcn.140011ac0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400104d8
call fcn.14000f070
mov ecx, dword [0x140028128]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140010530
test esi, esi
je 0x1400104b6
call fcn.140010370
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140010510
mov edx, edi
call fcn.140011b70
call fcn.140010370
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14000f070
mov ecx, dword [0x140028128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010520
call fcn.140010370
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140010370
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14000f070
mov ecx, dword [0x140028128]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x140010475
call fcn.14000f120
mov rbx, rax
jmp 0x140010475
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001048e
call fcn.14000f120
jmp 0x1400104b6
call fcn.14000f120
mov rbx, rax
jmp 0x140010471
Function at 0x140010430
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14000f070
mov ecx, dword [0x140028128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400103e8
test byte [rbx + 0x40], 0xc
jne 0x14001039f
mov eax, dword [0x140036208]
test eax, eax
jne 0x1400103b0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14000e2f0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400103d3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400103d3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400103fc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14000e5e0
call fcn.14000f120
test rax, rax
mov rbx, rax
jne 0x14001038f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001041a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14000e5e0
call fcn.140010290
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400104a0
call fcn.140011ac0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400104d8
call fcn.14000f070
mov ecx, dword [0x140028128]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140010530
test esi, esi
je 0x1400104b6
call fcn.140010370
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140010510
mov edx, edi
call fcn.140011b70
call fcn.140010370
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14000f070
mov ecx, dword [0x140028128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010520
call fcn.140010370
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140010370
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14000f070
mov ecx, dword [0x140028128]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x140010475
call fcn.14000f120
mov rbx, rax
jmp 0x140010475
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001048e
call fcn.14000f120
jmp 0x1400104b6
call fcn.14000f120
mov rbx, rax
jmp 0x140010471

Function at 0x140010540
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14000f070
mov ecx, dword [0x140028128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400105b0
test esi, esi
je 0x140010590
call fcn.140010370
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400105c0
mov edx, esi
call fcn.140011b70
call fcn.140010370
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140010370
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140010370
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14000f120
mov rbx, rax
jmp 0x140010561
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001057a
Function at 0x140010b80
Capabilities:
Create thread
Get thread local storage value
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, rcx
mov rdi, rdx
mov rsi, r8
mov r12, r9
call fcn.14000ee20
test rax, rax
mov rbx, rax
je 0x140010db7
test rbp, rbp
je 0x140010bbb
mov rax, qword [rax + 0x1d8]
mov qword [rbp], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rbx + 8], r12
mov r12, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
xor esi, esi
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0x44], 1
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r13
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call r12
test rax, rax
mov qword [rbx + 0x30], rax
jne 0x140010c30
test esi, esi
jne 0x140010c20
xor ecx, ecx
mov esi, 1
call r14
jmp 0x140010bef
add esi, 1
mov ecx, 0x14
call r13
cmp esi, 5
jne 0x140010bef
lea r12, [rbx + 0x68]
mov qword [rbx + 0x38], 0xffffffffffffffff
mov rcx, r12
call fcn.140012920
cmp eax, 1
je 0x140010e07
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x140010da0
xor edx, edx
test rdi, rdi
je 0x140010c9d
mov eax, dword [rdi]
mov rsi, qword [rdi + 0x10]
test al, 8
mov dword [rbx + 0x44], eax
jne 0x140010dc8
mov eax, dword [rdi + 0x18]
mov edx, esi
mov dword [rbx + 0xc0], eax
xor ecx, ecx
mov dword [rsp + 0x20], 4
mov r9, rbx
mov qword [rsp + 0x28], 0
lea r8, [0x14000f3d0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140010d68
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x140010d40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
jne 0x140010d20
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140010d07
cmp eax, 0xffffffff
mov edx, 0xfffffffe
jl 0x140010ce1
mov edx, 2
cmp eax, edx
cmovle edx, eax
cmp eax, 0xf
mov eax, 0xf
cmovge edx, eax
jmp 0x140010ce1
mov rcx, qword [rbx + 0x30]
lea rsi, [rbx + 0x38]
test rcx, rcx
je 0x140010d7b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.14000e770
mov rcx, r12
call fcn.140012920
cmp eax, 1
je 0x140010e07
pxor xmm0, xmm0
mov qword [rbx + 0x68], 0xffffffffffffffff
movups xmmword [rbx + 0x28], xmm0
test rbp, rbp
je 0x140010dad
mov qword [rbp], 0
cmp qword [rbx + 0x1d0], 0
je 0x140010df0
mov eax, 0xb
jmp 0x140010d11
call fcn.14000f070
mov ecx, dword [0x140028128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010e00
mov eax, dword [rax + 0xc0]
jmp 0x140010c95
mov rcx, rbx
call fcn.14000eef0
jmp 0x140010db7
call fcn.14000f120
jmp 0x140010dde
call fcn.14000ebf0
nop
nop dword [rax]
Function at 0x140003c6b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
cmp qword [rdx], 0
je 0x140003cae
lea rax, [rdx + 8]
cmp qword [rdx + 0x38], 0xffffffffffffffff
mov r8, qword [rdx + 0x48]
mov r9, qword [rdx + 0x50]
mov r10, qword [rdx + 0x58]
mov rdx, qword [rdx + 0x60]
je 0x140003da6
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r10
mov byte [rsp + 0x30], 0
jmp 0x140003db5
mov r11b, byte [rdx + 0x1a]
mov r8, qword [rdx + 8]
mov rax, qword [rdx + 0x48]
mov r9, qword [rdx + 0x50]
mov bl, byte [rdx + 0x18]
xor r10d, r10d
test r11b, r11b
jne 0x140003dda
mov esi, ebx
xor sil, 1
mov byte [rdx + 0x18], sil
mov rsi, r9
test r8, r8
je 0x140003cf9
mov rsi, r9
sub rsi, r8
jbe 0x140003cf3
cmp byte [rax + r8], 0xbf
jg 0x140003cf9
jmp 0x140003de8
jne 0x140003de8
test rsi, rsi
je 0x140003dbf
mov bpl, byte [rax + r8]
movzx esi, bpl
test sil, sil
jns 0x140003d63
mov edi, esi
and edi, 0x1f
movzx r14d, byte [rax + r8 + 1]
and r14d, 0x3f
cmp sil, 0xdf
jbe 0x140003d54
movzx esi, byte [rax + r8 + 2]
shl r14d, 6
and esi, 0x3f
or esi, r14d
cmp bpl, 0xf0
jb 0x140003d5e
movzx ebp, byte [rax + r8 + 3]
and edi, 7
shl edi, 0x12
shl esi, 6
and ebp, 0x3f
or ebp, esi
or ebp, edi
mov esi, ebp
jmp 0x140003d63
shl edi, 6
or edi, r14d
mov esi, edi
jmp 0x140003d63
shl edi, 0xc
or esi, edi
test bl, bl
jne 0x140003dc3
cmp esi, 0x110000
je 0x140003dd3
mov edi, 1
cmp esi, 0x80
jb 0x140003d98
mov edi, 2
cmp esi, 0x800
jb 0x140003d98
cmp esi, 0x10000
mov edi, 4
sbb rdi, 0
add r8, rdi
mov qword [rdx + 8], r8
mov bl, 1
jmp 0x140003cc4
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r10
mov byte [rsp + 0x30], 1
mov rdx, rax
call fcn.140001bf8
jmp 0x140003ddd
test bl, bl
je 0x140003dd3
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov r10d, 1
jmp 0x140003dda
mov byte [rdx + 0x1a], 1
xor r10d, r10d
mov qword [rcx], r10
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea rcx, str._rustc_aedd173a2c086e558c2b66d3743b344f977621a7librarycore_src_strpattern.rs
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov rdx, r9
call fcn.140053520
int3
Function at 0x140003e7a
Capabilities:
Create thread
Inject thread

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov r8d, ecx
mov qword [rbp - 0x10], rdx
mov rax, qword [rdx + 8]
mov qword [rbp - 8], rax
push 1
pop rdx
mov ecx, 0x1fffff
call qword [sym.imp.kernel32.dll_OpenProcess]
mov rsi, rax
mov rax, qword [rbp - 0x10]
mov rbx, qword [rax + 0x10]
mov dword [rsp + 0x20], 4
mov rcx, rsi
xor edx, edx
mov r8, rbx
mov r9d, 0x1000
call qword [sym.imp.kernel32.dll_VirtualAllocEx]
mov rdi, rax
lea rax, [rbp - 0x20]
and qword [rax], 0
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov rdx, rdi
mov r8, qword [rbp - 8]
mov r9, rbx
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
lea rax, [rbp - 0x14]
and dword [rax], 0
mov qword [rsp + 0x20], rax
push 0x20
pop r9
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call qword [sym.imp.kernel32.dll_VirtualProtectEx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.kernel32.dll_CreateRemoteThreadEx]
mov rax, qword [rbp - 0x10]
mov rcx, qword [rax]
mov rdx, qword [rbp - 8]
call fcn.14001ef33
nop
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret

Function at 0x140003f7e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp], 0xfffffffffffffffe
mov qword [rbp - 8], rcx
mov rsi, qword [rcx + 0x10]
push 0x40
pop r9
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x3000
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov rbx, rax
mov rax, qword [rbp - 8]
mov rdi, qword [rax + 8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call fcn.140052bbb
call rbx
mov rax, qword [rbp - 8]
mov rcx, qword [rax]
mov rdx, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
jmp fcn.14001ef33
Function at 0x140019fa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
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 0x14001a030
cmp r11, r10
ja 0x14001a0a6
cmp r10, rdx
ja 0x14001a0b8
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14001a032
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14001a010
jmp 0x14001a094
ja 0x14001a03a
mov r11, r10
cmp rax, r8
jne 0x140019fd4
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 0x14001a070
mov rdi, r8
sub ecx, edx
jns 0x14001a08b
jmp 0x14001a096
cmp r8, rsi
je 0x14001a0c7
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14001a096
xor al, 1
cmp rdi, rsi
jne 0x14001a050
jmp 0x14001a096
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str._b__n_
mov rcx, r11
mov rdx, r10
call fcn.140053220
lea r8, str._b__n_
mov rcx, r10
call fcn.140052f60
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.1400533a0
int3
Function at 0x14001e691
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
not ecx
lea rax, [0x1400a94c8]
mov r9d, 0xff
cmp r8, 0x40
jb 0x14001e7a7
mov r10, r8
shr r10, 4
xor r11d, r11d
cmp r11, 4
je 0x14001e6a7
cmp r10, r11
je 0x14001e7d2
movzx edi, byte [rdx + 0xf]
movzx esi, byte [rdx + 0xe]
mov esi, dword [rax + rsi*4 + 0x400]
xor esi, dword [rax + rdi*4]
movzx edi, byte [rdx + 0xd]
xor esi, dword [rax + rdi*4 + 0x800]
movzx edi, byte [rdx + 0xc]
xor esi, dword [rax + rdi*4 + 0xc00]
movzx edi, byte [rdx + 0xb]
xor esi, dword [rax + rdi*4 + 0x1000]
movzx edi, byte [rdx + 0xa]
xor esi, dword [rax + rdi*4 + 0x1400]
movzx edi, byte [rdx + 9]
xor esi, dword [rax + rdi*4 + 0x1800]
movzx edi, byte [rdx + 8]
xor esi, dword [rax + rdi*4 + 0x1c00]
movzx edi, byte [rdx + 7]
xor esi, dword [rax + rdi*4 + 0x2000]
movzx edi, byte [rdx + 6]
xor esi, dword [rax + rdi*4 + 0x2400]
movzx edi, byte [rdx + 5]
xor esi, dword [rax + rdi*4 + 0x2800]
movzx edi, byte [rdx + 4]
xor esi, dword [rax + rdi*4 + 0x2c00]
mov edi, ecx
shr edi, 0x18
movzx ebx, byte [rdx + 3]
xor ebx, edi
xor esi, dword [rax + rbx*4 + 0x3000]
mov edi, ecx
shr edi, 0x10
and edi, r9d
movzx ebx, byte [rdx + 2]
xor ebx, edi
xor esi, dword [rax + rbx*4 + 0x3400]
mov edi, ecx
shr edi, 8
and edi, r9d
movzx ebx, byte [rdx + 1]
xor ebx, edi
xor esi, dword [rax + rbx*4 + 0x3800]
and ecx, r9d
movzx edi, byte [rdx]
xor edi, ecx
xor esi, dword [rax + rdi*4 + 0x3c00]
inc r11
add r8, 0xfffffffffffffff0
add rdx, 0x10
mov ecx, esi
jmp 0x14001e6bb
xor r9d, r9d
cmp r8, r9
je 0x14001e7c6
mov r10b, byte [rdx + r9]
xor r10b, cl
movzx r10d, r10b
shr ecx, 8
xor ecx, dword [rax + r10*4]
inc r9
jmp 0x14001e7aa
not ecx
mov eax, ecx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rax, str.C:UsersAdministrator.cargo_registry_srcmirrors.ustc.edu.cn_4affec411d11e50fcrc32fast_1.3.2_src_baseline.rs
mov ecx, 0xf
mov rdx, r8
mov r8, rax
call fcn.140052ee0
int3
Function at 0x140022981
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call fcn.140024ac6
test rax, rax
je 0x1400229bf
lea rdx, [0x1400af6e0]
mov rcx, rax
call fcn.140021ef1
mov rax, qword [rdi + 0x30]
jmp 0x140022a04
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x40]
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx], xmm0
lea rbx, [rsp + 0x60]
mov rcx, rbx
call fcn.140022cc1
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x28]
mov qword [rdi + 0x28], rax
movups xmm0, xmmword [rbx + 0x18]
movups xmmword [rdi + 0x18], xmm0
movups xmm0, xmmword [rbx + 8]
movups xmmword [rdi + 8], xmm0
mov rax, qword [rdi + 0x30]
mov qword [rdi], rcx
and qword [rdi + 0x40], 0
add rax, 0xffffffffffffff00
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
jmp fcn.140021f5c
Function at 0x140024ac6
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 rbp
push rbx
sub rsp, 0x28
mov rdi, rcx
mov r12d, 0x20
mov r13d, 0xffffffff
mov rbp, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov rsi, qword [sym.imp.advapi32.dll_SystemFunction036]

Function at 0x1400283c0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140012e60
cmp rax, rcx
je 0x1400283e5
cmp rdx, 4
jae 0x1400283e8
xor eax, eax
xor r8d, r8d
jmp 0x140028480
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400556a0]
movdqa xmm3, xmmword [0x1400556b0]
pxor xmm1, xmm1
nop dword [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 0x140028410
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140028497
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140028480
ret