joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001da0
Capabilities:
Encrypt data using des

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1401a403a]
call fcn.14006b9e0
mov rax, qword [rbp + 0x120]
movzx ecx, al
mov rax, qword [rbp + 0x130]
shr rax, cl
mov ecx, 0x40
sub rcx, qword [rbp + 0x120]
mov rdx, qword [rbp + 0x130]
shl rdx, cl
mov rcx, rdx
or rax, rcx
mov rcx, qword [rbp + 0x128]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x120]
and rax, 1
test rax, rax
je 0x140001e79
mov rax, qword [rbp + 8]
and rax, 0x3f
lea rcx, [0x14006ff50]
mov rdx, qword [rbp + 8]
shr rdx, 8
and rdx, 0x3f
lea r8, [0x14006fd50]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov rcx, qword [rbp + 8]
shr rcx, 0x10
and rcx, 0x3f
lea rdx, [0x14006fb50]
xor eax, dword [rdx + rcx*4]
mov rcx, qword [rbp + 8]
shr rcx, 0x18
and rcx, 0x3f
lea rdx, [0x14006f950]
xor eax, dword [rdx + rcx*4]
mov eax, eax
mov qword [rbp + 0x28], rax
jmp 0x140001ed6
mov rax, qword [rbp + 8]
and rax, 0x3f
lea rcx, [0x14006fe50]
mov rdx, qword [rbp + 8]
shr rdx, 8
and rdx, 0x3f
lea r8, [0x14006fc50]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov rcx, qword [rbp + 8]
shr rcx, 0x10
and rcx, 0x3f
lea rdx, [0x14006fa50]
xor eax, dword [rdx + rcx*4]
mov rcx, qword [rbp + 8]
shr rcx, 0x18
and rcx, 0x3f
lea rdx, [0x14006f850]
xor eax, dword [rdx + rcx*4]
mov eax, eax
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14000eaa0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x1e0
lea rbp, [rsp + 0x20]
lea rcx, [0x1401a41d6]
call fcn.14006b9e0
mov rax, qword [rbp + 0x1e8]
mov rax, qword [rax + 8]
mov qword [rbp + 8], rax
mov qword [rbp + 0x28], 0
mov rax, qword [rbp + 0x1e8]
mov rax, qword [rax + 8]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x1e8]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x14000eb31
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, str.____ipv6_picker_is_null_n
mov rcx, rax
call fcn.140001b10
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x48]
sub rcx, rax
mov rax, rcx
xor edx, edx
mov ecx, 2
div rcx
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x88]
mov rcx, qword [rbp + 0x68]
mov rax, qword [rax + rcx*8]
cmp qword [rbp + 0x1f0], rax
jae 0x14000eb79
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x48], rax
jmp 0x14000eb31
mov rax, qword [rbp + 0x88]
mov rcx, qword [rbp + 0x68]
mov rax, qword [rax + rcx*8]
cmp qword [rbp + 0x1f0], rax
jb 0x14000ebca
mov rax, qword [rbp + 0x68]
inc rax
cmp rax, qword [rbp + 8]
jne 0x14000eba2
jmp 0x14000ebcf
mov rax, qword [rbp + 0x88]
mov rcx, qword [rbp + 0x68]
mov rax, qword [rax + rcx*8 + 8]
cmp qword [rbp + 0x1f0], rax
jae 0x14000ebbf
jmp 0x14000ebcf
mov rax, qword [rbp + 0x68]
inc rax
mov qword [rbp + 0x28], rax
jmp 0x14000eb31
mov rax, qword [rbp + 0x88]
mov rcx, qword [rbp + 0x68]
mov rax, qword [rax + rcx*8]
mov rcx, qword [rbp + 0x1f0]
sub rcx, rax
mov rax, rcx
imul rcx, qword [rbp + 0x68], 0x20
mov rdx, qword [rbp + 0x1e8]
mov rdx, qword [rdx]
lea r8, [rbp + 0x1a0]
mov rdi, r8
lea rsi, [rdx + rcx]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov r8, rax
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp + 0x168]
call fcn.14000d370
mov rdi, qword [rbp + 0x1e0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rbp + 0x1e0]
lea rsp, [rbp + 0x1c0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400142c0
Capabilities:
Get socket status
Receive data
Receive data on socket
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xa28
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1be
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa48]
mov rax, qword [0x14009f088]
xor rax, rbp
mov qword [rbp + 0x9e8], rax
lea rcx, [0x1401a43f9]
call fcn.14006b9e0
mov dword [rbp + 0x238], 0
mov dword [rbp + 0x23c], 0
mov dword [rbp + 0x10], 0
mov dword [rbp + 0x6d4], 0
jmp 0x140014343
mov eax, dword [rbp + 0x6d4]
inc eax
mov dword [rbp + 0x6d4], eax
mov eax, dword [rbp + 0x10]
cmp dword [rbp + 0x6d4], eax
jae 0x140014366
mov eax, dword [rbp + 0x6d4]
mov rcx, qword [rbp + 0xa18]
cmp qword [rbp + rax*8 + 0x18], rcx
jne 0x140014364
jmp 0x140014366
jmp 0x140014335
mov eax, dword [rbp + 0x10]
cmp dword [rbp + 0x6d4], eax
jne 0x140014391
cmp dword [rbp + 0x10], 0x40
jae 0x140014391
mov eax, dword [rbp + 0x6d4]
mov rcx, qword [rbp + 0xa18]
mov qword [rbp + rax*8 + 0x18], rcx
mov eax, dword [rbp + 0x10]
inc eax
mov dword [rbp + 0x10], eax
xor eax, eax
test eax, eax
jne 0x140014329
mov eax, dword [rbp + 0xa18]
mov dword [rbp + 0x274], eax
lea rax, [rbp + 0x238]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x10]
mov ecx, dword [rbp + 0x274]
call qword [sym.imp.WS2_32.dll_select]
mov dword [rbp + 0x254], eax
cmp dword [rbp + 0x254], 0
jne 0x1400143de
mov eax, 1
jmp 0x140014485
cmp dword [rbp + 0x254], 0
jge 0x140014400
lea rdx, str.redis:select___failed_n
xor ecx, ecx
call fcn.14002f7e0
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
cmp dword [rbp + 0x254], 1
je 0x140014422
lea rdx, str.redis:select___failed_n
xor ecx, ecx
call fcn.14002f7e0
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rbp + 0x2a0]
mov rcx, qword [rbp + 0xa18]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rbp + 0x6b8], rax
cmp qword [rbp + 0x6b8], 0
jne 0x14001446b
lea rdx, str.redis:recv___failed_n
xor ecx, ecx
call fcn.14002f7e0
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov r8, qword [rbp + 0x6b8]
lea rdx, [rbp + 0x2a0]
mov rcx, qword [rbp + 0xa10]
call fcn.1400144c0
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140075bd0]
call fcn.14006b950
mov rax, rdi
mov rcx, qword [rbp + 0x9e8]
xor rcx, rbp
call fcn.14006bb70
lea rsp, [rbp + 0x9f8]
pop rdi
pop rbp
ret
Function at 0x1400147a0
Capabilities:
Receive data
Receive data on socket
Terminate process

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1401a43f9]
call fcn.14006b9e0
mov qword [rbp + 8], 0
mov rax, qword [rbp + 0x130]
cmp qword [rbp + 8], rax
jae 0x14001485a
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
xor r9d, r9d
mov r8d, 1
mov rdx, rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x14001482e
lea rdx, str.redis:_recv_line___failed_n
xor ecx, ecx
call fcn.14002f7e0
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax - 1]
cmp eax, 0xa
jne 0x140014855
jmp 0x14001485a
jmp 0x1400147d1
mov rax, qword [rbp + 8]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14003a500
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1401a4a7c]
call fcn.14006b9e0
mov qword [rbp + 8], 0
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x100]
movsx eax, byte [rcx + rax]
and eax, 0xff
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_isdigit]
test eax, eax
je 0x14003a585
imul rax, qword [rbp + 8], 0xa
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x100]
movsx ecx, byte [rdx + rcx]
sub ecx, 0x30
movsxd rcx, ecx
add rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x100]
inc rax
mov qword [rbp + 0x100], rax
jmp 0x14003a527
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x100]
movsx eax, byte [rcx + rax]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_ispunct]
test eax, eax
jne 0x14003a5c5
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x100]
movsx eax, byte [rcx + rax]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_isspace]
test eax, eax
je 0x14003a5d8
mov rax, qword [rbp + 0x100]
inc rax
mov qword [rbp + 0x100], rax
jmp 0x14003a585
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x100]
movsx eax, byte [rcx + rax]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_isalpha]
test eax, eax
je 0x14003a607
cmp qword [rbp + 8], 0
jne 0x14003a607
mov qword [rbp + 8], 1
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x100]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x14003a628
mov rax, qword [rbp + 8]
jmp 0x14003a72a
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x100]
movsx eax, byte [rcx + rax]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_tolower]
mov dword [rbp + 0xd4], eax
mov eax, dword [rbp + 0xd4]
sub eax, 0x65
mov dword [rbp + 0xd4], eax
cmp dword [rbp + 0xd4], 0xf
ja case.0x14003a67e.1
movsxd rax, dword [rbp + 0xd4]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x3a734]
add rax, rcx
jmp rax
imul rax, qword [rbp + 8], 0x400
mov qword [rbp + 8], rax
jmp 0x14003a726
imul rax, qword [rbp + 8], 0x100000
mov qword [rbp + 8], rax
jmp 0x14003a726
imul rax, qword [rbp + 8], 0x40000000
mov qword [rbp + 8], rax
jmp 0x14003a726
movabs rax, 0x10000000000
mov rcx, qword [rbp + 8]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
jmp 0x14003a726
movabs rax, 0x4000000000000
mov rcx, qword [rbp + 8]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
jmp 0x14003a726
movabs rax, 0x1000000000000000
mov rcx, qword [rbp + 8]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
jmp 0x14003a726
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, str.__rotate_size:_unknown_character_n
mov rcx, rax
call fcn.140001b10
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov rax, qword [rbp + 8]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x14003a780
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1401a4a7c]
call fcn.14006b9e0
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0
mov rax, qword [rbp + 0x120]
movsx eax, byte [rax]
cmp eax, 0x2d
jne 0x14003a7d7
mov dword [rbp + 0x24], 1
mov rax, qword [rbp + 0x120]
inc rax
mov qword [rbp + 0x120], rax
jmp 0x14003a7ae
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x120]
movsx eax, byte [rcx + rax]
and eax, 0xff
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_isdigit]
test eax, eax
je 0x14003a835
imul rax, qword [rbp + 8], 0xa
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x120]
movsx ecx, byte [rdx + rcx]
sub ecx, 0x30
movsxd rcx, ecx
add rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x120]
inc rax
mov qword [rbp + 0x120], rax
jmp 0x14003a7d7
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x120]
movsx eax, byte [rcx + rax]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_ispunct]
test eax, eax
jne 0x14003a875
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x120]
movsx eax, byte [rcx + rax]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_isspace]
test eax, eax
je 0x14003a888
mov rax, qword [rbp + 0x120]
inc rax
mov qword [rbp + 0x120], rax
jmp 0x14003a835
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x120]
movsx eax, byte [rcx + rax]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_isalpha]
test eax, eax
je 0x14003a8b7
cmp qword [rbp + 8], 0
jne 0x14003a8b7
mov qword [rbp + 8], 1
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x120]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x14003a8d8
mov rax, qword [rbp + 8]
jmp 0x14003a9d3
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x120]
movsx eax, byte [rcx + rax]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_tolower]
mov dword [rbp + 0xf4], eax
cmp dword [rbp + 0xf4], 0x64
je 0x14003a94c
cmp dword [rbp + 0xf4], 0x68
je 0x14003a93e
cmp dword [rbp + 0xf4], 0x6d
je 0x14003a933
cmp dword [rbp + 0xf4], 0x73
je 0x14003a929
cmp dword [rbp + 0xf4], 0x77
je 0x14003a95a
jmp 0x14003a968
mov rax, qword [rbp + 8]
mov qword [rbp + 8], rax
jmp 0x14003a98d
imul rax, qword [rbp + 8], 0x3c
mov qword [rbp + 8], rax
jmp 0x14003a98d
imul rax, qword [rbp + 8], 0xe10
mov qword [rbp + 8], rax
jmp 0x14003a98d
imul rax, qword [rbp + 8], 0x15180
mov qword [rbp + 8], rax
jmp 0x14003a98d
imul rax, qword [rbp + 8], 0x93a80
mov qword [rbp + 8], rax
jmp 0x14003a98d
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, str.__rotate_offset:_unknown_character_n
mov rcx, rax
call fcn.140001b10
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
cmp qword [rbp + 8], 0x15180
jb 0x14003a9bc
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, str.__rotate_offset:_value_is_greater_than_1_day_n
mov rcx, rax
call fcn.140001b10
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
cmp dword [rbp + 0x24], 0
je 0x14003a9cf
mov eax, 0x15180
sub rax, qword [rbp + 8]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140044f20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x1401a4d8c]
call fcn.14006b9e0
mov r8, qword [rbp + 0xf0]
xor edx, edx
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.ucrtbased.dll__beginthread]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x140050da0
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
lea rcx, [0x1401a5255]
call fcn.14006b9e0
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x64], 0x2c0
mov rcx, qword [rbp + 0x160]
call fcn.140054f50
mov qword [rbp + 0x160], rax
mov ecx, 0x2c0
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140050e39
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, str.Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
mov rcx, rax
call fcn.140001b10
mov eax, select
jmp 0x140050f4c
lea rdx, [rbp + 0x64]
mov rcx, qword [rbp + 8]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0x6f
jne 0x140050e96
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_free]
mov eax, dword [rbp + 0x64]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140050e94
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, str.Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
mov rcx, rax
call fcn.140001b10
mov eax, select
jmp 0x140050f4c
jmp 0x140050e39
cmp dword [rbp + 0x44], 0
je 0x140050ec4
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov r8d, dword [rbp + 0x44]
lea rdx, str.if:_GetAdaptersInfo_failed_with_error:__u_n
mov rcx, rax
call fcn.140001b10
mov eax, select
jmp 0x140050f4c
mov rax, qword [rbp + 8]
mov qword [rbp + 0x28], rax
jmp 0x140050ed9
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140050eff
mov rax, qword [rbp + 0x28]
add rax, 0xc
mov rdx, qword [rbp + 0x160]
mov rcx, rax
call fcn.140054080
test eax, eax
je 0x140050efd
jmp 0x140050eff
jmp 0x140050ece
cmp qword [rbp + 0x28], 0
je 0x140050f39
mov rax, qword [rbp + 0x28]
cmp dword [rax + 0x194], 6
je 0x140050f1a
mov eax, select
jmp 0x140050f4c
mov rax, qword [rbp + 0x28]
add rax, 0x198
mov r8d, 6
mov rdx, rax
mov rcx, qword [rbp + 0x168]
call sub.VCRUNTIME140D.dll_memcpy
cmp qword [rbp + 8], 0
je 0x140050f4a
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_free]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14008d7b0]
call fcn.14006b950
mov rax, rdi
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140051b80
Capabilities:
Terminate process
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x160
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x20
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x14009f088]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x1401a5341]
call fcn.14006b9e0
lea rax, [rbp + 8]
lea rcx, [0x14008ddd0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x19
rep movsb byte [rdi], byte [rsi]
mov eax, 1
imul rax, rax, 0x14
movzx ecx, byte [rbp + 0x168]
mov byte [rbp + rax + 8], cl
mov eax, dword [rbp + 0x168]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 0x15
mov byte [rbp + rcx + 8], al
lea rdx, [0x14008ddec]
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.ucrtbased.dll_fopen]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x140051c5d
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, str.Could_not_open_capture_file_n
mov rcx, rax
call fcn.140001b10
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.ucrtbased.dll_perror]
xor eax, eax
jmp 0x140051d3e
mov r9, qword [rbp + 0x48]
mov r8d, 0x18
mov edx, 1
lea rcx, [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp rax, 0x18
je 0x140051cb4
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, str.Could_not_write_capture_file_header_n
mov rcx, rax
call fcn.140001b10
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.ucrtbased.dll_perror]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ucrtbased.dll_fclose]
xor eax, eax
jmp 0x140051d3e
mov qword [rbp + 0x68], 0
mov ecx, 0x150
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x140051cdd
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov r8d, 0x150
xor edx, edx
mov rcx, qword [rbp + 0x68]
call sub.VCRUNTIME140D.dll_memset
mov rax, qword [rbp + 0x68]
add rax, 0x1c
mov r9, qword [rbp + 0x160]
lea r8, [0x140071230]
mov edx, 0x100
mov rcx, rax
call fcn.140051360
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x48]
mov qword [rax], rcx
mov rax, qword [rbp + 0x68]
mov dword [rax + 0x11c], 2
mov rax, qword [rbp + 0x68]
mov ecx, dword [rbp + 0x168]
mov dword [rax + 0x120], ecx
mov rax, qword [rbp + 0x68]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14008da40]
call fcn.14006b950
mov rax, rdi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.14006bb70
lea rsp, [rbp + 0x140]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140059750
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, getprotobynumber
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
lea rcx, [0x1401a5493]
call fcn.14006b9e0
lea rax, [rbp + 8]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov dword [rbp + 0x44], 0
xor r9d, r9d
lea r8, [rbp + 0x44]
mov rdx, qword [rbp + 0x1a8]
lea rcx, [rbp + 8]
call fcn.14000b7d0
cmp dword [rbp + 0x44], 0
je 0x1400597e1
mov r8, qword [rbp + 0x1a8]
lea rdx, str.SCRIPTING:_invalid_setTcpPorts_range:__s_n
xor ecx, ecx
call fcn.14002f7e0
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov dword [rbp + 0x64], 0
jmp 0x1400597f2
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x10]
cmp dword [rbp + 0x64], eax
jae 0x140059853
mov eax, dword [rbp + 0x64]
mov rcx, qword [rbp + 8]
lea rax, [rcx + rax*8]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov eax, dword [rax]
mov dword [rbp + 0xa4], eax
jmp 0x14005982b
mov eax, dword [rbp + 0xa4]
inc eax
mov dword [rbp + 0xa4], eax
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 4]
cmp dword [rbp + 0xa4], eax
ja 0x140059851
mov edx, dword [rbp + 0xa4]
mov rcx, qword [rbp + 0x1a0]
call fcn.1400596f0
jmp 0x14005981d
jmp 0x1400597ea
lea rcx, [rbp - 0x20]
lea rdx, [0x14008fb50]
call fcn.14006b950
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140059a30
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x30]
lea rcx, [0x1401a550b]
call fcn.14006b9e0
mov rax, qword [rbp + 0x160]
mov rax, qword [rax + 0x1640]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x140059a7d
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x48]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x140059a9d
lea r8, str.SCRIPTING
lea rdx, str._s:_no_script_specified__use___script_option_n
xor ecx, ecx
call fcn.14002f7e0
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
call fcn.140061ac0
xor ecx, ecx
call qword [0x1401a0310]
cvttsd2si eax, qword [rax]
mov dword [rbp + 4], eax
mov r8d, dword [rbp + 4]
lea rdx, str.Lua_version___d_n
mov ecx, 1
call fcn.14002f7e0
cmp dword [rbp + 4], 0x1f7
je 0x140059af1
cmp dword [rbp + 4], 0x1f6
je 0x140059af1
lea rdx, str.Unable_to_load_Lua_library_n
xor ecx, ecx
call fcn.14002f7e0
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
call qword [0x1401a02b8]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x28]
call qword [0x1401a02b0]
mov rax, qword [rbp + 0x160]
mov rcx, qword [rbp + 0x28]
mov qword [rax + 0x1648], rcx
mov rcx, qword [rbp + 0x160]
call fcn.140059940
xor r8d, r8d
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call qword [0x1401a02d0]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
je 0x140059b82
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x28]
call qword [0x1401a0330]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x48]
lea r8, str.SCRIPTING:
lea rdx, str._s_error_loading:__s:__s_n
xor ecx, ecx
call fcn.14002f7e0
mov rcx, qword [rbp + 0x28]
call qword [0x1401a0400]
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov r9, qword [rbp + 0x48]
lea r8, str.SCRIPTING:
lea rdx, str._s_running_script:__s_n
mov ecx, 1
call fcn.14002f7e0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [0x1401a03a0]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
je 0x140059c10
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x28]
call qword [0x1401a0330]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x48]
lea r8, str.SCRIPTING:
lea rdx, str._s_error_running:__s:__s_n
xor ecx, ecx
call fcn.14002f7e0
mov rcx, qword [rbp + 0x28]
call qword [0x1401a0400]
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret