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

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x180156fce
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x180156fae
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x180156e9e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x180156e90
inc rbx
jmp 0x180156ea0
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x180156ead
lea ebp, [rax + 0xe]
jmp 0x180156eb9
cmp eax, 0x17
jne 0x180156f51
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x180156f51
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x180156f51
cmp rax, rbp
jb 0x180156f51
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x180156f60
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x180156f3e
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x180156f4e
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x180156e80
jmp 0x180156f66
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x180156f80
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x180156fa9
test rdi, rdi
je 0x180156fa5
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.1801fd97a]
mov rdi, rbx
test rbx, rbx
jne 0x180156f90
xor edi, edi
jmp 0x180156fbd
test rdi, rdi
jne 0x180156fbd
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret
Function at 0x18015e5b0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
je 0x18015e5e7
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret
Function at 0x180163670
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1802be010]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1801636d4
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.1801654b0
test al, al
je 0x1801636c8
mov dword [0x1802be010], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1802be010], 1
jmp 0x1801636d9
cmp eax, 2
je 0x18016372b
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x18016370a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x18016372b
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x180164330
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [0x1802b7c00]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword [rcx]
mov rdi, rcx
mov rsi, r9
mov rbp, r8
mov rcx, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x1801643d1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x180164395
mov dword [rsi], 0x51
jmp 0x1801643ca
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.1801393c0
mov rcx, qword [rdi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.180132c80
mov rax, qword [rdi + 8]
mov dword [rax + 0xd7c], ebx
mov dword [rsi], gethostname
mov rbx, 0xffffffffffffffff
mov edx, dword [rsi]
lea r8, str.nw_in_read_len_zu______d__err_d
mov rcx, qword [rdi + 8]
mov r9, rbp
mov dword [rsp + 0x28], edx
mov rdx, qword [rdi]
mov dword [rsp + 0x20], ebx
call fcn.180132e10
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1801fc6e0
add rsp, 0x148
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180164410
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1802b7c00]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rax + 0x2e8]
test dword [rcx + 0x84], 0x800
jne 0x180164553
mov rcx, qword [rbx + 0x98]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1801644e1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1801393c0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.180132c80
mov eax, 2
jmp 0x180164555
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x144]
lea r8, [rbx + 0x114]
lea rcx, [rsp + 0x30]
call fcn.180134030
test al, al
jne 0x180164553
mov qword [rsp + 0x1e0], rdi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1801393c0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.180132c80
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x180164555
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1801fc6e0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x1801733b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x1801733f3
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rdi
mov qword [rbx + 0x10], rax
lea rdi, [rbp + 8]
mov qword [rsp + 0x50], r14
cmp r15d, dword [rbp + 0x1c]
jbe 0x180173440
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi]
mov esi, dword [rbp + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor r14d, r14d
test r15, r15
je 0x1801734a2
mov r14, r15
nop dword [rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rdi]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi]
sub r15, 1
jne 0x180173460
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x1801734e1
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x18021de7a]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x18021de7b]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x1801734b0
mov r14, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
Function at 0x1801736d0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1802b7c00]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x18017371c
mov eax, 0x1b
jmp 0x1801737ee
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x180173760
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x1801737ee
mov rcx, rbp
call fcn.18011d9e0
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x1801737ca
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1801737da
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1801737ec
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1801fc6e0
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x180173810
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x180173875
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x180173820
ret
Function at 0x180174850
Capabilities:
Hash data using sha512

Disassembly:
jmp 0x1801777f0
push rbp
push rbx
push rdi
push r14
push r15
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov rax, qword [0x1802b7c00]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
movaps xmm0, xmmword [0x18021e210]
xor ebx, ebx
movaps xmm1, xmmword [0x18021e220]
mov r14, r8
movaps xmmword [rsp + 0x20], xmm0
mov rdi, rdx
movaps xmm0, xmmword [0x18021e230]
mov r15, rcx
movaps xmmword [rsp + 0x30], xmm1
movaps xmm1, xmmword [0x18021e240]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rbx
test r8, r8
je 0x180177974
lea rax, [r8*8]
mov qword [rsp + 0x68], rax
mov rax, r8
shr rax, 0x3d
mov qword [rsp + 0x60], rax
cmp r8, 0x80
jae 0x180177897
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x180177974
movups xmm0, xmmword [rdx]
lea r9, [rbp + 0x270]
movups xmm1, xmmword [rdx + 0x10]
lea r8, [rbp - 0x10]
movaps xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x20]
movups xmm0, xmmword [rdx + 0x20]
movaps xmmword [rbp - 0x80], xmm1
movups xmm1, xmmword [rdx + 0x30]
movaps xmmword [rbp - 0x70], xmm0
movups xmm0, xmmword [rdx + 0x40]
movaps xmmword [rbp - 0x60], xmm1
movups xmm1, xmmword [rdx + 0x50]
movaps xmmword [rbp - 0x50], xmm0
movups xmm0, xmmword [rdx + 0x60]
movaps xmmword [rbp - 0x40], xmm1
movups xmm1, xmmword [rdx + 0x70]
lea rdx, [rsp + 0x70]
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x20], xmm1
call fcn.180176680
sub rdi, 0xffffffffffffff80
add r14, 0xffffffffffffff80
cmp r14, 0x80
jb 0x18017793b
mov qword [rsp + 0x400], rsi
mov rsi, r14
shr rsi, 7
lea r9, [rbp + 0x270]
mov rdx, rdi
lea r8, [rbp - 0x10]
lea rcx, [rsp + 0x20]
call fcn.180176680
sub rdi, 0xffffffffffffff80
sub rsi, 1
jne 0x180177911
mov rsi, qword [rsp + 0x400]
and r14d, 0x7f
jbe 0x180177966
lea rax, [rsp + 0x70]
sub rdi, rax
nop dword [rax]
lea rcx, [rsp + 0x70]
add rcx, rbx
inc rbx
movzx eax, byte [rdi + rcx]
mov byte [rcx], al
cmp rbx, r14
jb 0x180177950
mov edx, 0x2c0
lea rcx, [rbp - 0x10]
call fcn.180176640
mov rdx, r15
lea rcx, [rsp + 0x20]
call fcn.1801779b0
xor eax, eax
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.1801fc6e0
add rsp, 0x3c0
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret
Function at 0x1801765f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rcx
xor eax, eax
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], eax
mov rcx, qword [rsp + 0x10]
movzx r8d, byte [rcx + rax]
mov rcx, qword [rsp + 0x18]
movzx r9d, byte [rcx + rax]
inc rax
mov ecx, dword [rsp + 8]
xor r9d, r8d
or ecx, r9d
mov dword [rsp + 8], ecx
cmp rax, 0x10
jl 0x180176600
mov eax, dword [rsp + 8]
dec eax
shr eax, 8
and eax, 1
dec eax
ret

Function at 0x1801777f0
Capabilities:
Hash data using sha512

Disassembly:
jmp 0x1801777f0
push rbp
push rbx
push rdi
push r14
push r15
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov rax, qword [0x1802b7c00]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
movaps xmm0, xmmword [0x18021e210]
xor ebx, ebx
movaps xmm1, xmmword [0x18021e220]
mov r14, r8
movaps xmmword [rsp + 0x20], xmm0
mov rdi, rdx
movaps xmm0, xmmword [0x18021e230]
mov r15, rcx
movaps xmmword [rsp + 0x30], xmm1
movaps xmm1, xmmword [0x18021e240]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rbx
test r8, r8
je 0x180177974
lea rax, [r8*8]
mov qword [rsp + 0x68], rax
mov rax, r8
shr rax, 0x3d
mov qword [rsp + 0x60], rax
cmp r8, 0x80
jae 0x180177897
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x180177974
movups xmm0, xmmword [rdx]
lea r9, [rbp + 0x270]
movups xmm1, xmmword [rdx + 0x10]
lea r8, [rbp - 0x10]
movaps xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x20]
movups xmm0, xmmword [rdx + 0x20]
movaps xmmword [rbp - 0x80], xmm1
movups xmm1, xmmword [rdx + 0x30]
movaps xmmword [rbp - 0x70], xmm0
movups xmm0, xmmword [rdx + 0x40]
movaps xmmword [rbp - 0x60], xmm1
movups xmm1, xmmword [rdx + 0x50]
movaps xmmword [rbp - 0x50], xmm0
movups xmm0, xmmword [rdx + 0x60]
movaps xmmword [rbp - 0x40], xmm1
movups xmm1, xmmword [rdx + 0x70]
lea rdx, [rsp + 0x70]
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x20], xmm1
call fcn.180176680
sub rdi, 0xffffffffffffff80
add r14, 0xffffffffffffff80
cmp r14, 0x80
jb 0x18017793b
mov qword [rsp + 0x400], rsi
mov rsi, r14
shr rsi, 7
lea r9, [rbp + 0x270]
mov rdx, rdi
lea r8, [rbp - 0x10]
lea rcx, [rsp + 0x20]
call fcn.180176680
sub rdi, 0xffffffffffffff80
sub rsi, 1
jne 0x180177911
mov rsi, qword [rsp + 0x400]
and r14d, 0x7f
jbe 0x180177966
lea rax, [rsp + 0x70]
sub rdi, rax
nop dword [rax]
lea rcx, [rsp + 0x70]
add rcx, rbx
inc rbx
movzx eax, byte [rdi + rcx]
mov byte [rcx], al
cmp rbx, r14
jb 0x180177950
mov edx, 0x2c0
lea rcx, [rbp - 0x10]
call fcn.180176640
mov rdx, r15
lea rcx, [rsp + 0x20]
call fcn.1801779b0
xor eax, eax
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.1801fc6e0
add rsp, 0x3c0
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret
Function at 0x1801785a0
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
je 0x1801787c6
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x830
mov rax, qword [0x1802b7c00]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x1801787a6
mov r11d, dword [rdx + 0x20]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x850], rdi
mov ecx, r11d
mov rdi, qword [rdx]
shl rcx, 0xa
mov rdx, qword [rdi + 8]
add rdx, 0xfffffffffffffc00
add rdx, rcx
mov ecx, 8
lea rax, [rax + 0x80]
movups xmm0, xmmword [rdx]
lea rdx, [rdx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm1, xmmword [rdx - 0x70]
movups xmmword [rax - 0x70], xmm1
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rax - 0x60], xmm0
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rax - 0x50], xmm1
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rax - 0x40], xmm0
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rax - 0x30], xmm1
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rax - 0x20], xmm0
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rax - 0x10], xmm1
sub rcx, 1
jne 0x180178605
mov r10d, dword [rbx + 0x24]
mov r9d, 1
cmp r10d, r9d
jbe 0x180178747
nop dword [rax + rax]
lea eax, [r9 + 1]
mov r9d, eax
lea r8, [rsp + 0x20]
imul eax, r11d
lea edx, [rax - 1]
xor eax, eax
shl rdx, 0xa
add rdx, qword [rdi + 8]
lea rcx, [rdx + 0x3f8]
cmp r8, rcx
ja 0x1801786c6
lea rcx, [rsp + 0x418]
cmp rcx, rdx
jb 0x1801786c6
nop word [rax + rax]
mov rcx, qword [rdx + rax*8]
xor qword [rsp + rax*8 + 0x20], rcx
inc rax
cmp rax, 0x80
jl 0x1801786b0
jmp 0x18017873e
lea rcx, [rsp + 0x20]
sub rcx, rdx
lea r8, [rsp + 0x30]
sub r8, rdx
lea rax, [rdx + 0x20]
mov edx, reloc.WS2_32.dll_recv
nop
movdqu xmm0, xmmword [rcx + rax - 0x20]
movdqu xmm1, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmmword [rcx + rax - 0x60], xmm1
movdqu xmm0, xmmword [r8 + rax - 0x60]
movdqu xmm1, xmmword [rax - 0x50]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [r8 + rax - 0x60], xmm1
movdqu xmm1, xmmword [rcx + rax - 0x40]
xorps xmm1, xmm0
movdqu xmmword [rcx + rax - 0x40], xmm1
movdqu xmm0, xmmword [r8 + rax - 0x40]
movdqu xmm1, xmmword [rax - 0x30]
xorps xmm1, xmm0
movdqu xmmword [r8 + rax - 0x40], xmm1
sub rdx, 1
jne 0x1801786e0
cmp r9d, r10d
jb 0x180178670
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x420]
call fcn.180179080
mov edx, dword [rsi + 8]
lea r8, [rsp + 0x420]
mov rcx, qword [rsi]
mov r9d, 0x400
call fcn.180187610
mov edx, 0x400
lea rcx, [rsp + 0x20]
call fcn.180176640
mov edx, 0x400
lea rcx, [rsp + 0x420]
call fcn.180176640
mov edx, dword [rsi + 0x5c]
mov rcx, rbx
call fcn.1801787d0
mov rdi, qword [rsp + 0x850]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1801fc6e0
mov rbx, qword [rsp + 0x858]
add rsp, 0x830
pop rsi
ret
Function at 0x1801834b0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov r9, rcx
movzx eax, byte [rdx + 2]
movzx r8d, byte [rdx + 3]
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + 1]
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx]
shl r8d, 8
or r8d, eax
mov dword [rcx + 0x14], r8d
movzx eax, byte [rdx + 6]
movzx ecx, byte [rdx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 4]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x28], ecx
movzx eax, byte [rdx + 0xa]
movzx ecx, byte [rdx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 8]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x3c], ecx
movzx eax, byte [rdx + 0xe]
movzx ecx, byte [rdx + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x30], ecx
movzx eax, byte [rdx + 0x12]
movzx ecx, byte [rdx + 0x13]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x1c], ecx
movzx eax, byte [rdx + 0x16]
movzx ecx, byte [rdx + 0x17]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x14]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x10], ecx
movzx eax, byte [rdx + 0x1a]
movzx ecx, byte [rdx + 0x1b]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x18]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x24], ecx
movzx ecx, byte [rdx + 0x1f]
movzx eax, byte [rdx + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x38], ecx
mov dword [r9], 0x61707865
mov dword [r9 + 4], 0x3320646e
mov dword [r9 + 8], 0x79622d32
mov dword [r9 + 0xc], 0x6b206574
ret
Function at 0x1801891d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x10
mov rax, qword [0x1802b7c00]
xor rax, rsp
mov qword [rsp + 8], rax
xor edx, edx
lea r15, [0x18021e5e0]
mov dword [rsp], edx
mov r8, rcx
movzx edi, byte [rsp + 3]
xor eax, eax
movzx esi, byte [rsp + 2]
movzx ebx, dl
movzx ebp, byte [rsp + 1]
movzx r14d, dl
mov word [rsp + 4], dx
movzx r11d, byte [rsp + 5]
nop dword [rax]
movzx r10d, byte [r8 + rax]
movzx ecx, r10b
xor cl, byte [rax + r15]
or cl, r14b
movzx r14d, cl
movzx ecx, r10b
xor cl, byte [rax + r15 + 0x20]
or cl, bpl
movzx ebp, cl
movzx ecx, r10b
xor cl, byte [rax + r15 + 0x40]
or cl, sil
movzx esi, cl
movzx ecx, r10b
xor cl, byte [rax + r15 + 0x60]
or cl, dil
movzx edi, cl
movzx ecx, r10b
xor cl, byte [rax + r15 + 0x80]
or cl, bl
movzx ebx, cl
movzx ecx, r10b
xor cl, byte [rax + r15 + 0xa0]
xor r10b, byte [rax + r15 + 0xc0]
or cl, r11b
or r10b, dl
movzx r11d, cl
inc rax
movzx edx, r10b
cmp rax, 0x1f
jb 0x180189230
movzx ecx, byte [rax + r8]
movzx r9d, byte [rax + r15 + 0xa0]
and cl, 0x7f
movzx edx, byte [rax + r15 + 0x80]
movzx r8d, cl
xor edx, r8d
movzx ecx, r10b
or edx, ebx
xor r9d, r8d
dec edx
or r9d, r11d
dec r9d
or r9d, edx
movzx edx, byte [rax + r15 + 0x60]
xor edx, r8d
or edx, edi
dec edx
or r9d, edx
movzx edx, byte [rax + r15 + 0x40]
xor edx, r8d
or edx, esi
dec edx
or r9d, edx
movzx edx, byte [rax + r15 + 0x20]
xor edx, r8d
or edx, ebp
dec edx
or r9d, edx
movzx edx, byte [rax + r15]
movzx eax, byte [rax + r15 + 0xc0]
xor edx, r8d
xor eax, r8d
or edx, r14d
or eax, ecx
dec edx
dec eax
or r9d, edx
or eax, r9d
shr eax, 8
and eax, 1
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.1801fc6e0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x10
pop r15
pop r14
pop rdi
ret
Function at 0x18018e400
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, r8
lea rdx, [0x18027f548]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
jne 0x18018e43f
mov eax, 0xffffc200
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x30], rbp
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rbp, eax
mov rcx, rbx
cmp ebp, 0xffffffff
jne 0x18018e477
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, 0xffffc200
jmp 0x18018e517
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
lea rdx, [rbp + 1]
mov qword [rdi], rbp
test rdx, rdx
je 0x18018e509
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rsi], rax
test rax, rax
je 0x18018e509
mov r8, qword [rdi]
mov r9, rbx
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, qword [rdi]
je 0x18018e4de
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdx, qword [rdi]
mov rcx, qword [rsi]
call fcn.1801913a0
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0xffffc200
jmp 0x18018e517
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rsi]
lea rdx, str._____BEGIN
mov rax, qword [rdi]
mov byte [rcx + rax], 0
mov rcx, qword [rsi]
call sub.VCRUNTIME140.dll_strstr
test rax, rax
je 0x18018e505
inc qword [rdi]
xor eax, eax
jmp 0x18018e517
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, 0xffffc080
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret