joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d210
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x238
cmp dword [rcx + 0x32c], 3
mov rbx, rcx
mov rsi, rdx
je 0x43d250
mov rcx, rbx
call sym.Curl_persistconninfo
nop
add rsp, 0x238
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test dword [rcx + 0x56c], 0x20002
jne 0x43d22e
lea rbp, [rsp + 0x30]
mov r13, qword [rcx]
mov dword [rsp + 0x28], pe_nt_image_headers64
lea r8, [rsp + 0x28]
mov rcx, rsi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x43d2b5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x130]
mov r8d, 0x100
mov ecx, eax
mov ebx, eax
call sym.Curl_strerror
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r9, rax
mov r8d, ebx
mov rcx, r13
call sym.Curl_failf
jmp 0x43d237
lea r12, [rsp + 0xb0]
xor eax, eax
mov ecx, 0x10
mov dword [rsp + 0x2c], pe_nt_image_headers64
lea r8, [rsp + 0x2c]
mov rdi, r12
mov rdx, r12
rep stosq qword [rdi], rax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x43d345
lea rsi, [rbx + 0x38e]
mov edx, dword [rsp + 0x28]
lea r9, [rbx + 0x3bc]
mov rcx, rbp
mov r8, rsi
call sym.Curl_addr2string
test al, al
jne 0x43d380
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
mov ecx, dword [rax]
lea rdx, [rsp + 0x130]
mov r8d, 0x100
call sym.Curl_strerror
mov rsi, rax
call rbx
mov r8d, dword [rax]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r9, rsi
mov rcx, r13
call sym.Curl_failf
jmp 0x43d237
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x130]
mov r8d, 0x100
mov ecx, eax
mov ebx, eax
call sym.Curl_strerror
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r9, rax
mov r8d, ebx
mov rcx, r13
call sym.Curl_failf
jmp 0x43d237
mov rdx, qword [rbx + 0x38e]
lea r9, [rbx + 0x3f0]
lea r8, [rbx + 0x3c0]
mov rcx, r12
mov qword [rbx + 0x2f8], rdx
mov rdx, qword [rsi + 8]
mov qword [rbx + 0x300], rdx
mov rdx, qword [rsi + 0x10]
mov qword [rbx + 0x308], rdx
mov rdx, qword [rsi + 0x18]
mov qword [rbx + 0x310], rdx
mov rdx, qword [rsi + 0x20]
mov qword [rbx + 0x318], rdx
mov edx, dword [rsi + 0x28]
mov dword [rbx + 0x320], edx
movzx edx, word [rsi + 0x2c]
mov word [rbx + 0x324], dx
mov edx, dword [rsp + 0x2c]
call sym.Curl_addr2string
test al, al
jne 0x43d22e
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
mov ecx, dword [rax]
lea rdx, [rsp + 0x130]
mov r8d, 0x100
call sym.Curl_strerror
mov rsi, rax
call rbx
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rsi
mov rcx, r13
call sym.Curl_failf
jmp 0x43d237
Function at 0x43d490
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov eax, dword [0x004a7780]
mov rbx, rcx
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 4
test eax, eax
je 0x43d530
cmp eax, 2
je 0x43d4f0
lea rax, [rsp + 0x3c]
lea r9, [rsp + 0x38]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x43d500
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x38], eax
jle 0x43d500
add rsp, 0x40
pop rbx
ret
lea r9, [rsp + 0x34]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
add rsp, 0x40
pop rbx
ret
xor edx, edx
mov r9d, 3
mov r8d, 2
mov ecx, 6
call sym.Curl_verify_windows_version
test al, al
je 0x43d560
mov dword [0x004a7780], 2
add rsp, 0x40
pop rbx
ret
mov dword [0x004a7780], 1
jmp 0x43d4bf

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

Disassembly:
sub rsp, 0x38
test byte [rcx + 0x4e8], 1
jne 0x43d650
mov rcx, qword [rcx + 0x450]
xor eax, eax
cmp rcx, 0xffffffffffffffff
je 0x43d648
lea rdx, [rsp + 0x2f]
mov r9d, 2
mov r8d, 1
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
add rsp, 0x38
ret
call sym.Curl_ssl_check_cxn
test eax, eax
setne al
add rsp, 0x38
ret
Function at 0x43fe50
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
mov rbx, rcx
je 0x43fe68
call sym.isip
test al, al
je 0x43fe72
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rcx, rbx
call sym.strlen
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
mov rdi, rax
call sym.Curl_memrchr
test rax, rax
je 0x43ff00
sub rax, rbx
mov edx, 0x2e
mov rcx, rbx
mov r8, rax
call sym.Curl_memrchr
test rax, rax
je 0x43ff00
lea rsi, [rax + 1]
mov rax, rsi
sub rax, rbx
sub rdi, rax
test rsi, rsi
cmove rsi, rbx
add rdi, rsi
cmp rdi, rsi
jbe 0x43ff05
mov eax, 0x1505
nop dword [rax + rax]
add rsi, 1
movsx ecx, byte [rsi - 1]
mov rbx, rax
shl rbx, 5
add rbx, rax
call sym.Curl_raw_toupper
movsx rax, al
xor rax, rbx
cmp rdi, rsi
jne 0x43fed0
movzx eax, al
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rsi, rbx
jmp 0x43febe
mov eax, 5
jmp 0x43fe6a
Function at 0x441d80
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov qword [r9], 0
mov r13, r9
lea r9, [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov r12d, eax
jne 0x441eee
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x441f68
xor r14d, r14d
xor edi, edi
jmp 0x441ddc
cmp edx, 0x17
mov ebp, 0x1c
je 0x441dff
mov rbx, qword [rbx + 0x28]
test rbx, rbx
je 0x441ed5
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x441f02
call sym.strlen
lea rsi, [rax + 1]
mov edx, dword [rbx + 4]
cmp edx, 2
jne 0x441dc5
mov ebp, 0x10
cmp qword [rbx + 0x20], 0
je 0x441dcf
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x441dcf
cmp rbp, rax
ja 0x441dcf
mov rax, qword [0x0048e0f0]
lea rcx, [rbp + rsi + 0x30]
call qword [rax]
test rax, rax
mov r15, rax
je 0x441f30
mov eax, dword [rbx]
mov rdx, qword [rbx + 0x20]
lea rcx, [r15 + 0x30]
mov dword [r15], eax
mov eax, dword [rbx + 4]
mov dword [r15 + 4], eax
mov eax, dword [rbx + 8]
mov dword [r15 + 8], eax
mov eax, dword [rbx + 0xc]
mov dword [r15 + 0x10], ebp
mov qword [r15 + 0x18], 0
mov qword [r15 + 0x28], 0
mov qword [r15 + 0x20], rcx
mov dword [r15 + 0xc], eax
mov rax, qword [rdx]
mov qword [r15 + 0x30], rax
mov eax, ebp
mov r8, qword [rdx + rax - 8]
mov qword [rcx + rax - 8], r8
lea r8, [r15 + 0x38]
mov rax, rcx
and r8, 0xfffffffffffffff8
sub rax, r8
sub rdx, rax
add eax, ebp
and eax, 0xfffffff8
cmp eax, 8
jb 0x441eb0
and eax, 0xfffffff8
xor r9d, r9d
mov r10d, r9d
add r9d, 8
mov r11, qword [rdx + r10]
cmp r9d, eax
mov qword [r8 + r10], r11
jb 0x441e9c
test rsi, rsi
jne 0x441f09
test rdi, rdi
cmove rdi, r15
test r14, r14
je 0x441f28
mov rbx, qword [rbx + 0x28]
mov qword [r14 + 0x28], r15
mov r14, r15
test rbx, rbx
jne 0x441ddc
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x441ee5
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test rdi, rdi
je 0x441f68
mov qword [r13], rdi
mov eax, r12d
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
jmp 0x441df2
mov rdx, qword [rbx + 0x18]
add rcx, rbp
mov r8, rsi
mov qword [r15 + 0x18], rcx
call sym.memcpy
test rdi, rdi
cmove rdi, r15
test r14, r14
jne 0x441ec1
mov r14, r15
jmp 0x441dcf
mov rcx, qword [rsp + 0x28]
test rcx, rcx
jne 0x441f80
test rdi, rdi
mov rsi, qword [0x0048e0e0]
mov rcx, rdi
je 0x441f5e
nop dword [rax]
mov rbx, qword [rcx + 0x28]
call qword [rsi]
test rbx, rbx
mov rcx, rbx
jne 0x441f50
xor edi, edi
mov r12d, 8
jmp 0x441eea
mov ecx, 0x2af9
mov r12d, 0x2af9
xor edi, edi
call qword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x441eea
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x441f3a
Function at 0x444860
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov ebx, 1
xor edi, edi
mov rbp, qword [0x0048e100]
mov r13, rcx
mov r12, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
jmp 0x4448b4
mov rdx, rax
mov r8d, ebx
mov rcx, r13
call r12
lea edx, [rax - 1]
cmp edx, 0x7fff
ja 0x4448e0
cmp ebx, eax
je 0x4448e0
cmp ebx, eax
mov rdi, rsi
ja 0x444900
mov ebx, eax
mov edx, ebx
mov rcx, rdi
call qword [rbp]
test rax, rax
mov rsi, rax
jne 0x444890
mov rax, qword [0x0048e0e0]
mov rcx, rdi
call qword [rax]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rax, qword [0x0048e0e0]
mov rcx, rsi
call qword [rax]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x444d00
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov eax, 0x1505
lea r9, [rcx + rdx]
cmp rcx, r9
jae 0x444d2b
nop
mov rdx, rax
add rcx, 1
shl rdx, 5
add rax, rdx
movsx rdx, byte [rcx - 1]
xor rax, rdx
cmp r9, rcx
jne 0x444d10
xor edx, edx
div r8
mov rax, rdx
ret
Function at 0x446150
Capabilities:
Hash data with md5

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0xc0
lea rbx, [rsp + 0x20]
mov rsi, rcx
mov rdi, rdx
mov rcx, r8
mov dword [rsp + 0x28], 0x67452301
mov dword [rsp + 0x2c], 0xefcdab89
mov dword [rsp + 0x30], 0x98badcfe
mov dword [rsp + 0x34], 0x10325476
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
call sym.curlx_uztoui
mov rdx, rdi
mov r8d, eax
mov rcx, rbx
call sym.MD5_Update
mov rdx, rbx
mov rcx, rsi
call sym.MD5_Final
nop
add rsp, 0xc0
pop rbx
pop rsi
pop rdi
ret

Function at 0x446290
Capabilities:
Move file

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm7
lea rbx, [rsp + 0x30]
mov rbp, rcx
mov rdi, rdx
lea r12, [rsp + 0x20]
mov rcx, rbx
call sym.Curl_now
movdqu xmm7, xmmword [rsp + 0x30]
mov rsi, qword [sym.imp.KERNEL32.dll_MoveFileExA]
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4462f8
mov rcx, rbx
call sym.Curl_now
mov rdx, r12
mov rcx, rbx
movaps xmmword [rsp + 0x20], xmm7
call sym.Curl_timediff
cmp rax, 0x3e8
ja 0x446320
mov ecx, 1
call r13
mov r8d, 1
mov rdx, rdi
mov rcx, rbp
call rsi
test eax, eax
je 0x4462d0
xor eax, eax
movaps xmm7, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov eax, 1
jmp 0x44630c

Function at 0x446460
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, r8
mov rdi, rcx
mov r8, r9
mov rcx, rsi
mov rbp, rdx
xor edx, edx
mov rbx, r9
mov dword [rsp + 0x3c], r9d
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 4
call sym.memset
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, dword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4464d5
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x446530
mov rcx, qword [rsp + 0x48]
test rcx, rcx
jne 0x446521
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x4464cc
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x446505
xor r9d, r9d
mov r8d, ebp
mov rdx, rdi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4464fb
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x34]
mov edx, 4
mov rcx, qword [rsp + 0x48]
mov rdi, qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call rdi
test eax, eax
je 0x4464fb
mov eax, dword [rsp + 0x34]
cmp rbx, rax
jb 0x4464fb
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8, rsi
mov edx, 2
mov rcx, qword [rsp + 0x48]
call rdi
jmp 0x4464fb
Function at 0x4472a0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r9d, 1
mov ebx, 2
mov rdi, rdx
mov rsi, r8
xor edx, edx
xor r8d, r8d
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4472f0
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
mov edx, esi
mov rcx, qword [rsp + 0x38]
mov r8, rdi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
xor edx, edx
test eax, eax
mov rcx, qword [rsp + 0x38]
jne 0x447320
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor ebx, ebx
jmp 0x4472dd
Function at 0x44c9f1
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x70
xor eax, eax
lea rdi, [rsp + 0x50]
mov r10d, ecx
mov ecx, 8
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r8
rep stosd dword [rdi], eax
mov dword [rsp + 0x60], r9d
sar r9, 0x20
mov ecx, r10d
mov dword [rsp + 0x64], r9d
call qword [sym.imp.msvcrt.dll__get_osfhandle]
lea rcx, [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
lea r9, [rsp + 0x4c]
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov edx, 0xffffffff
je 0x44ca57
mov edx, dword [rsp + 0x4c]
mov rax, rdx
add rsp, 0x70
pop rdi
ret
Function at 0x44fa35
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbx, rcx
mfence
mov eax, dword [rdx]
test eax, eax
jne 0x44fad2
mov dword [rdx], 1
mov dword [rcx + 0x12c], 1
mfence
mov eax, dword [rcx + 0x128]
test eax, eax
je 0x44fad2
mov dword [rcx + 0x12c], 0
mov rsi, qword [sym.imp.msvcrt.dll__errno]
lea rdi, [rsp + 0x50]
call rsi
mov ebp, dword [rax]
mov ecx, dword [rbx + 0xf0]
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x50], 1
call qword [sym.imp.msvcrt.dll__get_osfhandle]
lea r9, [rsp + 0x4c]
mov r8d, 1
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASend]
call rsi
mov dword [rax], ebp
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x44fadb
Capabilities:
Set socket configuration

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov esi, dword [rcx + 0x174]
xor ebp, ebp
mov r14, rcx
cmp esi, ebp
jle 0x44fb9b
mov rax, qword [r14 + 0x168]
movsxd r13, dword [rax + rbp*4]
imul rbx, r13, 0x18
mov r12, r13
add rbx, qword [r14 + 0xe0]
cmp byte [rbx + 9], 0
jns 0x44fb93
cmp qword [rbx], 0
je 0x44fb93
mov ecx, r13d
call qword [sym.imp.msvcrt.dll__get_osfhandle]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x44fb40
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 9
cmove rdi, r13
cmp rdi, qword [rbx + 0x10]
je 0x44fb93
lea r8, [rsp + 0x2c]
mov edx, 0x4004667f
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x44fb76
lea rdx, str.ev.c
lea rcx, str.__libev:_only_socket_fds_supported_in_this_configuration___ioctlsocket__handle__FIONREAD__arg___0_
mov r8d, 0x975
call dbg._assert
movzx r8d, byte [rbx + 8]
xor r9d, r9d
mov edx, r12d
mov rcx, r14
call qword [r14 + 0xd0]
mov byte [rbx + 8], 0
mov qword [rbx + 0x10], rdi
inc rbp
jmp 0x44faf4
xor ebx, ebx
cmp esi, ebx
jle 0x44fbff
mov rax, qword [r14 + 0x168]
movsxd rax, dword [rax + rbx*4]
mov rdx, rax
imul rax, rax, 0x18
add rax, qword [r14 + 0xe0]
mov rcx, qword [rax]
movzx r8d, byte [rax + 8]
mov r10b, byte [rax + 9]
mov byte [rax + 8], 0
mov byte [rax + 9], 0
test rcx, rcx
je 0x44fbe1
mov r9d, dword [rcx + 0x2c]
or byte [rax + 8], r9b
mov rcx, qword [rcx + 0x20]
jmp 0x44fbce
movzx r9d, byte [rax + 8]
cmp r8b, r9b
jne 0x44fbf0
test r10b, r10b
jns 0x44fbfa
mov rcx, r14
call qword [r14 + 0xd0]
inc rbx
jmp 0x44fb9d
mov r8d, dword [r14 + 0x174]
cmp esi, r8d
je 0x44fc28
mov rcx, qword [r14 + 0x168]
sub r8d, esi
movsxd rax, esi
movsxd r8, r8d
shl r8, 2
lea rdx, [rcx + rax*4]
call sym.memmove
sub dword [r14 + 0x174], esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x44ff4f
Capabilities:
Send data
Send data on socket

Disassembly:
dec ecx
movsxd rax, ecx
imul rcx, rax, 0x18
lea rax, [0x004a7a40]
add rax, rcx
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x44ff7d
lea rdx, [rcx + 0x248]
mov dword [rax], 1
jmp sym.evpipe_write
ret
Function at 0x44ff7e
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, [sym.ev_sighandler]
mov ebx, ecx
call sym.signal
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp sym.ev_feed_signal

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
and r8b, 1
mov rbx, rcx
je 0x450059
lea rax, [rsp + 0x4c]
mov ecx, dword [rcx + 0xec]
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x58], rax
call qword [sym.imp.msvcrt.dll__get_osfhandle]
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x44]
mov r8d, 1
mov qword [rsp + 0x20], rcx
mov rcx, rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov dword [rbx + 0x12c], 0
mfence
mov eax, dword [rbx + 0x248]
test eax, eax
jne 0x45009f
mov eax, dword [rbx + 0x230]
test eax, eax
je 0x450118
mov dword [rbx + 0x230], 0
mfence
movsxd rax, dword [rbx + 0x244]
mov rsi, rax
lea rdi, [rax*8 - 8]
jmp 0x450114
mov dword [rbx + 0x248], 0
mfence
lea rdi, [0x004a7a40]
mov edx, 0x16
lea esi, [rdx - 1]
cmp esi, 0xffffffff
je 0x450070
movsxd rax, esi
imul rax, rax, 0x18
add rax, rdi
mov eax, dword [rax]
test eax, eax
je 0x4500d8
mov rcx, rbx
call sym.ev_feed_signal_event
mov edx, esi
jmp 0x4500b8
mov rax, qword [rbx + 0x238]
mov rax, qword [rax + rdi]
mov edx, dword [rax + 0x20]
test edx, edx
je 0x45010e
mov dword [rax + 0x20], 0
mov rax, qword [rbx + 0x238]
mov r8d, 0x80000
mov rcx, rbx
mov rdx, qword [rax + rdi]
call sym.ev_feed_event
dec esi
sub rdi, 8
test esi, esi
jne 0x4500dc
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
Function at 0x4503dc
Capabilities:
Get socket status

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rbx, rcx
movapd xmm6, xmm1
mov rax, qword [rcx + 0x138]
cmp dword [rax], 0
jne 0x450418
mov rax, qword [rcx + 0x148]
cmp dword [rax], 0
jne 0x450418
movapd xmm0, xmm1
call sym.ev_sleep
jmp 0x450625
mov rax, qword [rbx + 0x260]
test rax, rax
je 0x450429
mov rcx, rbx
call rax
cvttsd2si eax, xmm6
mov rsi, qword [rbx + 0x138]
movapd xmm2, xmm6
mov rdi, qword [rbx + 0x140]
mov ecx, 0x82
cvtsi2sd xmm0, eax
mov dword [rsp + 0x38], eax
subsd xmm2, xmm0
movsd xmm0, qword [0x00487928]
mulsd xmm0, xmm2
cvttsd2si eax, xmm0
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x38]
rep movsd dword [rdi], dword [rsi]
mov ecx, 0x82
mov rsi, qword [rbx + 0x148]
mov rdi, qword [rbx + 0x150]
rep movsd dword [rdi], dword [rsi]
mov ecx, 0x82
mov rsi, qword [rbx + 0x148]
mov rdi, qword [rbx + 0x158]
rep movsd dword [rdi], dword [rsi]
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + 0x140]
mov r9, qword [rbx + 0x158]
mov r8, qword [rbx + 0x150]
call qword [sym.imp.WS2_32.dll_select]
mov rdx, qword [rbx + 0x268]
mov esi, eax
test rdx, rdx
je 0x4504c8
mov rcx, rbx
call rdx
xor edi, edi
test esi, esi
jns 0x4505b8
mov rsi, qword [sym.imp.msvcrt.dll__errno]
call rsi
mov rdi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rdi], eax
call rsi
cmp dword [rax], 0x270f
jle 0x450516
call rsi
cmp dword [rax], 0x2af7
jg 0x450516
call rsi
cmp dword [rax], 0x2736
jne 0x45050e
call rsi
mov dword [rax], 9
jmp 0x450516
call rsi
sub dword [rax], 0x2710
call rsi
cmp dword [rax], 0x16
jne 0x450556
xorps xmm0, xmm0
ucomisd xmm6, xmm0
jp 0x45052c
je 0x450625
mulsd xmm6, qword [0x00487910]
mov ecx, 1
addsd xmm6, qword [0x00487918]
cvttsd2si rax, xmm6
test eax, eax
cmovne ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x450625
call rsi
cmp dword [rax], 9
jne 0x45056a
mov rcx, rbx
call sym.fd_ebadf
jmp 0x450625
call rsi
cmp dword [rax], 0xc
jne 0x450588
cmp qword [0x004a7ed8], 0
jne 0x450588
mov rcx, rbx
call sym.fd_enomem
jmp 0x450625
call rsi
cmp dword [rax], 4
je 0x450625
lea rcx, str._libev__select
call sym.ev_syserr
jmp 0x450625
imul rax, rdi, 0x18
add rax, qword [rbx + 0xe0]
cmp byte [rax + 8], 0
jne 0x4505c5
inc rdi
cmp edi, dword [rbx + 0xe8]
mov r12d, edi
jl 0x4505a4
jmp 0x450625
mov rbp, qword [rax + 0x10]
mov rdx, qword [rbx + 0x140]
xor esi, esi
mov rcx, rbp
call sym.__WSAFDIsSet
mov rdx, qword [rbx + 0x150]
test eax, eax
mov rcx, rbp
setne sil
call sym.__WSAFDIsSet
mov edx, esi
mov rcx, rbp
or edx, 2
test eax, eax
cmovne esi, edx
mov rdx, qword [rbx + 0x158]
call sym.__WSAFDIsSet
test eax, eax
je 0x450611
or esi, 2
jmp 0x450615
test esi, esi
je 0x4505b5
mov r8d, esi
mov edx, r12d
mov rcx, rbx
call sym.fd_event
jmp 0x4505b5
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x451afc
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rdx + 0x20], 1
lea rdx, [rcx + 0x230]
jmp sym.evpipe_write
Function at 0x454e14
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
mov eax, 0x1020
push rbx
call fcn.0046ba70
sub rsp, rax
mov esi, ecx
lea rdi, [rsp + 0x20]
call sym.printbuf_new
test rax, rax
mov rbx, rax
jne 0x454e46
lea rcx, str.json_object_from_file:_printbuf_new_failed_n
call sym._set_last_err
jmp 0x454e93
mov r8d, 0x1000
mov rdx, rdi
mov ecx, esi
call sym.read
cmp eax, 0
mov r8d, eax
jle 0x454e6b
mov rdx, rdi
mov rcx, rbx
call sym.printbuf_memappend
jmp 0x454e46
je 0x454e97
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sym._json_c_strerror
lea rcx, str.json_object_from_fd:_error_reading_fd__d:__s_n
mov r8, rax
mov edx, esi
call sym._set_last_err
mov rcx, rbx
call sym.printbuf_free
xor eax, eax
jmp 0x454ead
mov rcx, qword [rbx]
call sym.json_tokener_parse
mov rcx, rbx
mov rsi, rax
call sym.printbuf_free
mov rax, rsi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret

Function at 0x455a40
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
sub rsp, 0x48
xor r8d, r8d
xor edx, edx
mov r9d, 1
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x455a82
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.error_CryptAcquireContextW
lea rdx, [rax + 0x60]
jmp 0x455aac
lea r8, [rsp + 0x34]
mov edx, 4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x455abb
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.error_CryptGenRandom
lea rdx, [rax + 0x60]
call sym.fputs
mov ecx, 1
call sym.exit
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret

Function at 0x457750
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x00479c48], eax
je 0x45776a
add rsp, 0x28
ret
call sym.abort
nop