joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458bf0
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 0x458d08
xor edx, edx
mov r9d, esi
mov r8, rax
mov ecx, 0x52534d42
call rdi
cmp esi, eax
jne 0x458ce0
movzx eax, byte [rbx + 1]
lea rdi, [0x00458b90]
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, [0x00458bc0]
movq xmm1, rax
punpcklqdq xmm0, xmm1
movaps xmmword [rsp + 0x30], xmm0
call fcn.00458aa0
mov r12d, eax
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x458cce
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 0x459db0
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 0x459de8
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 0x459dc5
add rsp, 0x28
pop rbx
pop r12
ret
Function at 0x459ec0
Capabilities:
Manipulate user privileges

Disassembly:
push r13
push r12
push rbx
add rsp, 0xffffffffffffff80
test rcx, rcx
jne 0x459ee0
sub rsp, 0xffffffffffffff80
pop rbx
pop r12
pop r13
ret
call fcn.00459c80
mov r8d, eax
mov eax, 1
test r8d, r8d
je 0x459f08
mov byte [0x00994a60], 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 0x459f7a
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 0x459f90
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 [0x00994a60], al
jmp 0x459ef8
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 0x459f7a
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 0x45a028
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x459f7c
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 0x45a07a
mov rcx, qword [rsp + 0x38]
call sub.ADVAPI32.dll_LsaClose
jmp 0x45a015
lea rdx, str.Huge_pages_support_was_successfully_enabled__but_reboot_required_to_use_it
mov ecx, 5
call fcn.0040e900
mov rcx, qword [rsp + 0x38]
call sub.ADVAPI32.dll_LsaClose
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.00459c80
test eax, eax
setne al
jmp 0x459ef2
Function at 0x45ae00
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 0x45aff0
cmp eax, 0x1b7
jg 0x45af98
test eax, eax
je 0x45af88
sub r8d, 0x1b8
lea rdx, [0x0088c420]
mov rcx, rbx
mov dword [rbx + 0x30], r8d
mov r8d, 0x1b8
sub r8d, eax
movsxd r8, r8d
call fcn.0045ac10
lea rdx, [rsp + 0x68]
mov r8d, 8
mov rcx, rbx
call fcn.0045ac10
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.0045ac10
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 0x45ae57
sub r8d, 0x200
lea rdx, [0x0088c420]
mov rcx, rbx
mov dword [rbx + 0x30], r8d
mov r8d, 0x200
sub r8d, eax
movsxd r8, r8d
call fcn.0045ac10
sub dword [rbx + 0x30], 0x1b8
mov r8d, 0x1b8
mov rcx, rbx
lea rdx, [0x0088c421]
call fcn.0045ac10
mov dword [rbx + 0x3c], 1
jmp 0x45ae7d
sub ecx, 8
lea rdx, [rsp + 0x60]
mov r8d, 8
mov dword [rbx + 0x30], ecx
mov rcx, rbx
call fcn.0045ac10
mov eax, dword [rbx + 0x30]
jmp 0x45ae96
Function at 0x45b460
Capabilities:
Hash data using sha256

Disassembly:
push r12
push rbx
sub rsp, 0xb8
movdqa xmm0, xmmword [0x0088c5b0]
movaps xmmword [rsp + 0x30], xmm0
lea r12, [rsp + 0x30]
shl r8, 3
mov rbx, rcx
movdqa xmm0, xmmword [0x0088c5c0]
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.0045ac10
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 0x45b618
cmp eax, 0x1b7
jg 0x45b5c0
test eax, eax
je 0x45b5b0
sub r8d, 0x1b8
lea rdx, [0x0088c420]
mov rcx, r12
mov dword [rsp + 0x60], r8d
mov r8d, 0x1b8
sub r8d, eax
movsxd r8, r8d
call fcn.0045ac10
lea rdx, [rsp + 0x27]
mov r8d, 8
mov rcx, r12
call fcn.0045ac10
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.0045ac10
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 0x45b501
sub r8d, 0x200
lea rdx, [0x0088c420]
mov rcx, r12
mov dword [rsp + 0x60], r8d
mov r8d, 0x200
sub r8d, eax
movsxd r8, r8d
call fcn.0045ac10
mov r8d, 0x1b8
mov rcx, r12
lea rdx, [0x0088c421]
sub dword [rsp + 0x60], 0x1b8
call fcn.0045ac10
mov dword [rsp + 0x6c], 1
jmp 0x45b528
sub ecx, 8
lea rdx, [rsp + 0x26]
mov r8d, 8
mov dword [rsp + 0x60], ecx
mov rcx, r12
call fcn.0045ac10
mov eax, dword [rsp + 0x60]
jmp 0x45b542
Function at 0x4757a0
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 0x478470
Capabilities:
Hash data using sha512

Disassembly:
push rdi
sub rsp, 0x40
mov r8, rcx
test rcx, rcx
je 0x478590
lea rax, [rdx - 1]
cmp rax, 0x3f
ja 0x478570
xor eax, eax
lea rdi, [rcx + 0x48]
mov byte [rsp], dl
movdqa xmm0, xmmword [0x0088fd00]
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 [0x0088fd10]
pxor xmm0, xmmword [rsp + 0x10]
movups xmmword [r8 + 0x10], xmm0
movdqa xmm0, xmmword [0x0088fd20]
pxor xmm0, xmmword [rsp + 0x20]
movups xmmword [r8 + 0x20], xmm0
movdqa xmm0, xmmword [0x0088fd30]
pxor xmm0, xmmword [rsp + 0x30]
movups xmmword [r8 + 0x30], xmm0
add rsp, 0x40
pop rdi
ret
cmp byte [rcx + 0xe8], 0
je 0x478581
mov qword [rcx + 0x58], 0xffffffffffffffff
mov qword [r8 + 0x50], 0xffffffffffffffff
mov eax, 0xffffffff
jmp 0x478563
mov eax, 0xffffffff
jmp 0x478563
Function at 0x47a300
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.0047e930
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 0x47a3c0
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 0x498ac0
Capabilities:
Encode data using xor

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
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 0x498bb5
lea r9, [rbp + r8]
xor eax, eax
cmp r9, rdx
ja 0x498baa
mov qword [rsp + 0x28], r8
movq xmm0, qword [rsp + 0x28]
sub rdx, r8
movdqu xmm1, xmmword [rsi + 0x20]
mov rax, qword [rsi + 0x20]
mov qword [rsi + 8], rdx
punpcklqdq xmm0, xmm0
sub qword [rsi + 0x10], r8
paddq xmm0, xmm1
add rax, r8
movups xmmword [rsi + 0x20], xmm0
jmp 0x498bc0
mov ebp, 0x100
mov rdx, r11
mov r9, rbx
xor r8d, r8d
sub rdx, rbx
add rdx, qword [rsi + 0x20]
movzx eax, byte [rdx + r9 - 1]
mov r12, r9
mov rcx, rbx
sub r9, 1
xor rcx, r8
xor r12, r8
add r8, 1
xor eax, edi
or rcx, r12
movzx eax, al
xor rcx, rbx
not rax
sar rcx, 0x3f
or rax, rcx
and r10, rax
cmp rbp, r8
ja 0x498b45
mov rax, r10
not rax
movzx eax, al
or r10, 0xffffffffffffff00
add rbx, 1
sub rax, 1
and rax, r10
sar rax, 0x3f
and rbx, rax
and eax, 0xfffffffe
sub r11, rbx
not eax
mov qword [rsi + 8], r11
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor eax, eax
cmp rbp, rdx
ja 0x498baa
mov rax, qword [rsi + 0x20]
mov rcx, qword [rcx + 0x430]
movzx ebx, byte [rax + rdx - 1]
call fcn.0053d510
mov rdi, rbx
mov rcx, rax
call fcn.0053d530
test eax, 0x200000
jne 0x498c24
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 r10, rax
not r10
cmp r11, 0xff
ja 0x498b30
mov rbp, r11
test r11, r11
jne 0x498b35
jmp 0x498b82
not rbx
add qword [rsi + 8], rbx
mov eax, 1
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x4994f0
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 rbp, qword [rdx + 0x10]
cmp rbp, 0x40
mov r12, rdx
mov edx, 0x40
mov rsi, rcx
mov rbx, r8
cmovbe rdx, rbp
xor eax, eax
cmp r8, rdx
jbe 0x499540
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0x20]
xor r13d, r13d
mov r9, rax
neg r9
and r9d, 0x3f
add r9, rax
lea rax, [r8 + 0x100]
cmp rbp, rax
jbe 0x49956e
mov rax, rbp
sub rax, r8
lea r13, [rax - 0x100]
mov rcx, r9
mov r8, rbx
xor edx, edx
mov rdi, qword [r12 + 8]
call sub.msvcrt.dll_memset
mov r9, rax
cmp rbp, r13
jbe 0x499680
mov r14, qword [r12 + 0x20]
mov r11, rbp
mov rcx, r13
mov rbp, rdi
sub rcx, rdi
sub r11, rdi
xor eax, eax
xor edx, edx
add r14, rdi
xor r8d, r8d
sub rbp, rbx
mov r12, r14
lea r14, [rdi + rcx]
mov r13, rbp
mov r15, rdi
xor r13, r14
xor r15, rcx
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 r8, r10
and r10, rdx
xor r13, r14
or rax, r10
lea r10, [rdx + 1]
sar r13, 0x3f
and r8, r13
movzx r13d, byte [r12 + rcx]
add rcx, 1
and r13d, r8d
or byte [r9 + 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, rcx
jne 0x4995b0
lea r8, [rsi + rbx]
test rbx, rbx
je 0x49966e
nop
mov rdx, rax
mov rcx, rbx
add rsi, 1
xor rdx, 0x20
add rdx, r9
movzx edx, byte [rdx]
lea rdx, [rax + 1]
movzx eax, byte [r9 + rax]
xor rcx, rdx
mov byte [rsi - 1], al
mov rax, rdx
sub rax, rbx
xor rax, rbx
or rax, rcx
xor rax, rdx
sar rax, 0x3f
and rax, rdx
cmp r8, rsi
jne 0x499630
mov eax, 1
jmp 0x499524
xor eax, eax
jmp 0x499625
Function at 0x4c97e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov eax, edx
mov rbx, rcx
xor ecx, ecx
mov rsi, r8
rol ax, 8
mov word [rsp + 0x3c], cx
lea rdx, [rsp + 0x38]
mov word [rsp + 0x3e], ax
mov rax, qword [rbx + 0xb0]
mov dword [rsp + 0x38], 0
mov rcx, qword [rax + 0x120]
call fcn.004dfe30
test rax, rax
je 0x4c9993
mov dword [rsi], 1
mov rsi, qword [rax + 8]
lea rbp, [rbx + 0x808]
mov rax, qword [rbx + 0x88]
cmp dword [rsi + 0x28], 1
mov r8, qword [rsi + 8]
sbb rdi, rdi
mov rdx, qword [rsi + 0x58]
mov rcx, qword [rax + 8]
and edi, 0xb
add rdi, 1
add r8, rdi
call sub.msvcrt.dll_memcpy
mov rdx, qword [rsi + 8]
mov rax, qword [rbx + 0xb0]
movzx r8d, word [rsi + 0x10]
mov rcx, qword [rsi + 0x20]
add rdi, rdx
mov qword [rbx + 0x98], rdi
movzx r9d, byte [rsi]
mov qword [rax + 0x140], rdx
mov byte [rax + 0x138], r9b
mov rdx, qword [rbx + 0x16b8]
mov word [rax + 0x148], r8w
mov r15, qword [rbx + 0x460]
movzx edi, word [rdx + 2]
mov qword [rax + 0x158], rcx
mov rcx, rbp
mov qword [rax + 0x150], 0
mov r14, qword [rbx + 0x478]
mov r13, qword [rbx + 0x450]
mov r12, qword [rbx + 0x500]
mov dword [rax + 0x200], 1
mov rax, qword [rsi + 0x30]
movzx edx, word [rsi + 0x50]
mov qword [rbx + 0x460], rax
mov rax, qword [rsi + 0x38]
mov qword [rbx + 0x478], rax
mov rax, qword [rsi + 0x40]
mov qword [rbx + 0x450], rax
mov rax, qword [rsi + 0x48]
mov qword [rbx + 0x500], rax
call fcn.00492d20
cmp dword [rsi + 0x28], 1
mov rcx, rbx
sbb edx, edx
and edx, 2
add edx, 0x14
call fcn.004c8600
mov qword [rbx + 0x460], r15
movzx edx, di
mov rcx, rbp
mov qword [rbx + 0x478], r14
mov esi, eax
mov qword [rbx + 0x450], r13
mov qword [rbx + 0x500], r12
call fcn.00492d20
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
xor r8d, r8d
mov rax, qword [rbx + 0xb0]
mov edx, 0xb
mov dword [rax + 0x200], 0
call fcn.004f6bb0
mov eax, esi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.ssl_statem_statem_dtls.c
mov r9d, 0x44
mov edx, 0x50
mov dword [rsp + 0x28], 0x45b
mov qword [rsp + 0x20], rax
mov r8d, 0x186
mov rcx, rbx
call fcn.004c0ff0
mov dword [rsi], 0
xor esi, esi
jmp 0x4c9980
Function at 0x4ef360
Capabilities:
Get thread local storage value

Disassembly:
lea rcx, [0x009a0f54]
jmp fcn.0059f180

Function at 0x4f01d0
Capabilities:
Resolve dns

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x478
xor eax, eax
mov rbp, rcx
lea rdi, [rsp + 0x70]
mov ecx, 0x7e
test edx, edx
rep stosq qword [rdi], rax
mov r10d, edx
mov eax, 0xa
mov edx, 0x10
cmovne r10d, eax
lea r13, [rsp + 0x60]
mov rbx, r8
mov rsi, r9
cmp word [rbp], 2
mov r8, r13
mov rcx, rbp
mov qword [rsp + 0x60], 0
mov eax, 0x1c
lea r12, [rsp + 0x40]
mov qword [rsp + 0x68], 0
mov r9d, 0x401
mov qword [rsp + 0x40], 0
cmovne edx, eax
mov qword [rsp + 0x48], 0
mov byte [rdi], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], r12
call qword [sym.imp.WS2_32.dll_getnameinfo]
mov edi, eax
test eax, eax
jne 0x4f03c4
cmp byte [rsp + 0x40], 0
jne 0x4f02c7
movzx eax, word [rbp]
cmp ax, 2
je 0x4f0423
xor ecx, ecx
cmp ax, 0x17
je 0x4f0423
call qword [sym.imp.WS2_32.dll_ntohs]
lea r8, [0x008a5654]
mov edx, 0x20
mov rcx, r12
movzx r9d, ax
call fcn.004f3350
test rbx, rbx
je 0x4f0310
mov r8d, 0xe9
lea rdx, str.crypto_bio_b_addr.c
mov rcx, r13
call fcn.00556620
mov qword [rbx], rax
test rsi, rsi
jne 0x4f0374
cmp qword [rbx], 0
je 0x4f0403
mov edi, 1
mov eax, edi
add rsp, 0x478
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test rsi, rsi
je 0x4f02f7
mov r8d, 0xeb
lea rdx, str.crypto_bio_b_addr.c
mov rcx, r12
call fcn.00556620
mov qword [rsi], rax
test rax, rax
jne 0x4f02f7
mov r8d, 0xfe
lea rdx, str.crypto_bio_b_addr.c
mov rcx, rax
call fcn.0054a000
mov qword [rsi], 0
mov r8d, 0x41
mov edx, 0x86
mov ecx, 0x20
mov dword [rsp + 0x20], 0x101
lea r9, str.crypto_bio_b_addr.c
call fcn.00528f20
jmp 0x4f02fc
mov r8d, 0xeb
lea rdx, str.crypto_bio_b_addr.c
mov rcx, r12
call fcn.00556620
mov qword [rsi], rax
cmp qword [rbx], 0
je 0x4f0430
cmp qword [rsi], 0
jne 0x4f02f7
mov rcx, qword [rbx]
mov r8d, 0xfa
lea rdx, str.crypto_bio_b_addr.c
call fcn.0054a000
mov qword [rbx], 0
mov rax, qword [rsi]
jmp 0x4f0332
mov r8d, 2
mov edx, 0x86
mov ecx, 0x20
mov dword [rsp + 0x20], 0xd7
lea r9, str.crypto_bio_b_addr.c
call fcn.00528f20
mov ecx, edi
xor edi, edi
call fcn.006c5cc0
mov ecx, 1
mov rdx, rax
call fcn.0052ad30
jmp 0x4f02fc
mov r8d, 0xfa
lea rdx, str.crypto_bio_b_addr.c
xor ecx, ecx
call fcn.0054a000
mov qword [rbx], 0
jmp 0x4f034e
movzx ecx, word [rbp + 2]
jmp 0x4f02a9
mov r8d, 0xfa
lea rdx, str.crypto_bio_b_addr.c
xor ecx, ecx
call fcn.0054a000
mov qword [rbx], 0
mov rax, qword [rsi]
jmp 0x4f0332