joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010f680
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14010f6c2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14010f709
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14010f762
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14010f720
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14010f7a3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14017cec2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14017cec3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14010f770
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14011074c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140110796
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140110796
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140110796
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140110796
cmp dword [rcx + 0x84], 0xe
jbe 0x140110796
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140110798
xor al, al
add rsp, 0x28
ret
Function at 0x1401109f4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140110a2e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140110a33
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140110a7c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140110a7c
dec r8
sub rdx, 1
jne 0x140110a62
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001664
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140014cf8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140014cf4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400016b2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400016aa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001799
inc ebx
add rax, 0x28
jmp 0x14000168a
mov rcx, r12
call fcn.140001e91
mov rbp, rax
test rax, rax
jne 0x1400016d1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140001600
movsxd rbx, ebx
mov rax, qword [0x140014cf8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140001f3f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140014cf8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140001733
mov rax, qword [0x140014cf8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001600
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001793
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001793
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 [0x140014cf8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001793
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001600
inc dword [0x140014cf4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140001bc0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140014d60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140014d40]
test rbx, rbx
je 0x140001c0c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140001c06
test eax, eax
jne 0x140001c06
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140001bde
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140001dc0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140001de3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140001de3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140001de4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140001e1e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140001e15
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140001e20
inc r8d
add rax, 0x28
jmp 0x140001dfc
xor eax, eax
ret
Function at 0x140001e91
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140010e30]
mov r8, rcx
mov rcx, r9
call fcn.140001dc0
test eax, eax
je 0x140001ebd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140001de4
xor eax, eax
add rsp, 0x28
ret
Function at 0x140006710
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
push r12
lea r12, [0x1400113c0]
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.1400083c0
mov sil, byte [rdi + 0xc0]
lea esi, [rsi*4 - 4]
movups xmm0, xmmword [rbx]
xor eax, eax
movaps 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 0x14000675b
xor eax, eax
movzx edx, byte [rbx + rax]
mov dl, byte [r12 + rdx]
mov byte [rbx + rax], dl
inc rax
cmp rax, 0x10
jne 0x140006773
movzx eax, sil
mov rdx, rbx
lea rcx, [rdi + rax*4]
call fcn.1400083c0
test sil, sil
je 0x1400067a9
mov rcx, rbx
sub esi, 4
call fcn.140007320
jmp 0x140006751
lea rsp, [rbp - 0x20]
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret

Function at 0x140006860
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.1400083c0
xor eax, eax
movzx ecx, byte [rdx + rax]
mov cl, byte [r11 + rcx]
mov byte [rdx + rax], cl
inc rax
cmp rax, 0x10
jne 0x14000688e
movups xmm0, xmmword [rdx]
xor eax, eax
movaps 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 0x1400068ac
movzx eax, byte [r9 + 0xc0]
lea ecx, [rax*4 - 4]
cmp ebx, ecx
jge 0x14000692b
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 0x1400068dd
add r10d, 4
jmp 0x14000687b
shl eax, 2
lea rsp, [rbp - 0x10]
cdqe
pop rbx
pop rsi
lea rcx, [r9 + rax*4]
pop rbp
jmp fcn.1400083c0
Function at 0x1400069b0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov r10, rcx
movsxd rcx, r9d
push r12
lea r12, [0x140011280]
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 0x140006a66
lea eax, [r9 - 1]
cdqe
mov ecx, dword [r10 + rax*4]
mov eax, r9d
cdq
idiv ebx
test edx, edx
jne 0x140006a50
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 0x140006a32
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 0x140006a00
test r8b, r8b
je 0x140006a7d
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 0x140007320
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 0x140007325
ret
Function at 0x140007440
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 0x140007470
mov eax, 0x10
call fcn.140002010
sub rsp, rax
lea rdi, [rsp + 0x20]
xor r13d, r13d
test rsi, rsi
jne 0x140007490
mov eax, 0x10
call fcn.140002010
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 0x140007550
mov r8d, 0xf01ff
lea rdx, str.vlmcsd
mov r12b, 2
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x140007542
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 0x1400074f3
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 0x14000752a
dec dil
jne 0x14000750e
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 0x140007550
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 0x140008030
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 0x14000807f
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 0x1400080a2
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, [0x1400115c0]
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 0x1400081a9
mov r10d, ebp
mov r11d, ebx
mov ebp, r8d
mov ebx, r9d
mov r8d, edi
mov r9d, ecx
jmp 0x140008120
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 0x1400083c0
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 0x1400083c2
ret
Function at 0x1400083e0
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 0x14000840e
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.140008210
add rsp, 0x60
pop rdi
ret

Function at 0x140008480
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 [0x140010d50]
mov rbp, qword [0x140011060]
lea rcx, [rsp + 0x38]
mov rsi, qword [rax]
movsxd rbx, dword [rbp]
call fcn.140009310
test al, al
je 0x14000863b
lea rdi, [rsi + rbx*8]
mov r14, qword [sym.imp.WS2_32.dll_setsockopt]
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140008630
cmp dword [rbp], 0x3f
jg 0x140008630
mov r9d, dword [rbx + 0x10]
mov r8, qword [rbx + 0x20]
lea r12, [rsp + 0x40]
mov edx, 0x40
mov rcx, r12
call fcn.1400096d0
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 0x14000855b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov esi, eax
call fcn.14000c810
cmp dword [rbx + 4], 0x17
mov r8, rax
mov rax, qword [0x140010fb0]
je 0x140008547
mov rax, qword [0x140010fa0]
mov rdx, qword [rax]
lea rcx, str.Warning:__s_error.__s_n
call fcn.14000aa60
jmp 0x14000860e
cmp dword [rbx + 4], 0x17
mov dword [rsp + 0x30], 1
jne 0x140008584
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 0x1400085eb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov esi, eax
call fcn.14000c810
mov rdx, r12
lea rcx, str.Warning:__s:__s_n
mov r8, rax
call fcn.14000aa60
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14000860e
mov rcx, qword [rdi]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x1400085bf
mov rdx, r12
lea rcx, str.Listening_on__s_n
call fcn.140009ea0
jmp 0x140008612
test esi, esi
jne 0x14000861d
inc dword [rbp]
mov r13d, 1
jmp 0x140008627
mov ecx, 1
call fcn.140008890
mov rbx, qword [rbx + 0x28]
jmp 0x1400084d4
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 0x140008fe0
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.14000c6c0
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 0x140009057
mov rcx, rbx
call sub.msvcrt.dll_free
mov ecx, dword [rsp + 0x48]
call fcn.14000c6c0
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 0x14000907a
mov ecx, eax
call fcn.14000c810
lea rcx, str.FATAL:_Could_not_get_network_address_list:__s_n
mov rdx, rax
call fcn.14000aa60
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 0x1400090b8
cmp dword [r10 + 0x68], 1
je 0x14000909a
mov r10, qword [r10 + 8]
jmp 0x140009088
mov r11, qword [r10 + 0x18]
test r11, r11
je 0x140009094
mov rcx, qword [r11 + 0x10]
call fcn.140009770
test al, al
je 0x1400090b2
inc dword [rsi]
mov r11, qword [r11 + 8]
jmp 0x14000909e
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.14000c6c0
xor r9d, r9d
mov qword [r12], rax
mov dword [rsi], r9d
test rbp, rbp
je 0x140009174
cmp dword [rbp + 0x68], 1
je 0x1400090ed
mov rbp, qword [rbp + 8]
jmp 0x1400090d8
mov rdi, qword [rbp + 0x18]
lea r14, [rsp + 0x4c]
test rdi, rdi
je 0x1400090e7
mov rcx, qword [rdi + 0x10]
mov rdx, r14
call fcn.140009770
test al, al
je 0x14000916e
mov ecx, 0x40
call fcn.14000c6c0
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 0x14000915e
call fcn.140001370
mov rcx, r13
mov rdx, rax
call fcn.14000aa60
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 0x1400090f6
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 0x140009310
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 0x1400093d1
add rax, 0x10
shr rax, 4
shl rax, 4
call fcn.140002010
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.14000a910
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 0x1400093d3
call fcn.140001370
mov rdx, rbx
lea rcx, str.Warning:__s:__s_n
mov r8, rax
call fcn.14000aa60
xor eax, eax
lea rsp, [rbp - 0x30]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop rbp
ret

Function at 0x1400096d0
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 0x140009753
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.14000bdf0
mov eax, eax
cmp rbx, rax
setae al
add rsp, 0x90
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret