joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cd5d0
Capabilities:
Get disk information
Get disk size

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4d0
lea rdi, [rsp + 0x20]
mov ecx, 0x12c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4e0]
mov rax, qword [0x140575740]
xor rax, rsp
mov qword [rsp + 0x4c8], rax
lea r9, [rsp + 0x444]
mov r8d, 0x400
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x4e8]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameA]
test eax, eax
je 0x1400cd888
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rsp + rax + 0x30]
test eax, eax
je 0x1400cd888
mov rcx, qword [rsp + 0x4e0]
call fcn.140035af0
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x4e0]
call fcn.140035090
lea r8, [0x1404e59dc]
mov edx, 0xfffffffe
mov rcx, qword [rsp + 0x4e0]
call fcn.14003c230
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [rsp + 0x454], eax
lea r9, [rsp + 0x4a8]
lea r8, [rsp + 0x488]
lea rdx, [rsp + 0x468]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x1400cd76e
mov rax, qword [rsp + 0x488]
test rax, rax
jl 0x1400cd6d5
cvtsi2sd xmm0, rax
jmp 0x1400cd6ee
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
movaps xmm0, xmm1
movaps xmm1, xmm0
mov rcx, qword [rsp + 0x4e0]
call fcn.140034c60
lea r8, [0x1404e59e4]
mov edx, 0xfffffffe
mov rcx, qword [rsp + 0x4e0]
call fcn.14003c230
mov rax, qword [rsp + 0x4a8]
test rax, rax
jl 0x1400cd72b
cvtsi2sd xmm0, rax
jmp 0x1400cd744
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
movaps xmm0, xmm1
movaps xmm1, xmm0
mov rcx, qword [rsp + 0x4e0]
call fcn.140034c60
lea r8, str.free
mov edx, 0xfffffffe
mov rcx, qword [rsp + 0x4e0]
call fcn.14003c230
nop
mov eax, dword [rsp + 0x454]
mov dword [rsp + 0x4c0], eax
cmp dword [rsp + 0x4c0], 2
je 0x1400cd7b0
cmp dword [rsp + 0x4c0], 3
je 0x1400cd7c7
cmp dword [rsp + 0x4c0], 4
je 0x1400cd7de
cmp dword [rsp + 0x4c0], 5
je 0x1400cd7f5
cmp dword [rsp + 0x4c0], 6
je 0x1400cd80c
jmp 0x1400cd823
lea rdx, str.REMOVABLE
mov rcx, qword [rsp + 0x4e0]
call fcn.140035090
nop
jmp 0x1400cd838
lea rdx, str.FIXED
mov rcx, qword [rsp + 0x4e0]
call fcn.140035090
nop
jmp 0x1400cd838
lea rdx, str.REMOTE
mov rcx, qword [rsp + 0x4e0]
call fcn.140035090
nop
jmp 0x1400cd838
lea rdx, str.CDROM
mov rcx, qword [rsp + 0x4e0]
call fcn.140035090
nop
jmp 0x1400cd838
lea rdx, str.RAMDISK
mov rcx, qword [rsp + 0x4e0]
call fcn.140035090
nop
jmp 0x1400cd838
lea rdx, [0x1404e5a28]
mov rcx, qword [rsp + 0x4e0]
call fcn.140035090
nop
lea r8, [0x1404e5a30]
mov edx, 0xfffffffe
mov rcx, qword [rsp + 0x4e0]
call fcn.14003c230
xor r8d, r8d
lea rdx, [0x1400cd590]
mov rcx, qword [rsp + 0x4e0]
call fcn.140035e50
lea r8, [0x1404e5a38]
mov edx, 0xfffffffe
mov rcx, qword [rsp + 0x4e0]
call fcn.14003c230
mov eax, 1
jmp 0x1400cd88a
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14042a9d0]
call fcn.14037c300
mov rax, rdi
mov rcx, qword [rsp + 0x4c8]
xor rcx, rsp
call fcn.14037c650
add rsp, 0x4d0
pop rdi
ret
Function at 0x140117cd0
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x40
mov r9d, 0xa4d
lea r8, [0x1405525d0]
mov edx, 1
mov ecx, 0x60
call fcn.1403ba980
xor r9d, r9d
xor r8d, r8d
mov edx, 0x48
mov rcx, rax
call fcn.1401375b0
mov qword [rsp + 0x30], rax
call fcn.140132de0
nop
mov rax, qword [rsp + 0x30]
mov rdx, rax
mov ecx, 8
call fcn.140132bc0
nop
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140117d10
call fcn.140132f50
call fcn.1401426b0
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x20], 0
lea rax, [0x14011c340]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x30]
lea r8, [0x14011c2a0]
lea rdx, [0x14011c0e0]
lea rcx, [0x14011bfc0]
call fcn.140032660
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140117dcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 0xfe
mov r8d, 0xa5f
lea rdx, [0x140552630]
xor ecx, ecx
call fcn.14014da80
mov r8d, 0xa5f
lea rdx, [0x140552690]
lea rcx, [0x1405526e8]
call fcn.140015e70
mov ecx, 0xfe
call fcn.14038e600
nop
mov rax, qword [rsp + 0x38]
add rsp, 0x40
pop rdi
ret
Function at 0x140119ae0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
lea rdi, [rsp + 0x30]
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb0]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xb0]
call fcn.14003b980
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x38]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xb0]
call fcn.140037f10
mov rcx, qword [rsp + 0xb0]
call fcn.1400359b0
lea r8, [0x14054d6a8]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xb0]
call fcn.1400e1400
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0xb0]
call fcn.140036e50
cmp qword [rsp + 0x50], 0
je 0x140119c95
mov eax, dword [rsp + 0x38]
inc eax
cdqe
add rax, 8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.140138010
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov rax, qword [rsp + 0x58]
add rax, 8
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call fcn.140117030
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov byte [rax + 8], 0
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call fcn.140137540
test eax, eax
je 0x140119c48
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
cmp qword [rax - 0x10], 0
jbe 0x140119c1d
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
mov rax, qword [rax - 0x18]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x88], rax
jmp 0x140119c29
mov qword [rsp + 0x88], 0
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x90], rax
jmp 0x140119c54
mov qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 1
lea r9, [0x140119280]
mov rax, qword [rsp + 0x50]
mov r8, qword [rax]
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x18]
call fcn.1400e0450
nop
jmp 0x140119d47
mov eax, dword [rsp + 0x38]
add eax, 4
cdqe
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.140138010
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x38]
add eax, 4
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x60]
mov dword [rdx + rcx], eax
mov rax, qword [rsp + 0x60]
add rax, 4
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call fcn.140117030
mov eax, dword [rsp + 0x38]
add eax, 4
mov dword [rsp + 0x98], eax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x74]
mov ecx, dword [rsp + 0x98]
mov r8d, ecx
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0xb0]
call fcn.140036e50
mov edx, 1
mov rcx, qword [rsp + 0x60]
call fcn.1403ba8b0
nop
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.14037c300
add rsp, 0xa0
pop rdi
ret
Function at 0x140129020
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14012909e
mov dword [rsp + 0x24], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x24]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14012909e
xor eax, eax
mov rcx, qword [rsp + 0x58]
mov word [rcx], ax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14037c300
add rsp, 0x40
pop rdi
ret
Function at 0x14012a440
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
movsxd rax, dword [rsp + 0x80]
mov rdx, rax
mov ecx, 0x12f8
call fcn.140137490
mov qword [rsp + 0x30], rax
xor edx, edx
lea rcx, str.ILibAsyncSocket
call fcn.140137750
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x60], 0x40
mov rax, qword [rsp + 0x30]
lea rcx, [0x14012f300]
mov qword [rax + 0x40], rcx
mov rax, qword [rsp + 0x30]
lea rcx, [fcn.14012bf20]
mov qword [rax + 0x48], rcx
mov rax, qword [rsp + 0x30]
lea rcx, [fcn.14012a6a0]
mov qword [rax + 0x50], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x20], rcx
cmp dword [rsp + 0x58], 0
je 0x14012a565
movsxd rax, dword [rsp + 0x58]
mov r9d, 0x1ca
lea r8, [0x140555e00]
mov edx, 1
mov rcx, rax
call fcn.1403ba980
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x268], rcx
cmp qword [rsp + 0x38], 0
jne 0x14012a563
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 0xfe
mov r8d, 0x1ca
lea rdx, [0x140555e50]
xor ecx, ecx
call fcn.14014da80
mov r8d, 0x1ca
lea rdx, [0x140555ea0]
lea rcx, [0x140555ee8]
call fcn.140015e70
mov ecx, 0xfe
call fcn.14038e600
nop
jmp 0x14012a580
mov dword [rsp + 0x58], 0xffff
mov rax, qword [rsp + 0x30]
lea rcx, [0x14058f640]
mov qword [rax + 0x268], rcx
mov rax, qword [rsp + 0x30]
lea rcx, [0x14012e770]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
lea rcx, [0x14012d090]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x30]
lea rcx, [0x14012f140]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x68], 0xffffffffffffffff
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x200], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x208], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x210], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
mov qword [rax + 0x218], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x58]
mov dword [rax + 0x274], ecx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x58]
mov dword [rax + 0x270], ecx
mov rcx, qword [rsp + 0x50]
call fcn.14013c870
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x238], rax
mov rax, qword [rsp + 0x30]
add rax, 0x288
mov rcx, rax
call fcn.14012a160
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.14013c810
mov rax, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
Function at 0x14012c260
Capabilities:
Set socket configuration
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x30]
mov ecx, ntohs
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x70], 0
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x74], 0
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x78]
mov qword [rax + 0x68], rcx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
mov qword [rax + 0x220], rcx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x88]
mov qword [rax + 0x240], rcx
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x258], 1
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x254], 0
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x2a4], 0
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x20], 0
je 0x14012c346
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x50]
add rax, qword [rcx + 0x20]
mov ecx, 8
imul rcx, rcx, 0
mov rax, qword [rax + rcx]
mov qword [rsp + 0x58], rax
jmp 0x14012c34f
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, str.AsyncSocket__p__Initialized
mov r8d, 2
mov edx, 0x40
mov rcx, qword [rsp + 0x58]
call fcn.1401589b0
lea rax, [0x14058f640]
mov rcx, qword [rsp + 0x50]
cmp qword [rcx + 0x268], rax
je 0x14012c43f
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x274]
mov dword [rsp + 0x20], 0x942
lea r9, [0x140556f20]
mov r8d, 1
mov rdx, rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x268]
call fcn.1403bab60
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14012c418
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 0xfe
mov r8d, 0x942
lea rdx, [0x140556f70]
xor ecx, ecx
call fcn.14014da80
mov r8d, 0x942
lea rdx, str.C:UsersyfjvyDownloadsMeshAgent_mastermicrostackILibAsyncSocket.c
lea rcx, [0x140557008]
call fcn.140015e70
mov ecx, 0xfe
call fcn.14038e600
nop
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0x268], rcx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x274]
mov dword [rax + 0x270], ecx
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x25c], 0
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x260], 0
mov dword [rsp + 0x34], 1
lea r8, [rsp + 0x34]
mov edx, 0x8004667e
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
nop
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14037c300
add rsp, 0x60
pop rdi
ret
Function at 0x14012c8f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 0x1c
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x94]
test eax, eax
je 0x14012c9d4
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x94]
cmp eax, 0x17
jne 0x14012c957
mov qword [rsp + 0x48], 0x1c
jmp 0x14012c960
mov qword [rsp + 0x48], reloc.WS2_32.dll_recv
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x94]
cmp eax, 0x17
jne 0x14012c97c
mov qword [rsp + 0x50], 0x1c
jmp 0x14012c985
mov qword [rsp + 0x50], reloc.WS2_32.dll_recv
mov rax, qword [rsp + 0x20]
add rax, 0x94
mov r9, qword [rsp + 0x48]
mov r8, rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x78]
call fcn.140129e90
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x94]
cmp eax, 0x17
jne 0x14012c9c3
mov qword [rsp + 0x58], 0x1c
jmp 0x14012c9cc
mov qword [rsp + 0x58], reloc.WS2_32.dll_recv
mov eax, dword [rsp + 0x58]
jmp 0x14012c9f1
lea r8, [rsp + 0x34]
mov rdx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [rsp + 0x34]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14037c300
mov rax, rdi
add rsp, 0x60
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
lea rdi, [rsp + 0x20]
mov ecx, 0x20
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb0]
mov rax, qword [0x140575740]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 0x1c
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x94]
cmp eax, 0x17
jne 0x14012cbe2
mov rax, qword [rsp + 0x20]
movzx ecx, word [rax + 0x96]
call qword [sym.imp.WS2_32.dll_ntohs]
jmp 0x14012cc50
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x94]
cmp eax, 2
jne 0x14012cc07
mov rax, qword [rsp + 0x20]
movzx ecx, word [rax + 0x96]
call qword [sym.imp.WS2_32.dll_ntohs]
jmp 0x14012cc50
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x58]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.WS2_32.dll_getsockname]
movzx eax, word [rsp + 0x58]
cmp eax, 0x17
jne 0x14012cc37
movzx ecx, word [rsp + 0x5a]
call qword [sym.imp.WS2_32.dll_ntohs]
jmp 0x14012cc50
movzx eax, word [rsp + 0x58]
cmp eax, 2
jne 0x14012cc4e
movzx ecx, word [rsp + 0x5a]
call qword [sym.imp.WS2_32.dll_ntohs]
jmp 0x14012cc50
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.14037c300
mov rax, rdi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14037c650
add rsp, 0xa0
pop rdi
ret
Function at 0x14012f4d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov dword [rsp + 0x30], 0xfffffffc
mov rax, qword [rsp + 0x50]
add rax, 0x288
mov rcx, rax
call fcn.14012a1a0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x2d0]
cmp qword [rax], 0
jbe 0x14012f72b
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x280], 0
jne 0x14012f72b
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x258], 0
jne 0x14012f57e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, gethostname
call fcn.140138010
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x2c], 3
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x280], rcx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x278], rcx
mov dword [rsp + 0x30], 0
jmp 0x14012f72b
mov edx, reloc.WS2_32.dll_ntohs
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x2c0]
call fcn.1401bb2a0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x2d0]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x2d0]
xor r9d, r9d
mov r8d, dword [rax]
mov rdx, qword [rcx + 8]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jle 0x14012f72b
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x2d0]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jge 0x14012f6e9
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x2d0]
mov ecx, dword [rsp + 0x20]
mov eax, dword [rax]
sub eax, ecx
cdqe
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov ecx, gethostname
call fcn.140138010
mov qword [rsp + 0x28], rax
mov edx, gethostname
mov rcx, qword [rsp + 0x28]
call fcn.140138230
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x2d0]
mov ecx, dword [rsp + 0x20]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x2c], 3
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 8]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x2d0]
movsxd rdx, dword [rsp + 0x20]
add rdx, qword [rcx + 8]
mov rcx, rdx
mov rdx, qword [rsp + 0x28]
movsxd rdx, dword [rdx + 8]
mov r9, rax
mov r8, rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax]
call fcn.140129e90
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x280], rcx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x278], rcx
mov dword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x2c0]
call fcn.1401bb320
cdqe
mov rcx, rax
call fcn.14012a150
nop
jmp 0x14012f72b
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x2d0]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jne 0x14012f72b
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x2c0]
call fcn.1401bb320
cdqe
mov rcx, rax
call fcn.14012a150
mov dword [rsp + 0x30], 1
mov rax, qword [rsp + 0x50]
add rax, 0x288
mov rcx, rax
call fcn.14012a180
mov eax, dword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
Function at 0x140131070
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x30]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
cmp qword [rsp + 0x60], 0
jne 0x1401310a4
jmp 0x140131104
mov rcx, qword [rsp + 0x60]
call fcn.14012a670
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x68]
add rax, 4
mov r9d, 4
mov r8, rax
mov edx, 4
lea rcx, [rsp + 0x38]
call fcn.140130b80
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0x38]
mov r8d, ntohs
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14037c300
add rsp, 0x50
pop rdi
ret

Function at 0x140131120
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov rax, qword [0x140575740]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x80], 0
jne 0x140131169
jmp 0x1401311d1
mov rcx, qword [rsp + 0x80]
call fcn.14012a670
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x88]
add rax, 8
mov r9d, reloc.WS2_32.dll_recv
mov r8, rax
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x38]
call fcn.140130b80
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x20], reloc.WS2_32.dll_sendto
lea r9, [rsp + 0x38]
mov r8d, ntohs
mov edx, 0x29
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14037c300
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14037c650
add rsp, 0x70
pop rdi
ret

Function at 0x140131200
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x30]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
call fcn.14012a670
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x68]
add rax, 4
mov r9d, 4
mov r8, rax
mov edx, 4
lea rcx, [rsp + 0x38]
call fcn.140130b80
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0x38]
mov r8d, reloc.WS2_32.dll_listen
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14037c300
add rsp, 0x50
pop rdi
ret
Function at 0x1401312b0
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov rax, qword [0x140575740]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x80]
call fcn.14012a670
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x88]
add rax, 8
mov r9d, reloc.WS2_32.dll_recv
mov r8, rax
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x38]
call fcn.140130b80
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x20], reloc.WS2_32.dll_sendto
lea r9, [rsp + 0x38]
mov r8d, reloc.WS2_32.dll_listen
mov edx, 0x29
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14037c300
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14037c650
add rsp, 0x70
pop rdi
ret

Function at 0x140131380
Capabilities:
Set socket configuration
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rcx, qword [rsp + 0x50]
call fcn.14012a670
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
cmp eax, 0x17
jne 0x14013140e
mov rax, qword [rsp + 0x58]
add rax, 0x18
mov dword [rsp + 0x20], 4
mov r9, rax
mov r8d, 9
mov edx, 0x29
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14013140c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], 0
mov r9d, eax
mov r8d, 0x10f
lea rdx, [0x140557110]
xor ecx, ecx
call fcn.14014da80
mov ecx, 0xfd
call fcn.14038e600
nop
jmp 0x140131469
mov rax, qword [rsp + 0x58]
add rax, 4
mov dword [rsp + 0x20], 4
mov r9, rax
mov r8d, 9
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140131469
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], 0
mov r9d, eax
mov r8d, 0x113
lea rdx, [0x140557160]
xor ecx, ecx
call fcn.14014da80
mov ecx, 0xfd
call fcn.14038e600
nop
add rsp, 0x40
pop rdi
ret