joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b9520
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4b972b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], rcx
add qword [rax + 0x58], rcx
mov rdx, qword [rax + 0x50]
test rdx, rdx
jle 0x4b9644
cmp rdx, 0x40
ja 0x4b971d
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x60], rbx
lea rsi, [rdx - 0x40]
mov r8, rsi
neg rsi
sar r8, 0x3f
and r8, rdx
lea rdx, [rax + r8]
lea rdx, [rdx + 0x10]
cmp rcx, rsi
cmovl rsi, rcx
mov qword [rsp + 0x28], rsi
cmp rbx, rdx
je 0x4b95b4
mov rax, rdx
mov rcx, rsi
call fcn.00470c80
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x70]
mov rdx, qword [rax + 0x50]
add rdx, rsi
mov qword [rax + 0x50], rdx
nop
cmp rdx, 0x40
jne 0x4b9620
mov qword [rsp], rax
lea rcx, [rax + 0x10]
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], 0x40
mov qword [rsp + 0x18], 0x40
call fcn.004b9960
xorps xmm15, xmm15
mov r14, qword [0x006cd590]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x50], 0
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x70]
nop dword [rax]
cmp rcx, rsi
jb 0x4b9715
sub rdi, rsi
mov rdx, rdi
neg rdx
sar rdx, 0x3f
and rdx, rsi
mov r8, rcx
sub r8, rsi
add rbx, rdx
jmp 0x4b9647
mov r8, rcx
cmp r8, 0x40
jl 0x4b96c5
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rdi
mov qword [rsp], rax
mov qword [rsp + 8], rbx
and r8, 0xffffffffffffffc0
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x10], r8
mov qword [rsp + 0x18], rdi
call fcn.004b9960
xorps xmm15, xmm15
mov r14, qword [0x006cd590]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov rdx, rax
sub rax, rcx
sar rax, 0x3f
mov r8, qword [rsp + 0x38]
and rax, r8
and rax, 0xffffffffffffffc0
mov rcx, qword [rsp + 0x40]
lea rbx, [rcx + rax]
sub r8, rdx
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
test r8, r8
je 0x4b9708
lea rdx, [rax + 0x10]
cmp r8, 0x40
mov esi, 0x40
cmovl rsi, r8
nop dword [rax + rax]
cmp rbx, rdx
je 0x4b9704
mov qword [rsp + 0x38], rsi
mov rax, rdx
mov rcx, rsi
call fcn.00470c80
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x38]
mov qword [rax + 0x50], rsi
mov rax, rcx
xor ebx, ebx
xor ecx, ecx
add rsp, 0x48
pop rbp
ret
mov rax, rsi
call fcn.004703a0
mov rax, rdx
mov ecx, 0x40
call fcn.004703a0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
nop
call fcn.0046e000
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.004b9520
Function at 0x414e10
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 0x414ea0
cmp r10, r11
jb 0x414f16
cmp r10, rdx
ja 0x414f2a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x414ea2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x414e80
jmp 0x414f04
ja 0x414eaa
mov r11, r10
cmp rax, r8
jne 0x414e44
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 0x414ee0
mov rdi, r8
sub ecx, edx
jns 0x414efb
jmp 0x414f06
cmp r8, rsi
je 0x414f3b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x414f06
xor al, 1
cmp rdi, rsi
jne 0x414ec0
jmp 0x414f06
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.library_core_src_unicode_printable.rs
mov rcx, r11
mov rdx, r10
call fcn.00415650
ud2
lea r8, str.library_core_src_unicode_printable.rs
mov rcx, r10
call fcn.00415090
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.library_core_src_unicode_printable.rs
mov edx, 0x2b
call fcn.00413c20
ud2

Function at 0x4220aa
Capabilities:
Hash data using fnv

Disassembly:
mov rax, qword [rcx]
xor r9d, r9d
movabs r10, 0x100000001b3
cmp r8, r9
je 0x4220d0
movzx r11d, byte [rdx + r9]
xor rax, r11
imul rax, r10
inc r9
jmp 0x4220ba
mov qword [rcx], rax
ret

Function at 0x4220d4
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [rcx + 0x18]
xor ecx, ecx
test rbx, rbx
setne cl
call fcn.0042207f
test rbx, rbx
je 0x42210d
mov rdx, qword [rdi]
mov r8, qword [rdi + 8]
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.004220aa
mov cl, byte [rdi]
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.004220a2
Function at 0x456cff
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
mov r8, qword [rdx + 0x20]
mov rcx, qword [rdx + 0x30]
mov rdx, qword [rdx + 0x38]
lea r9, [0x005a2eb8]
call fcn.00457050
xor ecx, ecx
test rax, rax
cmove edx, ecx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rcx + 0x30], xmm0
mov dword [rcx], edx
mov dword [rcx + 4], 1
mov qword [rcx + 8], rax
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
lea rcx, [rdi + 0x60]
xor r8d, r8d
xor r9d, r9d
call sub.secur32.dll_DecryptMessage
cmp eax, 0x80090318
je 0x456dd3
test eax, eax
je 0x456def
cmp eax, 0x90317
je 0x456e5a
cmp eax, 0x90321
jne 0x456e62
mov dword [rdi + 0x100], 0x10000
xor ebx, ebx
mov byte [rdi + 0x104], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x20]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.0045708e
and qword [rdi + 0xa8], 0
mov byte [rsi + 1], bl
jmp 0x456e70
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0xa8], rax
mov byte [rsi + 1], 0
jmp 0x456e5e
mov r8, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rdi + 0x38]
sub r8, rcx
mov r9d, dword [rsp + 0x30]
add r9, r8
lea rbx, [rdi + 8]
and qword [rdi + 0x18], 0
call fcn.00457061
mov r8, rdx
mov rcx, rbx
mov rdx, rax
call fcn.00416ee5
and qword [rdi], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x20]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.0045708e
xor eax, eax
cmp qword [rdi + 0x20], rbx
sete al
mov qword [rdi + 0xa8], rax
mov byte [rsi + 1], 0
jmp 0x456e70
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x456e70
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
Function at 0x457ed4
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
mov r8, qword [rdx + 0x20]
mov rcx, qword [rdx + 0x30]
mov rdx, qword [rdx + 0x38]
lea r9, [0x005a2eb8]
call fcn.00457050
xor ecx, ecx
test rax, rax
cmove edx, ecx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rcx + 0x30], xmm0
mov dword [rcx], edx
mov dword [rcx + 4], 1
mov qword [rcx + 8], rax
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
lea rcx, [rdi + 0x60]
xor r8d, r8d
xor r9d, r9d
call sub.secur32.dll_DecryptMessage
cmp eax, 0x80090318
je 0x457fa8
test eax, eax
je 0x457fc4
cmp eax, 0x90317
je 0x45802f
cmp eax, 0x90321
jne 0x458037
mov dword [rdi + 0xd8], 0x10000
xor ebx, ebx
mov byte [rdi + 0xdc], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x20]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.0045823c
and qword [rdi + 0xa8], 0
mov byte [rsi + 1], bl
jmp 0x458045
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0xa8], rax
mov byte [rsi + 1], 0
jmp 0x458033
mov r8, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rdi + 0x38]
sub r8, rcx
mov r9d, dword [rsp + 0x30]
add r9, r8
lea rbx, [rdi + 8]
and qword [rdi + 0x18], 0
call fcn.00457061
mov r8, rdx
mov rcx, rbx
mov rdx, rax
call fcn.00416ee5
and qword [rdi], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x20]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.0045823c
xor eax, eax
cmp qword [rdi + 0x20], rbx
sete al
mov qword [rdi + 0xa8], rax
mov byte [rsi + 1], 0
jmp 0x458045
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x458045
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
Function at 0x461ad8
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x38], r8
mov rcx, r8
call fcn.00461a82
mov r15, rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rdi, [r14 + 0x10]
lea r12, [rsp + 0x72]
cmp qword [r14 + 8], 0xffffffffffffffff
lea rbp, [rsp + 0x32]
mov r13d, 0
cmovne r13, r14
mov eax, 0x7fffffff
cmp rdx, rax
cmovb rax, rdx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], r13
mov rdx, qword [r14 + 0x18]
lea rcx, [rsp + 0x68]
mov r8, rbx
xor r9d, r9d
call fcn.004cb8c7
mov al, byte [rsp + 0x71]
cmp al, 3
je 0x461c68
mov rsi, qword [rsp + 0x68]
cmp al, 2
je 0x461c8a
mov cl, byte [rsp + 0x70]
movzx edx, word [r12 + 4]
mov word [rbp + 4], dx
mov edx, dword [r12]
mov dword [rbp], edx
mov qword [rsp + 0x28], rsi
mov byte [rsp + 0x30], cl
mov byte [rsp + 0x31], al
mov rcx, r13
lea rdx, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.39.3_src_io_poll_evented.rs
call fcn.004c8b4f
mov rcx, qword [r13 + 8]
mov rdx, r15
mov r8, qword [rsp + 0x40]
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
jne 0x461c6f
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
je 0x461c7d
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.00441ba4
cmp al, 0xd
jne 0x461c42
mov rax, qword [r13]
test rax, rax
je 0x461c42
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0x10]
lock inc qword [rdx]
jle 0x461cd5
mov r13, rbp
mov rbp, r15
add rcx, 0x10
mov r8, qword [rax]
mov r9b, byte [rax + 0x18]
call fcn.00441a8e
mov r15, rax
xor ecx, ecx
call fcn.0045724b
test r15, r15
je 0x461c37
mov ecx, 1
mov rdx, rsi
call fcn.00441be4
mov rsi, r15
mov r15, rbp
mov rbp, r13
mov r13, qword [rsp + 0x20]
mov rcx, rsi
call fcn.00441ba4
cmp al, 0xd
jne 0x461c8a
mov rcx, rdi
lea rdx, [rsp + 0x28]
call fcn.004cb85f
mov rcx, rsi
call fcn.004c89c7
jmp 0x461b46
mov ebx, 1
jmp 0x461c8c
cdqe
test rax, rax
je 0x461c81
mov qword [rsp + 0x60], rax
jmp 0x461c83
xor eax, eax
jmp 0x461c83
jne 0x461cd9
mov qword [rsp + 0x58], rax
xor esi, esi
xor ebx, ebx
test rbx, rbx
jne 0x461cbb
test rsi, rsi
jne 0x461cbb
lea rcx, [rsp + 0x48]
call fcn.0046196d
mov rdi, rax
xor esi, esi
xor ecx, ecx
xor edx, edx
call fcn.004619af
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
call fcn.00461a9c
mov rax, rbx
mov rdx, rsi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
lea rax, [0x005ad538]
lea rcx, [rsp + 0x68]
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 1
and qword [rcx], 0
lea rax, str.ntdll.dll
mov qword [rcx + 0x20], rax
and qword [rcx + 0x28], 0
lea rdx, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.39.3_src_io_poll_evented.rs
call fcn.00413be0
ud2
Function at 0x4908cc
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r12, r9
mov rsi, rdx
mov rdi, rcx
mov qword [rdx + 0x210], r8
lea r14, [rsp + 0x30]
mov rcx, r14
call fcn.004572f2
mov eax, dword [r14]
cmp eax, 2
je 0x490aee
test eax, eax
je 0x490aa5
mov rax, qword [rsi + 0x40]
cmp rax, qword [rsi + 0x58]
jne 0x490ad8
mov rdx, qword [rsp + 0xf0]
mov r15d, dword [rsp + 0x34]
mov r13, qword [rsp + 0x38]
mov rbx, r13
shr rbx, 0x20
cmp rdx, rbx
mov r8, rbx
cmovb r8, rdx
lea r9, [0x005a2d48]
mov rcx, r12
mov qword [rsp + 0x70], r8
call fcn.0042c275
cmp rdx, rbx
ja 0x490b50
mov rbp, rdx
mov rbx, rax
mov r12, rdx
add r12, r15
mov eax, r13d
add rax, r12
mov rdx, qword [rsi + 0x58]
cmp rdx, rax
jae 0x490989
lea rcx, [rsi + 0x48]
mov rdx, rax
call fcn.00451f30
mov rdx, qword [rsi + 0x58]
mov rcx, qword [rsi + 0x50]
lea rax, [0x005a2f40]
mov qword [rsp + 0x20], rax
mov r8, r15
mov r9, r12
call fcn.00458384
lea rcx, [0x005a2f58]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov r8, rbx
mov r9, rbp
call fcn.0049cbd8
mov rcx, qword [rsi + 0x50]
mov rdx, qword [rsi + 0x58]
lea r9, [0x005a2f70]
mov r8, r15
call fcn.00457050
mov r13, rax
mov rbp, rdx
xor eax, eax
test r13, r13
cmove ebp, eax
mov rcx, qword [rsi + 0x50]
mov rdx, qword [rsi + 0x58]
lea rax, [0x005a2f88]
mov qword [rsp + 0x20], rax
mov r8, r15
mov r9, r12
call fcn.00458384
mov r15, rax
mov rbx, rdx
test rax, rax
mov eax, 0
cmove ebx, eax
mov rcx, qword [rsi + 0x50]
mov rdx, qword [rsi + 0x58]
lea r9, [0x005a2fa0]
mov r8, r12
call fcn.004572b1
test rax, rax
mov ecx, 0
cmove edx, ecx
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x34], 7
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x44], 1
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x54], 6
mov qword [rsp + 0x58], rax
movabs rax, 0x400000000
lea r8, [rsp + 0x78]
mov qword [r8], rax
mov qword [r8 + 8], r14
lea rcx, [rsi + 0x60]
xor edx, edx
xor r9d, r9d
call sub.secur32.dll_EncryptMessage
test eax, eax
je 0x490ab1
mov r14d, eax
shl r14, 0x20
or r14, 2
jmp 0x490af3
movabs r14, 0x8009031700000002
jmp 0x490af3
mov eax, dword [rsp + 0x40]
add eax, dword [rsp + 0x30]
add eax, dword [rsp + 0x50]
cmp qword [rsi + 0x58], rax
jb 0x490ac7
mov qword [rsi + 0x58], rax
and qword [rsi + 0x40], 0
mov rax, qword [rsp + 0x70]
mov qword [rsi + 0xb0], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.00458293
cmp qword [rbx], 0
je 0x490b3f
mov r14, qword [rsp + 0x38]
mov rcx, r14
call fcn.00441ba4
cmp al, 0xd
jne 0x490b18
mov qword [rdi], 2
and qword [rsi + 0x210], 0
mov rcx, r14
call fcn.00490149
jmp 0x490b2b
mov qword [rdi], 1
mov qword [rdi + 8], r14
and qword [rsi + 0x210], 0
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 0xb0]
and qword [rdi], 0
mov qword [rdi + 8], rax
jmp 0x490b23
lea rcx, str.assertion_failed:_buf.len_____sizes.cbMaximumMessage_as_usize
lea r8, [0x005a2f28]
mov edx, 0x3e
call fcn.00413c20
ud2
Function at 0x490bb1
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r12, r9
mov rsi, rdx
mov rdi, rcx
mov qword [rdx + 0xf8], r8
lea r14, [rsp + 0x30]
mov rcx, r14
call fcn.00456157
mov eax, dword [r14]
cmp eax, 2
je 0x490dd3
test eax, eax
je 0x490d8a
mov rax, qword [rsi + 0x40]
cmp rax, qword [rsi + 0x58]
jne 0x490dbd
mov rdx, qword [rsp + 0xf0]
mov r15d, dword [rsp + 0x34]
mov r13, qword [rsp + 0x38]
mov rbx, r13
shr rbx, 0x20
cmp rdx, rbx
mov r8, rbx
cmovb r8, rdx
lea r9, [0x005a2d48]
mov rcx, r12
mov qword [rsp + 0x70], r8
call fcn.0042c275
cmp rdx, rbx
ja 0x490e35
mov rbp, rdx
mov rbx, rax
mov r12, rdx
add r12, r15
mov eax, r13d
add rax, r12
mov rdx, qword [rsi + 0x58]
cmp rdx, rax
jae 0x490c6e
lea rcx, [rsi + 0x48]
mov rdx, rax
call fcn.00451f30
mov rdx, qword [rsi + 0x58]
mov rcx, qword [rsi + 0x50]
lea rax, [0x005a2f40]
mov qword [rsp + 0x20], rax
mov r8, r15
mov r9, r12
call fcn.00458384
lea rcx, [0x005a2f58]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov r8, rbx
mov r9, rbp
call fcn.0049cbd8
mov rcx, qword [rsi + 0x50]
mov rdx, qword [rsi + 0x58]
lea r9, [0x005a2f70]
mov r8, r15
call fcn.00457050
mov r13, rax
mov rbp, rdx
xor eax, eax
test r13, r13
cmove ebp, eax
mov rcx, qword [rsi + 0x50]
mov rdx, qword [rsi + 0x58]
lea rax, [0x005a2f88]
mov qword [rsp + 0x20], rax
mov r8, r15
mov r9, r12
call fcn.00458384
mov r15, rax
mov rbx, rdx
test rax, rax
mov eax, 0
cmove ebx, eax
mov rcx, qword [rsi + 0x50]
mov rdx, qword [rsi + 0x58]
lea r9, [0x005a2fa0]
mov r8, r12
call fcn.004572b1
test rax, rax
mov ecx, 0
cmove edx, ecx
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x34], 7
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x44], 1
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x54], 6
mov qword [rsp + 0x58], rax
movabs rax, 0x400000000
lea r8, [rsp + 0x78]
mov qword [r8], rax
mov qword [r8 + 8], r14
lea rcx, [rsi + 0x60]
xor edx, edx
xor r9d, r9d
call sub.secur32.dll_EncryptMessage
test eax, eax
je 0x490d96
mov r14d, eax
shl r14, 0x20
or r14, 2
jmp 0x490dd8
movabs r14, 0x8009031700000002
jmp 0x490dd8
mov eax, dword [rsp + 0x40]
add eax, dword [rsp + 0x30]
add eax, dword [rsp + 0x50]
cmp qword [rsi + 0x58], rax
jb 0x490dac
mov qword [rsi + 0x58], rax
and qword [rsi + 0x40], 0
mov rax, qword [rsp + 0x70]
mov qword [rsi + 0xb0], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.004570e5
cmp qword [rbx], 0
je 0x490e24
mov r14, qword [rsp + 0x38]
mov rcx, r14
call fcn.00441ba4
cmp al, 0xd
jne 0x490dfd
mov qword [rdi], 2
and qword [rsi + 0xf8], 0
mov rcx, r14
call fcn.00490149
jmp 0x490e10
mov qword [rdi], 1
mov qword [rdi + 8], r14
and qword [rsi + 0xf8], 0
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 0xb0]
and qword [rdi], 0
mov qword [rdi + 8], rax
jmp 0x490e08
lea rcx, str.assertion_failed:_buf.len_____sizes.cbMaximumMessage_as_usize
lea r8, [0x005a2f28]
mov edx, 0x3e
call fcn.00413c20
ud2
Function at 0x496270
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
sub r8, rdx
cmp r8, 0x20
jae 0x496291
cmp rcx, rdx
je 0x49629c
cmp r8, 4
jae 0x49629f
xor eax, eax
mov rcx, rdx
jmp 0x49632c
mov rcx, rdx
mov rdx, r8
jmp fcn.00412150
xor eax, eax
ret
mov rcx, r8
and rcx, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x004db560]
movdqa xmm3, xmmword [0x004db570]
pxor xmm1, xmm1
movzx r9d, word [rdx + rax]
movd xmm4, r9d
movzx r9d, word [rdx + 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 rcx, rax
jne 0x4962c0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp rcx, r8
je 0x496349
add rcx, rdx
add rdx, r8
nop
xor r8d, r8d
cmp byte [rcx], 0xc0
lea r9, [rcx + 1]
setge r8b
add rax, r8
mov rcx, r9
cmp r9, rdx
jne 0x496330
ret
Function at 0x496570
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 0x4965cb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x4965cb
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x4965e6
cmp eax, 0x42
jne 0x4965cb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x496696
cmp byte [r9 + r11], 0x5f
jne 0x496696
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x4966fe
mov rcx, rsi
xor edx, edx
call fcn.004917e0
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.004917e0
test al, al
jne 0x496798
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x496622
lea rdx, [0x005a9444]
mov r8d, 1
call fcn.0040f6a0
test al, al
jne 0x496798
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x4965da
xor r14d, r14d
lea rbx, [0x005a943e]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x496654
cmp byte [rax + rcx], 0x45
je 0x4967c1
sub r14, 1
jb 0x496679
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x496679
mov r8d, 2
mov rdx, rbx
call fcn.0040f6a0
test al, al
jne 0x496798
mov rcx, rsi
call fcn.004967d0
test al, al
jne 0x496798
mov rax, qword [rsi]
test rax, rax
jne 0x496640
jmp 0x4965da
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x49675f
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x4966f2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x4966dc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x4966cb
add dl, 0xa9
jmp 0x4966da
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x49675f
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x49675f
movzx edx, bl
add rax, rdx
jae 0x4966a0
jmp 0x49675f
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x49675f
cmp rax, rcx
jae 0x49675c
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x4967a0
cmp qword [rsi + 0x20], 0
je 0x4967ba
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.00496570
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 0x4965da
jmp 0x496798
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x4967af
lea rax, [0x005a9409]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.0040f6a0
test al, al
je 0x4967af
mov dil, 2
jmp 0x4965da
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x49676a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x4965da
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x4965da