joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475b60
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 0x478830
Capabilities:
Hash data using sha512

Disassembly:
push rdi
sub rsp, 0x40
mov r8, rcx
test rcx, rcx
je 0x478950
lea rax, [rdx - 1]
cmp rax, 0x3f
ja 0x478930
xor eax, eax
lea rdi, [rcx + 0x48]
mov byte [rsp], dl
movdqa xmm0, xmmword [0x0088fc80]
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 [0x0088fc90]
pxor xmm0, xmmword [rsp + 0x10]
movups xmmword [r8 + 0x10], xmm0
movdqa xmm0, xmmword [0x0088fca0]
pxor xmm0, xmmword [rsp + 0x20]
movups xmmword [r8 + 0x20], xmm0
movdqa xmm0, xmmword [0x0088fcb0]
pxor xmm0, xmmword [rsp + 0x30]
movups xmmword [r8 + 0x30], xmm0
add rsp, 0x40
pop rdi
ret
cmp byte [rcx + 0xe8], 0
je 0x478941
mov qword [rcx + 0x58], 0xffffffffffffffff
mov qword [r8 + 0x50], 0xffffffffffffffff
mov eax, 0xffffffff
jmp 0x478923
mov eax, 0xffffffff
jmp 0x478923
Function at 0x47a6c0
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.0047ecf0
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 0x47a780
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 0x498e80
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 0x498f75
lea r9, [rbp + r8]
xor eax, eax
cmp r9, rdx
ja 0x498f6a
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 0x498f80
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 0x498f05
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 0x498f6a
mov rax, qword [rsi + 0x20]
mov rcx, qword [rcx + 0x430]
movzx ebx, byte [rax + rdx - 1]
call fcn.0053d8d0
mov rdi, rbx
mov rcx, rax
call fcn.0053d8f0
test eax, 0x200000
jne 0x498fe4
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 0x498ef0
mov rbp, r11
test r11, r11
jne 0x498ef5
jmp 0x498f42
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 0x4998b0
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 0x499900
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 0x49992e
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 0x499a40
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 0x499970
lea r8, [rsi + rbx]
test rbx, rbx
je 0x499a2e
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 0x4999f0
mov eax, 1
jmp 0x4998e4
xor eax, eax
jmp 0x4999e5
Function at 0x4c9ba0
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.004e01f0
test rax, rax
je 0x4c9d53
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.004930e0
cmp dword [rsi + 0x28], 1
mov rcx, rbx
sbb edx, edx
and edx, 2
add edx, 0x14
call fcn.004c89c0
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.004930e0
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.004f6f70
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.004c13b0
mov dword [rsi], 0
xor esi, esi
jmp 0x4c9d40
Function at 0x4ef720
Capabilities:
Get thread local storage value

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

Function at 0x4f0590
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 0x4f0784
cmp byte [rsp + 0x40], 0
jne 0x4f0687
movzx eax, word [rbp]
cmp ax, 2
je 0x4f07e3
xor ecx, ecx
cmp ax, 0x17
je 0x4f07e3
call qword [sym.imp.WS2_32.dll_ntohs]
lea r8, [0x008a55d4]
mov edx, 0x20
mov rcx, r12
movzx r9d, ax
call fcn.004f3710
test rbx, rbx
je 0x4f06d0
mov r8d, 0xe9
lea rdx, str.crypto_bio_b_addr.c
mov rcx, r13
call fcn.005569e0
mov qword [rbx], rax
test rsi, rsi
jne 0x4f0734
cmp qword [rbx], 0
je 0x4f07c3
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 0x4f06b7
mov r8d, 0xeb
lea rdx, str.crypto_bio_b_addr.c
mov rcx, r12
call fcn.005569e0
mov qword [rsi], rax
test rax, rax
jne 0x4f06b7
mov r8d, 0xfe
lea rdx, str.crypto_bio_b_addr.c
mov rcx, rax
call fcn.0054a3c0
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.005292e0
jmp 0x4f06bc
mov r8d, 0xeb
lea rdx, str.crypto_bio_b_addr.c
mov rcx, r12
call fcn.005569e0
mov qword [rsi], rax
cmp qword [rbx], 0
je 0x4f07f0
cmp qword [rsi], 0
jne 0x4f06b7
mov rcx, qword [rbx]
mov r8d, 0xfa
lea rdx, str.crypto_bio_b_addr.c
call fcn.0054a3c0
mov qword [rbx], 0
mov rax, qword [rsi]
jmp 0x4f06f2
mov r8d, 2
mov edx, 0x86
mov ecx, 0x20
mov dword [rsp + 0x20], 0xd7
lea r9, str.crypto_bio_b_addr.c
call fcn.005292e0
mov ecx, edi
xor edi, edi
call fcn.006c5cc0
mov ecx, 1
mov rdx, rax
call fcn.0052b0f0
jmp 0x4f06bc
mov r8d, 0xfa
lea rdx, str.crypto_bio_b_addr.c
xor ecx, ecx
call fcn.0054a3c0
mov qword [rbx], 0
jmp 0x4f070e
movzx ecx, word [rbp + 2]
jmp 0x4f0669
mov r8d, 0xfa
lea rdx, str.crypto_bio_b_addr.c
xor ecx, ecx
call fcn.0054a3c0
mov qword [rbx], 0
mov rax, qword [rsi]
jmp 0x4f06f2
Function at 0x4f0f70
Capabilities:
Resolve dns

Disassembly:
push rsi
push rbx
sub rsp, 0x68
mov rsi, rcx
cmp r9d, 0x17
ja 0x4f0f91
mov eax, 1
mov ecx, r9d
shl rax, cl
test eax, 0x800005
jne 0x4f0fc0
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.005292e0
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.004f3bc0
mov rdx, qword [rsp + 0x88]
mov r8d, dword [rsp + 0x90]
cmp eax, 1
mov ebx, eax
mov r9d, dword [rsp + 0x98]
je 0x4f1010
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 0x4f106d
mov dword [rsp + 0x30], 0x400
mov eax, 0x401
cmp r8d, 1
je 0x4f10d2
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 0x4f0fb7
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.005292e0
mov ecx, esi
call fcn.006c5cc0
mov ecx, 1
mov rdx, rax
call fcn.0052b0f0
jmp 0x4f0fb7
mov dword [rsp + 0x30], eax
jmp 0x4f1073

Function at 0x4f3bc0
Capabilities:
Initialize winsock library

Disassembly:
push rdi
sub rsp, 0x30
mov eax, dword [0x009a10f8]
test eax, eax
je 0x4f3be0
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 0x4f3bcf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 9
mov ecx, 2
mov dword [rsp + 0x20], 0x87
mov r8d, eax
lea r9, [0x008a6790]
call fcn.005292e0
mov r8d, 0x7a
mov edx, 0x70
mov dword [rsp + 0x20], 0x88
lea r9, [0x008a6790]
mov ecx, 0x20
call fcn.005292e0
mov eax, 0xffffffff
jmp 0x4f3bd4

Function at 0x4f40f0
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 0x4f4120
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, [0x008a6790]
call fcn.005292e0
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x40
pop rbx
ret
Function at 0x4f86c0
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.005567b0
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 0x4f8735
lea rcx, [0x008a7500]
call fcn.004f5850
mov rsi, rax
test rax, rax
je 0x4f87d0
xor edx, edx
mov rcx, rax
call fcn.004f5c40
mov r9, rdi
mov r8d, ebx
mov edx, 0x6a
mov rcx, rsi
call fcn.004f6f70
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.005292e0
lea rax, [0x008a74d2]
mov qword [rsp + 0x20], rsi
mov r8, rbp
mov qword [rsp + 0x28], rax
lea r9, [0x008a74c6]
mov ecx, 5
lea rdx, str.fopen_
call fcn.0052b0f0
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 2
je 0x4f879d
call rbx
cmp dword [rax], 6
jne 0x4f87e0
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.005292e0
jmp 0x4f8729
mov rcx, rdi
call fcn.00710f78
jmp 0x4f8729
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.005292e0
jmp 0x4f8729

Function at 0x4fafc0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x10
cmp rdx, r8
je 0x4fb0e3
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 0x4fb0e3
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 0x4fb0f0
cmp eax, 1
jbe 0x4fb0f0
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 0x4fb082
mov eax, r9d
and eax, 0xfffffffe
cmp r9d, eax
je 0x4fb0e3
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 0x4fb103
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 0x4fb100
add rsp, 0x10
pop rbx
ret
Function at 0x544450
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.005a0090
test eax, eax
jne 0x544470
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp sub.msvcrt.dll_getenv
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x549f80
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
je 0x549fe0
movsx ecx, byte [rcx]
xor eax, eax
test cl, cl
je 0x549fd0
mov edi, 0x100
xor ebx, ebx
nop
call fcn.00507ff0
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 0x549fa0
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 0x54b100
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 0x54b220
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 0x54b160
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 0x54b160
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 0x54b160
Function at 0x54e5c0
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 0x54e644
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 0x54e651
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 0x54e600
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 0x54e651
jmp 0x54e644