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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400088e0

Function at 0x14000b590
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400255d0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14000b5e7
cmp word [rdx], r13w
jne 0x14000b5e7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14000b5ec
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14000b711
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14000b732
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14000b625
mov rdx, r9
mov word [rbx], cx
jmp 0x14000b64c
cmp r9, r8
jae 0x14000b65c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14000b606
jmp 0x14000b711
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000b706
cmp dword [rsp + 0x80], esi
je 0x14000b706
lea r8, [0x1400255d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14000b6de
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14000b6ae
mov word [rbx], r13w
jmp 0x14000b70e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14000b6bb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14000b70e
cmp word [rsp + 0x70], r13w
jne 0x14000b6eb
cmp rbx, r14
je 0x14000b6a8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14000c360
cmp word [rsp + 0x70], r13w
je 0x14000b711
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400255d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14000b70b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14000b711
Function at 0x14000f4f0
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000f520
xor eax, eax
jmp 0x14000f5e3
mov rbp, rbx
cmp word [rax], si
je 0x14000f545
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000f52c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000f528
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000f410
movsxd r14, eax
test eax, eax
jne 0x14000f583
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000f519
mov rcx, r14
call fcn.140009538
mov rdi, rax
test rax, rax
jne 0x14000f59c
xor ecx, ecx
call fcn.1400094fc
jmp 0x14000f578
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000f410
test eax, eax
jne 0x14000f5cd
mov rcx, rdi
call fcn.1400094fc
jmp 0x14000f5d7
xor ecx, ecx
call fcn.1400094fc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14001479c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400147b2
mov al, 1
jmp 0x140014812
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400147c3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140014810
mov ecx, dword [rcx + 0x18]
nop
call fcn.140010010
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140014810
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140014810
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140014810
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140014812
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400157f0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000e4e0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001587a
cmp byte [rbp - 0x21], r15b
je 0x140015875
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400158b0
call fcn.14000a3dc
test eax, eax
jne 0x14001589c
cmp byte [rbp - 0x21], r15b
je 0x140015894
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400158b0
cmp byte [rbp - 0x21], r15b
je 0x1400158ad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000dac0
test eax, eax
jne 0x140015950
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000e4e0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400158ef
cmp byte [rbp - 0x21], r15b
je 0x140015924
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140015924
call fcn.14000a3dc
test eax, eax
jne 0x140015910
cmp byte [rbp - 0x21], r15b
je 0x140015909
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140015924
cmp byte [rbp - 0x21], r15b
je 0x140015921
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000dac0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140015950
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140015953
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140015961
mov rcx, rdi
call fcn.1400094fc
cmp byte [rbp + 0x3f], r15b
je 0x140015970
mov rcx, qword [rbp + 0x27]
call fcn.1400094fc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140015b1c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14000c360
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14000c360
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140015c6c
cmp rax, 0xffffffffffffffff
je 0x140015c6c
xor edi, edi
test rbp, rbp
jle 0x140015c17
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000a150
mov rbx, rax
test rax, rax
jne 0x140015ba4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140015c0d
mov edx, 0x8000
mov ecx, r14d
call fcn.140008b60
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400119a8
cmp eax, 0xffffffff
je 0x140015bed
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140015bb4
mov edx, r15d
mov ecx, r14d
call fcn.140008b60
jmp 0x140015c0d
cmp byte [rsi + 0x38], dil
je 0x140015c04
cmp dword [rsi + 0x34], 5
jne 0x140015c04
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140015c0d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400094fc
jmp 0x140015c80
jns 0x140015c80
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14000c360
cmp rax, 0xffffffffffffffff
jne 0x140015c38
cmp byte [rsi + 0x30], dil
je 0x140015c80
mov edi, dword [rsi + 0x2c]
jmp 0x140015c80
mov ecx, r14d
call fcn.140010010
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140015c80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140015c80
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140015c79
mov eax, dword [rsi + 0x2c]
jmp 0x140015c7e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14000c360
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140017a70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140017a98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140017a98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001fb8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov al, byte [rcx]
mov r8, rcx
or edx, 0xffffffff
jmp 0x140001fee
movzx eax, al
mov r9d, 7
xor edx, eax
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
mov edx, ecx
xor edx, eax
sub r9d, 1
jns 0x140001fcd
inc r8
mov al, byte [r8]
test al, al
jne 0x140001fc2
not edx
mov eax, edx
ret
Function at 0x140011534
Capabilities:
Encode data using xor

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 r12
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov r15, r9
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
cmp byte [rcx + 8], bl
je 0x140011724
test r9, r9
je 0x140011701
movsxd r9, dword [rcx + 0x3d0]
xor edx, edx
mov rax, r15
div r9
test rdx, rdx
jne 0x140011701
cmp dword [rsp + 0x80], 1
jne 0x140011633
mov r12d, ebx
test rax, rax
je 0x140011614
lea r14, [rcx + 0x3f8]
mov rcx, r14
cmp byte [rdi + 8], bl
je 0x140011747
mov r8d, ebx
test r9d, r9d
jle 0x1400115d4
mov rdx, rbp
sub rdx, r14
mov al, byte [rdx + rcx]
inc r8d
xor byte [rcx], al
inc rcx
cmp r8d, dword [rdi + 0x3d0]
jl 0x1400115c0
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call fcn.1400111ec
movsxd r8, dword [rdi + 0x3d0]
mov rdx, rsi
mov rcx, r14
call fcn.140043700
movsxd r9, dword [rdi + 0x3d0]
xor edx, edx
mov rax, r15
inc r12d
div r9
add rbp, r9
movsxd rcx, r12d
add rsi, r9
cmp rcx, rax
jb 0x1400115a6
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
cmp dword [rsp + 0x80], 2
jne 0x1400116c6
mov r12d, ebx
test rax, rax
je 0x140011614
lea r14, [rcx + 0x3f8]
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call fcn.1400111ec
mov rcx, rsi
cmp byte [rdi + 8], bl
je 0x14001176a
mov eax, dword [rdi + 0x3d0]
mov r8d, ebx
test eax, eax
jle 0x140011693
mov rdx, rbp
sub rdx, rsi
mov al, byte [rdx + rcx]
inc r8d
xor byte [rcx], al
inc rcx
mov eax, dword [rdi + 0x3d0]
cmp r8d, eax
jl 0x14001167d
movsxd r8, eax
mov rdx, rsi
mov rcx, r14
call fcn.140043700
movsxd rcx, dword [rdi + 0x3d0]
xor edx, edx
mov rax, r15
inc r12d
div rcx
add rbp, rcx
add rsi, rcx
movsxd rcx, r12d
cmp rcx, rax
jb 0x140011650
jmp 0x140011614
test rax, rax
je 0x140011614
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call fcn.1400111ec
movsxd rcx, dword [rdi + 0x3d0]
xor edx, edx
mov rax, r15
inc ebx
div rcx
add rbp, rcx
add rsi, rcx
movsxd rcx, ebx
cmp rcx, rax
jb 0x1400116cf
jmp 0x140011614
mov rdx, qword [0x1400aa0d0]
lea rcx, [rsp + 0x20]
call fcn.140018e58
lea rdx, [0x1400a7910]
lea rcx, [rsp + 0x20]
call fcn.140044578
int3
mov rdx, qword [0x1400aa0c8]
lea rcx, [rsp + 0x20]
call fcn.140018e58
lea rdx, [0x1400a7910]
lea rcx, [rsp + 0x20]
call fcn.140044578
int3
mov rdx, qword [0x1400aa0c8]
lea rcx, [rsp + 0x20]
call fcn.140018e58
lea rdx, [0x1400a7910]
lea rcx, [rsp + 0x20]
call fcn.140044578
int3
mov rdx, qword [0x1400aa0c8]
lea rcx, [rsp + 0x20]
call fcn.140018e58
lea rdx, [0x1400a7910]
lea rcx, [rsp + 0x20]
call fcn.140044578
int3

Function at 0x1400143c4
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x5c]
call fcn.140043b60
mov eax, 1
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
add rsp, 0x20
pop rbx
ret
Function at 0x1400262d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0x977], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x140026399
cmp qword [rcx + 0x260], 0
je 0x14002634e
mov qword [rsp + 0x40], rbx
call fcn.14001c200
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.14001c4f0
mov rcx, qword [rdi + 0x1d0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x260]
movzx edx, bl
mov rcx, rdi
call fcn.14001c4f0
mov rbx, qword [rsp + 0x40]
jmp 0x140026399
mov ecx, esi
test edx, edx
je 0x14002635e
sub ecx, 1
je 0x14002635e
cmp ecx, 1
jne 0x140026399
mov r9, qword [rdi + 0x1c8]
lea rax, [0x140089ad0]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.14004bab0
mov r9, qword [rdi + 0x1c8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.14004bab0
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x140026562
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x38
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x1400a9108]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, qword [rsp + 0x180]
mov rdi, r8
movsxd r8, edx
mov rsi, r9
mov rdx, qword [rcx + 0x18]
mov rbp, rcx
mov r14, qword [rdx + r8*8 + 0x160]
call fcn.140026bc0
test eax, eax
je 0x1400266a8
mov dword [rbx], 0x1b
mov rax, 0xffffffffffffffff
jmp 0x140026715
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [rbx], 0
cmp rdi, 0xffffffffffffffff
jne 0x140026712
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp eax, 0x2733
jne 0x1400266e2
xor edi, edi
mov dword [rbx], 0x51
jmp 0x140026712
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, esi
call fcn.140039cc0
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.1400263b0
mov dword [rbp + 0xc14], esi
mov dword [rbx], 0x37
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140042d70
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140026bc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd r9, r8d
lea rbx, [rdx + 0x1a8]
mov rax, r9
mov rbp, rcx
shl rax, 5
add rbx, rax
mov rax, qword [rdx + 0x2c8]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x140026cab
lea rax, [0x140026570]
cmp qword [rdx + r9*8 + 0x188], rax
jne 0x140026cab
cmp qword [rbx], 0
je 0x140026c2b
test rdi, rdi
je 0x140026cab
mov rsi, qword [rdx + r9*8 + 0x160]
mov rdx, 0xffffffffffffffff
mov r8, rdx
xor r9d, r9d
mov rcx, rsi
call fcn.140031a20
cmp eax, 0xffffffff
je 0x140026cab
test al, 1
je 0x140026cab
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140026c8a
mov eax, dword [rbp + 0x5f4]
lea ecx, [rax + rax]
mov qword [rbx + 8], rcx
call qword [fcn.14004a154]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
jne 0x140026c7c
lea eax, [rcx + 0x1b]
jmp 0x140026cad
mov rdi, qword [rbx + 8]
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x140026cab
add qword [rbx + 0x10], rcx
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x1400a9108]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rax, rdx
mov rbx, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, r9
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 0x1400270c5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.140039cc0
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x14002710b
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.140026cd0
test al, al
jne 0x140027116
call fcn.140046c54
mov ebx, dword [rax]
call fcn.140046c54
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.140039cc0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1400263b0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140042d70
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x140027860
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1400aa1e0]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1400278c4
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.14003b040
test al, al
je 0x1400278b8
mov dword [0x1400aa1e0], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1400aa1e0], 1
jmp 0x1400278c9
cmp eax, 2
je 0x14002791b
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 0x1400278fa
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x14002791b
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 0x140028430
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400a9108]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x20], 4
mov eax, esi
lea r9, [rsp + 0x50]
cmp byte [rcx + 0x983], al
mov rdi, rdx
mov rbx, rcx
mov edx, 0xffff
setne al
lea r8d, [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x1400284f6
mov ecx, dword [rbx + 0x910]
mov dword [rsp + 0x58], 1
call fcn.140028690
mov ecx, dword [rbx + 0x914]
imul edx, eax, 0x3e8
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x5c], edx
call fcn.140028690
imul edx, eax, 0x3e8
lea r9d, [rsi + 0xc]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x60], edx
mov edx, 0x98000004
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140042d70
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140028520
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, rdx
mov dword [rsp + 0x50], 1
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret
Function at 0x140028940
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x140089da0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14002896a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140089dc0]
mov rcx, rbx
mov r14, rax
call fcn.14004d418
test rax, rax
je 0x1400289cd
mov rcx, rbx
test r14, r14
je 0x1400289b7
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x140028a05
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140028a05
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x140028ac8
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x140028a30
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.14004a154]
mov rdi, rax
test rax, rax
je 0x140028aba
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140028aba
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140028a60
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x140028a74
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140028a90
mov rcx, rdi
test r14, r14
je 0x140028ab1
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140028ab7
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.14004a14c]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret