joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140049380
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
pxor xmm7, xmm15
pxor xmm7, xmm9
pxor xmm8, xmm2
pxor xmm2, xmm7
movups xmm0, xmmword [r11 + 0x20]
aesenc xmm2, xmm1
movups xmm1, xmmword [r11 + 0x30]
pxor xmm7, xmm9
aesenc xmm2, xmm0
movups xmm0, xmmword [r11 + 0x40]
jmp 0x1400493c0
aesenc xmm2, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesenc xmm2, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x1400493c0
aesenc xmm2, xmm1
movups xmm1, xmmword [r11 + 0x10]
mov rax, r10
aesenclast xmm2, xmm7
repz ret

Function at 0x1400497c0
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
pxor xmm15, xmm9
movdqu xmm11, xmmword [rbx + r12]
movdqa xmm12, xmm10
movdqu xmm13, xmmword [rbx + r13]
movdqa xmm14, xmm10
pxor xmm10, xmm15
movdqu xmm15, xmmword [rbx + r14]
pxor xmm11, xmm10
pxor xmm2, xmm10
pxor xmm12, xmm11
pxor xmm3, xmm11
pxor xmm13, xmm12
pxor xmm4, xmm12
pxor xmm14, xmm13
pxor xmm5, xmm13
pxor xmm15, xmm14
pxor xmm6, xmm14
pxor xmm7, xmm15
movups xmm0, xmmword [r11 + 0x20]
lea r12, [r8 + 1]
lea r13, [r8 + 3]
lea r14, [r8 + 5]
add r8, 6
pxor xmm10, xmm9
bsf r12, r12
bsf r13, r13
bsf r14, r14
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdec xmm4, xmm1
aesdec xmm5, xmm1
pxor xmm11, xmm9
pxor xmm12, xmm9
aesdec xmm6, xmm1
pxor xmm13, xmm9
pxor xmm14, xmm9
aesdec xmm7, xmm1
movups xmm1, xmmword [r11 + 0x30]
pxor xmm15, xmm9
aesdec xmm2, xmm0
aesdec xmm3, xmm0
aesdec xmm4, xmm0
aesdec xmm5, xmm0
aesdec xmm6, xmm0
aesdec xmm7, xmm0
movups xmm0, xmmword [r11 + 0x40]
shl r12, 4
shl r13, 4
jmp 0x1400498c0
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdec xmm4, xmm1
aesdec xmm5, xmm1
aesdec xmm6, xmm1
aesdec xmm7, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesdec xmm2, xmm0
aesdec xmm3, xmm0
aesdec xmm4, xmm0
aesdec xmm5, xmm0
aesdec xmm6, xmm0
aesdec xmm7, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x1400498c0
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdec xmm4, xmm1
aesdec xmm5, xmm1
aesdec xmm6, xmm1
aesdec xmm7, xmm1
movups xmm1, xmmword [r11 + 0x10]
shl r14, 4
aesdeclast xmm2, xmm10
movdqu xmm10, xmmword [rbx]
mov rax, r10
aesdeclast xmm3, xmm11
aesdeclast xmm4, xmm12
aesdeclast xmm5, xmm13
aesdeclast xmm6, xmm14
aesdeclast xmm7, xmm15
repz ret
Function at 0x140049960
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
pxor xmm15, xmm9
movdqu xmm11, xmmword [rbx + r12]
movdqa xmm12, xmm10
movdqu xmm13, xmmword [rbx + r13]
pxor xmm10, xmm15
pxor xmm11, xmm10
pxor xmm2, xmm10
pxor xmm12, xmm11
pxor xmm3, xmm11
pxor xmm13, xmm12
pxor xmm4, xmm12
pxor xmm5, xmm13
movups xmm0, xmmword [r11 + 0x20]
pxor xmm10, xmm9
pxor xmm11, xmm9
pxor xmm12, xmm9
pxor xmm13, xmm9
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdec xmm4, xmm1
aesdec xmm5, xmm1
movups xmm1, xmmword [r11 + 0x30]
aesdec xmm2, xmm0
aesdec xmm3, xmm0
aesdec xmm4, xmm0
aesdec xmm5, xmm0
movups xmm0, xmmword [r11 + 0x40]
jmp 0x140049a00
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdec xmm4, xmm1
aesdec xmm5, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesdec xmm2, xmm0
aesdec xmm3, xmm0
aesdec xmm4, xmm0
aesdec xmm5, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x140049a00
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdec xmm4, xmm1
aesdec xmm5, xmm1
movups xmm1, xmmword [r11 + 0x10]
mov rax, r10
aesdeclast xmm2, xmm10
aesdeclast xmm3, xmm11
aesdeclast xmm4, xmm12
aesdeclast xmm5, xmm13
repz ret

Function at 0x140049a80
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
pxor xmm7, xmm15
pxor xmm7, xmm9
pxor xmm2, xmm7
movups xmm0, xmmword [r11 + 0x20]
aesdec xmm2, xmm1
movups xmm1, xmmword [r11 + 0x30]
pxor xmm7, xmm9
aesdec xmm2, xmm0
movups xmm0, xmmword [r11 + 0x40]
jmp 0x140049ac0
aesdec xmm2, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesdec xmm2, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x140049ac0
aesdec xmm2, xmm1
movups xmm1, xmmword [r11 + 0x10]
mov rax, r10
aesdeclast xmm2, xmm7
repz ret
Function at 0x14004a530
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 8
call fcn.14004a5a0
shl edx, 4
test eax, eax
jne 0x14004a596
lea rcx, [r8 + rdx + 0x10]
movups xmm0, xmmword [r8]
movups xmm1, xmmword [rcx]
movups xmmword [rcx], xmm0
movups xmmword [r8], xmm1
lea r8, [r8 + 0x10]
lea rcx, [rcx - 0x10]
movups xmm0, xmmword [r8]
movups xmm1, xmmword [rcx]
aesimc xmm0, xmm0
aesimc xmm1, xmm1
lea r8, [r8 + 0x10]
lea rcx, [rcx - 0x10]
movups xmmword [rcx + 0x10], xmm0
movups xmmword [r8 - 0x10], xmm1
cmp rcx, r8
ja 0x14004a55b
movups xmm0, xmmword [r8]
aesimc xmm0, xmm0
pxor xmm1, xmm1
movups xmmword [rcx], xmm0
pxor xmm0, xmm0
add rsp, 8
repz ret
Function at 0x14004b680
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 0x14004b7a0
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 0x14004b6e0
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 0x14004b6e0
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 0x14004b6e0
Function at 0x140058100
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x140058135
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 0x140058110
and r10, 0xf
je 0x140058165
mov r9d, reloc.WS2_32.dll_recv
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 0x140058140
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x140058159
mov rax, r8
repz ret

Function at 0x140058170
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x1400581ad
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 0x140058180
pxor xmm1, xmm1
and r10, 0xf
je 0x1400581e3
mov r9d, reloc.WS2_32.dll_recv
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 0x1400581bb
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x1400581d7
mov rax, r8
repz ret
Function at 0x14005c6c0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x1402bf070]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor ebx, ebx
xorps xmm0, xmm0
mov dword [rsp + 0x58], ebx
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x60], xmm0
mov rdi, rdx
mov qword [r11 - 0x58], rbx
mov rsi, rcx
movups xmmword [rsp + 0x78], xmm1
mov qword [r11 - 0x40], rbx
movdqa xmmword [r11 - 0x38], xmm0
mov dword [rsp + 0x50], 2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x54], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rdi + 0x40]
lea r9, [rsp + 0x88]
mov rdx, qword [rdi + 0x48]
mov rcx, rax
mov dword [rsp + 0x30], ebx
mov rbp, rax
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14005c813
mov r8, qword [rdi + 0x40]
lea r9, [rsp + 0x90]
mov rdx, qword [rdi + 0x50]
mov rcx, rbp
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x100002
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14005c813
mov r8, qword [rdi + 0x40]
lea r9, [rsp + 0x98]
mov rdx, qword [rsi + 0x70]
mov rcx, rbp
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14005c813
mov rcx, qword [rsi + 0x60]
lea rax, [rsi + 0xe8]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r8d, [rbx + 0x50]
mov dword [rsp + 0x40], ebx
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test eax, eax
jne 0x14005c7f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test bpl, bpl
jne 0x14005c803
cmp ebx, 0x3e5
jne 0x14005c8aa
mov rdx, rdi
mov rcx, rsi
call fcn.14005cd20
jmp 0x14005c8ac
mov rdx, qword [rsp + 0x88]
test rdx, rdx
je 0x14005c848
mov rcx, qword [rdi + 0x40]
xor r9d, r9d
mov dword [rsp + 0x30], 1
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov qword [rsp + 0x88], rbx
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x14005c87d
mov rcx, qword [rdi + 0x40]
xor r9d, r9d
mov dword [rsp + 0x30], 1
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov qword [rsp + 0x90], rbx
mov rdx, qword [rsp + 0x98]
test rdx, rdx
je 0x14005c8aa
mov rcx, qword [rdi + 0x40]
xor r9d, r9d
mov dword [rsp + 0x30], 1
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor al, al
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400b9f70
mov rbx, qword [rsp + 0xe0]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140061450
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402bf070]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140061525
cmp byte [rcx + 0x71], 0
je 0x140061525
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140061521
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x1400614e4
sub eax, 1
je 0x1400614e8
cmp eax, 2
jne 0x140061521
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400b9f70
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140061518
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.1401e9c64
cmp rdi, rax
jne 0x140061521
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400614cc
xor al, al
jmp 0x1400614cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400b9f70
add rsp, 0x60
pop rbx
ret
Function at 0x14006e550
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov qword [rcx], rbp
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], select
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
lea rsi, [rdx + 0x10]
mov rdx, qword [rsi]
call fcn.140060ed0
lea r15d, [rbp - 6]
mov r14, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14006e5af
mov r14, qword [rdi]
mov rdi, r14
mov r13, qword [rsi]
add r13, rdi
cmp r14, r13
je 0x14006e6c2
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop word [rax + rax]
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x14006e65d
movsxd r12, ebp
movsxd rdi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop dword [rax + rax]
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14006e63d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14006e632
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14006e653
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.1400625e0
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x14006e600
inc r14
cmp r14, r13
jne 0x14006e5d0
cmp r15d, 0xfffffffa
jle 0x14006e6c2
lfence
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rdx, ebp
sar rdx, cl
and edx, 0x3f
movzx r9d, byte [rdx + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14006e6b3
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14006e6a8
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14006e6c2
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.1400625e0
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x14006e710
nop dword [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14006e6f5
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14006e6ed
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x14006e707
mov r9b, 0x3d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.1400625e0
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x14006e6d0
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006ec50
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x4f0
mov rax, qword [0x1402bf070]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rax, rdx
mov qword [rsp + 0x40], rcx
mov rbx, rcx
mov dword [rsp + 0x40], pe_nt_image_headers64
mov rcx, rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getpeername]
xor edi, edi
test eax, eax
jne 0x14006ed22
xor edx, edx
lea rcx, [rsp + 0xd0]
mov r8d, 0x401
call fcn.1401df9b0
mov edx, dword [rsp + 0x40]
lea r8, [rsp + 0xd0]
mov dword [rsp + 0x30], 2
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], edi
mov r9d, 0x401
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x14006ed22
mov qword [rbx], rdi
lea rax, [rsp + 0xd0]
mov qword [rbx + 0x10], rdi
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], select
mov byte [rbx], dil
inc r8
cmp byte [rax + r8], dil
jne 0x14006ed07
lea rdx, [rsp + 0xd0]
mov rcx, rbx
call fcn.140061990
jmp 0x14006ed34
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], select
mov byte [rbx], dil
mov rax, rbx
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.1400b9f70
mov rbx, qword [rsp + 0x510]
add rsp, 0x4f0
pop rdi
ret
Function at 0x140077e60
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x58
mov rax, qword [0x1402bf070]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
mov qword [rsp + 0x28], rcx
cmp qword [rcx + 0x20], 0x10
lea rbx, [rcx + 8]
mov rbp, rdx
mov byte [rsp + 0x20], 0
mov edi, 2
mov r15d, esi
mov rdx, rbx
jb 0x140077ea4
mov rdx, qword [rbx]
lea r8, [rsp + 0x38]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140077ec0
mov r15d, reloc.WS2_32.dll_recv
jmp 0x140077ee4
cmp qword [rbx + 0x18], 0x10
jb 0x140077eca
mov rbx, qword [rbx]
lea r8, [rsp + 0x30]
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140077ee9
mov r15d, 4
mov edi, 7
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 0x55]
call fcn.1400bbc20
mov r12, rax
test rax, rax
je 0x140077fee
mov qword [rsp + 0xa0], r13
mov rcx, rax
mov qword [rsp + 0x50], r14
xor r13b, r13b
xor r14b, r14b
call fcn.1400bd480
mov dword [rsp + 0x24], eax
test eax, eax
jle 0x140077fe1
lfence
test r14b, r14b
jne 0x140077fdc
mov edx, esi
mov rcx, r12
call fcn.1400bd6b0
mov rbp, rax
cmp dword [rax], edi
jne 0x140077fc6
mov rcx, qword [rax + 8]
call fcn.1400bc020
mov rcx, qword [rbp + 8]
mov rbx, rax
call fcn.1400bc030
movsxd r8, eax
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x140077f70
cmp rax, r8
jne 0x140077fc6
cmp edi, 2
je 0x140077fb5
cmp edi, 7
jne 0x140077fc6
mov r8, r15
lea rcx, [rsp + 0x38]
mov rdx, rbx
call fcn.1401dfb60
test eax, eax
je 0x140077fb0
mov r8, r15
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.1401dfb60
test eax, eax
jne 0x140077fc6
mov r13b, 1
jmp 0x140077fc6
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
call fcn.140078020
movzx r14d, al
inc esi
cmp esi, dword [rsp + 0x24]
jl 0x140077f31
test r14b, r14b
jne 0x140077fdc
test r13b, r13b
je 0x140077fe1
mov byte [rsp + 0x20], 1
mov r13, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x50]
mov rcx, r12
call fcn.1400bd940
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400b9f70
add rsp, 0x58
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14007bce0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x1402bf070]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbp, r8
mov ebx, edx
mov rdi, rcx
mov dword [rsp + 0x38], 0x20
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov edx, 0xffff
mov rsi, 0xffffffffffffffff
mov r8d, 0x7008
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x80], xmm1
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 1
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.14006d820
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14007be56
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14007be4c
nop dword [rax]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14007bdf2
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14007be3a
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8, rbx
mov rdx, rdi
mov rcx, rbp
call fcn.14006e890
test al, al
jne 0x14007beba
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14007bdb0
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14007be8f
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007be8a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007beca
call fcn.1400b9f90
mov rax, rsi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400b9f70
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rsi, rdi
jmp 0x14007be56
call fcn.1401e40b0
int3
Function at 0x140088360
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbx
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14008852b
test rdx, rdx
je 0x14008852b
test r8, r8
je 0x14008852b
movups xmm1, xmmword [r8]
mov r9d, dword [rbx + 8]
mov qword [r11 + 8], rbp
mov ebp, dword [rbx]
movdqa xmm0, xmm1
mov qword [r11 + 0x10], rsi
movq r10, xmm1
mov esi, dword [rbx + 4]
mov ebx, dword [rbx + 0xc]
mov qword [r11 + 0x18], r12
lea r12, [0x14029b140]
mov qword [r11 - 0x18], r13
lea r13, [0x14029b100]
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
movd r15d, xmm1
movups xmmword [rsp], xmm1
shr r10, 0x20
mov edx, r15d
psrldq xmm0, 8
movd r14d, xmm0
xor edx, r14d
mov dword [r11 - 0x30], r14d
mov r11, qword [r11 - 0x30]
mov ecx, edx
mov eax, edx
ror ecx, 8
rol eax, 8
xor ecx, eax
shr r11, 0x20
xor edx, ecx
xor r10d, edx
xor r11d, edx
mov edx, r10d
xor edx, r11d
mov ecx, edx
mov eax, edx
ror ecx, 8
rol eax, 8
xor ecx, eax
xor edx, ecx
xor r15d, edx
xor r14d, edx
mov edx, r9d
xor esi, r10d
xor edx, ebp
xor r9d, r14d
mov ecx, edx
mov eax, edx
rol eax, 8
mov r8d, r11d
xor r8d, ebx
ror ecx, 8
xor ecx, eax
mov ebx, r15d
xor ebx, dword [r12]
xor edx, ecx
xor ebx, ebp
xor esi, edx
xor r8d, edx
sub r12, 4
mov edx, r8d
rol r8d, 2
xor edx, esi
mov ecx, edx
mov eax, edx
rol eax, 8
ror ecx, 8
xor ecx, eax
mov eax, r8d
xor edx, ecx
xor r9d, edx
xor ebx, edx
rol r9d, 5
or eax, r9d
rol ebx, 1
not eax
xor esi, eax
mov eax, r9d
and eax, esi
xor r9d, esi
xor ebx, eax
xor r9d, ebx
xor r9d, r8d
mov eax, r9d
mov ebp, r9d
or eax, ebx
ror r9d, 5
not eax
ror ebx, 2
xor esi, eax
and ebp, esi
xor ebp, r8d
ror ebp, 1
cmp r12, r13
jg 0x140088420
mov r13, qword [rsp + 0x20]
xor r10d, esi
mov r12, qword [rsp + 0x50]
xor r11d, ebx
mov rsi, qword [rsp + 0x48]
mov edx, r9d
xor edx, ebp
mov ecx, edx
mov eax, edx
rol eax, 8
ror ecx, 8
xor ecx, eax
xor edx, ecx
xor r11d, edx
xor r10d, edx
mov ecx, r11d
mov dword [rdi + 4], r10d
xor ecx, r10d
mov dword [rdi + 0xc], r11d
mov edx, ecx
mov eax, ecx
rol eax, 8
ror edx, 8
xor edx, eax
xor edx, ecx
mov eax, edx
xor edx, r14d
mov r14, qword [rsp + 0x18]
xor eax, r15d
mov r15, qword [rsp + 0x10]
xor eax, ebp
mov rbp, qword [rsp + 0x40]
btc eax, 7
xor edx, r9d
mov dword [rdi], eax
mov dword [rdi + 8], edx
mov eax, 1
add rsp, 0x28
pop rdi
pop rbx
ret
xor eax, eax
add rsp, 0x28
pop rdi
pop rbx
ret