joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff7ed3eb8e8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x7ff7ed3eb916
xor eax, eax
jmp 0x7ff7ed3eb9fc
cmp qword [rcx + 0x68], 0
je 0x7ff7ed3eb927
call fcn.7ff7ed3af8e8
jmp 0x7ff7ed3eb9fc
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x7ff7ed3eb93e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x7ff7ed3eb940
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x7ff7ed3eb972
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.7ff7ed6b67f0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x7ff7ed3eb9f6
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x7ff7ed3eb9a9
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x7ff7ed3eb9d2
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.7ff7ed6c6858
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x7ff7ed3eb9f6
cmp rsi, rbx
ja 0x7ff7ed3eb9b0
test rsi, rsi
je 0x7ff7ed3eb9f6
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.7ff7ed6c6858
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x7ff7ed3f7a68
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x7ff7ed868f18]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor r9d, r9d
mov qword [rsp + 0x28], rcx
mov rbx, rcx
lea rdx, [rsp + 0x30]
xor ecx, ecx
lea r8d, [r9 + 0x1c]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
test eax, eax
je 0x7ff7ed3f7ad5
and qword [rbx + 0x10], 0
lea rax, [rsp + 0x30]
and qword [rbx + 0x18], 0
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x7ff7ed3f7abc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.7ff7ed383aa8
jmp 0x7ff7ed3f7afa
mov r8d, 1
mov qword [rbx + 0x18], 0xf
lea rdx, [0x7ff7ed6ffe6c]
mov qword [rbx + 0x10], r8
mov rcx, rbx
call fcn.7ff7ed6b67f0
mov byte [rbx + 1], 0
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.7ff7ed6b54e0
add rsp, 0x150
pop rbx
ret
Function at 0x7ff7ed3fce7c
Capabilities:
Hash data using murmur3

Disassembly:
mov r8d, dword [rcx]
mov r10, rcx
movzx eax, r8w
imul r11d, eax, 0x9069
shr r8d, 0x10
add r11d, r8d
mov r8d, dword [rcx + 4]
mov dword [rcx], r11d
movzx eax, r8w
imul r9d, eax, 0x4650
mov eax, dword [rcx + 8]
shl eax, 0x11
xor eax, dword [rcx + 8]
shr r8d, 0x10
add r9d, r8d
shl r11d, 0x10
mov dword [rcx + 4], r9d
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
mov edx, ecx
lea eax, [r9 + r11]
shl edx, 5
xor edx, ecx
imul ecx, dword [r10 + 0xc], 0x10dcd
mov dword [r10 + 8], edx
add ecx, 0x12d687
xor eax, ecx
mov dword [r10 + 0xc], ecx
add eax, edx
ret

Function at 0x7ff7ed404f98
Capabilities:
Encode data using xor
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1c0
mov rax, qword [0x7ff7ed868f18]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, rcx
and dword [rsp + 0x30], 0
cmp byte [0x7ff7ed86fec8], 0
jne 0x7ff7ed40514f
mov edi, 1
mov byte [0x7ff7ed86fec8], dil
call fcn.7ff7ed42dc6c
neg al
sbb edx, edx
and edx, 0xc
add edx, 0x1a
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
movdqa xmm0, xmmword [0x7ff7ed7440d0]
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 0x7a606236
mov dword [rsp + 0x54], 0x383830
xor ecx, ecx
mov al, byte [rsp + 0x40]
xor byte [rsp + rcx + 0x41], al
add rcx, rdi
cmp rcx, 0x16
jb 0x7ff7ed405022
mov byte [rsp + 0x57], 0
lea rdx, [rsp + 0x41]
lea rcx, [rsp + 0xa0]
call fcn.7ff7ed6c7350
test rbx, rbx
jne 0x7ff7ed405080
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0xa0]
call fcn.7ff7ed6bcd00
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x80]
mov ebx, edi
jmp 0x7ff7ed4050c8
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov ecx, 0x40
call fcn.7ff7ed6b5358
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x30], 2
lea r8, [rsp + 0x60]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.7ff7ed399d24
mov ebx, 6
mov dword [rsp + 0x30], ebx
mov rdx, rax
lea rcx, [0x7ff7ed86fee0]
call fcn.7ff7ed3c06a0
nop
test bl, 4
je 0x7ff7ed4050ef
and ebx, 0xfffffffb
mov rcx, qword [rsp + 0x40]
call fcn.7ff7ed6b5394
nop
test bl, 2
je 0x7ff7ed40511f
and ebx, 0xfffffffd
mov r8, qword [rsp + 0x60]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.7ff7ed3933cc
mov edx, 0x40
mov rcx, qword [rsp + 0x60]
call fcn.7ff7ed6b5394
nop
test dil, bl
je 0x7ff7ed405131
mov rcx, qword [rsp + 0x80]
call fcn.7ff7ed6b5394
call fcn.7ff7ed405b18
test al, al
jne 0x7ff7ed40513e
xor al, al
jmp 0x7ff7ed405159
call fcn.7ff7ed4051f8
nop
mov byte [0x7ff7ed86fec9], dil
jmp 0x7ff7ed405156
mov dil, byte [0x7ff7ed86fec9]
mov al, dil
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.7ff7ed6b54e0
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x1c0
pop rdi
ret
Function at 0x7ff7ed405f28
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x7ff7ed868f18]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rcx, qword [0x7ff7ed870060]
lea rdx, [0x7ff7ed870070]
test rcx, rcx
jne 0x7ff7ed405f9e
lea rcx, str.nvml.dll
call fcn.7ff7ed639f50
test eax, eax
jne 0x7ff7ed405f68
mov al, 1
jmp 0x7ff7ed405fa8
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.7ff7ed6b7250
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, str._PROGRAMFILES_NVIDIA_CorporationNVSMI_nvml.dll
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rdx, [0x7ff7ed870070]
lea rcx, [rsp + 0x20]
call fcn.7ff7ed639f50
test eax, eax
sete al
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.7ff7ed6b54e0
add rsp, 0x148
ret
Function at 0x7ff7ed40bee4
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, qword [rcx + 0x20]
mov rsi, qword [rcx + 0x18]
mov rbp, qword [rcx + 0x10]
mov r14, qword [rcx + 8]
mov r15, qword [rcx]
mov ecx, dword [r15]
mov r9, rsi
inc ecx
mov qword [rsp + 0x20], rdi
mov r8, rbp
mov rdx, r14
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x7ff7ed40bf39
call fcn.7ff7ed6bcb38
cmp dword [rax], 4
je 0x7ff7ed40bf0f
mov rbp, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x7ff7ed40bf58
Capabilities:
Receive data
Receive data on socket

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 rdi, qword [rcx + 0x18]
mov rsi, qword [rcx + 0x10]
mov r14, qword [rcx + 8]
mov r15, qword [rcx]
mov r9d, dword [rdi]
mov r8d, dword [rsi]
mov rdx, qword [r14]
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x7ff7ed40bfa3
call fcn.7ff7ed6bcb38
cmp dword [rax], 4
je 0x7ff7ed40bf80
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x7ff7ed40bfc4
Capabilities:
Send data
Send data on socket

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 rdi, qword [rcx + 0x18]
mov rsi, qword [rcx + 0x10]
mov r14, qword [rcx + 8]
mov r15, qword [rcx]
mov r9d, dword [rdi]
mov r8d, dword [rsi]
mov rdx, qword [r14]
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x7ff7ed40c00f
call fcn.7ff7ed6bcb38
cmp dword [rax], 4
je 0x7ff7ed40bfec
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x7ff7ed40c030
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, qword [rcx + 8]
mov r14, qword [rcx]
mov ecx, dword [r14]
xor r9d, r9d
inc ecx
mov qword [rsp + 0x20], rdi
mov r8, rsi
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x7ff7ed40c079
call fcn.7ff7ed6bcb38
cmp dword [rax], 4
je 0x7ff7ed40c050
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x7ff7ed40c094
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, qword [rcx + 8]
mov r14, qword [rcx]
mov ecx, dword [r14]
xor r9d, r9d
inc ecx
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x7ff7ed40c0de
call fcn.7ff7ed6bcb38
cmp dword [rax], 4
je 0x7ff7ed40c0b4
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x7ff7ed40d6e8
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r15, r9
mov rcx, r8
mov rsi, r8
mov rdi, rdx
call fcn.7ff7ed6b3f48
test eax, eax
jne 0x7ff7ed40d860
lea rbx, [rsi + 0x4c]
mov eax, dword [rbx]
cmp eax, 0x7fffffff
je 0x7ff7ed40d851
mov rcx, rdi
call fcn.7ff7ed500cf0
mov rcx, rsi
mov rdi, rax
call fcn.7ff7ed6b3f6c
test rdi, rdi
je 0x7ff7ed40d7ec
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], 1
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, ebp
call fcn.7ff7ed542b10
xor r9d, r9d
mov rcx, rax
mov r14, rax
lea edx, [r9 + 0x66]
lea r8d, [r9 + 1]
call fcn.7ff7ed540ad0
mov r8, r14
mov rdx, r14
mov rcx, rdi
call fcn.7ff7ed501560
mov r9, qword [rsp + 0x60]
add r9, 8
cmp qword [r9 + 0x18], 0x10
jb 0x7ff7ed40d7a4
mov r9, qword [r9]
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 0x37]
call fcn.7ff7ed4ffe20
mov rdx, rdi
mov rcx, r15
call fcn.7ff7ed4122f8
cmp al, 1
jne 0x7ff7ed40d808
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
lea edx, [r9 + 0x66]
call fcn.7ff7ed540ad0
and dword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov rcx, rdi
call fcn.7ff7ed5018c0
mov rcx, rsi
call fcn.7ff7ed6b3f48
test eax, eax
jne 0x7ff7ed40d860
mov eax, dword [rbx]
cmp eax, 0x7fffffff
je 0x7ff7ed40d851
mov rcx, rdi
call fcn.7ff7ed5002d0
mov rcx, rsi
call fcn.7ff7ed6b3f6c
and dword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
jmp 0x7ff7ed40d7ef
dec eax
mov ecx, 6
mov dword [rbx], eax
call fcn.7ff7ed6b40bc
int3
mov ecx, 5
call fcn.7ff7ed6b40bc
int3
Function at 0x7ff7ed412868
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov rsi, rdx
mov dword [rax + 8], 1
mov rbx, r8
mov rdi, rcx
mov rcx, rsi
lea r8, [rax + 8]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rbx + 0x10]
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x7ff7ed4128f9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x7ff7ed4128d2
mov rax, qword [rdi + 8]
mov dword [rax], 2
xor al, al
jmp 0x7ff7ed4129bd
mov r8, qword [rdi + 0x18]
mov rcx, rsi
mov rdx, qword [rdi + 0x10]
mov r8, qword [r8]
mov rdx, qword [rdx]
call fcn.7ff7ed42307c
mov ecx, eax
mov rax, qword [rdi + 8]
mov dword [rax], ecx
mov rax, qword [rdi + 8]
cmp dword [rax], 0
jne 0x7ff7ed4128cb
and dword [rsp + 0x40], 0
lea r8, [rsp + 0x40]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [rdi + 0x28]
lea r9, [rsp + 0x40]
movabs r14, 0x20c49ba5e353f7cf
mov dword [rsp + 0x20], 4
mov ebx, 0xffff
mov r8d, 0x1006
mov rcx, qword [rax]
mov rax, r14
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [rdi + 0x20]
imul ecx, dword [rax], 0x3e8
add edx, ecx
mov rcx, rsi
mov dword [rsp + 0x40], edx
mov edx, ebx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rdi + 0x38]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
mov rcx, qword [rax]
mov rax, r14
imul rcx
sar rdx, 7
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
mov rcx, qword [rdi + 0x30]
imul r8d, dword [rcx], 0x3e8
mov rcx, rsi
add edx, r8d
mov r8d, 0x1005
mov dword [rsp + 0x40], edx
mov edx, ebx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 8]
mov al, 1
and dword [rcx], 0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x7ff7ed4152d0
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
and dword [rax - 0x38], 0
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
and qword [rcx + 0x10], 0
and qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 0xf
mov byte [rcx], 0
mov dword [rax - 0x38], 1
lea r15, [rdx + 0x10]
cmp qword [r15], 0xf
jbe 0x7ff7ed415336
xor r8d, r8d
mov rdx, qword [r15]
call fcn.7ff7ed40b534
and qword [rbx + 0x10], 0
xor esi, esi
lea r14d, [rsi - 6]
cmp qword [rdi + 0x18], 0x10
jb 0x7ff7ed41534e
mov rbp, qword [rdi]
mov rcx, rbp
mov rdi, rbp
jmp 0x7ff7ed415354
mov rbp, rdi
mov rcx, rdi
mov r12, qword [r15]
add r12, rcx
cmp rdi, r12
je 0x7ff7ed415475
lea r8, [0x7ff7ed748730]
shl esi, 8
movzx eax, byte [rbp]
add esi, eax
add r14d, 8
js 0x7ff7ed4153f0
movsxd r13, esi
movsxd rdi, r14d
lea ecx, [r14 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov r15d, edx
imul eax, edx, 0xfffffffa
add r14d, eax
mov rax, r13
mov rcx, rdi
sar rax, cl
and eax, 0x3f
mov r9b, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jae 0x7ff7ed4153d0
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x7ff7ed4153c5
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x7ff7ed4153e6
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.7ff7ed39ada0
lea r8, [0x7ff7ed748730]
sub rdi, 6
sub r15, 1
jne 0x7ff7ed415396
inc rbp
cmp rbp, r12
jne 0x7ff7ed41536a
cmp r14d, 0xfffffffa
jle 0x7ff7ed415475
lea ecx, [r14 + 8]
shl esi, 8
movsxd rax, esi
sar rax, cl
and eax, 0x3f
mov r9b, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jae 0x7ff7ed415466
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x7ff7ed415435
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x7ff7ed415475
cmp rcx, qword [rbx + 0x18]
jae 0x7ff7ed415463
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x7ff7ed41545b
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x7ff7ed415475
mov r9b, 0x3d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.7ff7ed39ada0
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x7ff7ed415440
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x7ff7ed41a2ec
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x460
mov rax, qword [0x7ff7ed868f18]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov r14d, 2
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp word [rcx], r14w
je 0x7ff7ed41a32d
cmp word [rcx], 0x17
jne 0x7ff7ed41a3cf
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
mov dword [rsi], eax
lea rcx, [rsp + 0x40]
mov esi, 0x401
mov r8d, esi
call fcn.7ff7ed6b7250
mov dword [rsp + 0x30], r14d
lea r8, [rsp + 0x40]
xor r14d, r14d
mov r9d, esi
mov dword [rsp + 0x28], r14d
mov edx, ebp
mov rcx, rbx
mov qword [rsp + 0x20], r14
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x7ff7ed41a3cf
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r14b
jne 0x7ff7ed41a382
cmp rbx, qword [rdi + 0x18]
ja 0x7ff7ed41a3b8
cmp qword [rdi + 0x18], 0x10
mov rsi, rdi
jb 0x7ff7ed41a39e
mov rsi, qword [rdi]
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.7ff7ed6b67f0
mov byte [rsi + rbx], r14b
jmp 0x7ff7ed41a3cb
lea r9, [rsp + 0x40]
mov r8b, r14b
mov rdx, rbx
mov rcx, rdi
call fcn.7ff7ed3939c4
mov al, 1
jmp 0x7ff7ed41a3d1
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.7ff7ed6b54e0
add rsp, 0x460
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x7ff7ed41a3fc
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x7ff7ed868f18]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov dword [rsp + 0x20], 0x80
mov rbx, rdx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x7ff7ed41a451
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.7ff7ed41a2ec
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.7ff7ed6b54e0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret

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

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x7ff7ed41a3fc
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x7ff7ed868f18]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov dword [rsp + 0x20], 0x80
mov rbx, rdx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x7ff7ed41a451
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.7ff7ed41a2ec
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.7ff7ed6b54e0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
Function at 0x7ff7ed422ee8
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x7ff7ed868f18]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov qword [rsp + 0x30], rcx
lea rdi, [rcx + 8]
mov rsi, rdx
cmp qword [rdi + 0x18], 0x10
mov r15d, ebx
mov rdx, rdi
lea r12d, [rbx + 2]
mov ebp, r12d
jb 0x7ff7ed422f30
mov rdx, qword [rdi]
lea r8, [rsp + 0x38]
mov ecx, 0x17
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r14d, 7
test eax, eax
je 0x7ff7ed422f50
lea r15d, [r14 + 9]
jmp 0x7ff7ed422f75
cmp qword [rdi + 0x18], 0x10
jb 0x7ff7ed422f5a
mov rdi, qword [rdi]
lea r8, [rsp + 0x20]
mov rdx, rdi
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x7ff7ed422f78
mov r15d, 4
mov ebp, r14d
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0x55]
call fcn.7ff7ed546950
mov rdi, rax
test rax, rax
je 0x7ff7ed42304c
mov rcx, rax
mov r14b, bl
mov r12b, bl
call fcn.7ff7ed542290
mov dword [rsp + 0x24], eax
mov esi, ebx
test eax, eax
jle 0x7ff7ed42304c
test r14b, r14b
jne 0x7ff7ed42304a
mov edx, esi
mov rcx, rdi
call fcn.7ff7ed5424c0
mov r13, rax
cmp dword [rax], ebp
jne 0x7ff7ed423034
mov rcx, qword [rax + 8]
call fcn.7ff7ed3982a0
mov rcx, qword [r13 + 8]
mov qword [rsp + 0x28], rax
call fcn.7ff7ed501980
movsxd r8, eax
cmp ebp, 2
je 0x7ff7ed423022
cmp ebp, 7
jne 0x7ff7ed423034
mov r13, qword [rsp + 0x28]
lea rcx, [rsp + 0x38]
mov rdx, r13
mov r8, r15
call fcn.7ff7ed6b7150
test eax, eax
je 0x7ff7ed42301d
mov r8, r15
lea rcx, [rsp + 0x20]
mov rdx, r13
call fcn.7ff7ed6b7150
test eax, eax
jne 0x7ff7ed423034
mov r12b, 1
jmp 0x7ff7ed423034
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.7ff7ed4154a0
mov r14b, al
inc esi
cmp esi, dword [rsp + 0x24]
jl 0x7ff7ed422fb2
test r14b, r14b
jne 0x7ff7ed42304a
test r12b, r12b
je 0x7ff7ed42304c
mov bl, 1
mov rcx, rdi
call fcn.7ff7ed5469a0
mov al, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.7ff7ed6b54e0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x7ff7ed42dc6c
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x7ff7ed868f18]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
cmp byte [0x7ff7ed870261], dil
je 0x7ff7ed42dca4
mov al, byte [0x7ff7ed870260]
jmp 0x7ff7ed42dcfa
mov dword [rbp - 0x25], edi
mov word [rbp - 0x21], 0x500
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x39]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x7ff7ed42dcf8
mov rcx, qword [rbp - 0x39]
lea rax, [rbp - 0x29]
mov r9d, 0x54
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x19]
lea edx, [r9 - 0x53]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rbp - 0x39]
test eax, eax
jne 0x7ff7ed42dd1b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.7ff7ed6b54e0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rbp - 0x31]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x25]
mov dword [rsp + 0x48], edi
mov dl, 1
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
lea r8d, [r9 + 0x12]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x7ff7ed42dcf8
mov rdx, qword [rbp - 0x31]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov rcx, qword [rbp - 0x31]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [0x7ff7ed870261], dil
jne 0x7ff7ed42dd83
mov byte [0x7ff7ed870261], 1
test ebx, ebx
setne al
mov byte [0x7ff7ed870260], al
jmp 0x7ff7ed42dcfa