joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140064a60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [rsp + 0xb8]
mov qword [r11 - 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [r11 - 0x48], rax
mov rax, qword [rsp + 0xa8]
mov qword [r11 - 0x50], rax
mov rax, qword [rsp + 0xa0]
mov qword [r11 - 0x58], rax
call fcn.140061360
mov rax, qword [rsp + 0xf8]
mov r13, qword [rsp + 0xf0]
mov r12, qword [rsp + 0xe8]
mov r14, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xd0]
mov r9, r14
mov rdi, qword [rsp + 0xc8]
mov r8, rsi
mov rbx, qword [rsp + 0xc0]
mov rdx, rdi
mov r15, qword [rsp + 0xe0]
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r15
call fcn.140061480
vmovdqu32 zmm3, zmmword [rbx]
mov r9, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rsp + 0xa0]
vpmaxsd zmm1, zmm3, zmmword [r9]
vmovdqu32 zmmword [rbx], zmm1
vpminsd zmm0, zmm3, zmmword [r9]
vmovdqu32 zmmword [r9], zmm0
vmovdqu32 zmm4, zmmword [rdi]
vpmaxsd zmm0, zmm4, zmmword [r8]
mov r10, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov r11, qword [rsp + 0x90]
vmovdqu32 zmmword [rdi], zmm0
vpminsd zmm1, zmm4, zmmword [r8]
vmovdqu32 zmmword [r8], zmm1
vmovdqu32 zmm3, zmmword [rsi]
vpmaxsd zmm1, zmm3, zmmword [rdx]
vmovdqu32 zmmword [rsi], zmm1
vpminsd zmm0, zmm3, zmmword [rdx]
vmovdqu32 zmmword [rdx], zmm0
vmovdqu32 zmm4, zmmword [r14]
vpmaxsd zmm0, zmm4, zmmword [rax]
vmovdqu32 zmmword [r14], zmm0
vpminsd zmm1, zmm4, zmmword [rax]
vmovdqu32 zmmword [rax], zmm1
vmovdqu32 zmm3, zmmword [r15]
vpmaxsd zmm1, zmm3, zmmword [r10]
vmovdqu32 zmmword [r15], zmm1
vpminsd zmm0, zmm3, zmmword [r10]
vmovdqu32 zmmword [r10], zmm0
vmovdqu32 zmm4, zmmword [r12]
vpmaxsd zmm0, zmm4, zmmword [r11]
vmovdqu32 zmmword [r12], zmm0
vpminsd zmm1, zmm4, zmmword [r11]
vmovdqu32 zmmword [r11], zmm1
vmovdqu32 zmm3, zmmword [r13]
vpmaxsd zmm1, zmm3, zmmword [rcx]
vmovdqu32 zmmword [r13], zmm1
vpminsd zmm0, zmm3, zmmword [rcx]
vmovdqu32 zmmword [rcx], zmm0
mov rcx, qword [rsp + 0xf8]
mov qword [rsp + 0x38], r9
mov r9, r10
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], rdx
vmovdqu32 zmm4, zmmword [rcx]
vpmaxsd zmm0, zmm4, zmmword [rbx]
vmovdqu32 zmmword [rcx], zmm0
vpminsd zmm1, zmm4, zmmword [rbx]
vmovdqu32 zmmword [rbx], zmm1
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x88]
mov r8, r11
vzeroupper
call fcn.1400615a0
mov rax, qword [rsp + 0xf8]
mov r9, r14
mov rcx, qword [rsp + 0xc0]
mov r8, rsi
mov qword [rsp + 0xb8], rax
mov rdx, rdi
mov qword [rsp + 0xb0], r13
mov qword [rsp + 0xa8], r12
mov qword [rsp + 0xa0], r15
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
jmp fcn.1400615a0
Function at 0x140067900
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, dword [r8 + 0x180]
mov r10, rcx
mov ecx, 0x3020100
mov rbx, r8
mov dword [r8 + 0x188], ecx
mov r9d, 1
mov eax, r9d
add ecx, 0x4040404
inc r9d
mov dword [r8 + rax*4 + 0x188], ecx
cmp r9d, r11d
jbe 0x140067924
xor r8d, r8d
test edx, edx
je 0x140067982
mov r9d, edx
movzx ecx, byte [r10]
mov eax, ecx
or r8d, ecx
movzx edx, byte [rcx + rbx + 0x188]
mov byte [r10], dl
mov byte [rbx + 0x187], dl
movzx ecx, byte [rax + rbx + 0x187]
mov rdx, rax
sub rax, 1
mov byte [rdx + rbx + 0x188], cl
jns 0x140067961
inc r10
sub r9, 1
jne 0x140067947
shr r8d, 2
mov dword [rbx + 0x180], r8d
mov rbx, qword [rsp + 8]
ret

Function at 0x14006edc0
Capabilities:
Enumerate pe sections

Disassembly:
mov r11, rcx
cmp r8, 0x20
jb 0x14006ef70
mov r10d, dword [rcx + 0x1c]
movzx edx, byte [r9]
inc edx
movzx eax, byte [r9 + 1]
imul edx, r10d
inc eax
movzx r8d, byte [r9 + 2]
movzx ecx, byte [r9 + 3]
inc r8d
inc ecx
add edx, eax
imul edx, r10d
add r8d, edx
movzx edx, byte [r9 + 4]
inc edx
imul r8d, r10d
add ecx, r8d
imul ecx, r10d
add edx, ecx
movzx ecx, byte [r9 + 5]
imul edx, r10d
inc ecx
add ecx, edx
movzx edx, byte [r9 + 6]
imul ecx, r10d
inc edx
add edx, ecx
movzx ecx, byte [r9 + 7]
imul edx, r10d
inc ecx
add ecx, edx
movzx edx, byte [r9 + 8]
imul ecx, r10d
inc edx
add edx, ecx
movzx ecx, byte [r9 + 9]
imul edx, r10d
inc ecx
add ecx, edx
movzx edx, byte [r9 + 0xa]
imul ecx, r10d
inc edx
add edx, ecx
movzx ecx, byte [r9 + 0xb]
imul edx, r10d
inc ecx
add ecx, edx
movzx edx, byte [r9 + 0xc]
imul ecx, r10d
inc edx
add edx, ecx
movzx ecx, byte [r9 + 0xd]
imul edx, r10d
inc ecx
add ecx, edx
movzx edx, byte [r9 + 0xe]
imul ecx, r10d
inc edx
add edx, ecx
movzx ecx, byte [r9 + 0xf]
imul edx, r10d
inc ecx
add ecx, edx
movzx edx, byte [r9 + 0x10]
imul ecx, r10d
inc edx
add edx, ecx
movzx ecx, byte [r9 + 0x11]
imul edx, r10d
inc ecx
add ecx, edx
movzx edx, byte [r9 + 0x12]
imul ecx, r10d
inc edx
add edx, ecx
movzx ecx, byte [r9 + 0x13]
imul edx, r10d
inc ecx
add ecx, edx
movzx edx, byte [r9 + 0x14]
imul ecx, r10d
inc edx
add edx, ecx
movzx ecx, byte [r9 + 0x15]
imul edx, r10d
inc ecx
add ecx, edx
movzx edx, byte [r9 + 0x16]
imul ecx, r10d
inc edx
add edx, ecx
movzx ecx, byte [r9 + 0x17]
imul edx, r10d
inc ecx
add ecx, edx
movzx edx, byte [r9 + 0x18]
imul ecx, r10d
inc edx
add edx, ecx
movzx ecx, byte [r9 + 0x19]
imul edx, r10d
inc ecx
add ecx, edx
movzx edx, byte [r9 + 0x1a]
imul ecx, r10d
inc edx
add edx, ecx
movzx ecx, byte [r9 + 0x1b]
imul edx, r10d
inc ecx
add ecx, edx
movzx edx, byte [r9 + 0x1c]
imul ecx, r10d
inc edx
add edx, ecx
movzx ecx, byte [r9 + 0x1d]
imul edx, r10d
inc ecx
add ecx, edx
movzx edx, byte [r9 + 0x1e]
imul ecx, r10d
inc edx
add edx, ecx
movzx ecx, byte [r9 + 0x1f]
imul edx, r10d
inc ecx
add ecx, edx
mov dword [r11], ecx
ret

Function at 0x1400716b0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rcx, qword [rcx + 0x10]
call qword [0x1404c99e0]
test rax, rax
je 0x1400716cb
add rsp, 0x28
ret
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x1400acda0
Capabilities:
Compute adler32 checksum

Disassembly:
mov r8d, r8d
jmp 0x1400acdb0
mov r9d, ecx
mov r10, rdx
shr r9d, 0x10
movzx ecx, cx
cmp r8, 1
jne 0x1400acdf4
movzx edx, byte [rdx]
add edx, ecx
cmp edx, 0xfff1
lea r8d, [rdx - 0xfff1]
cmovb r8d, edx
lea eax, [r8 + r9]
cmp eax, 0xfff1
lea ecx, [rax - 0xfff1]
cmovb ecx, eax
shl ecx, 0x10
or ecx, r8d
mov eax, ecx
ret
test rdx, rdx
jne 0x1400acdfd
lea eax, [rdx + 1]
ret
cmp r8, 0x10
jae 0x1400ace4c
test r8, r8
je 0x1400ace23
nop dword [rax + rax]
movzx eax, byte [r10]
lea r10, [r10 + 1]
add ecx, eax
add r9d, ecx
sub r8, 1
jne 0x1400ace10
cmp ecx, 0xfff1
lea r8d, [rcx - 0xfff1]
mov eax, 0x80078071
cmovb r8d, ecx
mul r9d
shr edx, 0xf
imul eax, edx, 0xf
add eax, r9d
shl eax, 0x10
or eax, r8d
ret
cmp r8, 0x15b0
jb 0x1400acf27
mov r11, r8
movabs rax, 0x79baa6bb6398b6f7
mul r8
sub r11, rdx
shr r11, 1
add r11, rdx
shr r11, 0xc
imul rax, r11, 0xffffffffffffea50
add r8, rax
mov edx, 0x2b6
nop word [rax + rax]
movzx eax, byte [r10]
add ecx, eax
movzx eax, byte [r10 + 1]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 2]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 3]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 4]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 5]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 6]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 7]
add r9d, ecx
add r10, 8
add ecx, eax
add r9d, ecx
add edx, 0xffffffff
jne 0x1400ace90
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
sub r11, 1
jne 0x1400ace80
test r8, r8
je 0x1400acfd9
cmp r8, 8
jb 0x1400acfa0
mov rdx, r8
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r8, rax
nop word [rax + rax]
movzx eax, byte [r10]
add ecx, eax
movzx eax, byte [r10 + 1]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 2]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 3]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 4]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 5]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 6]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 7]
add r9d, ecx
add r10, 8
add ecx, eax
add r9d, ecx
sub rdx, 1
jne 0x1400acf40
test r8, r8
je 0x1400acfb3
nop
movzx eax, byte [r10]
lea r10, [r10 + 1]
add ecx, eax
add r9d, ecx
sub r8, 1
jne 0x1400acfa0
mov eax, 0x80078071
mul ecx
mov eax, 0x80078071
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mul r9d
shr edx, 0xf
imul edx, edx, 0xffff000f
add r9d, edx
shl r9d, 0x10
or r9d, ecx
mov eax, r9d
ret

Function at 0x1400af06c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400af0b6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400af0b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400af0b6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400af0b6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400af0b6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400af0b8
xor al, al
add rsp, 0x28
ret
Function at 0x140193cc0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov esi, edx
mov qword [rbp - 0x40], r8
mov rdi, r8
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rbx
mov qword [rbp - 0x4c], rcx
mov edx, esi
mov dword [rbp - 0x44], edx
mov r8, rdi
mov qword [rbp - 0x54], r8
lea rcx, [rbp - 0x80]
call fcn.140007160
mov rcx, qword [rbp - 0x4c]
mov edx, dword [rbp - 0x44]
mov r8, qword [rbp - 0x54]
call sub.WS2_32.dll_ioctlsocket
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.1400071b0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.140003a77
mov dword [rax + 0xf8], esi
mov eax, ebx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140193d60
Capabilities:
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov esi, edx
mov rbx, r8
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.14026b100
nop
mov qword [rbp - 0x50], rbx
mov rcx, qword [rbp - 0x48]
mov rdi, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rdi
mov qword [rbp - 0x5c], rcx
mov edx, esi
mov dword [rbp - 0x54], edx
mov r8, rbx
mov qword [rbp - 0x64], r8
lea rcx, [rbp - 0x90]
call fcn.140007160
mov rcx, qword [rbp - 0x5c]
mov edx, dword [rbp - 0x54]
mov r8, qword [rbp - 0x64]
call sub.WS2_32.dll_ioctlsocket
mov ebx, eax
lea rcx, [rbp - 0x90]
call fcn.1400071b0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x140193e11
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.14026b140
call fcn.140003a77
mov dword [rax + 0xf8], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140193f70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov rbx, rdx
mov esi, r8d
mov edi, r9d
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.14026b100
mov rcx, qword [rbp - 0x48]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r14
mov qword [rbp - 0x58], rcx
mov rdx, rbx
mov qword [rbp - 0x60], rdx
mov r8d, esi
mov dword [rbp - 0x4c], r8d
mov r9d, edi
mov dword [rbp - 0x50], r9d
lea rcx, [rbp - 0x88]
call fcn.140007160
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
mov r8d, dword [rbp - 0x4c]
mov r9d, dword [rbp - 0x50]
call sub.WS2_32.dll_recv
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.1400071b0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
cmp byte [rbp - 0x40], 0
je 0x140194021
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.14026b140
call fcn.140003a77
mov dword [rax + 0xf8], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140194080
Capabilities:
Get socket status

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov ebx, ecx
mov rsi, rdx
mov rdi, r8
mov r14, r9
mov r15, qword [rbp + 0x30]
mov qword [rbp - 0x40], r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov qword [rsp + 0x20], r15
mov ecx, ebx
mov dword [rbp - 0x44], ecx
mov rdx, rsi
mov qword [rbp - 0x4c], rdx
mov r8, rdi
mov qword [rbp - 0x54], r8
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140007160
mov ecx, dword [rbp - 0x44]
mov rdx, qword [rbp - 0x4c]
mov r8, qword [rbp - 0x54]
mov r9, qword [rbp - 0x5c]
call sub.WS2_32.dll_select
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.1400071b0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.140003a77
mov dword [rax + 0xf8], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1401942e0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov esi, edx
mov edi, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15d, dword [rbp + 0x30]
mov dword [rsp + 0x20], r15d
mov rcx, rbx
mov qword [rbp - 0x50], rcx
mov edx, esi
mov dword [rbp - 0x44], edx
mov r8d, edi
mov dword [rbp - 0x48], r8d
mov r9, r14
mov qword [rbp - 0x58], r9
lea rcx, [rbp - 0x80]
call fcn.140007160
mov rcx, qword [rbp - 0x50]
mov edx, dword [rbp - 0x44]
mov r8d, dword [rbp - 0x48]
mov r9, qword [rbp - 0x58]
call sub.WS2_32.dll_setsockopt
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.1400071b0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.140003a77
mov dword [rax + 0xf8], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140194390
Capabilities:
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov esi, edx
mov edi, r8d
mov rbx, r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.14026b100
nop
mov qword [rbp - 0x50], rbx
mov rcx, qword [rbp - 0x48]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15d, dword [rbp + 0x30]
mov dword [rsp + 0x20], r15d
mov rcx, r14
mov qword [rbp - 0x60], rcx
mov edx, esi
mov dword [rbp - 0x54], edx
mov r8d, edi
mov dword [rbp - 0x58], r8d
mov r9, rbx
mov qword [rbp - 0x68], r9
lea rcx, [rbp - 0x90]
call fcn.140007160
mov rcx, qword [rbp - 0x60]
mov edx, dword [rbp - 0x54]
mov r8d, dword [rbp - 0x58]
mov r9, qword [rbp - 0x68]
call sub.WS2_32.dll_setsockopt
mov ebx, eax
lea rcx, [rbp - 0x90]
call fcn.1400071b0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x14019445b
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.14026b140
call fcn.140003a77
mov dword [rax + 0xf8], esi
mov eax, ebx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140194820
Capabilities:
Connect socket

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rdx
mov esi, r8d
mov rdi, r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.14026b100
nop
mov rbx, qword [rbx]
mov qword [rbp - 0x50], rbx
mov rcx, qword [rbp - 0x48]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov r15, qword [rbp + 0x38]
mov qword [rsp + 0x28], r15
mov r15, qword [rbp + 0x40]
mov qword [rsp + 0x30], r15
mov rcx, r14
mov qword [rbp - 0x5c], rcx
mov rdx, rbx
mov qword [rbp - 0x64], rdx
mov r8d, esi
mov dword [rbp - 0x54], r8d
mov r9, rdi
mov qword [rbp - 0x6c], r9
lea rcx, [rbp - 0x98]
call fcn.140007160
mov rcx, qword [rbp - 0x5c]
mov rdx, qword [rbp - 0x64]
mov r8d, dword [rbp - 0x54]
mov r9, qword [rbp - 0x6c]
call sub.WS2_32.dll_WSAConnect
mov ebx, eax
lea rcx, [rbp - 0x98]
call fcn.1400071b0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x140194904
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.14026b140
call fcn.140003a77
mov dword [rax + 0xf8], esi
mov eax, ebx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140195360
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x1f8
lea rbp, [rsp + 0x230]
lea rdx, [rbp - 0x1d0]
mov qword [rbp - 0x1dc], rdx
mov ecx, 0x202
mov dword [rbp - 0x1d4], ecx
lea rcx, [rbp - 0x208]
call fcn.140007160
mov rdx, qword [rbp - 0x1dc]
mov ecx, dword [rbp - 0x1d4]
call sub.WS2_32.dll_WSAStartup
mov ebx, eax
lea rcx, [rbp - 0x208]
call fcn.1400071b0
test ebx, ebx
jne 0x14019540c
lea rcx, [0x140750918]
mov edx, 1
xor eax, eax
lock cmpxchg dword [rcx], edx
test eax, eax
je 0x1401953f7
lea rcx, [rbp - 0x208]
call fcn.140007160
call sub.WS2_32.dll_WSACleanup
lea rcx, [rbp - 0x208]
call fcn.1400071b0
nop
add rsp, 0x1f8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [0x14043ad90]
call fcn.140006cd0
mov rsi, rax
mov rcx, rsi
mov edx, ebx
call fcn.1402c99d0
mov rcx, rsi
call fcn.1400077a0
int3
Function at 0x1401bbb90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rdx
mov rsi, r8
mov rdi, r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.14026b100
nop
test rbx, rbx
je 0x1401bbbe6
add rbx, 0xc
mov rdx, rbx
jmp 0x1401bbbe8
xor edx, edx
mov qword [rbp - 0x50], rdx
mov rcx, qword [rbp - 0x48]
mov rbx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rbx
mov rbx, qword [rbp + 0x38]
mov qword [rsp + 0x28], rbx
mov rcx, qword [rcx + 8]
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x60], rdx
mov r8, rsi
mov qword [rbp - 0x68], r8
mov r9, rdi
mov qword [rbp - 0x70], r9
lea rcx, [rbp - 0x98]
call fcn.140007160
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x68]
mov r9, qword [rbp - 0x70]
call sub.ADVAPI32.dll_RegQueryValueExW
mov ebx, eax
lea rcx, [rbp - 0x98]
call fcn.1400071b0
nop
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x1401bbc65
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.14026b140
mov eax, ebx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1401e1e90
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov r8d, edx
mov dword [rbp - 0x3c], r8d
mov rdx, rcx
mov qword [rbp - 0x48], rdx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
mov r9d, 2
mov dword [rbp - 0x40], r9d
lea rcx, [rbp - 0x78]
call fcn.140007160
mov r8d, dword [rbp - 0x3c]
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
mov r9d, dword [rbp - 0x40]
call sub.bcrypt.dll_BCryptGenRandom
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.1400071b0
test ebx, ebx
jne 0x1401e1f04
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp ebx, 0xc0000017
jne 0x1401e1f2b
lea rcx, [0x140422a78]
call fcn.140006cd0
mov rbx, rax
mov rcx, rbx
call fcn.14020f800
mov rcx, rbx
call fcn.1400077a0
lea rcx, [0x140422160]
call fcn.140006cd0
mov rbx, rax
mov rcx, rbx
call fcn.14020a2a0
mov rcx, rbx
call fcn.1400077a0
int3
Function at 0x1401e23b0
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x50]
mov rbx, rcx
mov eax, dword [rbx + 0x38]
cmp eax, 0xffffffff
je 0x1401e23cd
add rsp, 0x48
pop rbx
pop rbp
ret
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x20]
mov rcx, rbx
mov r9d, 4
call fcn.14028ed60
mov ecx, eax
test ecx, ecx
jne 0x1401e245a
xor eax, eax
mov ecx, 0x40000000
test byte [rbp - 0x10], 0x30
cmove eax, ecx
mov ecx, eax
or ecx, 0x80000000
test byte [rbp - 0x10], 2
cmovne eax, ecx
mov ecx, eax
or ecx, 0x10000000
test dword [rbp - 0x10], 0x800
cmovne eax, ecx
mov ecx, eax
or ecx, 0x8000000
test byte [rbp - 0x10], 4
cmovne eax, ecx
mov ecx, eax
or ecx, 0x4000000
test dword [rbp - 0x10], 0x1000
cmovne eax, ecx
mov ecx, eax
or ecx, 0x20000000
test byte [rbp - 0x10], 8
cmovne eax, ecx
mov dword [rbx + 0x38], eax
add rsp, 0x48
pop rbx
pop rbp
ret
call fcn.14028ed00
mov ecx, eax
lea rdx, [0x1403a95a0]
call fcn.14025cee0
mov rcx, rax
call fcn.1400077a0
int3