joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487c90
Capabilities:
Get system firmware table

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rdi, qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov r12, rcx
mov ecx, 0x52534d42
call rdi
mov rbp, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, eax
call rbp
mov r8d, esi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x487da8
xor edx, edx
mov r9d, esi
mov r8, rax
mov ecx, 0x52534d42
call rdi
cmp esi, eax
jne 0x487d80
movzx eax, byte [rbx + 1]
lea rdi, [0x00487c30]
lea r13, [rsp + 0x20]
mov rcx, r12
movq xmm0, rdi
mov r8, r13
shl eax, 0x10
mov edx, eax
movzx eax, byte [rbx + 2]
shl eax, 8
add eax, edx
movzx edx, byte [rbx + 3]
add eax, edx
lea rdx, [rbx + 8]
mov dword [r12 + 0x5c], eax
mov eax, dword [rbx + 4]
mov qword [rsp + 0x20], rbx
mov dword [r12 + 0x58], eax
lea rax, [0x00487c60]
movq xmm1, rax
punpcklqdq xmm0, xmm1
movaps xmmword [rsp + 0x30], xmm0
call fcn.00487b40
mov r12d, eax
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x487d6e
mov r8d, 3
mov rdx, r13
mov rcx, r13
call rax
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call rbp
xor r12d, r12d
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r12d, r12d
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

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

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
test dl, dl
jne 0x488f08
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, 0x40
mov rdx, r12
xor ecx, ecx
mov rax, rbx
mov r8d, 0x3000
add rsp, 0x28
pop rbx
pop r12
jmp rax
lea rax, [rcx - 1]
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
mov r9d, 0x40
and rax, 0xffffffffffe00000
mov r8d, 0x20003000
lea rdx, [rax + 0x200000]
call rbx
test rax, rax
je 0x488ee5
add rsp, 0x28
pop rbx
pop r12
ret
Function at 0x488fe0
Capabilities:
Manipulate user privileges

Disassembly:
push r13
push r12
push rbx
add rsp, 0xffffffffffffff80
test rcx, rcx
jne 0x489000
sub rsp, 0xffffffffffffff80
pop rbx
pop r12
pop r13
ret
call fcn.00488da0
mov r8d, eax
mov eax, 1
test r8d, r8d
je 0x489028
mov byte [0x009e3c60], al
sub rsp, 0xffffffffffffff80
pop rbx
pop r12
pop r13
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x48909a
lea r12, [rsp + 0x50]
mov edx, 1
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], r12
mov rbx, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call rbx
mov edx, dword [rsp + 0x50]
test edx, edx
jne 0x4890b0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 1
call rbx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov byte [0x009e3c60], al
jmp 0x489018
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], r12
mov edx, 1
mov r13, rax
mov r9d, dword [rsp + 0x50]
mov r8, rax
call rbx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13, r13
je 0x48909a
xor ecx, ecx
lea r9, [rsp + 0x38]
mov r8d, 0xf0fff
mov rdx, r12
mov qword [r12], 0
mov qword [r12 + 8], 0
mov qword [r12 + 0x10], 0
mov qword [r12 + 0x18], 0
mov qword [r12 + 0x20], 0
mov qword [r12 + 0x28], 0
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
je 0x489148
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x48909c
lea rcx, str.SeLockMemoryPrivilege
lea rbx, str.SeLockMemoryPrivilege
call sub.msvcrt.dll_wcslen
mov rcx, qword [rsp + 0x38]
mov r9d, 1
lea r8, [rsp + 0x40]
lea edx, [rax + rax]
lea eax, [rax + rax + 2]
mov qword [rsp + 0x48], rbx
mov word [rsp + 0x40], dx
mov rdx, qword [r13]
mov word [rsp + 0x42], ax
call sub.ADVAPI32.dll_LsaAddAccountRights
test eax, eax
je 0x48919a
mov rcx, qword [rsp + 0x38]
call sub.ADVAPI32.dll_LsaClose
jmp 0x489135
lea rdx, str.Huge_pages_support_was_successfully_enabled__but_reboot_required_to_use_it
mov ecx, 5
call fcn.0040eb80
mov rcx, qword [rsp + 0x38]
call sub.ADVAPI32.dll_LsaClose
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.00488da0
test eax, eax
setne al
jmp 0x489012
Function at 0x489f20
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov ecx, dword [rcx + 0x30]
mov byte [rsp + 0x60], r8b
mov rsi, rdx
mov eax, dword [rbx + 0x38]
xor edx, edx
mov byte [rsp + 0x68], r9b
mov r8d, ecx
add r8d, eax
setb dl
add edx, dword [rbx + 0x34]
bswap edx
mov dword [rsp + 0x28], edx
mov edx, r8d
bswap edx
mov dword [rsp + 0x2c], edx
cmp eax, 0x1b8
je 0x48a110
cmp eax, 0x1b7
jg 0x48a0b8
test eax, eax
je 0x48a0a8
sub r8d, 0x1b8
lea rdx, [0x008d4120]
mov rcx, rbx
mov dword [rbx + 0x30], r8d
mov r8d, 0x1b8
sub r8d, eax
movsxd r8, r8d
call fcn.00489d30
lea rdx, [rsp + 0x68]
mov r8d, 8
mov rcx, rbx
call fcn.00489d30
mov eax, dword [rbx + 0x30]
sub eax, 8
sub eax, 0x40
lea rdx, [rsp + 0x28]
mov r8d, 0x40
mov rcx, rbx
mov dword [rbx + 0x30], eax
call fcn.00489d30
mov eax, dword [rbx]
shr eax, 0x18
mov byte [rsi], al
mov eax, dword [rbx]
shr eax, 0x10
mov byte [rsi + 1], al
mov eax, dword [rbx]
mov byte [rsi + 2], ah
mov eax, dword [rbx]
mov byte [rsi + 3], al
movzx eax, byte [rbx + 7]
mov byte [rsi + 4], al
movzx eax, word [rbx + 6]
mov byte [rsi + 5], al
mov eax, dword [rbx + 4]
mov byte [rsi + 6], ah
mov eax, dword [rbx + 4]
mov byte [rsi + 7], al
movzx eax, byte [rbx + 0xb]
mov byte [rsi + 8], al
movzx eax, word [rbx + 0xa]
mov byte [rsi + 9], al
mov eax, dword [rbx + 8]
mov byte [rsi + 0xa], ah
mov eax, dword [rbx + 8]
mov byte [rsi + 0xb], al
movzx eax, byte [rbx + 0xf]
mov byte [rsi + 0xc], al
movzx eax, word [rbx + 0xe]
mov byte [rsi + 0xd], al
mov eax, dword [rbx + 0xc]
mov byte [rsi + 0xe], ah
mov eax, dword [rbx + 0xc]
mov byte [rsi + 0xf], al
movzx eax, byte [rbx + 0x13]
mov byte [rsi + 0x10], al
movzx eax, word [rbx + 0x12]
mov byte [rsi + 0x11], al
mov eax, dword [rbx + 0x10]
mov byte [rsi + 0x12], ah
mov eax, dword [rbx + 0x10]
mov byte [rsi + 0x13], al
movzx eax, byte [rbx + 0x17]
mov byte [rsi + 0x14], al
movzx eax, word [rbx + 0x16]
mov byte [rsi + 0x15], al
mov eax, dword [rbx + 0x14]
mov byte [rsi + 0x16], ah
mov eax, dword [rbx + 0x14]
mov byte [rsi + 0x17], al
movzx eax, byte [rbx + 0x1b]
mov byte [rsi + 0x18], al
movzx eax, word [rbx + 0x1a]
mov byte [rsi + 0x19], al
mov eax, dword [rbx + 0x18]
mov byte [rsi + 0x1a], ah
mov eax, dword [rbx + 0x18]
mov byte [rsi + 0x1b], al
movzx eax, byte [rbx + 0x1f]
mov byte [rsi + 0x1c], al
movzx eax, word [rbx + 0x1e]
mov byte [rsi + 0x1d], al
mov eax, dword [rbx + 0x1c]
mov byte [rsi + 0x1e], ah
mov eax, dword [rbx + 0x1c]
mov byte [rsi + 0x1f], al
add rsp, 0x38
pop rbx
pop rsi
ret
mov dword [rbx + 0x3c], 1
jmp 0x489f77
sub r8d, 0x200
lea rdx, [0x008d4120]
mov rcx, rbx
mov dword [rbx + 0x30], r8d
mov r8d, 0x200
sub r8d, eax
movsxd r8, r8d
call fcn.00489d30
sub dword [rbx + 0x30], 0x1b8
mov r8d, 0x1b8
mov rcx, rbx
lea rdx, [0x008d4121]
call fcn.00489d30
mov dword [rbx + 0x3c], 1
jmp 0x489f9d
sub ecx, 8
lea rdx, [rsp + 0x60]
mov r8d, 8
mov dword [rbx + 0x30], ecx
mov rcx, rbx
call fcn.00489d30
mov eax, dword [rbx + 0x30]
jmp 0x489fb6
Function at 0x48a580
Capabilities:
Hash data using sha256

Disassembly:
push r12
push rbx
sub rsp, 0xb8
movdqa xmm0, xmmword [0x008d42b0]
movaps xmmword [rsp + 0x30], xmm0
lea r12, [rsp + 0x30]
shl r8, 3
mov rbx, rcx
movdqa xmm0, xmmword [0x008d42c0]
mov rcx, r12
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
movaps xmmword [rsp + 0x40], xmm0
pxor xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
call fcn.00489d30
mov ecx, dword [rsp + 0x60]
mov eax, dword [rsp + 0x68]
xor edx, edx
mov byte [rsp + 0x26], 0x81
mov r8d, ecx
mov byte [rsp + 0x27], 1
add r8d, eax
setb dl
add edx, dword [rsp + 0x64]
bswap edx
mov dword [rsp + 0x28], edx
mov edx, r8d
bswap edx
mov dword [rsp + 0x2c], edx
cmp eax, 0x1b8
je 0x48a738
cmp eax, 0x1b7
jg 0x48a6e0
test eax, eax
je 0x48a6d0
sub r8d, 0x1b8
lea rdx, [0x008d4120]
mov rcx, r12
mov dword [rsp + 0x60], r8d
mov r8d, 0x1b8
sub r8d, eax
movsxd r8, r8d
call fcn.00489d30
lea rdx, [rsp + 0x27]
mov r8d, 8
mov rcx, r12
call fcn.00489d30
mov eax, dword [rsp + 0x60]
sub eax, 8
sub eax, 0x40
lea rdx, [rsp + 0x28]
mov r8d, 0x40
mov rcx, r12
mov dword [rsp + 0x60], eax
call fcn.00489d30
mov eax, dword [rsp + 0x30]
bswap eax
mov dword [rbx], eax
mov eax, dword [rsp + 0x34]
bswap eax
mov dword [rbx + 4], eax
mov eax, dword [rsp + 0x38]
bswap eax
mov dword [rbx + 8], eax
mov eax, dword [rsp + 0x3c]
bswap eax
mov dword [rbx + 0xc], eax
mov eax, dword [rsp + 0x40]
bswap eax
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x44]
bswap eax
mov dword [rbx + 0x14], eax
mov eax, dword [rsp + 0x48]
bswap eax
mov dword [rbx + 0x18], eax
mov eax, dword [rsp + 0x4c]
bswap eax
mov dword [rbx + 0x1c], eax
add rsp, 0xb8
pop rbx
pop r12
ret
mov dword [rsp + 0x6c], 1
jmp 0x48a621
sub r8d, 0x200
lea rdx, [0x008d4120]
mov rcx, r12
mov dword [rsp + 0x60], r8d
mov r8d, 0x200
sub r8d, eax
movsxd r8, r8d
call fcn.00489d30
mov r8d, 0x1b8
mov rcx, r12
lea rdx, [0x008d4121]
sub dword [rsp + 0x60], 0x1b8
call fcn.00489d30
mov dword [rsp + 0x6c], 1
jmp 0x48a648
sub ecx, 8
lea rdx, [rsp + 0x26]
mov r8d, 8
mov dword [rsp + 0x60], ecx
mov rcx, r12
call fcn.00489d30
mov eax, dword [rsp + 0x60]
jmp 0x48a662
Function at 0x4a48c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x18
vmovaps xmmword [rsp], xmm6
vmovdqa xmm6, xmmword [rcx]
vmovdqa xmm5, xmmword [rcx + 0x10]
mov rax, qword [rsp + 0x40]
vmovdqa xmm0, xmm6
vpslldq xmm1, xmm6, 4
vaeskeygenassist xmm4, xmm5, 1
vinserti128 ymm0, ymm0, xmm6, 1
vpshufd xmm3, xmm4, 0xff
vmovdqa ymmword [rdx], ymm0
vmovdqa xmm0, xmm5
vinserti128 ymm0, ymm0, xmm5, 1
vmovdqa ymmword [r8], ymm0
vpslldq xmm0, xmm1, 4
vpslldq xmm4, xmm0, 4
vpxor xmm0, xmm0, xmm1
vpxor xmm4, xmm4, xmm3
vpslldq xmm3, xmm5, 4
vpxor xmm4, xmm0, xmm4
vpslldq xmm0, xmm3, 4
vpxor xmm6, xmm4, xmm6
vaeskeygenassist xmm1, xmm6, 0
vpshufd xmm2, xmm1, 0xaa
vpslldq xmm1, xmm0, 4
vpxor xmm0, xmm0, xmm3
vpxor xmm1, xmm1, xmm2
vpxor xmm1, xmm0, xmm1
vmovdqa xmm0, xmm6
vpxor xmm5, xmm1, xmm5
vpslldq xmm1, xmm6, 4
vinserti128 ymm0, ymm0, xmm6, 1
vmovdqa ymmword [r9], ymm0
vmovdqa xmm0, xmm5
vaeskeygenassist xmm3, xmm5, 2
vinserti128 ymm0, ymm0, xmm5, 1
vpshufd xmm4, xmm3, 0xff
vmovdqa ymmword [rax], ymm0
vpslldq xmm0, xmm1, 4
mov rax, qword [rsp + 0x48]
vpslldq xmm3, xmm0, 4
vpxor xmm0, xmm0, xmm1
vpxor xmm3, xmm3, xmm4
vpxor xmm3, xmm0, xmm3
vpxor xmm4, xmm3, xmm6
vpslldq xmm3, xmm5, 4
vaeskeygenassist xmm2, xmm4, 0
vpslldq xmm0, xmm3, 4
vpshufd xmm1, xmm2, 0xaa
vpslldq xmm2, xmm0, 4
vpxor xmm0, xmm0, xmm3
vpxor xmm2, xmm2, xmm1
vpxor xmm2, xmm0, xmm2
vmovdqa xmm0, xmm4
vpxor xmm1, xmm2, xmm5
vpslldq xmm5, xmm4, 4
vinserti128 ymm0, ymm0, xmm4, 1
vmovdqa ymmword [rax], ymm0
mov rax, qword [rsp + 0x50]
vmovdqa xmm0, xmm1
vpslldq xmm2, xmm5, 4
vinserti128 ymm0, ymm0, xmm1, 1
vmovdqa ymmword [rax], ymm0
vaeskeygenassist xmm0, xmm1, 4
mov rax, qword [rsp + 0x58]
vpshufd xmm3, xmm0, 0xff
vpslldq xmm0, xmm2, 4
vpxor xmm2, xmm2, xmm5
vpxor xmm0, xmm0, xmm3
vpxor xmm0, xmm2, xmm0
vpslldq xmm2, xmm1, 4
vpxor xmm3, xmm0, xmm4
vaeskeygenassist xmm0, xmm3, 0
vpshufd xmm5, xmm0, 0xaa
vpslldq xmm0, xmm2, 4
vpslldq xmm4, xmm0, 4
vpxor xmm2, xmm0, xmm2
vpxor xmm0, xmm4, xmm5
vpxor xmm2, xmm2, xmm0
vmovdqa xmm0, xmm3
vpxor xmm2, xmm2, xmm1
vinserti128 ymm0, ymm0, xmm3, 1
vmovdqa ymmword [rax], ymm0
mov rax, qword [rsp + 0x60]
vmovdqa xmm0, xmm2
vaeskeygenassist xmm1, xmm2, 8
vinserti128 ymm0, ymm0, xmm2, 1
vpslldq xmm6, xmm2, 4
vpshufd xmm5, xmm1, 0xff
vmovdqa ymmword [rax], ymm0
vpslldq xmm0, xmm3, 4
mov rax, qword [rsp + 0x68]
vpslldq xmm1, xmm0, 4
vpslldq xmm4, xmm1, 4
vpxor xmm0, xmm1, xmm0
vpxor xmm1, xmm4, xmm5
vpxor xmm0, xmm0, xmm1
vpslldq xmm1, xmm6, 4
vpxor xmm0, xmm0, xmm3
vpslldq xmm3, xmm1, 4
vpxor xmm1, xmm1, xmm6
vaeskeygenassist xmm4, xmm0, 0
vmovdqa xmm5, xmm0
vinserti128 ymm0, ymm5, xmm0, 1
vpshufd xmm4, xmm4, 0xaa
vmovdqa ymmword [rax], ymm0
vpxor xmm0, xmm3, xmm4
mov rax, qword [rsp + 0x70]
vpxor xmm1, xmm1, xmm0
vpxor xmm2, xmm1, xmm2
vmovdqa xmm0, xmm2
vinserti128 ymm2, ymm0, xmm2, 1
vmovdqa ymmword [rax], ymm2
vzeroupper
vmovaps xmm6, xmmword [rsp]
add rsp, 0x18
ret
Function at 0x4a75b0
Capabilities:
Hash data using sha512

Disassembly:
push rdi
sub rsp, 0x40
mov r8, rcx
test rcx, rcx
je 0x4a76d0
lea rax, [rdx - 1]
cmp rax, 0x3f
ja 0x4a76b0
xor eax, eax
lea rdi, [rcx + 0x48]
mov byte [rsp], dl
movdqa xmm0, xmmword [0x008d7a00]
mov word [rsp + 0x1e], ax
and rdi, 0xfffffffffffffff8
mov eax, ecx
sub eax, edi
mov byte [rsp + 0x11], 0
mov qword [rsp + 9], 0
mov qword [rsp + 1], 0x10100
mov qword [rsp + 0x12], 0
mov dword [rsp + 0x1a], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rcx + 0x40], 0
mov qword [rcx + 0xe8], 0
lea ecx, [rax + 0xf0]
xor eax, eax
shr ecx, 3
rep stosq qword [rdi], rax
mov dword [r8 + 0xe4], edx
pxor xmm0, xmmword [rsp]
movups xmmword [r8], xmm0
movdqa xmm0, xmmword [0x008d7a10]
pxor xmm0, xmmword [rsp + 0x10]
movups xmmword [r8 + 0x10], xmm0
movdqa xmm0, xmmword [0x008d7a20]
pxor xmm0, xmmword [rsp + 0x20]
movups xmmword [r8 + 0x20], xmm0
movdqa xmm0, xmmword [0x008d7a30]
pxor xmm0, xmmword [rsp + 0x30]
movups xmmword [r8 + 0x30], xmm0
add rsp, 0x40
pop rdi
ret
cmp byte [rcx + 0xe8], 0
je 0x4a76c1
mov qword [rcx + 0x58], 0xffffffffffffffff
mov qword [r8 + 0x50], 0xffffffffffffffff
mov eax, 0xffffffff
jmp 0x4a76a3
mov eax, 0xffffffff
jmp 0x4a76a3
Function at 0x4a9440
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
movabs rax, 0x5851f42d4c957f2d
mov r12, rdx
lea rdx, [r8 + 1]
mov rsi, rcx
mov rbx, r8
imul rax, rdx
lea r13, [rcx + 0x20]
movabs rdx, 0x810a978a59f5a1fc
lea rbp, [rcx + 0xc3e0]
lea rdi, [rsp + 0x20]
xor rdx, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdx
movabs rdx, 0xa77099df38c2d846
xor rdx, rax
mov qword [rsp + 0x30], rdx
movabs rdx, 0x8126b91cbf22495c
xor rdx, rax
mov qword [rsp + 0x38], rdx
movabs rdx, 0x494d2597179f8a62
xor rdx, rax
mov qword [rsp + 0x40], rdx
movabs rdx, 0x9237efb9ceaaec0c
xor rdx, rax
mov qword [rsp + 0x48], rdx
movabs rdx, 0x2f2a56746ce62d78
xor rdx, rax
mov qword [rsp + 0x50], rdx
movabs rdx, 0x84853bf7b62ce54e
xor rax, rdx
mov qword [rsp + 0x58], rax
nop word [rax + rax]
and ebx, 0x3fffff
mov rdx, r13
mov rcx, rdi
add r13, 0x1878
shl rbx, 6
add rbx, qword [rsi]
prefetchnta byte [rbx]
call fcn.004ae0a0
mov rax, qword [rbx]
xor qword [rsp + 0x20], rax
mov rax, qword [rbx + 8]
xor qword [rsp + 0x28], rax
mov rax, qword [rbx + 0x10]
xor qword [rsp + 0x30], rax
mov rax, qword [rbx + 0x18]
xor qword [rsp + 0x38], rax
mov rax, qword [rbx + 0x20]
xor qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x28]
xor qword [rsp + 0x48], rax
mov rax, qword [rbx + 0x30]
xor qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x38]
xor qword [rsp + 0x58], rax
movsxd rax, dword [r13 - 0x64]
mov rbx, qword [rsp + rax*8 + 0x20]
cmp rbp, r13
jne 0x4a9500
movdqa xmm0, xmmword [rsp + 0x20]
movdqa xmm1, xmmword [rsp + 0x30]
movdqa xmm2, xmmword [rsp + 0x40]
movdqa xmm3, xmmword [rsp + 0x50]
movups xmmword [r12], xmm0
movups xmmword [r12 + 0x10], xmm1
movups xmmword [r12 + 0x20], xmm2
movups xmmword [r12 + 0x30], xmm3
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x4c93c0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [rcx + 8]
mov rax, qword [rax + 0xc0]
mov rsi, rdx
lea rbp, [r9 + 1]
mov rdx, qword [rdx + 8]
test byte [rax + 0x60], 1
je 0x4c9508
lea r9, [rbp + r8]
xor eax, eax
cmp r9, rdx
ja 0x4c94f9
movq xmm0, r8
sub rdx, r8
sub qword [rsi + 0x10], r8
mov rax, qword [rsi + 0x20]
movdqu xmm1, xmmword [rsi + 0x20]
punpcklqdq xmm0, xmm0
mov qword [rsi + 8], rdx
add rax, r8
paddq xmm0, xmm1
movups xmmword [rsi + 0x20], xmm0
mov rcx, qword [rcx + 0x438]
movzx ebx, byte [rax + rdx - 1]
call fcn.005737c0
mov rdi, rbx
mov rcx, rax
call fcn.005737e0
test eax, 0x200000
jne 0x4c9520
mov r11, qword [rsi + 8]
add rbp, rbx
mov rax, r11
sub rax, rbp
xor rax, rbp
xor rbp, r11
or rax, rbp
xor rax, r11
sar rax, 0x3f
mov r9, rax
not r9
cmp r11, 0xff
ja 0x4c9538
mov rbp, r11
test r11, r11
je 0x4c94cd
mov r10, r11
mov r8, rbx
xor ecx, ecx
sub r10, rbx
add r10, qword [rsi + 0x20]
nop
mov rdx, r8
mov rax, rbx
xor rdx, rcx
xor rax, rcx
add rcx, 1
or rax, rdx
movzx edx, byte [r10 + r8 - 1]
sub r8, 1
xor rax, rbx
xor edx, edi
sar rax, 0x3f
movzx edx, dl
not rdx
or rax, rdx
and r9, rax
cmp rbp, rcx
ja 0x4c9490
mov rax, r9
not rax
movzx eax, al
or r9, 0xffffffffffffff00
add rbx, 1
sub rax, 1
and rax, r9
sar rax, 0x3f
and rbx, rax
mov edx, eax
not eax
sub r11, rbx
mov qword [rsi + 8], r11
and edx, 1
or eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor eax, eax
cmp rbp, rdx
ja 0x4c94f9
mov rax, qword [rsi + 0x20]
jmp 0x4c9420
not rbx
add qword [rsi + 8], rbx
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ebp, 0x100
jmp 0x4c947f
Function at 0x4c9f70
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov eax, 0x40
mov r13, qword [rdx + 0x10]
cmp r13, 0x40
cmovbe rax, r13
mov rbx, r8
mov rsi, rcx
mov rbp, rdx
xor r8d, r8d
cmp rbx, rax
jbe 0x4c9fc0
mov eax, r8d
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0x20]
mov rdx, r13
mov r14d, 0
mov rdi, qword [rbp + 8]
mov rcx, rax
sub rdx, rbx
neg rcx
lea r8, [rdx - 0x100]
and ecx, 0x3f
add rcx, rax
lea rax, [rbx + 0x100]
cmp r13, rax
cmova r14, r8
mov r8, rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, rax
cmp r13, r14
jbe 0x4ca100
mov r15, qword [rbp + 0x20]
mov r12, rdi
sub r14, rdi
mov r11, r13
sub r12, rbx
mov r8, r14
sub r11, rdi
xor eax, eax
add r15, rdi
xor edx, edx
xor r9d, r9d
mov rbp, r15
nop
lea r14, [rdi + r8]
mov r13, r12
mov r15, rdi
xor r13, r14
xor r15, r8
mov r10, r13
sub r13, 1
not r10
and r13, r10
mov r10, r13
mov r13, rdi
xor r13, r14
sar r10, 0x3f
or r13, r15
or r9, r10
and r10, rdx
xor r13, r14
or rax, r10
lea r10, [rdx + 1]
sar r13, 0x3f
and r9, r13
movzx r13d, byte [rbp + r8]
add r8, 1
and r13d, r9d
or byte [rcx + rdx], r13b
mov rdx, r10
mov r13, rbx
sub rdx, rbx
xor r13, r10
xor rdx, rbx
or rdx, r13
xor rdx, r10
sar rdx, 0x3f
and rdx, r10
cmp r11, r8
jne 0x4ca030
lea r9, [rsi + rbx]
test rbx, rbx
je 0x4ca0ed
nop
mov rdx, rax
mov r8, rbx
add rsi, 1
xor rdx, 0x20
add rdx, rcx
movzx edx, byte [rdx]
lea rdx, [rax + 1]
movzx eax, byte [rcx + rax]
xor r8, rdx
mov byte [rsi - 1], al
mov rax, rdx
sub rax, rbx
xor rax, rbx
or rax, r8
xor rax, rdx
sar rax, 0x3f
and rax, rdx
cmp r9, rsi
jne 0x4ca0b0
mov r8d, 1
jmp 0x4c9fa5
xor eax, eax
jmp 0x4ca0a6
Function at 0x518610
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r10, rcx
test r9, r9
je 0x5186e0
movzx r11d, byte [r8]
mov ebx, r11d
and ebx, 0xffffff80
test rdx, rdx
je 0x518637
movzx eax, bl
mov dword [rdx], eax
cmp r9, 1
je 0x518718
movzx eax, byte [r8]
test al, al
jne 0x5186a8
movzx eax, byte [r8 + 1]
and eax, 0xffffff80
cmp bl, al
je 0x518748
lea r12, [r9 - 1]
test r10, r10
je 0x51869a
movsx eax, r11b
sub r9, r12
sar r11b, 7
lea rdx, [r12 - 1]
shr eax, 0x1f
add r8, r9
nop dword [rax + rax]
movzx ecx, byte [r8 + rdx]
xor ecx, r11d
movzx ecx, cl
add eax, ecx
mov byte [r10 + rdx], al
shr eax, 8
sub rdx, 1
jae 0x518680
mov rax, r12
add rsp, 0x38
pop rbx
pop r12
ret
mov r12, r9
cmp al, 0xff
jne 0x51865d
mov eax, 1
xor edx, edx
nop word cs:[rax + rax]
movzx ecx, byte [r8 + rax]
add rax, 1
or edx, ecx
cmp r9, rax
ja 0x5186c0
test edx, edx
jne 0x518649
mov r12, r9
jmp 0x51865d
mov dword [rsp + 0x20], 0x9a
lea r9, str.crypto_asn1_a_int.c
mov r8d, 0xde
xor r12d, r12d
mov edx, 0xe2
mov ecx, 0xd
call fcn.0055dd20
mov rax, r12
add rsp, 0x38
pop rbx
pop r12
ret
mov r12d, 1
test r10, r10
je 0x51869a
movzx eax, byte [r8]
mov edx, eax
neg eax
test r11b, r11b
cmovns eax, edx
mov byte [r10], al
mov rax, r12
add rsp, 0x38
pop rbx
pop r12
ret
mov dword [rsp + 0x20], 0xbb
lea r9, str.crypto_asn1_a_int.c
mov r8d, 0xdd
xor r12d, r12d
mov edx, 0xe2
mov ecx, 0xd
call fcn.0055dd20
jmp 0x51869a

Function at 0x5187e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push r12
push rsi
push rbx
movsxd rbx, dword [rcx]
mov r9, qword [rcx + 8]
mov r12, rbx
mov r11, rdx
test r9, r9
je 0x518830
test rbx, rbx
je 0x518830
mov eax, dword [rcx + 4]
movzx edx, byte [r9]
and eax, 0x100
jne 0x518898
cmp rdx, 0x7f
jbe 0x5188b8
lea rsi, [rbx + 1]
xor r10d, r10d
mov r12d, esi
mov r8, rsi
jmp 0x518843
xor r8d, r8d
mov r12d, 1
xor r10d, r10d
xor ebx, ebx
mov esi, 1
test r11, r11
je 0x51888d
mov rcx, qword [r11]
test rcx, rcx
je 0x51888d
mov eax, r10d
sub r8, rbx
mov byte [rcx], r10b
lea rdx, [rbx - 1]
and eax, 1
add r8, rcx
movzx eax, al
test rbx, rbx
je 0x51888a
nop dword [rax + rax]
movzx ecx, byte [r9 + rdx]
xor ecx, r10d
movzx ecx, cl
add eax, ecx
mov byte [r8 + rdx], al
shr eax, 8
sub rdx, 1
jae 0x518870
add qword [r11], rsi
mov eax, r12d
pop rbx
pop rsi
pop r12
ret
cmp rdx, 0x80
jbe 0x5188d0
lea rsi, [rbx + 1]
mov r10d, 0xffffffff
mov r12d, esi
jmp 0x518821
mov rsi, rbx
test eax, eax
jne 0x518898
xor r10d, r10d
jmp 0x518821
mov rsi, rbx
mov r10d, 0xffffffff
jne 0x518821
cmp rbx, 1
je 0x5188bf
lea rax, [r9 + 1]
lea r8, [r9 + rbx]
xor edx, edx
nop
movzx ecx, byte [rax]
add rax, 1
or edx, ecx
cmp rax, r8
jne 0x5188f0
test edx, edx
setne sil
mov r10d, esi
and esi, 1
add rsi, rbx
neg r10d
mov r12d, esi
jmp 0x518821

Function at 0x522840
Capabilities:
Get thread local storage value

Disassembly:
lea rcx, [0x009f4194]
jmp fcn.005d6e60