joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f0bb0
Capabilities:
Resolve dns

Disassembly:
push rsi
push rbx
sub rsp, 0x68
mov rsi, rcx
cmp r9d, 0x17
ja 0x4f0bd1
mov eax, 1
mov ecx, r9d
shl rax, cl
test eax, 0x800005
jne 0x4f0c00
mov dword [rsp + 0x20], 0x293
lea r9, str.crypto_bio_b_addr.c
mov r8d, 0x83
xor ebx, ebx
mov edx, 0x8f
mov ecx, 0x20
call fcn.00528f20
mov eax, ebx
add rsp, 0x68
pop rbx
pop rsi
ret
mov dword [rsp + 0x98], r9d
mov dword [rsp + 0x90], r8d
mov qword [rsp + 0x88], rdx
call fcn.004f3800
mov rdx, qword [rsp + 0x88]
mov r8d, dword [rsp + 0x90]
cmp eax, 1
mov ebx, eax
mov r9d, dword [rsp + 0x98]
je 0x4f0c50
xor ebx, ebx
mov eax, ebx
add rsp, 0x68
pop rbx
pop rsi
ret
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0xa0]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], eax
mov eax, 1
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x34], r9d
test r9d, r9d
jne 0x4f0cad
mov dword [rsp + 0x30], 0x400
mov eax, 0x401
cmp r8d, 1
je 0x4f0d12
mov rcx, rsi
mov r9, qword [rsp + 0xa8]
lea r8, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test eax, eax
je 0x4f0bf7
mov dword [rsp + 0x20], 0x2c6
lea r9, str.crypto_bio_b_addr.c
mov r8d, 2
xor ebx, ebx
mov edx, 0x8f
mov ecx, 0x20
call fcn.00528f20
mov ecx, esi
call fcn.006c5cc0
mov ecx, 1
mov rdx, rax
call fcn.0052ad30
jmp 0x4f0bf7
mov dword [rsp + 0x30], eax
jmp 0x4f0cb3

Function at 0x4f3800
Capabilities:
Initialize winsock library

Disassembly:
push rdi
sub rsp, 0x30
mov eax, dword [0x009a10f8]
test eax, eax
je 0x4f3820
mov eax, 1
add rsp, 0x30
pop rdi
ret
lea rdx, [0x009a0f60]
xor eax, eax
mov ecx, 0x33
mov dword [0x009a10f8], 1
mov rdi, rdx
rep stosq qword [rdi], rax
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4f380f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 9
mov ecx, 2
mov dword [rsp + 0x20], 0x87
mov r8d, eax
lea r9, [0x008a6810]
call fcn.00528f20
mov r8d, 0x7a
mov edx, 0x70
mov dword [rsp + 0x20], 0x88
lea r9, [0x008a6810]
mov ecx, 0x20
call fcn.00528f20
mov eax, 0xffffffff
jmp 0x4f3814

Function at 0x4f3d30
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov dword [rsp + 0x3c], edx
movsxd rcx, ecx
lea r8, [rsp + 0x3c]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
js 0x4f3d60
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x40
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 5
mov ecx, 2
mov dword [rsp + 0x20], 0xc3
mov r8d, eax
lea r9, [0x008a6810]
call fcn.00528f20
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x40
pop rbx
ret
Function at 0x4f8300
Capabilities:
Check if file exists

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rbp, rcx
call fcn.005563f0
mov edx, 0x62
mov rcx, rsi
mov rdi, rax
call sub.msvcrt.dll_strchr
cmp rax, 1
sbb ebx, ebx
and ebx, 0x10
add ebx, 1
test rdi, rdi
je 0x4f8375
lea rcx, [0x008a7580]
call fcn.004f5490
mov rsi, rax
test rax, rax
je 0x4f8410
xor edx, edx
mov rcx, rax
call fcn.004f5880
mov r9, rdi
mov r8d, ebx
mov edx, 0x6a
mov rcx, rsi
call fcn.004f6bb0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 1
mov ecx, 2
mov dword [rsp + 0x20], 0x48
mov r8d, eax
lea r9, str.crypto_bio_bss_file.c
call fcn.00528f20
lea rax, [0x008a7552]
mov qword [rsp + 0x20], rsi
mov r8, rbp
mov qword [rsp + 0x28], rax
lea r9, [0x008a7546]
mov ecx, 5
lea rdx, str.fopen_
call fcn.0052ad30
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 2
je 0x4f83dd
call rbx
cmp dword [rax], 6
jne 0x4f8420
mov dword [rsp + 0x20], 0x4f
lea r9, str.crypto_bio_bss_file.c
mov r8d, pe_nt_image_headers64
xor esi, esi
mov edx, 0x6d
mov ecx, 0x20
call fcn.00528f20
jmp 0x4f8369
mov rcx, rdi
call fcn.00710f78
jmp 0x4f8369
mov dword [rsp + 0x20], 0x51
lea r9, str.crypto_bio_bss_file.c
mov r8d, 2
xor esi, esi
mov edx, 0x6d
mov ecx, 0x20
call fcn.00528f20
jmp 0x4f8369

Function at 0x4fac00
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x10
cmp rdx, r8
je 0x4fad23
mov r11, rcx
sub rcx, 1
mov eax, dword [r8 + 8]
not r11
and r11, rcx
mov ecx, dword [rdx + 8]
shr r11, 0x3f
xor eax, ecx
sub r11, 1
cdqe
and rax, r11
xor ecx, eax
mov dword [rdx + 8], ecx
mov ecx, dword [rdx + 0x10]
xor dword [r8 + 8], eax
mov eax, dword [r8 + 0x10]
xor eax, ecx
cdqe
and rax, r11
xor ecx, eax
mov dword [rdx + 0x10], ecx
mov ecx, dword [rdx + 0x14]
xor dword [r8 + 0x10], eax
mov eax, dword [r8 + 0x14]
xor eax, ecx
and rax, r11
and eax, 4
xor ecx, eax
mov dword [rdx + 0x14], ecx
xor dword [r8 + 0x14], eax
test r9d, r9d
jle 0x4fad23
mov rbx, qword [r8]
mov r10, qword [rdx]
lea eax, [r9 - 1]
lea rdx, [rbx + 0x10]
cmp r10, rdx
lea rdx, [r10 + 0x10]
setae cl
cmp rbx, rdx
setae dl
or cl, dl
je 0x4fad30
cmp eax, 1
jbe 0x4fad30
mov eax, r9d
mov qword [rsp + 8], r11
mov rcx, r10
mov rdx, rbx
movq xmm2, qword [rsp + 8]
shr eax, 1
shl rax, 4
punpcklqdq xmm2, xmm2
add rax, r10
movdqu xmm3, xmmword [rcx]
movdqu xmm0, xmmword [rdx]
add rcx, 0x10
add rdx, 0x10
pxor xmm0, xmm3
movdqa xmm1, xmm3
pand xmm0, xmm2
pxor xmm1, xmm0
movups xmmword [rcx - 0x10], xmm1
movdqu xmm4, xmmword [rdx - 0x10]
pxor xmm0, xmm4
movups xmmword [rdx - 0x10], xmm0
cmp rcx, rax
jne 0x4facc2
mov eax, r9d
and eax, 0xfffffffe
cmp r9d, eax
je 0x4fad23
shl rax, 3
lea r8, [r10 + rax]
add rax, rbx
mov rcx, qword [r8]
mov rdx, qword [rax]
xor rdx, rcx
and rdx, r11
xor rcx, rdx
mov qword [r8], rcx
xor qword [rax], rdx
add rsp, 0x10
pop rbx
ret
mov r8d, eax
xor ecx, ecx
jmp 0x4fad43
mov rcx, rax
mov rdx, qword [r10 + rcx*8]
mov rax, qword [rbx + rcx*8]
xor rax, rdx
and rax, r11
xor rdx, rax
mov qword [r10 + rcx*8], rdx
xor qword [rbx + rcx*8], rax
lea rax, [rcx + 1]
cmp r8, rcx
jne 0x4fad40
add rsp, 0x10
pop rbx
ret
Function at 0x544090
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.0059fd90
test eax, eax
jne 0x5440b0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp sub.msvcrt.dll_getenv
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x549bc0
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
je 0x549c20
movsx ecx, byte [rcx]
xor eax, eax
test cl, cl
je 0x549c10
mov edi, 0x100
xor ebx, ebx
nop
call fcn.00507c30
add rsi, 1
or eax, edi
add edi, 0x100
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
rol ebx, cl
movsx ecx, byte [rsi]
xor ebx, eax
test cl, cl
jne 0x549be0
mov eax, ebx
shr eax, 0x10
xor eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x54ad40
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
vmovdqu xmm4, xmmword [rcx - 0x80]
vmovdqu xmm2, xmmword [r11 + 0x20]
lea r13, [rbp - 1]
vmovups xmm15, xmmword [rcx - 0x70]
lea r12, [rcx - 0x60]
vpxor xmm9, xmm1, xmm4
add ebx, 0x6000000
jb 0x54ae60
vpaddb xmm10, xmm1, xmm2
vpaddb xmm11, xmm10, xmm2
vpxor xmm10, xmm10, xmm4
vpaddb xmm12, xmm11, xmm2
vpxor xmm11, xmm11, xmm4
vpaddb xmm13, xmm12, xmm2
vpxor xmm12, xmm12, xmm4
vpaddb xmm14, xmm13, xmm2
vpxor xmm13, xmm13, xmm4
vpaddb xmm1, xmm14, xmm2
vpxor xmm14, xmm14, xmm4
jmp 0x54ada0
vaesenc xmm9, xmm9, xmm15
vaesenc xmm10, xmm10, xmm15
vaesenc xmm11, xmm11, xmm15
vaesenc xmm12, xmm12, xmm15
vaesenc xmm13, xmm13, xmm15
vaesenc xmm14, xmm14, xmm15
vmovups xmm15, xmmword [r12]
lea r12, [r12 + 0x10]
dec r13d
jne 0x54ada0
vmovdqu xmm3, xmmword [r12]
vaesenc xmm9, xmm9, xmm15
vpxor xmm4, xmm3, xmmword [rdi]
vaesenc xmm10, xmm10, xmm15
vpxor xmm5, xmm3, xmmword [rdi + 0x10]
vaesenc xmm11, xmm11, xmm15
vpxor xmm6, xmm3, xmmword [rdi + 0x20]
vaesenc xmm12, xmm12, xmm15
vpxor xmm8, xmm3, xmmword [rdi + 0x30]
vaesenc xmm13, xmm13, xmm15
vpxor xmm2, xmm3, xmmword [rdi + 0x40]
vaesenc xmm14, xmm14, xmm15
vpxor xmm3, xmm3, xmmword [rdi + 0x50]
lea rdi, [rdi + 0x60]
vaesenclast xmm9, xmm9, xmm4
vaesenclast xmm10, xmm10, xmm5
vaesenclast xmm11, xmm11, xmm6
vaesenclast xmm12, xmm12, xmm8
vaesenclast xmm13, xmm13, xmm2
vaesenclast xmm14, xmm14, xmm3
vmovups xmmword [rsi], xmm9
vmovups xmmword [rsi + 0x10], xmm10
vmovups xmmword [rsi + 0x20], xmm11
vmovups xmmword [rsi + 0x30], xmm12
vmovups xmmword [rsi + 0x40], xmm13
vmovups xmmword [rsi + 0x50], xmm14
lea rsi, [rsi + 0x60]
repz ret
vpshufb xmm6, xmm1, xmm0
vmovdqu xmm5, xmmword [r11 + 0x30]
vpaddd xmm10, xmm6, xmmword [r11 + 0x40]
vpaddd xmm11, xmm6, xmm5
vpaddd xmm12, xmm10, xmm5
vpshufb xmm10, xmm10, xmm0
vpaddd xmm13, xmm11, xmm5
vpshufb xmm11, xmm11, xmm0
vpxor xmm10, xmm10, xmm4
vpaddd xmm14, xmm12, xmm5
vpshufb xmm12, xmm12, xmm0
vpxor xmm11, xmm11, xmm4
vpaddd xmm1, xmm13, xmm5
vpshufb xmm13, xmm13, xmm0
vpxor xmm12, xmm12, xmm4
vpshufb xmm14, xmm14, xmm0
vpxor xmm13, xmm13, xmm4
vpshufb xmm1, xmm1, xmm0
vpxor xmm14, xmm14, xmm4
jmp 0x54ada0
Function at 0x54e200
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, qword [rsp + 0xb0]
mov r12, qword [rsp + 0xc8]
mov rbp, r9
test r8, r8
je 0x54e284
mov eax, dword [rsp + 0xc0]
mov r9, qword [rsi]
mov rbx, rcx
mov rdi, rdx
mov r10, qword [rsi + 8]
lea r13, [rcx + r8]
test eax, eax
jne 0x54e291
mov qword [rsp + 0x20], r9
mov rdx, rsi
mov r8, rbp
mov rcx, rsi
mov qword [rsp + 0x28], r10
add rbx, 1
add rdi, 1
call r12
movzx eax, byte [rbx - 1]
movzx edx, byte [rsi]
mov r9, qword [rsp + 0x21]
mov byte [rsp + 0x30], al
mov r10, qword [rsp + 0x29]
xor edx, eax
mov byte [rdi - 1], dl
mov qword [rsi], r9
mov qword [rsi + 8], r10
cmp r13, rbx
jne 0x54e240
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov qword [rsp + 0x20], r9
mov r8, rbp
mov rdx, rsi
mov rcx, rsi
mov qword [rsp + 0x28], r10
add rbx, 1
add rdi, 1
call r12
movzx eax, byte [rbx - 1]
xor al, byte [rsi]
mov byte [rsp + 0x30], al
mov r9, qword [rsp + 0x21]
mov r10, qword [rsp + 0x29]
mov byte [rdi - 1], al
mov qword [rsi], r9
mov qword [rsi + 8], r10
cmp r13, rbx
jne 0x54e291
jmp 0x54e284
Function at 0x5530c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, qword [rcx + 0x28]
mov rax, qword [rcx + 0x58]
mov rbx, rcx
mov rsi, rdx
cmp rdi, rdx
jae 0x5532af
mov rcx, qword [rcx + 0x30]
cmp rcx, rdx
jbe 0x553276
lea r11, [rdi + 1]
mov r10, r11
shl r10, 4
jmp 0x553108
mov rax, qword [rbx + 0x58]
add r11, 1
lea rdx, [rax + r10]
lea rax, [rax + r10 - 0x10]
movzx r9d, byte [rax + 0xf]
movzx r8d, byte [rax + 0xe]
movzx ecx, byte [rax]
lea ebp, [r8 + r8]
lea edi, [r9 + r9]
sar r9d, 7
sar r8d, 7
or r9d, ebp
sar cl, 7
mov byte [rdx + 0xe], r9b
movzx r9d, byte [rax + 0xd]
and ecx, 0xffffff87
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 0xd], r8b
movzx r8d, byte [rax + 0xc]
lea ebp, [r8 + r8]
sar r8d, 7
or r9d, ebp
mov byte [rdx + 0xc], r9b
movzx r9d, byte [rax + 0xb]
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 0xb], r8b
movzx r8d, byte [rax + 0xa]
lea ebp, [r8 + r8]
sar r8d, 7
or r9d, ebp
mov byte [rdx + 0xa], r9b
movzx r9d, byte [rax + 9]
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 9], r8b
movzx r8d, byte [rax + 8]
lea ebp, [r8 + r8]
sar r8d, 7
or r9d, ebp
mov byte [rdx + 8], r9b
movzx r9d, byte [rax + 7]
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 7], r8b
movzx r8d, byte [rax + 6]
lea ebp, [r8 + r8]
sar r8d, 7
or r9d, ebp
mov byte [rdx + 6], r9b
movzx r9d, byte [rax + 5]
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 5], r8b
movzx r8d, byte [rax + 4]
lea ebp, [r8 + r8]
sar r8d, 7
or r9d, ebp
mov byte [rdx + 4], r9b
movzx r9d, byte [rax + 3]
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 3], r8b
movzx r8d, byte [rax + 2]
lea ebp, [r8 + r8]
sar r8d, 7
or r9d, ebp
mov byte [rdx + 2], r9b
movzx r9d, byte [rax + 1]
lea ebp, [r9 + r9]
sar r9d, 7
or r8d, ebp
mov byte [rdx + 1], r8b
movzx r8d, byte [rax]
lea eax, [r8 + r8]
or eax, r9d
xor ecx, edi
add r10, 0x10
mov byte [rdx], al
mov byte [rdx + 0xf], cl
cmp r11, rsi
jne 0x553100
mov rax, qword [rbx + 0x58]
mov qword [rbx + 0x28], r11
shl r11, 4
add rax, r11
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [rdx + 4]
mov r9d, 0x71
lea r8, str.crypto_modes_ocb128.c
sub rdx, rcx
and rdx, 0xfffffffffffffffc
add rdx, rcx
mov rcx, rax
mov qword [rbx + 0x30], rdx
shl rdx, 4
call fcn.0054a080
test rax, rax
je 0x55326d
mov qword [rbx + 0x58], rax
jmp 0x5530ec
shl rsi, 4
add rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x566200
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x566235
nop
movdqu xmm0, xmmword [rdx + r8]
pxor xmm0, xmmword [r8]
movdqu xmmword [rcx + r8], xmm0
movdqa xmmword [r8], xmm0
lea r8, [r8 + 0x10]
dec r9
jne 0x566210
and r10, 0xf
je 0x566266
mov r9, 0x10
sub r9, r10
xor eax, eax
mov al, byte [rdx + r8]
xor al, byte [r8]
mov byte [rcx + r8], al
mov byte [r8], al
lea r8, [r8 + 1]
dec r10
jne 0x566241
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x56625a
mov rax, r8
repz ret

Function at 0x566270
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x5662ad
nop
movdqu xmm0, xmmword [rdx + r8]
movdqa xmm1, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [rcx + r8], xmm1
movdqa xmmword [r8], xmm0
lea r8, [r8 + 0x10]
dec r9
jne 0x566280
pxor xmm1, xmm1
and r10, 0xf
je 0x5662e4
mov r9, 0x10
sub r9, r10
xor eax, eax
xor r11, r11
mov r11b, byte [rdx + r8]
mov al, byte [r8]
xor al, r11b
mov byte [rcx + r8], al
mov byte [r8], r11b
lea r8, [r8 + 1]
dec r10
jne 0x5662bc
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x5662d8
mov rax, r8
repz ret

Function at 0x56b130
Capabilities:
Generate random numbers via winapi

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
mov edx, 1
mov rbx, rcx
call fcn.0056a520
mov rcx, rbx
mov rdx, rax
mov rsi, rax
call fcn.0056a6c0
mov rdi, rax
test rax, rax
je 0x56b1a5
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x56b220
xor r8d, r8d
xor esi, esi
mov rcx, rbx
mov rdx, rsi
call fcn.0056a760
mov rcx, rbx
call fcn.0056a4d0
test rax, rax
je 0x56b1a5
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
mov edx, 1
mov rcx, rbx
call fcn.0056a520
mov rcx, rbx
mov rdx, rax
mov rsi, rax
call fcn.0056a6c0
mov rdi, rax
test rax, rax
je 0x56b20b
xor edx, edx
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 0x16
lea r8, str.Intel_Hardware_Cryptographic_Service_Provider
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x56b260
xor r8d, r8d
xor esi, esi
mov rcx, rbx
mov rdx, rsi
call fcn.0056a760
mov rcx, rbx
call fcn.0056a4d0
test rax, rax
jne 0x56b19d
mov rcx, rbx
call fcn.0056a4d0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
mov r8, rdi
mov edx, esi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x56b255
xor r8d, r8d
xor esi, esi
mov qword [rsp + 0x38], r8
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r8, qword [rsp + 0x38]
jmp 0x56b185
lea r8, [rsi*8]
jmp 0x56b239
mov r8, rdi
mov edx, esi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x56b2a0
lea r8, [rsi*8]
mov qword [rsp + 0x38], r8
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r8, qword [rsp + 0x38]
jmp 0x56b1f3
xor r8d, r8d
xor esi, esi
jmp 0x56b27c
Function at 0x5792c0
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rsp + 0x60]
cmp eax, r9d
jne 0x5793a6
movzx edx, byte [r8]
lea r9d, [rdx - 0x6a]
cmp r9b, 1
ja 0x5793a6
cmp dl, 0x6b
je 0x579310
lea rdx, [r8 + 1]
lea ebx, [rax - 2]
movsxd rax, ebx
cmp byte [rdx + rax], 0xcc
jne 0x5793d4
mov r8d, ebx
call sub.msvcrt.dll_memcpy
mov eax, ebx
add rsp, 0x30
pop rbx
ret
lea ebx, [rax - 3]
test ebx, ebx
jle 0x579402
movzx edx, byte [r8 + 1]
lea r9, [r8 + 2]
cmp dl, 0xba
je 0x579402
cmp dl, 0xbb
jne 0x579370
sub eax, 4
lea rdx, [r8 + rax + 2]
mov eax, 1
sub eax, r9d
jmp 0x579359
add r9, 1
movzx r8d, byte [r9 - 1]
cmp r8b, 0xba
je 0x5793a1
cmp r8b, 0xbb
jne 0x579370
lea r10d, [rax + r9]
cmp r9, rdx
jne 0x579344
sub ebx, r10d
jmp 0x5792f0
mov dword [rsp + 0x20], 0x48
mov r8d, 0x8a
mov edx, pe_nt_image_headers64
mov ecx, 4
mov ebx, 0xffffffff
lea r9, str.crypto_rsa_rsa_x931.c
call fcn.00528f20
mov eax, ebx
add rsp, 0x30
pop rbx
ret
mov rdx, r9
jmp 0x579362
mov r8d, 0x89
mov edx, pe_nt_image_headers64
mov ecx, 4
mov dword [rsp + 0x20], 0x3d
lea r9, str.crypto_rsa_rsa_x931.c
mov ebx, 0xffffffff
call fcn.00528f20
jmp 0x579305
mov r8d, 0x8b
mov edx, pe_nt_image_headers64
mov ecx, 4
mov dword [rsp + 0x20], 0x59
lea r9, str.crypto_rsa_rsa_x931.c
mov ebx, 0xffffffff
call fcn.00528f20
jmp 0x579305
mov dword [rsp + 0x20], 0x50
jmp 0x579378

Function at 0x57b860
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x57b880
mov rax, qword [0x0091c660]
mov qword [rsp + 0x30], rax
jmp fcn.0054b5c0
mov rax, qword [0x0091c650]
mov qword [rsp + 0x30], rax
jmp fcn.0054b800
Function at 0x596230
Capabilities:
Hash data using sha256

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
lea rax, [0x009a2da0]
movdqa xmm0, xmmword [0x008d2970]
lea rsi, [rsp + 0x20]
test r8, r8
mov rbx, r8
mov r9, rcx
lea r8, [rsi + 0x20]
cmove rbx, rax
mov ecx, 9
xor eax, eax
mov rdi, r8
movaps xmmword [rsp + 0x20], xmm0
movdqa xmm0, xmmword [0x008d2980]
rep stosq qword [rdi], rax
movaps xmmword [rsp + 0x30], xmm0
mov dword [rdi], 0
mov dword [rsp + 0x8c], 0x20
test rdx, rdx
je 0x5962a2
mov r8, rdx
mov rcx, rsi
mov rdx, r9
call fcn.005958c0
mov rdx, rsi
mov rcx, rbx
call fcn.00595f30
mov edx, 0x70
mov rcx, rsi
call fcn.005c43c0
mov rax, rbx
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret

Function at 0x596ce0
Capabilities:
Hash data using sha512

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x100
movdqa xmm0, xmmword [0x008d2a50]
lea rax, [0x009a2de0]
movaps xmmword [rsp + 0x20], xmm0
mov rbx, r8
test r8, r8
mov rsi, rcx
movdqa xmm0, xmmword [0x008d2a60]
cmove rbx, rax
mov rbp, rdx
movabs rax, 0x4000000000
mov qword [rsp + 0xf0], rax
lea r12, [rsp + 0x20]
movaps xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [0x008d2a70]
movaps xmmword [rsp + 0x40], xmm0
movdqa xmm0, xmmword [0x008d2a80]
movaps xmmword [rsp + 0x50], xmm0
pxor xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
test rdx, rdx
je 0x596dc9
mov rax, rdx
lea r12, [rsp + 0x20]
shr rax, 0x3d
mov qword [rsp + 0x68], rax
lea rax, [rdx*8]
mov qword [rsp + 0x60], rax
cmp rdx, 0x7f
ja 0x596df2
mov edx, ebp
lea rdi, [r12 + 0x50]
cmp ebp, 8
jb 0x596d95
mov ecx, ebp
shr ecx, 3
jmp 0xffffffffa5a26098
xor eax, eax
test dl, 4
je 0x596da5
mov eax, dword [rsi]
mov dword [rdi], eax
mov eax, 4
test dl, 2
je 0x596db6
movzx ecx, word [rsi + rax]
mov word [rdi + rax], cx
add rax, 2
and edx, 1
je 0x596dc2
movzx edx, byte [rsi + rax]
mov byte [rdi + rax], dl
mov dword [rsp + 0xf0], ebp
mov rdx, r12
mov rcx, rbx
call fcn.00596420
mov edx, 0xd8
mov rcx, r12
call fcn.005c43c0
mov rax, rbx
add rsp, 0x100
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8, rdx
mov rdx, rcx
mov rcx, r12
shr r8, 7
call fcn.0066c600
mov rax, rbp
and eax, 0x7f
je 0x596dc9
sub rbp, rax
add rsi, rbp
mov rbp, rax
jmp 0x596d81

Function at 0x59f160
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [rbx], eax
setne al
movzx eax, al
add rsp, 0x20
pop rbx
ret

Function at 0x59f180
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x59f1b0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
setne al
movzx eax, al
add rsp, 0x28
ret
Function at 0x5b3d90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
movsxd r8, r8d
mov rsi, rcx
mov rdi, rdx
mov rbx, r8
call sub.msvcrt.dll_memcmp
test eax, eax
jle 0x5b3e5b
lea ecx, [rbx - 1]
test ebx, ebx
jle 0x5b3f0e
movzx eax, byte [rdi]
cmp byte [rsi], al
jne 0x5b3f12
mov r9d, ecx
mov eax, 1
add r9, 1
jmp 0x5b3de2
movzx edx, byte [rsi + rax]
add rax, 1
cmp dl, byte [rdi + rax - 1]
jne 0x5b3dea
mov r8d, eax
cmp rax, r9
jne 0x5b3dd4
movsxd rax, ecx
cmp byte [rsi + rax], 0
jne 0x5b3e90
cmp byte [rdi + rax], 0xff
jne 0x5b3e90
lea eax, [rbx - 2]
cdqe
jmp 0x5b3e21
cmp byte [rsi + rax], 0
jne 0x5b3e90
sub rax, 1
cmp byte [rdi + rax + 1], 0xff
jne 0x5b3e90
mov ecx, eax
test eax, eax
jns 0x5b3e10
cmp r8d, ecx
jg 0x5b3e9a
movsxd rax, r8d
movzx ecx, byte [rsi + rax]
movzx r9d, byte [rdi + rax]
mov edx, ecx
xor edx, r9d
cmp dl, 0xf
je 0x5b3f07
ja 0x5b3e70
cmp dl, 3
je 0x5b3ef0
cmp dl, 7
je 0x5b3ed5
cmp dl, 1
je 0x5b3eb0
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
cmp dl, 0x3f
je 0x5b3f00
cmp dl, 0x7f
je 0x5b3ee0
mov eax, 0xffffffff
cmp dl, 0x1f
jne 0x5b3e60
mov eax, 3
jmp 0x5b3eb5
cmp r8d, ecx
jl 0x5b3e5b
cmp r8d, ecx
jle 0x5b3e2c
lea eax, [r8*8]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov eax, 7
mov r10d, r9d
not r10d
test r10b, cl
jne 0x5b3e5b
not ecx
and ecx, r9d
cmp dl, cl
jne 0x5b3e5b
lea eax, [rax + r8*8]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov eax, 5
jmp 0x5b3eb5
mov eax, 1
jmp 0x5b3eb5
mov eax, 6
jmp 0x5b3eb5
mov eax, 2
jmp 0x5b3eb5
mov eax, 4
jmp 0x5b3eb5
test ecx, ecx
js 0x5b3f1a
xor r8d, r8d
jmp 0x5b3dea
xor eax, eax
jmp 0x5b3e60

Function at 0x5c4420
Capabilities:
Encode data using xor

Disassembly:
xor rax, rax
xor r10, r10
cmp r8, 0
je 0x5c446d
cmp r8, 0x10
jne 0x5c4450
mov r10, qword [rcx]
mov r11, qword [rcx + 8]
mov r8, 1
xor r10, qword [rdx]
xor r11, qword [rdx + 8]
or r10, r11
cmovne rax, r8
repz ret
mov r10b, byte [rcx]
lea rcx, [rcx + 1]
xor r10b, byte [rdx]
lea rdx, [rdx + 1]
or al, r10b
dec r8
jne 0x5c4450
neg rax
shr rax, 0x3f
repz ret