joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000adc0
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 [0x14021c510]
xor rax, rsp
mov qword [rbp - 8], rax
xor esi, esi
mov r14d, edx
mov ebx, ecx
test ecx, ecx
jne 0x14000adf7
xor eax, eax
jmp 0x14000af81
cmp ebx, 6
jne 0x14000ae18
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 0x14000af81
cmp ebx, 7
jne 0x14000ae22
lea ecx, [rbx - 6]
jmp 0x14000ae08
cmp ebx, 8
jne 0x14000ae32
or ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
jmp 0x14000ae0e
cmp ebx, 9
jne 0x14000ae68
mov qword [rsp + 0x28], rsi
lea r8, [0x140007be8]
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 0x14000ae0e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000ae0e
cmp ebx, 5
jg 0x14000adf0
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 0x14000adf0
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 0x14000aee4
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000adf0
sub ebx, 1
je 0x14000af33
sub ebx, 1
je 0x14000af1b
sub ebx, 1
je 0x14000af11
sub ebx, 1
je 0x14000af0a
cmp ebx, 1
jne 0x14000af75
xor ecx, ecx
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_SetSystemPowerState]
jmp 0x14000af4c
mov ecx, 1
jmp 0x14000aeff
mov dword [rsp + 0x20], 1
jmp 0x14000af1f
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 0x14000af4c
mov edx, 0x80000000
test r14d, r14d
je 0x14000af44
mov ecx, 4
jmp 0x14000af46
xor ecx, ecx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x14000af75
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.140168070
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x14000b210
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 0x14000b27a
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], cx
jne 0x14000b240
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 0x14000d4fc
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov r9, rdx
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movabs rax, 0xaaaaaaaaaaaaaaab
mov r10, rcx
mul rdx
shr rdx, 1
lea rax, [rdx + rdx*2]
sub r9, rax
lea r11, [rax + rcx]
cmp rcx, r11
je 0x14000d590
movzx eax, byte [r10 + 1]
movzx edx, byte [r10]
movzx ecx, byte [r10 + 2]
add r10, 3
shl rdx, 8
add rdx, rax
shl rdx, 8
add rdx, rcx
mov rax, rdx
shr rax, 0x12
mov al, byte [rax + rbx]
mov byte [r8], al
mov rax, rdx
shr rax, 0xc
and eax, 0x3f
mov al, byte [rax + rbx]
mov byte [r8 + 1], al
mov rax, rdx
shr rax, 6
and edx, 0x3f
and eax, 0x3f
mov al, byte [rax + rbx]
mov byte [r8 + 2], al
mov al, byte [rdx + rbx]
mov byte [r8 + 3], al
add r8, 4
cmp r10, r11
jne 0x14000d52e
sub r9, 1
je 0x14000d5da
cmp r9, 1
jne 0x14000d5fe
movzx edx, byte [r10]
movzx eax, byte [r10 + 1]
shl edx, 8
add edx, eax
mov eax, edx
shr rax, 0xa
mov ecx, edx
and edx, 0xf
shr rcx, 4
and ecx, 0x3f
mov al, byte [rax + rbx]
mov byte [r8], al
shl edx, 2
mov al, byte [rcx + rbx]
mov byte [r8 + 1], al
mov al, byte [rdx + rbx]
mov byte [r8 + 2], al
mov byte [r8 + 3], 0x3d
jmp 0x14000d5fe
movzx ecx, byte [r10]
mov eax, ecx
and ecx, 3
shr rax, 2
shl ecx, 4
mov al, byte [rax + rbx]
mov byte [r8], al
mov al, byte [rcx + rbx]
mov byte [r8 + 1], al
mov word [r8 + 2], 0x3d3d
mov rbx, qword [rsp + 8]
ret
Function at 0x140047b78
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 [0x14021c510]
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 0x140047d2b
cmp byte [rsp + 0x50], 0
je 0x140047d2b
mov rcx, rbx
call fcn.140011018
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140010c3c
mov esi, 0xfffffffe
lea r8, str.name
mov edx, esi
mov rcx, rbx
call fcn.14000e4ac
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 0x140047c8a
mov rcx, qword [rsp + 0x38]
xorps xmm1, xmm1
cvtsi2sd xmm1, rcx
test rcx, rcx
jns 0x140047c3e
addsd xmm1, qword [0x140200170]
mov rcx, rbx
call fcn.140010ab4
lea r8, str.size
mov edx, esi
mov rcx, rbx
call fcn.14000e4ac
mov rax, qword [rsp + 0x40]
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
test rax, rax
jns 0x140047c71
addsd xmm1, qword [0x140200170]
mov rcx, rbx
call fcn.140010ab4
lea r8, str.free
mov edx, esi
mov rcx, rbx
call fcn.14000e4ac
sub edi, 2
je 0x140047cd3
sub edi, 1
je 0x140047cca
sub edi, 1
je 0x140047cc1
sub edi, 1
je 0x140047cb8
mov rcx, rbx
cmp edi, 1
je 0x140047caf
lea rdx, str.UNKNOWN
jmp 0x140047cdd
lea rdx, str.RAMDISK
jmp 0x140047cdd
lea rdx, str.CDROM
jmp 0x140047cda
lea rdx, str.REMOTE
jmp 0x140047cda
lea rdx, str.FIXED
jmp 0x140047cda
lea rdx, str.REMOVABLE
mov rcx, rbx
call fcn.140010c3c
lea r8, [0x1401e1648]
mov edx, esi
mov rcx, rbx
call fcn.14000e4ac
mov r9d, 0x18075380
mov dword [rsp + 0x20], 6
xor r8d, r8d
lea rdx, [0x140047b48]
mov rcx, rbx
call fcn.140011234
lea r8, str.toString
mov edx, esi
mov rcx, rbx
call fcn.14000e4ac
mov eax, 1
jmp 0x140047d2d
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140168070
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14004d6e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebp, ebp
mov rbx, rcx
lea edi, [rbp + 1]
cmp dword [rcx + 8], ebp
jne 0x14004d70d
mov rax, qword [rbx + 0x70]
cmp dword [rax + 8], 0
jle 0x14004d7b3
mov rax, qword [rbx + 0x70]
xor esi, esi
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14004d71f
mov rsi, qword [rcx]
mov rcx, qword [rsi]
lea rdx, [rsi + 0x10]
mov r8d, dword [rsi + 0xc]
lea r9, [rsp + 0x50]
mov ebp, dword [rsi + 8]
lea rax, [rcx + 0x38]
mov rcx, qword [rcx + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r14d, eax
cmp eax, edi
jne 0x14004d76c
cmp dword [rbx + 8], 0
jne 0x14004d7ca
mov rcx, qword [rsi]
mov rcx, qword [rcx + 0x70]
call fcn.14007435c
mov rcx, rsi
call fcn.14016f3a8
cmp dword [rbx + 8], 0
je 0x14004d6ff
test r14d, r14d
jne 0x14004d7b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14004d7a1
mov rdx, qword [rbx + 0x50]
lea rax, [0x14004d65c]
mov rcx, qword [rbx + 0x58]
xor edi, edi
mov r9, rbx
mov qword [rsp + 0x20], rax
xor r8d, r8d
call fcn.140079288
jmp 0x14004d7cc
mov rcx, qword [rbx]
mov rdx, rbx
mov edi, 0xfffffffc
call fcn.14004d534
jmp 0x14004d7cc
cmp dword [rbx + 8], 0
jne 0x14004d7ca
test ebp, ebp
je 0x14004d7cc
mov rcx, qword [rbx]
mov rdx, rbx
call fcn.14004d604
jmp 0x14004d7cc
xor edi, edi
mov rbx, qword [rsp + 0x58]
mov eax, edi
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x14004d814
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rdx]
mov rbx, rdx
mov rcx, qword [rcx + 0x70]
call fcn.140077784
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x70]
cmp dword [rax + 8], 1
jne 0x14004d840
add rsp, 0x20
pop rbx
jmp fcn.14004d6e0
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14004da1c
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rdx + 0x70]
mov rbx, rdx
call fcn.14007435c
mov rcx, rax
call fcn.14016f3a8
mov rax, qword [rbx + 0x70]
cmp dword [rax + 8], 0
jne 0x14004da50
mov rcx, qword [rbx]
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14004d604
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14004d6e0
Function at 0x140065d48
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
or ebx, 0xffffffff
mov rbp, rcx
mov edx, ebx
call fcn.14000db4c
lea r8, [rsp + 0x60]
mov edx, ebx
mov rcx, rbp
mov r14, rax
call fcn.14000f5c4
mov rcx, rbp
call fcn.140010df4
lea r8, [0x1401fac58]
mov edx, ebx
mov rcx, rbp
call fcn.14004ee28
mov rcx, rbp
mov rdi, rax
call fcn.140011914
mov rbx, qword [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
test rdi, rdi
je 0x140065e04
lea ecx, [rbx + 9]
call fcn.140073214
mov r9, rbx
mov r8, r14
mov rdx, rbx
mov rsi, rax
lea rcx, [rax + 8]
mov qword [rax], rdi
call section..text
mov byte [rsi + rbx + 8], 0
mov rcx, qword [rdi + 0x18]
call fcn.140079008
mov rcx, qword [rdi + 0x18]
test eax, eax
jne 0x140065dfa
mov r9, rsi
lea r8d, [rax + 1]
lea rdx, [fcn.140069c7c]
call fcn.1400733e4
jmp 0x140065e5a
mov rdx, rsi
call fcn.140069c7c
jmp 0x140065e5a
lea esi, [rbx + 4]
mov ecx, esi
call fcn.140073214
mov r9, rbx
mov r8, r14
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]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov rcx, rax
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
call fcn.140011914
mov rcx, rdi
call fcn.14016f3a8
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14006f7cc
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
add rcx, 0xbc
mov r10, r9
mov rdi, r8
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov dword [rcx + 0x18], eax
and dword [rbx + 0x1d8], eax
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0x1e0], rax
mov rax, qword [rsp + 0x68]
mov qword [rbx + 0x1e8], rax
test r9, r9
je 0x14006f833
cmp word [r10], 0x17
mov edx, 0x1c
mov r8, r10
lea r9d, [rdx - 0xc]
cmove r9d, edx
call section..text
mov rax, qword [rsp + 0x78]
mov r8, rdi
mov r9, qword [rsp + 0x70]
mov rcx, rbx
mov qword [rsp + 0x60], rax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.14006f438

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
or edx, 0xffffffff
mov rcx, qword [rcx + 0x278]
mov edi, 0xfffffffc
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rbx + 0x2c0]
cmp qword [rax], 0
jbe 0x14006f92d
cmp qword [rbx + 0x270], 0
jne 0x14006f92d
cmp dword [rbx + 0x248], 0
je 0x14006f8ec
mov rcx, qword [rbx + 0x2b0]
lea edx, [rdi + 0x13]
call fcn.1400a6f30
mov rdx, qword [rbx + 0x2c0]
xor r9d, r9d
mov rcx, qword [rbx + 0x58]
mov r8d, dword [rdx]
mov rdx, qword [rdx + 8]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x14006f92d
mov rdx, qword [rbx + 0x2c0]
cmp eax, dword [rdx]
jge 0x14006f915
movsxd rcx, eax
add qword [rdx + 8], rcx
mov rax, qword [rbx + 0x2c0]
sub qword [rax], rcx
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x38]
call fcn.140073214
xor edi, edi
mov dword [rax + 0x2c], 3
mov qword [rbx + 0x270], rax
mov qword [rbx + 0x268], rax
jmp 0x14006f92d
jne 0x14006f92d
and qword [rdx], 0
mov edi, 1
mov rcx, qword [rbx + 0x2c0]
cdqe
add qword [rcx + 8], rax
mov rcx, qword [rbx + 0x278]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov rbx, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x140070dc0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rcx + 0x60], 0
lea rax, [0x140232180]
and dword [rcx + 0x64], 0
mov rbx, rcx
and dword [rcx + 0x244], 0
and dword [rcx + 0x294], 0
mov qword [rcx + 0x58], rdx
mov qword [rcx + 0x210], r8
mov qword [rcx + 0x230], r9
mov dword [rcx + 0x248], 1
mov rcx, qword [rcx + 0x258]
cmp rcx, rax
je 0x140070e32
movsxd rdx, dword [rbx + 0x264]
call fcn.140175bdc
test rax, rax
je 0x140070e62
mov qword [rbx + 0x258], rax
mov eax, dword [rbx + 0x264]
mov dword [rbx + 0x260], eax
and dword [rbx + 0x24c], 0
lea r8, [rsp + 0x40]
and dword [rbx + 0x250], 0
mov edx, 0x8004667e
mov rcx, qword [rbx + 0x58]
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, 0x8a5
lea rdx, str...microstackILibAsyncSocket.c
mov r8d, ebx
mov dword [rsp + 0x20], eax
mov r9d, 0xfe
xor ecx, ecx
call fcn.140078e6c
mov r8d, ebx
lea rdx, str...microstackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, 0xfe
call fcn.14016a768
int3

Function at 0x140070f08
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 + 0x84]
mov esi, 0x1c
cmp word [rdi], 0
mov rax, rdx
mov dword [rsp + 0x30], esi
je 0x140070f55
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 0x140070f68
mov rcx, qword [rcx + 0x58]
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 0x140070f78
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14021c510]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, word [rcx + 0x84]
mov dword [rsp + 0x20], 0x1c
cmp ax, 0x17
jne 0x140070faf
movzx ecx, word [rcx + 0x86]
call qword [sym.imp.WS2_32.dll_ntohs]
jmp 0x140070fe2
cmp ax, 2
je 0x140070fa0
mov rcx, qword [rcx + 0x58]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp word [rsp + 0x28], 0x17
jne 0x140070fd8
movzx ecx, word [rsp + 0x2a]
jmp 0x140070fa7
cmp word [rsp + 0x28], 2
je 0x140070fd1
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140168070
add rsp, 0x58
ret
Function at 0x140071130
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.140073214
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 0x1400711be
mov rcx, rbx
call fcn.14016f3a8
xor eax, eax
jmp 0x1400712e7
cmp ebp, 1
jne 0x1400711ed
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 0x1400712fb
cmp word [rsi], 0x17
jne 0x14007121d
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 0x140071328
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 0x14007124c
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1400711af
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, [0x14000d08c]
mov word [rbx + 0x18], ax
lea r8, [0x140071074]
lea rax, [0x140071114]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov edx, r14d
mov rcx, r15
mov qword [rsp + 0x20], rbp
call fcn.14006eac0
mov rsi, rax
test rax, rax
jne 0x1400712d3
mov rcx, rdi
jmp 0x140071241
mov r9, rbx
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
call fcn.140070dc0
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.140078e6c
mov ecx, 0xfd
call fcn.14016a768
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.140078e6c
mov ecx, 0xfd
call fcn.14016a768
int3

Function at 0x140071358
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x58]
mov rbx, r8
lea r8, [rdx + 4]
mov edx, 4
mov r9d, edx
lea rcx, [rsp + 0x40]
call fcn.140070ff4
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 0x1400713b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14021c510]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, qword [rcx + 0x58]
mov edi, r8d
lea r8, [rdx + 8]
mov edx, reloc.WS2_32.dll_recv
mov r9d, edx
lea rcx, [rsp + 0x30]
call fcn.140070ff4
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.140168070
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x1400717ac
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r8
push rdi
sub rsp, 0x20
and qword [rax + 0x18], 0
xor ebx, ebx
mov rdi, rdx
test rcx, rcx
jne 0x1400717d6
xor eax, eax
jmp 0x140071893
mov rdx, rcx
lea r8, [0x1401eab8c]
lea rcx, [rsp + 0x40]
call fcn.14016f350
mov r9, qword [rsp + 0x40]
test r9, r9
je 0x140071890
cmp qword [rdi], rbx
jne 0x140071853
xor edx, edx
mov rcx, r9
lea r8d, [rdx + 2]
call fcn.14016b29c
mov rcx, qword [rsp + 0x40]
call fcn.14016acac
mov rcx, qword [rsp + 0x40]
movsxd rsi, eax
mov eax, 0x400
cmp rsi, rax
cmova rsi, rax
xor r8d, r8d
xor edx, edx
call fcn.14016b29c
lea rcx, [rsi + 1]
call fcn.1401707f0
mov qword [rdi], rax
test rax, rax
jne 0x140071878
mov rcx, qword [rsp + 0x40]
call fcn.14016aee0
jmp 0x1400717cf
mov esi, 0x3ff
cmp rbx, rsi
jae 0x14007187f
mov rcx, qword [rdi]
mov r8, rsi
sub r8, rbx
mov edx, 1
call fcn.140170728
add rbx, rax
test rax, rax
je 0x14007187f
mov r9, qword [rsp + 0x40]
jmp 0x140071858
mov rcx, qword [rdi]
mov byte [rbx + rcx], 0
mov rcx, qword [rsp + 0x40]
call fcn.14016aee0
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400718a4
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbx
sub rsp, 0x230
mov rax, qword [0x14021c510]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov eax, dword [0x14021fe78]
inc eax
mov dword [0x14021fe78], eax
cmp eax, 1
jg 0x14007196d
xor edx, edx
xor ecx, ecx
call fcn.1401442b0
xor edx, edx
mov ecx, 0x200002
call fcn.1401442b0
xor edx, edx
lea ecx, [rdx + 2]
call fcn.1400aa130
xor edx, edx
lea ecx, [rdx + 0xc]
call fcn.1400aa130
xor edx, edx
lea ecx, [rdx + 4]
call fcn.1400aa130
xor edx, edx
lea ecx, [rdx + 8]
call fcn.1400aa130
lea rcx, str.ADVAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14007196d
lea rdx, str.SystemFunction036
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140071964
mov edx, 0x40
lea rcx, [rsp + 0x20]
call rax
test al, al
je 0x140071964
movsd xmm2, qword [0x1402000d0]
lea rcx, [rsp + 0x20]
mov edx, 0x40
call fcn.1400ab980
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140168070
add rsp, 0x230
pop rbx
ret
Function at 0x1400720f4
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 + 0x58]
call fcn.140073214
mov rsi, qword [rsp + 0x78]
mov ecx, gethostname
mov rax, qword [rsp + 0x80]
mov qword [rsi + 0x20], rax
lea rax, str.ILibIPAddressMonitor
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x30], rbx
mov qword [rsi + 0x38], rdi
call fcn.1401707f0
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
lea edx, [r9 + 0x20]
call fcn.140073060
xor r8d, r8d
mov qword [rsi + 0x50], rax
mov qword [rax + 0x18], rsi
lea ecx, [r8 + 2]
mov edx, ecx
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi + 0x40], rax
lea rcx, [rsi + 0x48]
mov r10, rax
xor r9d, r9d
lea rax, [0x140071ff8]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov edx, 0x28000017
mov rax, qword [rsi + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov rcx, r10
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSAIoctl]
lea rax, [0x1400720cc]
mov rdx, rsi
mov rcx, rbp
mov qword [rsi + 0x10], rax
call fcn.140073704
mov rbx, qword [rsp + 0x70]
mov rax, rsi
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret