joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a8750
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov r13, r9
mov rbx, r8
mov r15, rdx
mov rbp, rcx
xor ecx, ecx
movabs r12, 0xcbf29ce484222325
movzx eax, byte [r8 + rcx]
xor r12, rax
movabs rdx, 0x100000001b3
imul r12, rdx
inc rcx
cmp rcx, 8
jb 0x1400a8779
mov rax, qword [rbp + 0x30]
and rax, r12
add rax, rax
mov rcx, qword [rbp + 0x18]
mov rdi, qword [rcx + rax*8 + 8]
lea rdx, [rbp + 8]
mov r14, qword [rdx]
cmp rdi, r14
jne 0x1400a87bc
mov rdi, r14
jmp 0x1400a87fa
mov rdx, qword [rcx + rax*8]
mov rax, qword [r8]
jmp 0x1400a87ce
cmp rdi, rdx
je 0x1400a87ef
mov rdi, qword [rdi + 8]
cmp rax, qword [rdi + 0x10]
jne 0x1400a87c5
mov r14, qword [rdi]
mov rax, rdi
mov rdi, r14
test rax, rax
je 0x1400a87f6
mov qword [r15], rax
mov byte [r15 + 8], 0
jmp 0x1400a8968
mov r14, rdi
xor eax, eax
jmp 0x1400a87dd
lea rdx, [rbp + 8]
movabs rax, 0x38e38e38e38e38e
cmp qword [rbp + 0x10], rax
je 0x1400a897c
mov qword [rsp + 0x20], rdx
and qword [rsp + 0x28], 0
mov ecx, 0x48
call fcn.14010f648
mov rsi, rax
mov qword [rsp + 0x28], rax
mov rcx, qword [rbx]
mov qword [rax + 0x10], rcx
mov rdx, r13
lea rcx, [rax + 0x18]
call fcn.1400017d0
mov cl, byte [r13 + 0x18]
mov byte [rsi + 0x30], cl
mov ecx, dword [r13 + 0x1c]
mov dword [rsi + 0x34], ecx
mov eax, dword [r13 + 0x20]
mov dword [rsi + 0x38], eax
mov eax, dword [r13 + 0x24]
mov dword [rsi + 0x3c], eax
mov eax, dword [r13 + 0x28]
mov dword [rsi + 0x40], eax
mov rcx, qword [rbp + 0x10]
add rcx, 1
xorps xmm0, xmm0
js 0x1400a8875
cvtsi2ss xmm0, rcx
jmp 0x1400a888a
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [rbp + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x1400a889d
cvtsi2ss xmm1, rcx
jmp 0x1400a88b2
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [rbp]
seta al
test al, al
je 0x1400a890e
mov rcx, rbp
call fcn.1400a8a0c
mov rcx, qword [rbp + 0x30]
and rcx, r12
add rcx, rcx
mov rdx, qword [rbp + 0x18]
mov rax, qword [rdx + rcx*8 + 8]
mov rdi, qword [rbp + 8]
cmp rax, rdi
je 0x1400a8904
mov r8, qword [rdx + rcx*8]
mov rcx, qword [rsi + 0x10]
jmp 0x1400a88fb
mov rdi, rax
cmp rax, r8
je 0x1400a8942
mov rax, qword [rax + 8]
cmp rcx, qword [rax + 0x10]
jne 0x1400a88ef
mov rdi, qword [rax]
mov qword [rsp + 0x20], rdi
mov r14, qword [rsp + 0x20]
mov rdx, qword [rdi + 8]
inc qword [rbp + 0x10]
mov qword [rsi], r14
mov qword [rsi + 8], rdx
mov qword [rdx], rsi
mov qword [rdi + 8], rsi
mov rcx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x30]
and rax, r12
add rax, rax
mov r8, qword [rcx + rax*8]
cmp r8, qword [rbp + 8]
jne 0x1400a8949
mov qword [rcx + rax*8], rsi
jmp 0x1400a895b
mov qword [rsp + 0x20], rax
jmp 0x1400a8909
cmp r8, r14
jne 0x1400a8954
mov qword [rcx + rax*8], rsi
jmp 0x1400a8960
cmp qword [rcx + rax*8 + 8], rdx
jne 0x1400a8960
mov qword [rcx + rax*8 + 8], rsi
mov qword [r15], rsi
mov byte [r15 + 8], 1
mov rax, r15
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rcx, str.unordered_map_set_too_long
call fcn.1400eade0
int3
Function at 0x1400a8a0c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rsi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x1400a8a3c
cvtsi2ss xmm0, rdx
jmp 0x1400a8a51
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call fcn.140125e88
movss xmm1, dword [0x14017ce18]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x1400a8a7f
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x1400a8a7f
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x1400a8aad
cmp rbx, 0x200
jae 0x1400a8aaa
shl rbx, 3
cmp rbx, rcx
jae 0x1400a8aad
mov rbx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rbx, rax
ja 0x1400a8c1b
lea rax, [rbx - 1]
mov edi, 1
mov rbx, qword [rsi + 8]
or rax, 1
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.14007e2f0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x1400a8bdf
mov rcx, qword [rcx]
movabs r8, 0xcbf29ce484222325
xor r9d, r9d
movzx edx, byte [r9 + rax + 0x10]
movabs r10, 0x100000001b3
xor r8, rdx
inc r9
imul r8, r10
cmp r9, 8
jb 0x1400a8b25
mov r11, qword [rsi + 0x30]
mov rdi, qword [rsi + 0x18]
and r11, r8
add r11, r11
cmp qword [rdi + r11*8], rbx
jne 0x1400a8b64
mov qword [rdi + r11*8], rax
mov qword [rdi + r11*8 + 8], rax
jmp 0x1400a8bd3
mov r10, qword [rdi + r11*8 + 8]
mov rdx, qword [rax + 0x10]
cmp rdx, qword [r10 + 0x10]
jne 0x1400a8ba8
mov r10, qword [r10]
cmp r10, rax
je 0x1400a8b5d
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1400a8b5d
mov r10, qword [r10 + 8]
cmp rdx, qword [r10 + 0x10]
je 0x1400a8bf5
cmp qword [rdi + r11*8], r10
jne 0x1400a8b9e
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [rdi + r11*8], rax
mov rax, rcx
cmp rcx, rbx
jne 0x1400a8b15
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov r10, qword [r10]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1400a8bd3
lea rcx, str.invalid_hash_bucket_count
call fcn.1400eade0
int3
Function at 0x1400a98e0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x140198190]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
cmp dword [0x14019c8a4], 0
jne 0x1400a99aa
lea rax, [fcn.140118d40]
mov dword [0x14019c8a4], 1
mov qword [section..data], rax
lea rax, [fcn.140118d2c]
mov qword [fcn.140118d2c], rax
lea rax, [fcn.1401195c8]
mov qword [fcn.1401195c8], rax
lea rax, case.0x1400af999.0
mov qword [case.0x1400af999.0], rax
lea rax, [fcn.14011917c]
mov qword [fcn.14011917c], rax
call fcn.1400b1eb0
test eax, eax
je 0x1400a99b8
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400a99b8
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1400a99d2
shr ax, 8
cmp al, 2
jne 0x1400a99d2
call fcn.1400afbf0
test eax, eax
jne 0x1400a99b8
call fcn.1400b00a0
test eax, eax
jne 0x1400a99b8
call fcn.1400b10b0
mov dword [0x14019c8a8], 3
call fcn.1400bd4f0
lea rcx, [rsp + 0x20]
call fcn.1400b39f0
test eax, eax
je 0x1400a99da
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14010f620
add rsp, 0x1e8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1400a99b8
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14010f620
add rsp, 0x1e8
ret
Function at 0x1400bab00
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x140198190]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp byte [rcx + 0x440], 0
mov r14, r9
mov rax, qword [rsp + 0x130]
mov rbp, r8
mov esi, edx
mov rdi, rcx
je 0x1400bac32
test rax, rax
je 0x1400bac32
mov rdx, qword [rax + 0xc0]
test rdx, rdx
je 0x1400bac32
mov ecx, esi
lea r9, str.Data
sub ecx, 1
je 0x1400bab8b
sub ecx, 1
je 0x1400bab7b
sub ecx, 1
je 0x1400bab92
cmp ecx, 1
je 0x1400bab82
jmp 0x1400bac32
lea r9, str.Header
lea rax, [0x14014cd20]
jmp 0x1400bab99
lea r9, str.Header
lea rax, str.from
mov qword [rsp + 0x28], rdx
lea r8, str.__s__s__s_
mov edx, 0xa0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
call fcn.1400bd7a0
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400babc5
mov r10, qword [rdi + 0x258]
test r10, r10
je 0x1400babfc
mov rax, qword [rdi + 0x1a8]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call r10
test eax, eax
je 0x1400bac32
jmp 0x1400bac42
mov r9, qword [rdi + 0x1a0]
lea rcx, [0x14014cc50]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.140119dec
mov r9, qword [rdi + 0x1a0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call fcn.140119dec
mov r9, r14
mov r8, rbp
mov edx, esi
mov rcx, rdi
call fcn.1400bb630
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14010f620
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400baf50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x1400baf8b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400bb400
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rsi, rcx
mov r15, r8
mov rcx, qword [rcx + 0x1d8]
mov eax, 0x1d0
cmp rdx, rcx
mov r8d, 0x1d8
mov ebx, 0x218
mov r14, r9
cmove eax, r8d
mov rbp, qword [rax + rsi]
mov eax, 0x238
cmove ebx, eax
mov rax, qword [rsi + 0x3e8]
add rbx, rsi
xor r12d, r12d
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x74], 3
je 0x1400bb50d
cmp rdx, rcx
mov eax, 0x1f8
mov r8d, 0x200
lea rcx, [0x1400bafa0]
cmove eax, r8d
cmp qword [rax + rsi], rcx
jne 0x1400bb50d
cmp qword [rbx], r12
je 0x1400bb499
test rdi, rdi
je 0x1400bb50d
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.1400ba530
cmp eax, 0xffffffff
je 0x1400bb50d
test al, 1
je 0x1400bb50d
mov rax, qword [rbx]
test rax, rax
jne 0x1400bb4e6
mov ecx, 0x8000
mov qword [rbx + 8], 0x8000
call qword [section..data]
mov rdi, qword [rbx + 8]
mov qword [rbx], rax
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
test rax, rax
je 0x1400bb509
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rax
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1400bb50d
add qword [rbx + 0x10], rcx
jmp 0x1400bb50d
mov qword [rbx + 8], r12
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
cmp rdi, 0xffffffffffffffff
jne 0x1400bb570
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400bb544
mov rcx, qword [rsp + 0x60]
lea eax, [rdi + 0x52]
mov qword [rcx], r12
jmp 0x1400bb57b
mov edx, ebx
mov rcx, rsi
call fcn.1400aa5a0
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1400bac60
mov rax, qword [rsi]
mov dword [rax + 0x8864], ebx
mov eax, gethostname
jmp 0x1400bb573
mov eax, r12d
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400bb630
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x258]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x1400bb673
mov rax, qword [rcx + 0x1a8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x1400bb6b6
mov r9, qword [rbx + 0x1a0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x14014cc50]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.140119dec
mov r9, qword [rbx + 0x1a0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.140119dec
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400bb900
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x7f0]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x1400bb970
mov rcx, qword [rcx + 0x80]
test rcx, rcx
jne 0x1400bb933
cmp qword [rdi + 0x78], rcx
je 0x1400bb970
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 0
test rcx, rcx
jne 0x1400bb946
mov rcx, qword [rdi + 0x78]
add rcx, 0xc0
lea r8, [0x1400bcc60]
lea rdx, [rsp + 0x20]
call fcn.1400c6920
cmp byte [rsp + 0x28], 0
jne 0x1400bb987
mov qword [rdi + 0x7f0], 0
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x1400bb98f
mov qword [rsi], rbx
cmp byte [rbx + 0x258], 0
mov rdi, qword [rbx + 0x1d0]
je 0x1400bb9ad
mov rcx, rbx
call fcn.1400b1700
test eax, eax
jne 0x1400bb9cf
jmp 0x1400bb970
cmp rdi, 0xffffffffffffffff
je 0x1400bb9cf
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1400bb970
mov rbx, qword [rsp + 0x48]
mov rax, rdi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400c77b0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.14012c7e8
cdqe
add rsp, 0x28
ret

Function at 0x1400c8c40
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x14014ecb8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1400c8c6a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14014ecd8]
mov rcx, rbx
mov r14, rax
call fcn.140124bb0
test rax, rax
je 0x1400c8ccd
mov rcx, rbx
test r14, r14
je 0x1400c8cb7
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x1400c8d05
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400c8d05
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1400c8dc8
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1400c8d30
lea ecx, [rax + 1]
add rcx, rdx
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x1400c8dba
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400c8dba
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1400c8d60
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x1400c8d74
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400c8d90
mov rcx, rdi
test r14, r14
je 0x1400c8db1
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1400c8db7
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.140118d2c]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400c8fb0
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov ebx, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1400c9174
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400c9154
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1400c900d
lea ebp, [rax + 0xe]
jmp 0x1400c9019
cmp eax, 0x17
jne 0x1400c90c1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1400c90c1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400c90c1
cmp rax, rbp
jb 0x1400c90c1
mov ecx, Ordinal_50
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x1400c90fc
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov dword [rax + 0x10], ebp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [section..data]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400c90eb
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.140111970
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400c90ae
call qword [case.0x1400af999.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400c90d0
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400c90be
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400c9000
jmp 0x1400c9102
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.140118d2c]
mov rcx, rdi
call qword [fcn.140118d2c]
jmp 0x1400c9102
mov rcx, rdi
mov r14d, 8
call qword [fcn.140118d2c]
jmp 0x1400c9102
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1400c9117
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1400c914f
test rbx, rbx
je 0x1400c914a
mov rcx, qword [rbx + 0x20]
call qword [fcn.140118d2c]
mov rcx, qword [rbx + 0x18]
call qword [fcn.140118d2c]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.140118d2c]
mov rbx, rdi
test rdi, rdi
jne 0x1400c9121
mov rbx, r13
jmp 0x1400c9163
test rbx, rbx
jne 0x1400c9163
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x1400c9990
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov qword [rsp + 0x50], 0
mov rdi, rcx
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400c99ec
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x1400c99fc
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1400d1750
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x140198190]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x1d8]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rbx, rcx
mov dword [rsp + 0x20], 0x80
mov rcx, rbp
mov rdi, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400d17ca
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
mov rdx, rbp
mov rcx, rbx
call fcn.1400bb6d0
mov rcx, rsi
cmp rdi, 0xffffffffffffffff
jne 0x1400d17ef
lea rdx, str.Error_accept__ing_server_connect
call fcn.1400bac60
lea eax, [rdi + 0x1f]
jmp 0x1400d1850
lea rdx, str.Connection_accepted_from_server_n
call fcn.1400bad30
mov edx, 1
mov byte [rbx + 0x3c3], 0
mov rcx, rdi
mov qword [rbx + 0x1d8], rdi
call fcn.1400df970
mov byte [rbx + 0x1f1], 1
mov rax, qword [rsi + 0x268]
test rax, rax
je 0x1400d184e
mov rcx, qword [rsi + 0x270]
mov r8d, 1
mov rdx, rdi
call rax
test eax, eax
je 0x1400d184e
mov rcx, rbx
call fcn.1400d1d70
mov eax, Ordinal_46
jmp 0x1400d1850
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14010f620
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x718
cmp byte [rax + 0x441], 0
jne 0x1400d28f5
cmp dword [rax + 0x370], 0
je 0x1400d2921
mov r8, qword [rcx + 0x80]
test r8, r8
je 0x1400d2921
lea rdx, str.MDTM__s
call fcn.1400e5e50
test eax, eax
jne 0x1400d292e
mov dword [rbx + 0x7c0], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400d3700
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x198]
cmp dword [rax + 0x18], 0
je 0x1400d30c8
mov r8d, reloc.WS2_32.dll_listen
mov dword [rbx + 0x7c0], 0xd
mov dl, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400d31e0
cmp byte [rcx + 0x446], 0
je 0x1400d30e0
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400d3bf0
cmp byte [rcx + 0x45e], 0
je 0x1400d3181
mov r8, qword [rbx + 0x798]
test r8, r8
jne 0x1400d313b
mov r8, qword [rcx + 0x4a8]
test r8, r8
jne 0x1400d311e
cmp byte [rcx + 0x445], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0x718]
lea rdx, str.PRET__s
call fcn.1400e5e50
test eax, eax
je 0x1400d3171
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0x451], 0
lea rcx, [rbx + 0x718]
je 0x1400d3161
lea rdx, str.PRET_STOR__s
call fcn.1400e5e50
test eax, eax
je 0x1400d3171
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.1400e5e50
test eax, eax
jne 0x1400d318e
mov dword [rbx + 0x7c0], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400d3b60
add rsp, 0x20
pop rbx
ret
Function at 0x1400d34b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x198]
cmp dword [rdx + 0x18], 0
je 0x1400d34fd
cmp qword [rcx + 0x798], 0
je 0x1400d34fd
add rcx, 0x718
lea rdx, str.REST__d
xor r8d, r8d
call fcn.1400e5e50
test eax, eax
jne 0x1400d3507
mov dword [rbx + 0x7c0], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400d3090
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x718
mov rax, qword [rbx]
mov rdx, qword [rax + 0x198]
cmp dword [rdx + 0x18], 1
jne 0x1400d36ec
mov r8, qword [rcx + 0x80]
test r8, r8
je 0x1400d36ec
lea rdx, str.SIZE__s
call fcn.1400e5e50
test eax, eax
jne 0x1400d36f9
mov dword [rbx + 0x7c0], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400d34b0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0x450], 0
je 0x1400d3758
cmp qword [rcx + 0x798], 0
je 0x1400d3758
cmp byte [r9 + 0x443], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x7b0]
cmp eax, edx
je 0x1400d3758
mov rax, qword [r9 + 0x198]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x18], 1
movzx edx, byte [r9 + 0x443]
jmp fcn.1400d1f70
jmp fcn.1400d36a0