joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011208
Capabilities:
Create thread
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1402c2ed0]
xor rax, rsp
mov qword [rbp - 8], rax
xor esi, esi
mov r14d, edx
mov ebx, ecx
test ecx, ecx
jne 0x14001123f
xor eax, eax
jmp 0x1400113c9
cmp ebx, 6
jne 0x140011260
lea ecx, [rbx - 4]
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
lea ecx, [rbx - 2]
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov eax, 1
jmp 0x1400113c9
cmp ebx, 7
jne 0x14001126a
lea ecx, [rbx - 6]
jmp 0x140011250
cmp ebx, 8
jne 0x14001127a
or ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
jmp 0x140011256
cmp ebx, 9
jne 0x1400112b0
mov qword [rsp + 0x28], rsi
lea r8, [0x14000d67c]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x140011256
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140011256
cmp ebx, 5
jg 0x140011238
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x20]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140011238
lea r8, [rbp - 0x14]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rbp - 0x20]
lea r8, [rbp - 0x18]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rbp - 0x18], 1
mov dword [rbp - 0xc], 2
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14001132c
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140011238
sub ebx, 1
je 0x14001137b
sub ebx, 1
je 0x140011363
sub ebx, 1
je 0x140011359
sub ebx, 1
je 0x140011352
cmp ebx, 1
jne 0x1400113bd
xor ecx, ecx
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_SetSystemPowerState]
jmp 0x140011394
mov ecx, 1
jmp 0x140011347
mov dword [rsp + 0x20], 1
jmp 0x140011367
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
lea r9d, [rdx + 1]
lea r8d, [rdx + 0x1e]
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
jmp 0x140011394
mov edx, 0x80000000
test r14d, r14d
je 0x14001138c
mov ecx, 4
jmp 0x14001138e
xor ecx, ecx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x1400113bd
mov rcx, qword [rbp - 0x20]
lea r8, [rbp - 0x18]
mov qword [rsp + 0x28], rsi
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov dword [rbp - 0xc], esi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, 1
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401c7760
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x1400113ec
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rbx, rdx
lea r8, [rsp + 0x40]
lea rdx, str.SoftwareOpen_SourceMeshAgent2
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor ecx, ecx
test eax, eax
jne 0x140011456
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], cx
jne 0x14001141c
mov rcx, qword [rsp + 0x40]
lea rdx, str.KeyStore
add eax, eax
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x30
pop rbx
ret
Function at 0x14005d00c
Capabilities:
Get disk information
Get disk size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x1402c2ed0]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rax, rdx
lea r9, [rsp + 0x30]
mov rbx, rcx
lea rdx, [rsp + 0x50]
mov rcx, rax
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameA]
test eax, eax
je 0x14005d1bf
cmp byte [rsp + 0x50], 0
je 0x14005d1bf
mov rcx, rbx
call fcn.14001db80
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14001d6a0
mov esi, 0xfffffffe
lea r8, str.name
mov edx, esi
mov rcx, rbx
call fcn.14001ac34
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea r9, [rsp + 0x40]
mov edi, eax
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x14005d11e
mov rcx, qword [rsp + 0x38]
xorps xmm1, xmm1
cvtsi2sd xmm1, rcx
test rcx, rcx
jns 0x14005d0d2
addsd xmm1, qword [0x1402a20b8]
mov rcx, rbx
call fcn.14001d4d0
lea r8, str.size
mov edx, esi
mov rcx, rbx
call fcn.14001ac34
mov rax, qword [rsp + 0x40]
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
test rax, rax
jns 0x14005d105
addsd xmm1, qword [0x1402a20b8]
mov rcx, rbx
call fcn.14001d4d0
lea r8, str.free
mov edx, esi
mov rcx, rbx
call fcn.14001ac34
sub edi, 2
je 0x14005d167
sub edi, 1
je 0x14005d15e
sub edi, 1
je 0x14005d155
sub edi, 1
je 0x14005d14c
mov rcx, rbx
cmp edi, 1
je 0x14005d143
lea rdx, str.UNKNOWN
jmp 0x14005d171
lea rdx, str.RAMDISK
jmp 0x14005d171
lea rdx, str.CDROM
jmp 0x14005d16e
lea rdx, str.REMOTE
jmp 0x14005d16e
lea rdx, str.FIXED
jmp 0x14005d16e
lea rdx, str.REMOVABLE
mov rcx, rbx
call fcn.14001d6a0
lea r8, [0x1402542a8]
mov edx, esi
mov rcx, rbx
call fcn.14001ac34
mov r9d, 0x18075380
mov dword [rsp + 0x20], 6
xor r8d, r8d
lea rdx, [0x14005cfdc]
mov rcx, rbx
call fcn.14001de38
lea r8, str.toString
mov edx, esi
mov rcx, rbx
call fcn.14001ac34
mov eax, 1
jmp 0x14005d1c1
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1401c7760
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140086f18
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
or ebx, 0xffffffff
mov rbp, rcx
mov edx, ebx
call fcn.14001a1e0
lea r8, [rsp + 0x70]
mov edx, ebx
mov rcx, rbp
mov r15, rax
call fcn.14001be58
mov rcx, rbp
call fcn.14001d950
lea r8, [0x140299db8]
mov edx, ebx
mov rcx, rbp
call fcn.140064614
mov rcx, rbp
mov rdi, rax
call fcn.14001e554
mov rbx, qword [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor r14d, r14d
test rdi, rdi
je 0x140086ff2
lea ecx, [rbx + 1]
movsxd rcx, ecx
add rcx, 8
call fcn.140097330
mov r9, rbx
mov r8, r15
mov rdx, rbx
mov rsi, rax
lea rcx, [rax + 8]
mov qword [rax], rdi
call section..text
mov byte [rsi + rbx + 8], r14b
mov rcx, qword [rdi]
call fcn.14009727c
test eax, eax
je 0x140086fcc
mov rcx, qword [rdi]
cmp qword [rcx - 0x10], r14
jbe 0x140086fc9
lea r14, [rcx + 0x18]
add r14, qword [rcx - 0x18]
mov r14, qword [r14]
mov r8, qword [rdi]
lea r9, [0x14008c454]
mov rdx, qword [r14]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 1
call fcn.1400642d4
jmp 0x140087048
lea esi, [rbx + 4]
movsxd rcx, esi
call fcn.140097330
mov r9, rbx
mov r8, r15
mov rdx, rbx
mov rdi, rax
lea rcx, [rax + 4]
mov dword [rax], esi
call section..text
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], r14
mov rcx, rax
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
call fcn.14001e554
mov rcx, rdi
call fcn.1401cfea0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140093010
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor eax, eax
lea rdi, [rcx + 0xcc]
mov qword [rdi], rax
mov rsi, r9
mov qword [rdi + 8], rax
mov rbp, r8
mov qword [rdi + 0x10], rax
mov rbx, rcx
mov dword [rdi + 0x18], eax
and dword [rcx + 0x1e8], eax
mov rax, qword [rsp + 0x60]
mov qword [rcx + 0x1f0], rax
mov rax, qword [rsp + 0x68]
mov qword [rcx + 0x1f8], rax
test r8, r8
jne 0x14009306b
xor eax, eax
jmp 0x140093078
mov edx, 0xfe
mov rcx, rbp
call fcn.1401d0c68
lea rcx, [rbx + 0xe8]
mov r9, rax
mov r8, rbp
mov edx, 0xff
call section..text
test rsi, rsi
je 0x1400930b0
cmp word [rsi], 0x17
mov edx, 0x1c
mov r8, rsi
mov rcx, rdi
lea r9d, [rdx - 0xc]
cmove r9d, edx
call section..text
mov rax, qword [rsp + 0x78]
xor r8d, r8d
mov r9, qword [rsp + 0x70]
mov rcx, rbx
mov qword [rsp + 0x60], rax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.140092c58

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov ebx, 0xfffffffc
mov rdi, rcx
lea r14d, [rbx + 5]
jmp 0x140093105
pause
xor eax, eax
lock cmpxchg dword [rcx + 0x288], r14d
je 0x140093103
mov rax, qword [rcx + 0x2d0]
cmp qword [rax], 0
jbe 0x14009324a
cmp qword [rcx + 0x280], 0
jne 0x14009324a
cmp dword [rcx + 0x258], 0
jne 0x140093166
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x38]
call fcn.140097330
xor ebx, ebx
mov dword [rax + 0x2c], 3
mov qword [rdi + 0x280], rax
mov qword [rdi + 0x278], rax
jmp 0x14009324a
mov rcx, qword [rcx + 0x2c0]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.1400d1010
mov rdx, qword [rdi + 0x2d0]
xor r9d, r9d
mov rcx, qword [rdi + 0x68]
mov r8d, dword [rdx]
mov rdx, qword [rdx + 8]
call qword [sym.imp.WS2_32.dll_send]
movsxd rsi, eax
test eax, eax
jle 0x14009324a
mov rcx, qword [rdi + 0x2d0]
mov eax, dword [rcx]
cmp esi, eax
jge 0x140093230
xor r9d, r9d
sub eax, esi
movsxd rdx, eax
xor r8d, r8d
lea ecx, [r9 + 0x38]
call fcn.140097330
mov rcx, rax
mov rbx, rax
neg rcx
sbb rcx, rcx
lea rdx, [rax + 0x40]
and rcx, rdx
mov qword [rax], rcx
mov rdx, qword [rdi + 0x2d0]
mov r8d, dword [rdx]
sub r8d, esi
mov dword [rax + 0x2c], 3
mov dword [rax + 8], r8d
mov rax, qword [rdi + 0x2d0]
movsxd rdx, r8d
mov r8, rsi
mov r9, rdx
add r8, qword [rax + 8]
call section..text
mov rcx, qword [rdi + 0x2c0]
xor r9d, r9d
mov qword [rdi + 0x280], rbx
xor r8d, r8d
mov qword [rdi + 0x278], rbx
mov edx, r14d
xor ebx, ebx
call fcn.1400d1040
jmp 0x14009324a
jne 0x14009324a
mov rcx, qword [rdi + 0x2c0]
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
call fcn.1400d1040
mov ebx, r14d
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov dword [rdi + 0x288], 0
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14009484c
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rcx + 0x70], 0
lea rax, [0x1402dba40]
and dword [rcx + 0x74], 0
mov rbx, rcx
and dword [rcx + 0x254], 0
and dword [rcx + 0x2a4], 0
mov qword [rcx + 0x68], rdx
mov qword [rcx + 0x220], r8
mov qword [rcx + 0x240], r9
mov dword [rcx + 0x258], 1
mov rcx, qword [rcx + 0x268]
cmp rcx, rax
je 0x1400948be
movsxd rdx, dword [rbx + 0x274]
call fcn.1401d6664
test rax, rax
je 0x1400948ee
mov qword [rbx + 0x268], rax
mov eax, dword [rbx + 0x274]
mov dword [rbx + 0x270], eax
and dword [rbx + 0x25c], 0
lea r8, [rsp + 0x40]
and dword [rbx + 0x260], 0
mov edx, 0x8004667e
mov rcx, qword [rbx + 0x68]
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x946
lea rdx, str...microstackILibAsyncSocket.c
mov r8d, ebx
mov dword [rsp + 0x20], eax
mov r9d, 0xfe
xor ecx, ecx
call fcn.14009fd00
mov r8d, ebx
lea rdx, str...microstackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.1400010e4
mov ecx, 0xfe
call fcn.1401c9e58
int3

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rdi, [rcx + 0x94]
mov esi, 0x1c
cmp word [rdi], 0
mov rax, rdx
mov dword [rsp + 0x30], esi
je 0x1400949e1
cmp word [rdi], 0x17
lea ebx, [rsi - 0xc]
mov edx, ebx
mov r8, rdi
cmove edx, esi
mov rcx, rax
mov r9d, edx
call section..text
cmp word [rdi], 0x17
cmove ebx, esi
mov eax, ebx
jmp 0x1400949f4
mov rcx, qword [rcx + 0x68]
lea r8, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1402c2ed0]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, word [rcx + 0x94]
mov dword [rsp + 0x20], 0x1c
cmp ax, 0x17
jne 0x140094a3b
movzx ecx, word [rcx + 0x96]
call qword [sym.imp.WS2_32.dll_ntohs]
jmp 0x140094a6e
cmp ax, 2
je 0x140094a2c
mov rcx, qword [rcx + 0x68]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp word [rsp + 0x28], 0x17
jne 0x140094a64
movzx ecx, word [rsp + 0x2a]
jmp 0x140094a33
cmp word [rsp + 0x28], 2
je 0x140094a5d
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401c7760
add rsp, 0x58
ret
Function at 0x140094bbc
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
and dword [rax + 0x18], 0
mov r14d, edx
and dword [rax - 0x38], 0
xor edx, edx
and dword [rax - 0x34], 0
mov ebp, r9d
mov rsi, r8
mov dword [rax + 0x20], r9d
mov r15, rcx
xor r9d, r9d
lea ecx, [rdx + 0x30]
xor r8d, r8d
call fcn.140097330
mov r8, qword [rsp + 0xb0]
mov edx, 2
mov rcx, qword [rsp + 0xb8]
mov rbx, rax
mov qword [rax + 0x28], rcx
mov rcx, qword [rsp + 0xc0]
mov qword [rax + 0x20], r8
lea r8d, [rdx + 0xf]
mov qword [rax], rcx
movzx ecx, word [rsi]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140094c4a
mov rcx, rbx
call fcn.1401cfea0
xor eax, eax
jmp 0x140094d73
cmp ebp, 1
jne 0x140094c79
lea r9, [rsp + 0xa8]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
lea r8d, [rbp + 3]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140094d87
cmp word [rsi], 0x17
jne 0x140094ca9
mov edx, 0x29
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xa0]
mov rcx, rdi
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140094db4
cmp word [rsi], 0x17
mov eax, 0x1c
mov rdx, rsi
mov rcx, rdi
lea r8d, [rax - 0xc]
cmove r8d, eax
call qword [sym.imp.WS2_32.dll_bind]
mov rcx, rdi
test eax, eax
je 0x140094cd8
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140094c3b
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov r9d, 4
and dword [rsp + 0x28], 0
mov edx, 0x9800000c
and qword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSAIoctl]
movzx ecx, word [rsi + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
and dword [rsp + 0x30], 0
lea rbp, [0x140018a50]
mov word [rbx + 0x18], ax
lea r8, [0x140094b00]
lea rax, [0x140094ba0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov edx, r14d
mov rcx, r15
mov qword [rsp + 0x20], rbp
call fcn.14009222c
mov rsi, rax
test rax, rax
jne 0x140094d5f
mov rcx, rdi
jmp 0x140094ccd
mov r9, rbx
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
call fcn.14009484c
mov rax, rsi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
and dword [rsp + 0x20], 0
lea rdx, str...microstackILibAsyncUDPSocket.c
mov r9d, eax
mov r8d, 0x7f
xor ecx, ecx
call fcn.14009fd00
mov ecx, 0xfd
call fcn.1401c9e58
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
and dword [rsp + 0x20], 0
lea rdx, str...microstackILibAsyncUDPSocket.c
mov r9d, eax
mov r8d, 0x83
xor ecx, ecx
call fcn.14009fd00
mov ecx, 0xfd
call fcn.1401c9e58
int3

Function at 0x140094de4
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x68]
mov rbx, r8
lea r8, [rdx + 4]
mov edx, 4
mov r9d, edx
lea rcx, [rsp + 0x40]
call fcn.140094a80
mov eax, dword [rbx + 4]
lea r9, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x44], eax
mov rcx, rdi
mov dword [rsp + 0x20], 8
lea r8d, [rdx + 0xc]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140094e3c
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1402c2ed0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, qword [rcx + 0x68]
mov edi, r8d
lea r8, [rdx + 8]
mov edx, reloc.WS2_32.dll_recv
mov r9d, edx
lea rcx, [rsp + 0x30]
call fcn.140094a80
mov edx, 0x29
mov dword [rsp + 0x40], edi
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], reloc.WS2_32.dll_sendto
mov rcx, rbx
lea r8d, [rdx - 0x1d]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401c7760
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x140095224
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
and qword [rax + 8], 0
xor ebx, ebx
mov rbp, r8
mov rsi, rdx
test rcx, rcx
jne 0x140095251
xor eax, eax
jmp 0x140095330
mov r8, rcx
mov dword [rsp + 0x28], 0x1000
lea rdi, [0x1402c7a40]
mov ecx, 0xfde9
or r9d, 0xffffffff
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [0x14029f420]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1401ce710
mov r9, qword [rsp + 0x40]
test r9, r9
je 0x14009532d
cmp qword [rsi], rbx
jne 0x1400952f1
xor edx, edx
mov rcx, r9
lea r8d, [rdx + 2]
call fcn.1401cf07c
mov rcx, qword [rsp + 0x40]
call fcn.1401ca39c
mov rcx, qword [rsp + 0x40]
movsxd rdi, eax
cmp rdi, rbp
cmova rdi, rbp
xor r8d, r8d
xor edx, edx
call fcn.1401cf07c
lea rcx, [rdi + 1]
call fcn.1401d12fc
mov qword [rsi], rax
test rax, rax
jne 0x140095315
mov rcx, qword [rsp + 0x40]
call fcn.1401cecc0
jmp 0x14009524a
lea rdi, [rbp - 1]
cmp rbx, rdi
jae 0x14009531c
mov rcx, qword [rsi]
mov r8, rdi
sub r8, rbx
mov edx, 1
call fcn.1401d1234
add rbx, rax
test rax, rax
je 0x14009531c
mov r9, qword [rsp + 0x40]
jmp 0x1400952f5
mov rcx, qword [rsi]
mov byte [rbx + rcx], 0
mov rcx, qword [rsp + 0x40]
call fcn.1401cecc0
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140095348
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x30
test rcx, rcx
jne 0x14009535b
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov r8, rcx
mov dword [rsp + 0x28], 0x1000
lea rbx, [0x1402c7a40]
mov ecx, 0xfde9
or r9d, 0xffffffff
mov qword [rsp + 0x20], rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.1401d756c
Function at 0x140095390
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbx
sub rsp, 0x230
mov rax, qword [0x1402c2ed0]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov eax, dword [0x1402c6514]
inc eax
mov dword [0x1402c6514], eax
cmp eax, 1
jg 0x140095461
xor edx, edx
xor ecx, ecx
call fcn.140195060
xor edx, edx
mov ecx, 0x200002
call fcn.140195060
xor edx, edx
lea ecx, [rdx + 2]
call fcn.1400d4920
xor edx, edx
lea ecx, [rdx + 0xc]
call fcn.1400d4920
xor edx, edx
lea ecx, [rdx + 4]
call fcn.1400d4920
xor edx, edx
lea ecx, [rdx + 8]
call fcn.1400d4920
xor edx, edx
lea rcx, str.ADVAPI32.DLL
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rbx, rax
test rax, rax
je 0x140095461
lea rdx, str.SystemFunction036
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140095458
mov edx, 0x40
lea rcx, [rsp + 0x20]
call rax
test al, al
je 0x140095458
movsd xmm2, qword [0x1402a2008]
lea rcx, [rsp + 0x20]
mov edx, 0x40
call fcn.1400d62f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1401c7760
add rsp, 0x230
pop rbx
ret

Function at 0x140095c28
Capabilities:
Create udp socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rbx, rdx
lea r9, [rax + 0x18]
xor edx, edx
mov rdi, r8
mov rbp, rcx
lea r8, [rax + 0x10]
lea ecx, [rdx + 0x68]
call fcn.140097330
mov rax, qword [rsp + 0x80]
lea rcx, str.ILibIPAddressMonitor
mov rsi, qword [rsp + 0x78]
mov qword [rsi + 0x28], rax
call fcn.140096d48
mov ecx, gethostname
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x40], rbx
mov qword [rsi + 0x48], rdi
call fcn.1401d12fc
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
lea edx, [r9 + 0x20]
call fcn.14009704c
xor r8d, r8d
mov qword [rsi + 0x60], rax
mov qword [rax + 0x18], rsi
lea ecx, [r8 + 2]
mov edx, ecx
call qword [sym.imp.WS2_32.dll_socket]
lea rdx, [rsi + 0x58]
xor r9d, r9d
lea rcx, [0x140095b2c]
mov qword [rsi + 0x50], rax
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov rcx, qword [rsi + 0x60]
mov qword [rsp + 0x38], rcx
mov rcx, rax
mov qword [rsp + 0x30], rdx
mov edx, 0x28000017
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSAIoctl]
lea rax, [0x140095c00]
mov rdx, rsi
mov rcx, rbp
mov qword [rsi + 0x10], rax
call fcn.140097924
mov rbx, qword [rsp + 0x70]
mov rax, rsi
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400962c0
Capabilities:
Send data
Send data on socket
Set socket configuration

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, 0x30
xor esi, esi
mov r14d, r9d
mov r15, r8
mov r12, rdx
mov rdi, rcx
cmp dword [rcx + 0xb8], esi
jle 0x140096384
xor ebp, ebp
mov rax, qword [rdi + 0x50]
cmp qword [rax + rbp], 0
je 0x140096372
mov rax, qword [rdi + 0x40]
xor edx, edx
mov r9, qword [rdi + 0xb0]
add r9, 4
movsxd rcx, esi
shl rcx, 4
mov rbx, qword [rax + 0x68]
lea r8d, [rdx + 9]
add r9, rcx
mov dword [rsp + 0x20], 4
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
xor edx, edx
mov dword [rsp + 0x20], 4
lea r9, [rdi + 0x68]
mov rcx, rbx
lea r8d, [rdx + 0xa]
call qword [sym.imp.WS2_32.dll_setsockopt]
xor r9d, r9d
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov r8d, r14d
mov qword [rsp + 0x20], r12
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_sendto]
inc esi
add rbp, 8
cmp esi, dword [rdi + 0xb8]
jl 0x1400962f9
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret

Function at 0x1400963a4
Capabilities:
Send data
Send data on socket
Set socket configuration

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, 0x30
xor edi, edi
mov esi, r9d
mov rbp, r8
mov r14, rdx
mov rbx, rcx
cmp dword [rcx + 0xc8], edi
jle 0x14009642e
mov rax, qword [rbx + 0xc0]
mov edx, 0x29
mov rcx, qword [rbx + 0x48]
movsxd r8, edi
mov dword [rsp + 0x20], 4
mov rcx, qword [rcx + 0x68]
lea r9, [rax + r8*4]
lea r8d, [rdx - 0x20]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x48]
xor r9d, r9d
mov dword [rsp + 0x28], 0x1c
mov r8d, esi
mov rdx, rbp
mov qword [rsp + 0x20], r14
mov rcx, qword [rcx + 0x68]
call qword [sym.imp.WS2_32.dll_sendto]
inc edi
cmp edi, dword [rbx + 0xc8]
jl 0x1400963d3
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret