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

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400022d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400022e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400022c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400022d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400022e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400023e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400097e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002400
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002408
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002400
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000245d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140002454
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002400
add rax, 0x28
cmp rax, r9
jne 0x140002440
xor eax, eax
ret

Function at 0x140002460
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400097e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000247f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002488
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000247f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002520
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400097e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000253f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002548
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400017b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140008370
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140008370
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001820
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140016ce4]
mov rbx, rcx
test esi, esi
jle 0x140001950
mov rax, qword [0x140016ce8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000186b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400018f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001850
mov rcx, rbx
call fcn.140002290
mov rdi, rax
test rax, rax
je 0x140001972
mov rax, qword [0x140016ce8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400023d0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140016ce8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001957
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400018ee
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001900
add dword [0x140016ce4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140016ce8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400018ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400017b0
nop dword [rax]
xor esi, esi
jmp 0x140001878
mov rax, qword [0x140016ce8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400017b0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400017b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140016d40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140016d20]
test rbx, rbx
je 0x140001f5c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140001f53
test eax, eax
jne 0x140001f53
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f38
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002290
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140012e80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000230d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002304
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022b0
add rax, 0x28
cmp rax, r9
jne 0x1400022f0
xor eax, eax
ret

Function at 0x140002310
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140012e80]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000232f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002338
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000232f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400023d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140012e80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400023ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400023f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140008b00
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
push r12
lea r12, [0x140013440]
push rdi
mov rdi, rcx
push rsi
push rbx
mov rbx, rdx
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
movzx eax, byte [rcx + 0xc0]
shl eax, 2
cdqe
lea rcx, [rcx + rax*4]
call fcn.14000a7b0
mov sil, byte [rdi + 0xc0]
lea esi, [rsi*4 - 4]
movups xmm0, xmmword [rbx]
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
imul edx, eax, 0xfffffffd
and edx, 0xf
mov dl, byte [rsp + rdx + 0x20]
mov byte [rbx + rax], dl
inc rax
cmp rax, 0x10
jne 0x140008b4b
xor eax, eax
movzx edx, byte [rbx + rax]
mov dl, byte [r12 + rdx]
mov byte [rbx + rax], dl
inc rax
cmp rax, 0x10
jne 0x140008b63
movzx eax, sil
mov rdx, rbx
lea rcx, [rdi + rax*4]
call fcn.14000a7b0
test sil, sil
je 0x140008b99
mov rcx, rbx
sub esi, 4
call fcn.140009710
jmp 0x140008b41
lea rsp, [rbp - 0x20]
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret

Function at 0x140008c50
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov r9, rcx
xor r10d, r10d
lea r11, str.cw
mov rbp, rsp
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
movzx eax, r10b
movzx ebx, r10b
lea rcx, [r9 + rax*4]
call fcn.14000a7b0
xor eax, eax
movzx ecx, byte [rdx + rax]
mov cl, byte [r11 + rcx]
mov byte [rdx + rax], cl
inc rax
cmp rax, 0x10
jne 0x140008c7e
movups xmm0, xmmword [rdx]
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
lea ecx, [rax*4]
add ecx, eax
and ecx, 0xf
mov cl, byte [rsp + rcx + 0x20]
mov byte [rdx + rax], cl
inc rax
cmp rax, 0x10
jne 0x140008c9c
movzx eax, byte [r9 + 0xc0]
lea ecx, [rax*4 - 4]
cmp ebx, ecx
jge 0x140008d1b
xor ebx, ebx
mov eax, dword [rdx + rbx*4]
mov ecx, eax
lea r8d, [rax + rax]
mov esi, eax
shr ecx, 7
and r8d, 0xfefefefe
rol esi, 8
and ecx, 0x1010101
imul ecx, ecx, 0x1b
xor ecx, r8d
mov r8d, eax
rol r8d, 0x10
xor eax, ecx
xor r8d, esi
ror eax, 8
xor r8d, ecx
xor eax, r8d
mov dword [rdx + rbx*4], eax
inc rbx
cmp rbx, 4
jne 0x140008ccd
add r10d, 4
jmp 0x140008c6b
shl eax, 2
lea rsp, [rbp - 0x10]
cdqe
pop rbx
pop rsi
lea rcx, [r9 + rax*4]
pop rbp
jmp fcn.14000a7b0
Function at 0x140008da0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov r10, rcx
movsxd rcx, r9d
push r12
lea r12, [0x140013300]
push rbp
mov rax, rcx
lea rbp, str.cw
push rdi
shr rax, 2
mov rdi, r10
push rsi
mov r11d, eax
mov rsi, rdx
push rbx
mov ebx, eax
add eax, 6
sub rsp, 0x10
mov byte [r10 + 0xc0], al
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x10]
movzx eax, byte [r10 + 0xc0]
lea esi, [rax*4 + 4]
movzx r9d, r11b
cmp r9d, esi
jge 0x140008e56
lea eax, [r9 - 1]
cdqe
mov ecx, dword [r10 + rax*4]
mov eax, r9d
cdq
idiv ebx
test edx, edx
jne 0x140008e40
mov edx, ecx
movzx ecx, cl
bswap edx
shl edx, 8
or ecx, edx
lea rdx, [rsp + 0xc]
mov dword [rsp + 0xc], ecx
movzx ecx, byte [rdx]
inc rdx
mov cl, byte [rbp + rcx]
mov byte [rdx - 1], cl
cmp rdx, rdi
jne 0x140008e22
cdqe
mov ecx, dword [rsp + 0xc]
xor ecx, dword [r12 + rax*4]
bswap ecx
movsxd rax, r9d
sub r9d, ebx
inc r11d
movsxd r9, r9d
xor ecx, dword [r10 + r9*4]
mov dword [r10 + rax*4], ecx
jmp 0x140008df0
test r8b, r8b
je 0x140008e6d
xor byte [r10 + 0x40], 0x73
xor byte [r10 + 0x60], 9
xor byte [r10 + 0x80], 0xe4
add rsp, 0x10
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140009710
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
xor ecx, ecx
mov r10d, dword [r8 + rcx*4]
mov r9d, r10d
lea eax, [r10 + r10]
shr r9d, 7
and eax, 0xfefefefe
and r9d, 0x1010101
imul r9d, r9d, 0x1b
xor r9d, eax
mov eax, r9d
lea edx, [r9 + r9]
shr eax, 7
and edx, 0xfefefefe
and eax, 0x1010101
imul eax, eax, 0x1b
xor eax, edx
mov edx, eax
lea r11d, [rax + rax]
shr edx, 7
and r11d, 0xfefefefe
and edx, 0x1010101
imul edx, edx, 0x1b
xor edx, r11d
mov r11d, r9d
xor r11d, r10d
xor eax, edx
xor r11d, edx
xor r9d, eax
xor edx, r10d
xor eax, r10d
ror r11d, 8
rol edx, 8
xor r9d, r11d
rol eax, 0x10
xor r9d, edx
xor r9d, eax
mov dword [r8 + rcx*4], r9d
inc rcx
cmp rcx, 4
jne 0x140009715
ret
Function at 0x140009830
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
mov rdi, rcx
push rsi
mov rsi, rdx
push rbx
sub rsp, 0x48
test rcx, rcx
jne 0x140009860
mov eax, 0x10
call fcn.140002570
sub rsp, rax
lea rdi, [rsp + 0x20]
xor r13d, r13d
test rsi, rsi
jne 0x140009880
mov eax, 0x10
call fcn.140002570
mov r13d, 1
sub rsp, rax
lea rsi, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0xf003f
xor edx, edx
xor r12d, r12d
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsi], rax
mov rcx, rax
test rax, rax
je 0x140009940
mov r8d, 0xf01ff
lea rdx, str.vlmcsd
mov r12b, 2
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x140009932
lea r12, [rbp - 0x5c]
mov dword [rdi], 1
mov r14, qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov rcx, rax
mov rdx, r12
call r14
test eax, eax
je 0x1400098e3
mov eax, dword [rbp - 0x58]
mov dword [rdi], eax
mov r8, r12
mov edx, 1
mov rcx, rbx
mov dil, 0xa
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, r12
mov rcx, rbx
call r14
mov ecx, 0x64
call r15
cmp dword [rbp - 0x58], 1
je 0x14000991a
dec dil
jne 0x1400098fe
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
test eax, eax
setne r12b
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r13d, r13d
je 0x140009940
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rsp, [rbp - 0x38]
mov eax, r12d
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14000a420
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push r15
mov rax, rcx
mov r9, rdx
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x128
mov esi, dword [rcx + 4]
mov ebx, dword [rcx + 8]
mov r12d, dword [rcx]
mov dword [rsp + 4], esi
mov esi, dword [rcx + 0xc]
mov dword [rsp + 8], ebx
mov ebx, dword [rcx + 0x10]
mov dword [rsp + 0xc], esi
mov esi, dword [rcx + 0x14]
mov dword [rsp + 0x10], ebx
mov ebx, dword [rcx + 0x18]
mov dword [rsp + 0x14], esi
mov esi, dword [rcx + 0x1c]
xor ecx, ecx
mov dword [rsp + 0x18], ebx
mov dword [rsp + 0x1c], esi
mov r8d, dword [r9 + rcx]
lea rdx, [rsp + 0x20]
bswap r8d
mov dword [rsp + rcx + 0x20], r8d
add rcx, 4
cmp rcx, 0x40
jne 0x14000a46f
lea r9, [rsp + 0xe0]
mov r8d, dword [rdx + 0x38]
mov r10d, dword [rdx + 4]
add rdx, 4
mov ecx, r8d
mov r11d, r8d
shr r8d, 0xa
rol r11d, 0xd
rol ecx, 0xf
xor ecx, r11d
mov r11d, r10d
xor ecx, r8d
mov r8d, dword [rdx - 4]
add r8d, dword [rdx + 0x20]
rol r11d, 0xe
add ecx, r8d
mov r8d, r10d
shr r10d, 3
ror r8d, 7
xor r8d, r11d
xor r8d, r10d
add ecx, r8d
mov dword [rdx + 0x3c], ecx
cmp r9, rdx
jne 0x14000a492
mov r14d, dword [rsp + 0x1c]
mov r10d, dword [rsp + 0x18]
mov r9d, r12d
xor esi, esi
mov ebp, dword [rsp + 0x14]
mov ebx, dword [rsp + 4]
lea r15, [0x140013640]
mov r8d, dword [rsp + 0x10]
mov r13d, dword [rsp + 0xc]
mov r11d, dword [rsp + 8]
mov ecx, r8d
mov edx, r8d
mov edi, r9d
ror ecx, 6
ror edx, 0xb
xor edx, ecx
mov ecx, r8d
ror edi, 0xd
rol ecx, 7
xor edx, ecx
mov ecx, dword [rsp + rsi + 0x20]
add ecx, dword [r15 + rsi]
add rsi, 4
add edx, ecx
mov ecx, ebp
xor ecx, r10d
and ecx, r8d
xor ecx, r10d
add edx, ecx
mov ecx, r9d
ror ecx, 2
add edx, r14d
mov r14d, ebx
xor edi, ecx
mov ecx, r9d
and r14d, r11d
rol ecx, 0xa
xor edi, ecx
mov ecx, ebx
or ecx, r11d
and ecx, r9d
or ecx, r14d
mov r14d, r10d
add ecx, edi
lea edi, [rdx + r13]
mov r13d, r11d
add ecx, edx
cmp rsi, 0x100
je 0x14000a599
mov r10d, ebp
mov r11d, ebx
mov ebp, r8d
mov ebx, r9d
mov r8d, edi
mov r9d, ecx
jmp 0x14000a510
mov edx, dword [rsp + 4]
add r12d, ecx
mov dword [rax], r12d
add edx, r9d
mov dword [rax + 4], edx
mov edx, dword [rsp + 8]
add edx, ebx
mov dword [rax + 8], edx
mov edx, dword [rsp + 0xc]
add edx, r11d
mov dword [rax + 0xc], edx
mov edx, dword [rsp + 0x10]
add edx, edi
mov dword [rax + 0x10], edx
mov edx, dword [rsp + 0x14]
add edx, r8d
mov dword [rax + 0x14], edx
mov edx, dword [rsp + 0x18]
add edx, ebp
mov dword [rax + 0x18], edx
mov edx, dword [rsp + 0x1c]
add edx, r10d
mov dword [rax + 0x1c], edx
add rsp, 0x128
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14000a7b0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov r8d, dword [rcx + rax]
xor dword [rdx + rax], r8d
add rax, 4
cmp rax, 0x10
jne 0x14000a7b2
ret
Function at 0x14000a7d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rdi
mov r9, rcx
mov r8, rdx
mov al, 0x36
mov ecx, 0x40
lea r10, [r9 + 0x64]
sub rsp, 0x60
lea rdx, [rsp + 0x20]
mov rdi, rdx
rep stosb byte [rdi], al
mov al, 0x5c
mov ecx, 0x40
mov rdi, r10
rep stosb byte [rdi], al
xor eax, eax
mov cl, byte [r8 + rax]
xor byte [rdx + rax], cl
xor byte [r9 + rax + 0x64], cl
inc rax
cmp rax, 0x10
jne 0x14000a7fe
movabs rax, 0xbb67ae856a09e667
mov r8d, 0x40
mov rcx, r9
mov qword [r9], rax
movabs rax, 0xa54ff53a3c6ef372
mov qword [r9 + 8], rax
movabs rax, 0x9b05688c510e527f
mov qword [r9 + 0x10], rax
movabs rax, 0x5be0cd191f83d9ab
mov qword [r9 + 0x18], rax
xor eax, eax
mov dword [r9 + 0x60], eax
call fcn.14000a600
add rsp, 0x60
pop rdi
ret

Function at 0x14000a870
Capabilities:
Set socket configuration

Disassembly:
push r14
mov rdx, rcx
xor r9d, r9d
mov r8d, 5
push r13
xor r13d, r13d
push r12
push rbp
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
mov rax, qword [0x140012dd0]
mov rbp, qword [0x1400130e0]
lea rcx, [rsp + 0x38]
mov rsi, qword [rax]
movsxd rbx, dword [rbp]
call fcn.14000b700
test al, al
je 0x14000aa2b
lea rdi, [rsi + rbx*8]
mov r14, qword [sym.imp.WS2_32.dll_setsockopt]
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x14000aa20
cmp dword [rbp], 0x3f
jg 0x14000aa20
mov r9d, dword [rbx + 0x10]
mov r8, qword [rbx + 0x20]
lea r12, [rsp + 0x40]
mov edx, 0x40
mov rcx, r12
call fcn.14000bac0
mov ecx, dword [rbx + 4]
mov r8d, 6
mov edx, 1
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000a94b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov esi, eax
call fcn.14000ec00
cmp dword [rbx + 4], 0x17
mov r8, rax
mov rax, qword [0x140013030]
je 0x14000a937
mov rax, qword [0x140013020]
mov rdx, qword [rax]
lea rcx, str.Warning:__s_error.__s_n
call fcn.14000ce50
jmp 0x14000a9fe
cmp dword [rbx + 4], 0x17
mov dword [rsp + 0x30], 1
jne 0x14000a974
lea r9, [rsp + 0x30]
mov r8d, 0x1b
mov edx, 0x29
mov dword [rsp + 0x20], 4
call r14
mov rcx, qword [rdi]
mov r8d, 0xfffffffb
mov edx, 0xffff
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
call r14
mov rdx, qword [rbx + 0x20]
mov r8d, dword [rbx + 0x10]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x14000a9db
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov esi, eax
call fcn.14000ec00
mov rdx, r12
lea rcx, str.Warning:__s:__s_n
mov r8, rax
call fcn.14000ce50
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14000a9fe
mov rcx, qword [rdi]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x14000a9af
mov rdx, r12
lea rcx, str.Listening_on__s_n
call fcn.14000c290
jmp 0x14000aa02
test esi, esi
jne 0x14000aa0d
inc dword [rbp]
mov r13d, 1
jmp 0x14000aa17
mov ecx, 1
call fcn.14000ac80
mov rbx, qword [rbx + 0x28]
jmp 0x14000a8c4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
sub rsp, 0xffffffffffffff80
mov eax, r13d
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14000b3d0
Capabilities:
Get local ipv4 addresses
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
mov r12, rdx
push rbp
push rdi
push rsi
mov rsi, rcx
mov ecx, 0x4000
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x48]
mov dword [rsp + 0x48], 0x4000
call fcn.14000eab0
mov qword [rsp + 0x20], rbp
xor r8d, r8d
xor ecx, ecx
mov r9, rax
mov edx, 0x2e
mov rbx, rax
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x14000b447
mov rcx, rbx
call sub.msvcrt.dll_free
mov ecx, dword [rsp + 0x48]
call fcn.14000eab0
mov qword [rsp + 0x20], rbp
xor r8d, r8d
xor ecx, ecx
mov r9, rax
mov edx, 0x2e
mov rbx, rax
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov edi, eax
test eax, eax
je 0x14000b46a
mov ecx, eax
call fcn.14000ec00
lea rcx, str.FATAL:_Could_not_get_network_address_list:__s_n
mov rdx, rax
call fcn.14000ce50
mov ecx, edi
call sub.msvcrt.dll_exit
xor r10d, r10d
lea rdx, [rsp + 0x4c]
mov dword [rsi], r10d
mov r10, rbx
test r10, r10
je 0x14000b4a8
cmp dword [r10 + 0x68], 1
je 0x14000b48a
mov r10, qword [r10 + 8]
jmp 0x14000b478
mov r11, qword [r10 + 0x18]
test r11, r11
je 0x14000b484
mov rcx, qword [r11 + 0x10]
call fcn.14000bb60
test al, al
je 0x14000b4a2
inc dword [rsi]
mov r11, qword [r11 + 8]
jmp 0x14000b48e
movsxd rcx, dword [rsi]
mov rbp, rbx
lea r13, str.WARNING:_Could_not_get_IP_address_from_interface_list:__s_n
shl rcx, 3
call fcn.14000eab0
xor r9d, r9d
mov qword [r12], rax
mov dword [rsi], r9d
test rbp, rbp
je 0x14000b564
cmp dword [rbp + 0x68], 1
je 0x14000b4dd
mov rbp, qword [rbp + 8]
jmp 0x14000b4c8
mov rdi, qword [rbp + 0x18]
lea r14, [rsp + 0x4c]
test rdi, rdi
je 0x14000b4d7
mov rcx, qword [rdi + 0x10]
mov rdx, r14
call fcn.14000bb60
test al, al
je 0x14000b55e
mov ecx, 0x40
call fcn.14000eab0
xor r8d, r8d
mov rcx, qword [rdi + 0x10]
mov edx, dword [rdi + 0x18]
mov r15, rax
xor eax, eax
mov qword [rsp + 0x20], r8
mov r9d, 0x40
mov dword [rsp + 0x30], 2
mov r8, r15
mov dword [rsp + 0x28], eax
call qword [sym.imp.WS2_32.dll_getnameinfo]
mov ecx, eax
test eax, eax
je 0x14000b54e
call fcn.140001460
mov rcx, r13
mov rdx, rax
call fcn.14000ce50
mov byte [r15], 0
movsxd rax, dword [rsi]
mov rdx, qword [r12]
lea ecx, [rax + 1]
mov dword [rsi], ecx
mov qword [rdx + rax*8], r15
mov rdi, qword [rdi + 8]
jmp 0x14000b4e6
mov rcx, rbx
call sub.msvcrt.dll_free
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000b700
Capabilities:
Resolve dns

Disassembly:
push rbp
mov rbp, rsp
push r14
mov r14d, r9d
push r13
mov r13d, r8d
push r12
mov r12, rcx
mov rcx, rdx
push rdi
push rsi
push rbx
mov rbx, rdx
sub rsp, 0x60
call sub.msvcrt.dll_strlen
lea rcx, [rax + 1]
cmp rcx, 0x108
ja 0x14000b7c1
add rax, 0x10
shr rax, 4
shl rax, 4
call fcn.140002570
sub rsp, rax
lea rdx, [rbp - 0x70]
lea r8, [rbp - 0x68]
mov rsi, rbx
lea rax, [rsp + 0x20]
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, rax
call fcn.14000cd00
lea rdx, [rbp - 0x50]
xor eax, eax
mov ecx, 8
mov rdi, rdx
mov dword [rbp - 0x5c], r14d
mov rdx, qword [rbp - 0x68]
mov r9, r12
rep stosd dword [rdi], eax
mov dword [rbp - 0x60], r13d
mov rcx, qword [rbp - 0x70]
lea r8, [rbp - 0x60]
movabs rax, 0x600000001
mov qword [rbp - 0x58], rax
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ecx, eax
mov al, 1
test ecx, ecx
je 0x14000b7c3
call fcn.140001460
mov rdx, rbx
lea rcx, str.Warning:__s:__s_n
mov r8, rax
call fcn.14000ce50
xor eax, eax
lea rsp, [rbp - 0x30]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop rbp
ret

Function at 0x14000bac0
Capabilities:
Resolve dns

Disassembly:
push r12
push rbp
push rdi
mov rdi, rcx
push rsi
mov rsi, r8
push rbx
mov rcx, rsi
mov rbx, rdx
mov edx, r9d
mov r9d, 0x40
sub rsp, 0x90
lea rbp, [rsp + 0x50]
lea r12, [rsp + 0x48]
mov dword [rsp + 0x30], 0xa
mov dword [rsp + 0x28], 8
mov r8, rbp
mov qword [rsp + 0x20], r12
call qword [sym.imp.WS2_32.dll_getnameinfo]
mov edx, eax
xor eax, eax
test edx, edx
jne 0x14000bb43
cmp word [rsi], 0x17
mov qword [rsp + 0x20], r12
mov r9, rbp
mov rdx, rbx
lea rax, str.__s_:_s
lea r8, str._s:_s
mov rcx, rdi
cmove r8, rax
call fcn.14000e1e0
mov eax, eax
cmp rbx, rax
setae al
add rsp, 0x90
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret