joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bc70c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400bc4e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400bc4e0
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400bc4e0
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400bc4e0
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400bc4e0
cmp dword [rcx + 0x84], 0xe
jbe 0x1400bc4e0
cmp dword [rcx + 0xf8], esi
je 0x1400bc4e0
mov ecx, r14d
call fcn.1400bc628
mov ecx, 2
call fcn.1400c02b4
nop
cmp byte [0x14017b030], 0
jne 0x1400bc5aa
mov r15d, 1
mov eax, r15d
xchg dword [0x14017b020], eax
test ebx, ebx
jne 0x1400bc553
mov rdi, qword [0x1401730f8]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14017b028]
cmp rcx, rax
je 0x1400bc54a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14000cce0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14017b270]
jmp 0x1400bc55f
cmp ebx, r15d
jne 0x1400bc565
lea rcx, [0x14017b288]
call fcn.1400bd178
nop
test ebx, ebx
jne 0x1400bc57c
lea rdx, [0x1400f3ad8]
lea rcx, [0x1400f3ab8]
call fcn.1400bd4ec
lea rdx, [0x1400f3ae8]
lea rcx, [0x1400f3ae0]
call fcn.1400bd4ec
movzx eax, byte [0x14017b030]
test esi, esi
cmove eax, r15d
mov byte [0x14017b030], al
jmp 0x1400bc5aa
mov ecx, 2
call fcn.1400c0308
test esi, esi
jne 0x1400bc5c1
mov ecx, r14d
call fcn.1400bc5dc
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400bc470
Function at 0x14000d460
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x1400e6480]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov ebx, edx
mov dword [rsp + 0x40], 0x80
mov edi, ecx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x80
call fcn.140077300
lea r8, [rsp + 0x40]
mov ecx, edi
lea rdx, [rsp + 0x50]
test ebx, ebx
je 0x14000d4c9
call fcn.140064330
test eax, eax
je 0x14000d4d2
xor eax, eax
jmp 0x14000d5c4
call fcn.140064430
test eax, eax
jne 0x14000d4c2
movzx edx, word [rsp + 0x50]
cmp dx, 0x17
jne 0x14000d547
cmp dword [rsp + 0x58], 0
mov dword [rsp + 0x40], 0x1c
jne 0x14000d547
cmp dword [rsp + 0x5c], 0
jne 0x14000d547
mov ecx, 0xffff
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rsp + 0x60], eax
jne 0x14000d542
lea rcx, str.Normalising_mapped_IPv4_in_IPv6_address
call fcn.140002e50
movzx ecx, word [rsp + 0x52]
xor edx, edx
mov eax, dword [rsp + 0x64]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rdx
mov edx, 2
mov word [rsp + 0x50], dx
mov dword [rsp + 0x40], shutdown
mov dword [rsp + 0x54], eax
mov word [rsp + 0x52], cx
jmp 0x14000d547
movzx edx, word [rsp + 0x50]
movzx ecx, dx
sub ecx, 1
je 0x14000d5ba
sub ecx, 1
je 0x14000d55d
cmp ecx, 0x15
jne 0x14000d4c2
mov edx, dword [rsp + 0x40]
lea r8, [rbp - 0x30]
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x50]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x14000d5b4
mov ecx, eax
call fcn.1400034f0
mov r9, rax
lea rdx, str.get_socket_address
mov r8d, 2
lea rcx, str._s:_getnameinfo__d_failed:__s
call fcn.140002d00
xor eax, eax
jmp 0x14000d5c4
lea rcx, [rbp - 0x30]
jmp 0x14000d5bf
lea rcx, [rsp + 0x52]
call fcn.14000b9d0
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.1400758f0
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14000d650
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x100
mov rax, qword [0x1400e6480]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov ebx, edx
mov dword [rsp + 0x40], 0x80
mov edi, ecx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x80
call fcn.140077300
lea r8, [rsp + 0x40]
mov ecx, edi
lea rdx, [rsp + 0x50]
test ebx, ebx
je 0x14000d6c8
call fcn.140064430
test eax, eax
jns 0x14000d6f1
call fcn.1400826c8
mov ecx, dword [rax]
call fcn.14005f380
mov rdx, rax
lea rcx, str.getsockname_failed:__.100s
call fcn.140002d00
xor eax, eax
jmp 0x14000d76d
call fcn.140064330
test eax, eax
jns 0x14000d6f1
call fcn.1400826c8
mov ecx, dword [rax]
call fcn.14005f380
mov rdx, rax
lea rcx, [0x1400c4e80]
call fcn.140002df0
or eax, 0xffffffff
jmp 0x14000d76d
movzx eax, word [rsp + 0x50]
cmp ax, 0x17
jne 0x14000d707
mov edx, 0x1c
mov dword [rsp + 0x40], edx
jmp 0x14000d711
cmp ax, 2
jne 0x14000d6c1
mov edx, dword [rsp + 0x40]
mov dword [rsp + 0x30], 8
lea rax, [rsp + 0xd0]
mov dword [rsp + 0x28], 0x20
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x14000d760
mov ecx, eax
call fcn.1400034f0
mov r8, rax
lea rdx, str.get_sock_port
lea rcx, str._s:_getnameinfo_NI_NUMERICSERV_failed:__s
call fcn.14000c3a0
lea rcx, [rsp + 0xd0]
call fcn.1400869bc
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400758f0
mov rbx, qword [rsp + 0x118]
add rsp, 0x100
pop rdi
ret

Function at 0x14000d7a0
Capabilities:
Resolve dns

Disassembly:
mov edx, 1
jmp fcn.14000d650
Function at 0x140019050
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1400e6480]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov eax, dword [rcx + 0xc]
mov rbx, rcx
cmp rax, qword [rsp + 0xb8]
jbe 0x14001907f
mov eax, 0xfffffff6
jmp 0x1400190e4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], 0x40
mov qword [rsp + 0x20], rax
call fcn.140018ea0
test eax, eax
jne 0x1400190e4
mov r9d, dword [rbx + 0xc]
lea rax, [rsp + 0x30]
xor r8d, r8d
test r9, r9
je 0x1400190e2
mov r10, qword [rsp + 0xb0]
lea rcx, [rsp + 0x30]
sub r10, rcx
nop dword [rax]
movzx edx, byte [r10 + rax]
movzx ecx, byte [rax]
lea rax, [rax + 1]
xor edx, ecx
or r8d, edx
sub r9, 1
jne 0x1400190c0
test r8d, r8d
je 0x1400190e2
lea eax, [r9 - 0x1e]
jmp 0x1400190e4
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400758f0
add rsp, 0x80
pop rbx
ret
Function at 0x140024d50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
test rdx, rdx
je 0x140024e19
mov rax, qword [rcx + 0x28]
cmp r8, rax
ja 0x140024d7a
mov rcx, qword [rcx + 0x20]
call fcn.140076990
jmp 0x140024d92
mov r9, qword [rcx + 0x20]
mov ecx, dword [rcx]
mov qword [rsp + 0x20], rax
call fcn.140021730
test eax, eax
js 0x140024e46
xor edi, edi
mov ecx, edi
cmp qword [rbx + 0x28], rcx
jbe 0x140024db1
nop dword [rax]
mov rax, qword [rbx + 0x20]
xor byte [rax + rcx], 0x36
inc rcx
cmp rcx, qword [rbx + 0x28]
jb 0x140024da0
mov rcx, qword [rbx + 8]
mov r8, qword [rbx + 0x28]
add rcx, 8
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.libcrypto.dll_EVP_DigestUpdate]
cmp eax, 1
jne 0x140024e46
cmp qword [rbx + 0x28], rdi
jbe 0x140024df1
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0x20]
xor byte [rax + rdi], 0x6a
inc rdi
cmp rdi, qword [rbx + 0x28]
jb 0x140024de0
mov rcx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x28]
add rcx, 8
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.libcrypto.dll_EVP_DigestUpdate]
cmp eax, 1
jne 0x140024e46
mov rdx, qword [rbx + 0x28]
mov rcx, qword [rbx + 0x20]
call fcn.14005ced0
mov rcx, qword [rbx + 0x18]
mov rdx, qword [rbx + 8]
mov eax, dword [rcx]
cmp dword [rdx], eax
jne 0x140024e46
add rdx, 8
add rcx, 8
call qword [sym.imp.libcrypto.dll_EVP_MD_CTX_copy_ex]
test eax, eax
je 0x140024e46
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140027dc0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x1400e6480]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rdi, rdx
mov rbx, rcx
mov edx, 0x20
call fcn.140030f60
movups xmm2, xmmword [rbx]
lea rcx, [0x1400a8261]
movups xmm0, xmmword [rbx + 0x10]
lea rdx, [rsp + 0x24]
mov ebx, 0x10
movd eax, xmm2
mov r8d, ebx
movups xmmword [rsp + 0x1b0], xmm0
and al, 0xf8
psrldq xmm0, 0xf
movups xmmword [rsp + 0x1a0], xmm2
mov byte [rsp + 0x1a0], al
movd eax, xmm0
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x1bf], al
nop dword [rax + rax]
movzx eax, byte [rcx - 1]
lea rcx, [rcx + 2]
mov dword [rdx - 4], eax
lea rdx, [rdx + 8]
movzx eax, byte [rcx - 2]
mov dword [rdx - 8], eax
sub r8, 1
jne 0x140027e40
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0x20]
call fcn.14002c470
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xa0]
call fcn.14002cac0
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x120]
call fcn.14002bf50
lea rcx, [rsp + 0x120]
call fcn.14002bdb0
lea rax, [rsp + 0x124]
lea r11, [rdi + 1]
nop word [rax + rax]
movzx ecx, byte [rax - 4]
lea rax, [rax + 8]
mov byte [r11 - 1], cl
lea r11, [r11 + 2]
movzx ecx, byte [rax - 8]
mov byte [r11 - 2], cl
sub rbx, 1
jne 0x140027ec0
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400758f0
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1d0
pop rdi
ret
Function at 0x140027f00
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400e6480]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov rsi, rcx
mov edx, 0x20
lea rcx, [rsp + 0x20]
mov rdi, r8
call fcn.14005ced0
xor r8d, r8d
lea r10, [rsp + 0x20]
sub r10, rbx
mov r9d, 0x20
mov rax, rbx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r10 + rax]
movzx ecx, byte [rax]
lea rax, [rax + 1]
xor edx, ecx
or r8d, edx
sub r9, 1
jne 0x140027f50
test r8d, r8d
jne 0x140027f72
lea eax, [r9 - 0x14]
jmp 0x140027faa
mov r8, rbx
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.14002ce70
mov rcx, rdi
call fcn.140001300
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140002500
mov edx, 0x20
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.14005ced0
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400758f0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x14002b930
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400e6480]
xor rax, rsp
mov qword [rsp + 0x20], rax
xor r10d, r10d
lea rax, [rdx + 0x7c]
mov r9, rcx
mov rdi, r8
add rcx, 0x7c
mov rbx, rdx
mov esi, r10d
lea r11d, [r10 + 0x20]
cmp r9, rax
ja 0x14002b973
cmp rcx, rdx
jae 0x14002b9c4
mov rcx, rbx
lea rax, [r8 + 0x10]
sub rcx, rdi
mov rdx, r9
sub rdx, rdi
mov r8d, 4
mov esi, r11d
nop dword [rax]
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm0, xmmword [rax - 0x10]
lea rax, [rax + 0x20]
paddd xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmmword [rdx + rax - 0x30], xmm1
movdqu xmm2, xmmword [rcx + rax - 0x20]
paddd xmm2, xmm0
movdqu xmmword [rdx + rax - 0x20], xmm2
sub r8, 1
jne 0x14002b990
movsxd rax, esi
cmp rax, r11
jge 0x14002b9f3
mov r8, r9
lea rcx, [rdi + rax*4]
sub r8, rdi
sub rbx, rdi
mov rdx, r11
sub rdx, rax
nop
mov eax, dword [rcx + rbx]
add eax, dword [rcx]
mov dword [rcx + r8], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x14002b9e0
mov r8, r9
mov ebx, 0x1f
nop dword [rax + rax]
mov ecx, dword [r8]
lea r8, [r8 + 4]
mov eax, ecx
shr eax, 8
add dword [r8], eax
movzx eax, cl
mov dword [r8 - 4], eax
sub rbx, 1
jne 0x14002ba00
lea rbx, [0x1400c2fd0]
mov r8, r10
sub rbx, r9
mov rdx, r9
nop dword [rax]
add r10d, dword [rbx + rdx]
movzx ecx, byte [rdx]
mov eax, dword [rdx]
lea rdx, [rdx + 4]
sub cl, r10b
sub eax, r10d
shr eax, 0x1f
mov byte [rsp + r8], cl
mov r10d, eax
inc r8
cmp r8, r11
jl 0x14002ba30
lea r8d, [rax - 1]
lea rdx, [rsp]
nop dword [rax]
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
xor ecx, dword [r9]
lea r9, [r9 + 4]
and ecx, r8d
xor dword [r9 - 4], ecx
sub r11, 1
jne 0x14002ba60
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.1400758f0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14002bdb0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x1400e6480]
xor rax, rsp
mov qword [rsp + 0x90], rax
movups xmm0, xmmword [rcx]
xor edx, edx
lea r10, [0x1400c3050]
movups xmm1, xmmword [rcx + 0x10]
mov r8, rcx
sub r10, rcx
movups xmmword [rsp], xmm0
lea r9d, [rdx + 0x1f]
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rsp + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rsp + 0x30], xmm1
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rsp + 0x50], xmm1
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm1
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r10 + r8]
add eax, dword [r8]
lea r8, [r8 + 4]
add edx, eax
movzx eax, dl
shr edx, 8
mov dword [r8 - 4], eax
sub r9, 1
jne 0x14002be30
lea r9, [rcx + 0x7c]
lea eax, [rdx + 0x80]
add dword [r9], eax
lea rax, [rsp + 0x7c]
mov r8d, dword [r9]
shr r8d, 7
and r8d, 1
neg r8d
movd xmm2, r8d
pshufd xmm2, xmm2, 0
cmp rcx, rax
ja 0x14002bece
lea rax, [rsp]
cmp r9, rax
jb 0x14002bece
lea r10, [rsp]
mov r9d, 0x20
sub r10, rcx
nop dword [rax]
nop word [rax + rax]
mov edx, dword [rcx + r10]
xor edx, dword [rcx]
lea rcx, [rcx + 4]
and edx, r8d
xor dword [rcx - 4], edx
sub r9, 1
jne 0x14002bea0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400758f0
add rsp, 0xa8
ret
lea r8, [rsp]
sub r8, rcx
lea rax, [rsp]
sub rax, rcx
lea rdx, [rcx + 0x10]
lea rcx, [rax - 0x10]
mov eax, 4
nop dword [rax]
movdqu xmm0, xmmword [rdx - 0x10]
movdqu xmm1, xmmword [rcx + rdx]
lea rdx, [rdx + 0x20]
pxor xmm1, xmm0
pand xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rdx - 0x30], xmm1
movdqu xmm0, xmmword [rdx - 0x20]
movdqu xmm1, xmmword [r8 + rdx - 0x20]
pxor xmm1, xmm0
pand xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rdx - 0x20], xmm1
sub rax, 1
jne 0x14002bef0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400758f0
add rsp, 0xa8
ret
Function at 0x14002ce70
Capabilities:
Encrypt data using curve25519

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x1400e6480]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
movups xmm2, xmmword [rdx]
mov ebx, 0x10
mov rdi, rcx
movups xmm0, xmmword [rdx + 0x10]
lea rcx, [rsp + 0x24]
mov edx, ebx
movd eax, xmm2
movups xmmword [r11 - 0x28], xmm0
and al, 0xf8
psrldq xmm0, 0xf
movups xmmword [r11 - 0x38], xmm2
mov byte [r11 - 0x38], al
movd eax, xmm0
and al, 0x3f
or al, 0x40
mov byte [r11 - 0x19], al
inc r8
nop
movzx eax, byte [r8 - 1]
lea r8, [r8 + 2]
mov dword [rcx - 4], eax
lea rcx, [rcx + 8]
movzx eax, byte [r8 - 2]
mov dword [rcx - 8], eax
sub rdx, 1
jne 0x14002ced0
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0x20]
call fcn.14002c470
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xa0]
call fcn.14002cac0
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x120]
call fcn.14002bf50
lea rcx, [rsp + 0x120]
call fcn.14002bdb0
lea rax, [rsp + 0x124]
lea r11, [rdi + 1]
nop dword [rax + rax]
movzx ecx, byte [rax - 4]
lea rax, [rax + 8]
mov byte [r11 - 1], cl
lea r11, [r11 + 2]
movzx ecx, byte [rax - 8]
mov byte [r11 - 2], cl
sub rbx, 1
jne 0x14002cf50
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400758f0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1d0
pop rdi
ret
Function at 0x140048730
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x4c8
mov rax, qword [0x1400e6480]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
lea rcx, [0x1400e7440]
call fcn.14000b9d0
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x4d0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x40], rax
jmp 0x140048789
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140048952
mov dword [rsp + 0x30], 0xa
mov dword [rsp + 0x28], 0x20
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x401
lea r8, [rsp + 0xa0]
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 0x10]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_getnameinfo]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x1400487ff
mov ecx, dword [rsp + 0x48]
call fcn.1400034f0
mov rdx, rax
lea rcx, str.getnameinfo:__.100s
call fcn.140002d00
jmp 0x14004877b
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x40]
cmp dword [rax + 4], 0x17
jne 0x1400488b0
mov rax, qword [rsp + 0x4d0]
cmp qword [rax], 0
jne 0x140048834
lea rax, [0x1400e7441]
mov qword [rsp + 0x60], rax
jmp 0x140048844
mov rax, qword [rsp + 0x4d0]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x4d0]
cmp qword [rax], 0
jne 0x140048860
lea rax, [0x1400e7442]
mov qword [rsp + 0x68], rax
jmp 0x14004886c
lea rax, [0x1400d9868]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
lea rdx, str.listenaddress___s_:_s_s_s_n_s
lea rcx, [rsp + 0x58]
call fcn.14000ba70
jmp 0x140048943
mov rax, qword [rsp + 0x4d0]
cmp qword [rax], 0
jne 0x1400488cc
lea rax, [0x1400e7443]
mov qword [rsp + 0x70], rax
jmp 0x1400488dc
mov rax, qword [rsp + 0x4d0]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x4d0]
cmp qword [rax], 0
jne 0x1400488f8
lea rax, [0x1400e7444]
mov qword [rsp + 0x78], rax
jmp 0x140048904
lea rax, [0x1400d9898]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
lea rdx, str.listenaddress__s:_s_s_s_n_s
lea rcx, [rsp + 0x58]
call fcn.14000ba70
mov rcx, qword [rsp + 0x50]
call fcn.140078000
jmp 0x14004877b
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.1400758f0
add rsp, 0x4c8
ret
Function at 0x14005a790
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x50]
call fcn.14005d4a0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14005a7d4
mov rdx, qword [rsp + 0x50]
lea rcx, str.unable_to_resolve_group__s
call fcn.140002d00
jmp 0x14005a81c
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [0x1400e79b0]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
test eax, eax
jne 0x14005a81c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [0x1400e79a8]
lea rdx, str.check_group_membership
lea rcx, str._s_CheckTokenMembership_for_user__s_failed_with__d_for_group__s
call fcn.14000c3a0
cmp qword [rsp + 0x38], 0
je 0x14005a82e
mov rcx, qword [rsp + 0x38]
call fcn.140078000
cmp dword [rsp + 0x30], 0
je 0x14005a83f
mov dword [rsp + 0x34], 1
jmp 0x14005a847
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret
Function at 0x14005b4a0
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push rdi
sub rsp, 0x880
mov rax, qword [0x1400e6480]
xor rax, rsp
mov qword [rsp + 0x870], rax
xor eax, eax
mov word [rsp + 0x30], ax
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8, qword [0x1400e4598]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.1400856f4
lea r8, [0x1400e1c20]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140084d04
lea rdx, str.O:BAD:PAI_A_OICI_FA___SY__A_OICI_FA___BA__A_OICI_0x1200a9___AU_
lea rcx, [rsp + 0x30]
call fcn.14005cdc0
test eax, eax
jge 0x14005b52f
lea rdx, [rsp + 0x30]
lea rcx, [0x1400e1cb0]
call fcn.14004a1f0
mov ecx, 0xff
call fcn.140082ab8
xor eax, eax
mov word [rsp + 0x450], ax
lea rax, [rsp + 0x452]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea r8, [rsp + 0x30]
mov edx, 0x104
lea rcx, [rsp + 0x450]
call fcn.140084d04
lea r8, str.logs
mov edx, 0x104
lea rcx, [rsp + 0x450]
call fcn.140084d04
lea rdx, str.O:BAD:PAI_A_OICI_FA___SY__A_OICI_FA___BA_
lea rcx, [rsp + 0x450]
call fcn.14005cdc0
test eax, eax
jge 0x14005b5b3
lea rdx, [rsp + 0x450]
lea rcx, str.failed_to_create__s
call fcn.14004a1f0
mov ecx, 0xff
call fcn.140082ab8
xor eax, eax
mov word [rsp + 0x240], ax
lea rax, [rsp + 0x242]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea r8, [rsp + 0x30]
mov edx, 0x104
lea rcx, [rsp + 0x240]
call fcn.140084d04
lea r8, str._sshd_config
mov edx, 0x104
lea rcx, [rsp + 0x240]
call fcn.140084d04
lea rcx, [rsp + 0x240]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14005b6b1
xor eax, eax
mov word [rsp + 0x660], ax
lea rax, [rsp + 0x662]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea rax, str.sshd_config_default
mov qword [rsp + 0x20], rax
mov r9, qword [0x1400e4540]
lea r8, str._S_s
mov edx, 0x104
lea rcx, [rsp + 0x660]
call fcn.140054bc0
mov r8d, 1
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x660]
call qword [sym.imp.api_ms_win_core_file_l2_1_2.dll_CopyFileW]
test eax, eax
jne 0x14005b6b1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
lea r8, [rsp + 0x240]
lea rdx, [rsp + 0x660]
lea rcx, str.Failed_to_copy__s_to__s__error:_d
call fcn.14004a1f0
mov ecx, 0xff
call fcn.140082ab8
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.1400758f0
add rsp, 0x880
pop rdi
ret
Function at 0x14005b6d0
Capabilities:
Add user account
Create process on windows
Create process suspended
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
sub rsp, 0x558
mov rax, qword [0x1400e6480]
xor rax, rsp
mov qword [rsp + 0x540], rax
mov dword [rsp + 0x54], 0
xor eax, eax
mov word [rsp + 0x120], ax
lea rax, [rsp + 0x122]
mov rdi, rax
xor eax, eax
mov ecx, 0x200
rep stosb byte [rdi], al
call fcn.14005bc80
test eax, eax
je 0x14005b91a
mov qword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
xor r8d, r8d
lea rdx, [0x1400e1bb0]
xor ecx, ecx
call sub.samcli.dll_NetUserGetInfo
test eax, eax
je 0x14005b84a
mov rcx, qword [rsp + 0x58]
call sub.netutils.dll_NetApiBufferFree
lea rax, [0x1400e1bc0]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x120]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x8c], 1
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov dword [rsp + 0xa0], 0x10001
mov qword [rsp + 0xa8], 0
mov r9d, 2
mov r8d, 0x200
lea rdx, [rsp + 0x120]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x14005b7db
lea rcx, str.failed_to_generate_sshd_user_temporary_password
call fcn.14004a1f0
mov ecx, 0xff
call fcn.140082ab8
mov dword [rsp + 0x50], 0
jmp 0x14005b7ef
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0x100
jge 0x14005b822
movsxd rax, dword [rsp + 0x50]
movzx eax, word [rsp + rax*2 + 0x120]
cdq
mov ecx, 0x5e
idiv ecx
mov eax, edx
add eax, 0x21
movsxd rcx, dword [rsp + 0x50]
mov word [rsp + rcx*2 + 0x120], ax
jmp 0x14005b7e5
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x78]
mov edx, 1
xor ecx, ecx
call sub.samcli.dll_NetUserAdd
mov edx, 0x202
lea rcx, [rsp + 0x120]
call fcn.1400358e0
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0xb0], WSAGetLastError
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov eax, 2
imul rax, rax, 0xd
add rax, 2
lea rcx, [rsp + 0x330]
lea rdx, str.ssh_keygen__A
mov rdi, rcx
mov rsi, rdx
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], shutdown
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x330]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
je 0x14005b91a
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x540]
xor rcx, rsp
call fcn.1400758f0
add rsp, 0x558
pop rdi
pop rsi
ret