joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14000b008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x14000b008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000b008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x14001c470
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.140020370
sub rsp, rax
mov rax, qword [0x140058a98]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x14001c532
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001c4dd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001c4d0
cmp rcx, 1
jb 0x14001c58a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001c500
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14002c870
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001c4c0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001c563
lea rcx, [rsp + 0x80]
call fcn.14002f53c
jmp 0x14001c565
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1400200a0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14002c618
int3
Function at 0x14001fb90
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140058a98]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14001fc35
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001fbed
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001fbe0
cmp rcx, 1
jb 0x14001fc66
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001fc03
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14002c870
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001fbd0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400200a0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14002c618
int3
Function at 0x14001fd70
Capabilities:
Set environment variable

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0xb0
mov rax, qword [0x140058a98]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x14005a6c0]
mov rbp, r8
mov rsi, rdx
mov r14, rcx
test rax, rax
jne 0x14001fdc0
lea rcx, [0x14003cc8c]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x14005a6c0], rax
test rax, rax
je 0x14001fffa
mov qword [rsp + 0xa8], rbx
lea rdx, str.environ
mov qword [rsp + 0xa0], rdi
mov rcx, rax
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x90], r15
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
mov rcx, rsi
mov r15, rax
call qword [sym.imp.python310.dll_PyUnicode_FromString]
movzx edx, byte [rsi]
lea rbx, [rsp + 0x30]
xor ecx, ecx
mov r13, rax
mov word [rsp + 0x30], cx
lea edi, [rcx + 0x28]
test rbp, rbp
je 0x14001fef6
test dl, dl
je 0x14001fe92
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001fe3d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001fe30
cmp rcx, 1
jb 0x140020000
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001fe60
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14002c870
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001fe20
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, rbp
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov rdx, r13
mov rcx, r15
mov r8, rax
mov rbx, rax
call qword [sym.imp.python310.dll_PyObject_SetItem]
test eax, eax
je 0x14001fedd
mov ecx, 1
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
int3
sub qword [rbx], 1
jne 0x14001ff97
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14001ff97
test dl, dl
je 0x14001ff72
nop word [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001ff1d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001ff10
cmp rcx, 1
jb 0x14001fff4
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001ff40
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14002c870
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001ff00
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r15
call qword [sym.imp.python310.dll_PyObject_DelItem]
test eax, eax
je 0x14001ff97
mov rcx, r14
call fcn.14000da10
sub qword [r13], 1
jne 0x14001ffa8
mov rax, qword [r13 + 8]
mov rcx, r13
call qword [rax + 0x30]
sub qword [r15], 1
jne 0x14001ffb8
mov rax, qword [r15 + 8]
mov rcx, r15
call qword [rax + 0x30]
mov r13, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400200a0
add rsp, 0xb0
pop r14
pop rsi
pop rbp
ret
call fcn.14002c618
int3
call fcn.14002c618
int3
call fcn.14002c618
int3
Function at 0x140020ae8
Capabilities:
Parse pe header

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

Function at 0x14002399c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14002382f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002382f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002382f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002382f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002382f
cmp dword [rcx + 0x84], 0xe
jbe 0x14002382f
cmp dword [rcx + 0xf8], 0
je 0x14002382f
mov ecx, ebx
call fcn.1400238d0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400236c0
cmp dword [rbp + 0x20], 0
je 0x14002387c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140023884
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400237c8
Function at 0x140001000
Capabilities:
Lock the desktop
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
nop word [rax + rax]
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140001061
mov ecx, 0x4f
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140001061
call qword [sym.imp.USER32.dll_LockWorkStation]
mov ecx, 0x1e
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0x112
mov ecx, 0xffff
mov r9d, 2
mov r8d, 0xf170
call qword [sym.imp.USER32.dll_PostMessageW]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001010
Function at 0x14000378a
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, rcx
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x14000d090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14000d10a
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 0x14000d100
cmp r11, r10
ja 0x14000d1a3
cmp r10, rdx
ja 0x14000d1b7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14000d102
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14000d0e0
jmp 0x14000d177
ja 0x14000d10a
mov r11, r10
cmp rax, r8
jne 0x14000d0b2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14000d17b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14000d150
mov r8, r10
sub ecx, r9d
jns 0x14000d16e
jmp 0x14000d17d
cmp r10, rdx
je 0x14000d189
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14000d17d
xor al, 1
cmp r8, rdx
jne 0x14000d130
jmp 0x14000d17d
xor eax, eax
jmp 0x14000d17d
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__value.from_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140008cb0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14000bad0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14000ba50
ud2

Function at 0x14001695f
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
movsxd rax, dword [rdx + 0x3c]
xor r9d, r9d
test rax, rax
setne r9b
xor r10d, r10d
cmp word [rdx], 0x5a4d
lea r9d, [r9 + r9*4 + 1]
cmovne r9d, r10d
cmp r9b, 6
jne 0x1400169e0
cmp eax, 0x40
jb 0x140016a43
cmp rax, r8
ja 0x140016a59
movzx r8d, word [rax + rdx + 0x18]
cmp r8d, 0x10b
je 0x1400169e5
cmp r8d, 0x20b
jne 0x140016a10
mov r9b, 2
cmp dword [rdx + rax], 0x4550
jne 0x140016a0b
lea r8, [rdx + rax]
mov r9b, 3
cmp word [r8 + 4], 0x8664
jne 0x140016a0b
mov r10d, 1
mov r9b, 4
test byte [r8 + 0x16], 2
je 0x140016a0b
jmp 0x140016a26
mov byte [rcx], r9b
jmp 0x140016a13
mov r9b, 2
cmp dword [rdx + rax], 0x4550
jne 0x140016a0b
lea r8, [rdx + rax]
mov r9b, 3
cmp word [r8 + 4], 0x14c
jne 0x140016a0b
mov r9b, 4
test byte [r8 + 0x16], 2
jne 0x140016a23
mov byte [rcx], r9b
jmp 0x140016a13
mov byte [rcx], 5
mov qword [rcx + 0x18], 2
mov rax, rcx
add rsp, 0x28
ret
xor r10d, r10d
add rax, 0xffffffffffffffc0
mov qword [rcx], rdx
add rdx, 0x40
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], r10
mov qword [rcx + 0x20], r8
jmp 0x140016a1b
lea r8, str..cargogitcheckoutsmemexec_fd4b8e1561ba123f96fac3f_srcpeparserheader.rs
mov ecx, 0x40
mov rdx, rax
call fcn.14000bad0
ud2
lea r9, str..cargogitcheckoutsmemexec_fd4b8e1561ba123f96fac3f_srcpeparserheader.rs
mov rcx, rax
mov rdx, r8
mov r8, r9
call fcn.14000ba50
ud2
Function at 0x140017180
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm14
movaps xmmword [rsp + 0x70], xmm13
movaps xmmword [rsp + 0x60], xmm12
movaps xmmword [rsp + 0x50], xmm11
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]
aesimc xmm9, xmmword [rdx + 0xa0]
aesimc xmm10, xmmword [rdx + 0xb0]
aesimc xmm11, xmmword [rdx + 0xc0]
aesimc xmm12, xmmword [rdx + 0xd0]
mov rax, rcx
movaps xmm13, xmmword [rdx]
movaps xmm14, xmmword [rdx + 0xe0]
movaps xmmword [rcx], xmm13
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
movdqa xmmword [rcx + 0xa0], xmm9
movdqa xmmword [rcx + 0xb0], xmm10
movdqa xmmword [rcx + 0xc0], xmm11
movdqa xmmword [rcx + 0xd0], xmm12
movaps xmmword [rcx + 0xe0], xmm14
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
movaps xmm11, xmmword [rsp + 0x50]
movaps xmm12, xmmword [rsp + 0x60]
movaps xmm13, xmmword [rsp + 0x70]
movaps xmm14, xmmword [rsp + 0x80]
add rsp, 0x98
ret
Function at 0x14001812b
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, r8
mov rdi, rcx
mov rax, qword [0x1401476c0]
mov al, byte [rax]
cmp al, 1
jne 0x140018161
mov rcx, rdi
mov r8, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x1400181d8
xorps xmm0, xmm0
lea rbx, [rsp + 0x20]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov rcx, rbx
call fcn.14001898c
lea r14, [rsp + 0x68]
mov rcx, r14
mov rdx, rdi
mov r8, rbx
call fcn.140001e7f
movups xmm0, xmmword [r14]
movups xmmword [rsi], xmm0
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
jmp fcn.140017cb8
Function at 0x140020d03
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x668
movaps xmmword [rsp + 0x650], xmm6
mov rsi, rcx
mov rax, r8
shr rax, 0x3d
jne 0x140020d92
movzx ebx, r9b
shl rbx, 7
sub rbx, 0xffffffffffffff80
shl r8, 3
cmp r8, rbx
jne 0x140020d92
mov rdi, rdx
lea rcx, [rsp + 0x140]
mov r8d, 0xf4
xor edx, edx
call sub.msvcrt.dll_memset
call fcn.140020cae
cmp eax, 3
je 0x140020d75
mov eax, eax
lea r8, [rsp + 0x140]
mov rcx, rdi
mov edx, ebx
cmp eax, 2
jne 0x140020d89
call fcn.1400b52c0
jmp 0x140020d8e
lea r8, [rsp + 0x140]
mov rcx, rdi
mov edx, ebx
call fcn.1400d4fa0
jmp 0x140020d8e
call fcn.1400b4650
test eax, eax
je 0x140020db0
mov dword [rsi], 2
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x650]
add rsp, 0x668
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdi, [rsp + 0x358]
lea rbx, [rsp + 0x140]
mov r8d, 0xf4
mov rcx, rdi
mov rdx, rbx
call sub.msvcrt.dll_memcpy
xorps xmm6, xmm6
movaps xmmword [rbx], xmm6
lea rbx, [rsp + 0x30]
lea r8, [rsp + 0x140]
mov rcx, rbx
mov rdx, rdi
call fcn.140020c48
mov r14, qword [rbx]
mov rdi, qword [rbx + 8]
bswap r14
bswap rdi
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x28], rdi
xor eax, eax
cmp rax, 0x100
je 0x140020e1e
movups xmmword [rsp + rax + 0x140], xmm6
add rax, 0x10
jmp 0x140020e08
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x140]
mov r8d, 0x100
call sub.msvcrt.dll_memcpy
call fcn.140021c12
test al, al
je 0x140020e6c
mov rax, r14
shld rax, rdi, 1
shld rdi, r14, 1
sar r14, 0x3f
movabs rcx, 0xc200000000000000
and rcx, r14
xor rcx, rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdi
jmp 0x140020e95
mov rax, qword [0x140147690]
mov eax, dword [rax + 4]
not eax
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x20]
test eax, 0x10400000
jne 0x140020e90
call fcn.1400c23a0
jmp 0x140020e95
call fcn.1400c1980
lea rdi, [rsp + 0x450]
lea rdx, [rsp + 0x40]
mov r8d, 0x100
mov rcx, rdi
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x550]
lea rdx, [rsp + 0x358]
mov r8d, 0xf4
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x14c]
mov r8d, 0x200
mov rdx, rdi
call sub.msvcrt.dll_memcpy
and dword [rsi], 0
mov rcx, rsi
add rcx, 4
lea rdx, [rsp + 0x140]
mov r8d, 0x20c
call sub.msvcrt.dll_memcpy
jmp 0x140020d98

Function at 0x140022d26
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov r15d, 0xffffffff
mov rbx, rsi
sub rbx, r14
jbe 0x140022d7d
lea rcx, [rdi + r14]
cmp rbx, r15
cmovae rbx, r15
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140022d7d
add r14, rbx
jae 0x140022d40
lea rcx, str.attempt_to_add_with_overflowRsaParameterspadding_alg
lea r8, [0x1400f69a8]
mov edx, 0x1c
call fcn.140008cb0
ud2
cmp rsi, r14
seta al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140024ce0
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x14000c355
cmp rdx, 4
jae 0x14000c358
xor eax, eax
xor r8d, r8d
jmp 0x14000c3f0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400e0260]
movdqa xmm3, xmmword [0x1400e0270]
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 0x14000c380
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000c407
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000c3f0
ret
sub rdx, rcx
cmp rdx, 0x20
jb 0x14000c340
jmp fcn.14000be50
Function at 0x140028c00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x140028c5b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140028c5b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140028c76
cmp eax, 0x42
jne 0x140028c5b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140028d26
cmp byte [r9 + r11], 0x5f
jne 0x140028d26
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140028d8e
mov rcx, rsi
xor edx, edx
call fcn.140027920
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.140027920
test al, al
jne 0x140028e21
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140028cb2
lea rdx, [0x1400f7bcc]
mov r8d, 1
call fcn.14000a3d0
test al, al
jne 0x140028e21
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140028c6a
xor r14d, r14d
lea rbx, [0x1400f7fb0]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140028ce4
cmp byte [rax + rcx], 0x45
je 0x140028e43
sub r14, 1
jb 0x140028d09
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140028d09
mov r8d, 2
mov rdx, rbx
call fcn.14000a3d0
test al, al
jne 0x140028e21
mov rcx, rsi
call fcn.140028080
test al, al
jne 0x140028e21
mov rax, qword [rsi]
test rax, rax
jne 0x140028cd0
jmp 0x140028c6a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140028de8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140028d82
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x140028d6c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x140028d5b
add dl, 0xa9
jmp 0x140028d6a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140028de8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140028de8
movzx edx, bl
add rax, rdx
jae 0x140028d30
jmp 0x140028de8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140028de8
cmp rax, rcx
jae 0x140028de5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140028e3b
cmp qword [rsi + 0x20], 0
je 0x140028e34
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.140028c00
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140028c6c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140028e29
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x1400f7f70]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.14000a3d0
test al, al
je 0x140028e29
mov dil, 2
jmp 0x140028c6a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140028c6a
mov dil, 1
xor r8d, r8d
jmp 0x140028dea
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140028c6a
Function at 0x14002e266
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rdi, rdx
mov rsi, rcx
lea rbx, [rsp + 0x38]
mov rcx, rbx
call fcn.14005a48d
mov al, byte [rbx]
cmp al, 0x14
jne 0x14002e2c8
lea rbx, [rsp + 0x38]
movzx r8d, word [rbx + 2]
mov rcx, rbx
mov rdx, rdi
call fcn.14005a21b
cmp qword [rbx], 0
je 0x14002e308
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsi + 0x18], rax
movups xmmword [rsi + 8], xmm0
jmp 0x14002e2ed
mov cl, byte [rsp + 0x39]
movzx edx, word [rsp + 0x3a]
mov r8d, dword [rsp + 0x4c]
mov dword [rsi + 0x1c], r8d
movups xmm0, xmmword [rsp + 0x3c]
movups xmmword [rsi + 0xc], xmm0
mov byte [rsi + 8], al
mov byte [rsi + 9], cl
mov word [rsi + 0xa], dx
mov qword [rsi], 1
mov rax, rsi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r15, [rsp + 0x3a]
mov rax, qword [r15 + 0x16]
movups xmm0, xmmword [r15 + 6]
lea rdi, [rsp + 0xb0]
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
lea rbx, [rsp + 0x20]
mov qword [rbx], 8
xorps xmm0, xmm0
movups xmmword [rbx + 8], xmm0
lea r12, [rsp + 0x8a]
lea r14, [rsp + 0x38]
mov rax, qword [rsp + 0xc0]
cmp rax, qword [rsp + 0xb8]
jae 0x14002e407
mov rcx, r14
mov rdx, rdi
call fcn.140033030
movzx eax, word [rsp + 0x38]
cmp ax, 0xf
je 0x14002e422
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0xe]
movups xmmword [rsp + 0x6e], xmm1
movaps xmmword [rsp + 0x60], xmm0
mov rcx, qword [rsp + 0x58]
mov word [rsp + 0x88], ax
movups xmm0, xmmword [rsp + 0x6e]
movups xmmword [r12 + 0xe], xmm0
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [r12], xmm0
mov qword [rsp + 0xa8], rcx
mov rdx, qword [rsp + 0x30]
cmp rdx, qword [rsp + 0x28]
jne 0x14002e3cb
mov rcx, rbx
call fcn.140039a53
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
imul rcx, rdx, 0x28
mov r8, qword [rsp + 0xa8]
mov qword [rax + rcx + 0x20], r8
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movups xmmword [rax + rcx + 0x10], xmm1
movups xmmword [rax + rcx], xmm0
inc rdx
mov qword [rsp + 0x30], rdx
jmp 0x14002e345
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x18], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi + 8], xmm0
and qword [rsi], 0
jmp 0x14002e2f4
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x76], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsp + 0x66], xmm0
mov qword [rsi + 0x18], rax
movups xmmword [rsi + 8], xmm0
mov qword [rsi], 1
lea rcx, [rsp + 0x20]
call fcn.14002b3f8
jmp 0x14002e2f4