joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140083940
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x1400839d0
jmp 0x1400839bf
jae 0x140083a90
cmp r8, 0x201
jae 0x1400839d0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140083a28
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1400839ff
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400ad620
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140083a51
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140083af8
mov r8d, r14d
cmp r15, r8
jne 0x1400839b0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140083b1b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400839bf
jmp 0x1400839d0
cmp rsi, r8
jb 0x140083b35
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140080d00
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140083ae1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140066670
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140083ac9
jmp 0x140083ae1
lea rcx, str.internal_error:_entered_unreachable_code_
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1400ae570
jmp 0x140083b4a
lea rax, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400aea00
ud2
Function at 0x140083ba0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140218488]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140083be4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140083c4a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140083c81
test eax, eax
js 0x140083c5b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140083c74
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14007d2c0
mov rcx, rax
call fcn.1400770c0
mov ecx, 7
int 0x29
ud2
Function at 0x14008cd70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
je 0x14008cdcb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14008cdcb
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x14008cde6
cmp eax, 0x42
jne 0x14008cdcb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14008ce9a
cmp byte [r8 + r11], 0x5f
jne 0x14008ce9a
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14008cf0e
mov rcx, rsi
xor edx, edx
call fcn.14008bb60
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14008bb60
test al, al
jne 0x14008cfa8
mov r8, qword [rsi + 0x20]
test r8, r8
je 0x14008ce21
lea rcx, [0x14021978e]
mov edx, 1
call fcn.140095150
test al, al
jne 0x14008cfa8
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14008cdda
xor r14d, r14d
lea rbx, [0x140219778]
nop word cs:[rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14008ce59
test rax, rax
je 0x14008ce59
cmp byte [rax + rcx], 0x45
je 0x14008cfd1
sub r14, 1
jb 0x14008ce7d
mov r8, qword [rsi + 0x20]
test r8, r8
je 0x14008ce7d
mov edx, 2
mov rcx, rbx
call fcn.140095150
test al, al
jne 0x14008cfa8
mov rcx, rsi
call fcn.14008c290
test al, al
jne 0x14008cfa8
mov rax, qword [rsi]
test rax, rax
jne 0x14008ce40
jmp 0x14008cdda
xor eax, eax
mov edi, 0x3e
nop word cs:[rax + rax]
mov r9b, 1
cmp r11, r10
jae 0x14008cf6f
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x14008cf02
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14008ceec
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14008cedb
add dl, 0xa9
jmp 0x14008ceea
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14008cf6f
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14008cf6f
movzx edx, bl
add rax, rdx
jae 0x14008ceb0
jmp 0x14008cf6f
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14008cf6f
cmp rax, rcx
jae 0x14008cf6c
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14008cfb0
cmp qword [rsi + 0x20], 0
je 0x14008cfca
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.14008cd70
mov edi, eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
cmp al, 2
jne 0x14008cdda
jmp 0x14008cfa8
mov r9b, 1
xor edi, edi
mov r8, qword [rsi + 0x20]
test r8, r8
je 0x14008cfbf
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rcx, [0x140219738]
test r9b, r9b
cmovne rcx, rax
xor r9b, 1
movzx eax, r9b
lea rdx, [rax + rax*8]
or rdx, 0x10
call fcn.140095150
test al, al
je 0x14008cfbf
mov dil, 2
jmp 0x14008cdda
mov dil, 1
xor r9d, r9d
mov r8, qword [rsi + 0x20]
test r8, r8
jne 0x14008cf7a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14008cdda
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14008cdda
Function at 0x1400920a0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400a1990
mov rax, rcx
neg rcx
test rax, 7
je 0x1400a19ad
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400a1a08
test al, 7
jne 0x1400a19a0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400a19c1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400a1a32
test dh, dh
je 0x1400a1a2c
shr rdx, 0x10
test dl, dl
je 0x1400a1a26
test dh, dh
je 0x1400a1a20
shr rdx, 0x10
test dl, dl
je 0x1400a1a1a
test dh, dh
je 0x1400a1a14
shr edx, 0x10
test dl, dl
je 0x1400a1a0e
test dh, dh
jne 0x1400a19c1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x140098530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400985aa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400985a0
cmp r10, r11
jb 0x140098642
cmp r10, rdx
ja 0x140098656
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400985a2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140098580
jmp 0x140098616
ja 0x1400985aa
mov r11, r10
cmp rax, r8
jne 0x140098552
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x14009861a
mov r9, qword [rsp + 0x78]
lea rdx, [r9 + rax]
cmp rax, 1
mov r8, r9
sbb r8, 0xffffffffffffffff
movzx ecx, cx
mov al, 1
movzx r10d, byte [r9]
test r10b, r10b
jns 0x1400985f0
cmp r8, rdx
je 0x140098628
movzx r9d, byte [r8]
inc r8
and r10d, 0x7f
shl r10d, 8
or r10d, r9d
mov r9, r8
sub ecx, r10d
js 0x14009861c
xor al, 1
xor r8d, r8d
cmp r9, rdx
setne r10b
test r9, r9
je 0x14009861c
mov r8b, r10b
add r8, r9
cmp r9, rdx
jne 0x1400985d0
jmp 0x14009861c
xor eax, eax
jmp 0x14009861c
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_srcunicodeprintable.rs
lea r8, [0x14021e908]
mov edx, 0x2b
call fcn.1400ae570
ud2
lea r8, [0x14021e920]
mov rcx, r11
mov rdx, r10
call fcn.1400aea80
ud2
lea r8, [0x14021e920]
mov rcx, r10
call fcn.1400aea00
ud2
Function at 0x14009df14
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14009df5e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14009df5e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14009df5e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14009df5e
cmp dword [rcx + 0x84], 0xe
jbe 0x14009df5e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14009df60
xor al, al
add rsp, 0x28
ret

Function at 0x1400a2754
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400a2550
Function at 0x1400a581c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400a584c
xor eax, eax
jmp 0x1400a590f
mov rbp, rbx
cmp word [rax], si
je 0x1400a5871
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a5858
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a5854
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400a573c
movsxd r14, eax
test eax, eax
jne 0x1400a58af
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x1400a5845
mov rcx, r14
call fcn.1400a66f8
mov rdi, rax
test rax, rax
jne 0x1400a58c8
xor ecx, ecx
call fcn.1400a3d9c
jmp 0x1400a58a4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400a573c
test eax, eax
jne 0x1400a58f9
mov rcx, rdi
call fcn.1400a3d9c
jmp 0x1400a5903
xor ecx, ecx
call fcn.1400a3d9c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400a8e00
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400a480c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400a8e8a
cmp byte [rbp - 0x21], r15b
je 0x1400a8e85
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400a8ec0
call fcn.1400a6f08
test eax, eax
jne 0x1400a8eac
cmp byte [rbp - 0x21], r15b
je 0x1400a8ea4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400a8ec0
cmp byte [rbp - 0x21], r15b
je 0x1400a8ebd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400a3dec
test eax, eax
jne 0x1400a8f60
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400a480c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400a8eff
cmp byte [rbp - 0x21], r15b
je 0x1400a8f34
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400a8f34
call fcn.1400a6f08
test eax, eax
jne 0x1400a8f20
cmp byte [rbp - 0x21], r15b
je 0x1400a8f19
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400a8f34
cmp byte [rbp - 0x21], r15b
je 0x1400a8f31
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400a3dec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400a8f60
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400a8f63
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400a8f71
mov rcx, rdi
call fcn.1400a3d9c
cmp byte [rbp + 0x3f], r15b
je 0x1400a8f80
mov rcx, qword [rbp + 0x27]
call fcn.1400a3d9c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400abe60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400abe88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400abe88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400b8240]
mov rbp, qword [sym.imp.kernel32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x1400b8250]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x1400be008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [str.__v_]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.14003c2b0
mov rcx, qword [0x1400b82d0]
call qword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400b8230]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14003c0c0
mov ebx, dword [0x1400be028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x1400be020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x1400be020], rbp
call fcn.14003bec0
mov rax, qword [0x1400b81c0]
mov r8, qword [0x1400be018]
mov ecx, dword [0x1400be028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x1400be020]
call fcn.140001b10
mov ecx, dword [0x1400be00c]
mov dword [0x1400be010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x1400be008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x1400b8250]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.14003bbd0
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x1400b8270]
mov rcx, qword [0x1400b8260]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1400be010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400b8290]
mov rcx, qword [0x1400b8280]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
Function at 0x140006e50
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 0x140006ee0
cmp r11, r10
ja 0x140006f56
cmp r10, rdx
ja 0x140006f68
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140006ee2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140006ec0
jmp 0x140006f44
ja 0x140006eea
mov r11, r10
cmp rax, r8
jne 0x140006e84
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 0x140006f20
mov rdi, r8
sub ecx, edx
jns 0x140006f3b
jmp 0x140006f46
cmp r8, rsi
je 0x140006f77
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140006f46
xor al, 1
cmp rdi, rsi
jne 0x140006f00
jmp 0x140006f46
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.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400049d0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140003fd0
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.1400054c0
int3
Function at 0x14000819e
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 0x1400081e1
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 0x1400082d0
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r10
mov byte [rsp + 0x30], 0
jmp 0x1400082df
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 0x140008307
mov esi, ebx
xor sil, 1
mov byte [rdx + 0x18], sil
test r8, r8
je 0x140008226
cmp r8, r9
jae 0x140008220
cmp byte [rax + r8], 0xbf
jg 0x140008226
jmp 0x140008315
jne 0x140008315
cmp r8, r9
je 0x1400082e9
movzx esi, byte [rax + r8]
test sil, sil
jns 0x14000828d
mov edi, esi
and edi, 0x1f
movzx r14d, byte [rax + r8 + 1]
and r14d, 0x3f
cmp sil, 0xdf
jbe 0x14000827c
movzx ebp, byte [rax + r8 + 2]
shl r14d, 6
and ebp, 0x3f
or ebp, r14d
cmp sil, 0xf0
jb 0x140008286
movzx esi, byte [rax + r8 + 3]
and edi, 7
shl edi, 0x12
shl ebp, 6
and esi, 0x3f
or esi, ebp
or esi, edi
jmp 0x14000828d
shl edi, 6
or edi, r14d
mov esi, edi
jmp 0x14000828d
shl edi, 0xc
or ebp, edi
mov esi, ebp
test bl, bl
jne 0x1400082f6
cmp esi, 0x110000
je 0x1400082ed
mov edi, 1
cmp esi, 0x80
jb 0x1400082c2
mov edi, 2
cmp esi, 0x800
jb 0x1400082c2
cmp esi, 0x10000
mov edi, 4
sbb rdi, 0
add r8, rdi
mov qword [rdx + 8], r8
mov bl, 1
jmp 0x1400081f7
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r10
mov byte [rsp + 0x30], 1
mov rdx, rax
call fcn.14000832d
jmp 0x14000830a
test bl, bl
jne 0x1400082f9
mov byte [rdx + 0x1a], 1
xor r10d, r10d
jmp 0x140008307
mov r9, r8
mov qword [rcx + 8], r9
mov qword [rcx + 0x10], r9
mov r10d, 1
mov qword [rcx], r10
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400b5938]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov rdx, r9
call fcn.1400065b0
int3
Function at 0x14000dea4
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x30
lea rsi, [rsp + 0x28]
and qword [rsi], 0
mov edx, 8
mov rcx, rsi
call sub.advapi32.dll_SystemFunction036
mov rax, qword [rsi]
add rsp, 0x30
pop rsi
ret

Function at 0x140011a60
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140003af0
cmp rax, rcx
je 0x140011a85
cmp rdx, 4
jae 0x140011a88
xor eax, eax
xor r8d, r8d
jmp 0x140011b20
xor eax, eax
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14003f580]
movdqa xmm3, xmmword [0x14003f590]
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 0x140011ab0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140011b37
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140011b20
ret