joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e2b0
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r14, rcx
mov r12, rdx
mov rsi, r8
mov rdi, r9
call sym.pop_pthread_mem
test rax, rax
mov rbx, rax
je 0x41e461
test r14, r14
je 0x41e2ea
mov rax, qword [rax + 0x1c8]
mov qword [r14], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rbx + 8], rdi
mov rdi, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
mov esi, 1
mov dword [rbx + 0xb4], 0
mov dword [rbx + 0x44], 1
mov qword [rbx + 0x28], 0xffffffffffffffff
mov rbp, r13
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call rdi
test rax, rax
mov qword [rbx + 0x30], rax
jne 0x41e510
cmp esi, 1
jne 0x41e350
xor ecx, ecx
call r13
add esi, 1
jmp 0x41e321
mov ecx, 0x14
call rbp
cmp esi, 5
jne 0x41e347
mov rax, qword [rbx + 0x30]
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx], 0xbab1f00d
mov dword [rbx + 0xb8], 0
mov dword [rbx + 0xb0], 0
test rax, rax
je 0x41e447
test r12, r12
je 0x41e550
mov eax, dword [r12]
mov rsi, qword [r12 + 0x10]
test al, 8
mov dword [rbx + 0x44], eax
jne 0x41e4e0
mov eax, dword [r12 + 0x18]
mov edx, esi
mov dword [rbx + 0xb8], eax
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, rbx
lea r8, [sym.pthread_create_wrapper]
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x41e417
mov edx, dword [rbx + 0xb8]
cmp edx, 0xfffffff2
jl 0x41e475
cmp edx, 0xffffffff
jl 0x41e500
cmp edx, 0xe
jg 0x41e540
cmp edx, 2
mov eax, 2
cmovge edx, eax
jmp 0x41e47a
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x41e426
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
mov qword [rbx + 0x60], 0xffffffffffffffff
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x28], 0
test r14, r14
je 0x41e453
mov qword [r14], 0
cmp qword [rbx + 0x1c0], 0
je 0x41e557
mov eax, 0xb
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov edx, 0xfffffff1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
je 0x41e4d0
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x41e4ad
call sym.__pthread_self_lite
mov eax, dword [rax + 0xb8]
mov edx, esi
mov dword [rbx + 0xb8], eax
jmp 0x41e3bd
mov edx, 0xfffffffe
jmp 0x41e47a
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx], 0xbab1f00d
mov dword [rbx + 0xb8], 0
mov dword [rbx + 0xb0], 0
jmp 0x41e393
mov edx, 0xf
jmp 0x41e47a
xor edx, edx
jmp 0x41e3bd
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x41e461
Function at 0x41ea90
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.dummy_concurrency_level_shmem
xor r8d, r8d
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x41ecf0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_cond_locked_shmem_cond]
lea rcx, str.cond_locked_shmem_cond
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x41fd90
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.global_lock_spinlock
xor r8d, r8d
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x41fff0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sym.strlen
mov r14, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x51]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.0040f8f0
sub rsp, rax
movsxd r15, r14d
movabs rax, 0x656d68732d636367
lea rsi, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r15
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov eax, 0x326d
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
movsxd rbx, ebx
mov byte [rsp + 0x2e], 0x2d
call sym.memcpy
lea rax, [rsi + r15 + 0x10]
lea r15d, [r14 + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, rsi
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
movsxd rax, r15d
xor edx, edx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + rbx + 0x20], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4200d9
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x420172
mov rcx, r12
add r14d, 0x10
call sym.malloc
mov r10d, 0x40
mov rbx, rax
bt rbx, r10
jae 0x420114
mov r11d, r15d
sub r11d, r10d
movsxd r11, r11d
mov byte [rsi + r11], 0x41
sub r10d, 1
jne 0x420100
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x42016f
mov rdx, rsi
movzx ecx, ax
mov r9d, r14d
mov r8d, r15d
call sym.get_ptr_from_atom_1
cmp rax, rbx
mov rsi, rax
je 0x420189
mov rcx, rbx
call sym.free
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x58]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [r14 + 0x10]
mov rdx, rsi
movzx ecx, ax
mov r8d, r15d
call sym.get_ptr_from_atom_1
mov rsi, rax
jmp 0x420149
xor edx, edx
mov r8, r12
mov rcx, rbx
call sym.memset
test r13, r13
je 0x420149
mov rcx, rbx
call r13
jmp 0x420149

Function at 0x420880
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_rwl_global_shmem]
lea rcx, str.rwl_global_shmem
mov edx, 8
jmp sym.__shmem_winpthreads_grab
Function at 0x420950
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_cond_locked_shmem_rwlock]
lea rcx, str.cond_locked_shmem_rwlock
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x421390
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init_init]
lea rcx, str.init
mov edx, 8
jmp dbg.__shmem_grab

Function at 0x4213b0
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.eh_globals
xor r8d, r8d
mov edx, 0x10
jmp dbg.__shmem_grab

Function at 0x421a60
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___terminate_handler_sh]
lea rcx, str.__terminate_handler_sh
mov edx, 8
jmp dbg.__shmem_grab

Function at 0x421a80
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___unexpected_handler_sh]
lea rcx, str.__unexpected_handler_sh
mov edx, 8
jmp dbg.__shmem_grab

Function at 0x422d40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
test rax, rax
jle 0x422d71
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
mov dword [rbx + 0x48], 0xffffffff
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x4236c0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x00487090], 0
jne 0x423787
mov byte [0x00487090], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x42381a
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov rsi, qword [sym.imp.msvcrt.dll___iob_func]
mov rdi, rax
call rsi
lea rcx, str.terminate_called_after_throwing_an_instance_of_
lea r9, [rax + 0x60]
mov r8d, 0x30
mov edx, 1
call sym.fwrite
cmp dword [rsp + 0x2c], 0
je 0x423777
call rsi
lea rdx, [rax + 0x60]
mov rcx, rbx
call sym.fputs
call rsi
lea rcx, [0x00489711]
lea r9, [rax + 0x60]
mov r8d, 2
mov edx, 1
call sym.fwrite
cmp dword [rsp + 0x2c], 0
je 0x4237ad
call sym.__cxa_rethrow
call rsi
lea rdx, [rax + 0x60]
mov rcx, rdi
call sym.fputs
jmp 0x42374e
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.terminate_called_recursively_n
lea r9, [rax + 0x60]
mov r8d, 0x1d
mov edx, 1
call sym.fwrite
call sym.abort
mov rcx, rdi
call sym.free
jmp 0x423772
call sym.abort
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.terminate_called_without_an_active_exception_n
lea r9, [rax + 0x60]
mov r8d, 0x2d
mov edx, 1
call sym.fwrite
jmp 0x423815

Function at 0x451b40
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
mov rcx, rbp
call method.std::__basic_file_char_.fd__
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sym.read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x451b90
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x451b5a
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x180032d80
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x20
cmp dword [sym.extension.dll_Py_IgnoreEnvironmentFlag], 0
mov rsi, rcx
jne 0x180032e42
lea rcx, str.PYTHONSTARTUP
mov qword [rsp + 0x38], rdi
call fcn.180236e9c
mov rdi, rax
test rax, rax
je 0x180032e3d
cmp byte [rax], 0
je 0x180032e3d
lea rdx, [0x180313b9c]
mov rcx, rax
mov qword [rsp + 0x30], rbx
call fcn.1802367ac
mov rbx, rax
test rax, rax
je 0x180032e05
mov r9, rsi
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call sym.extension.dll_PyRun_SimpleFileExFlags
call sym.extension.dll_PyErr_Clear
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
jmp fcn.18023666c
call fcn.18023193c
lea rcx, str.Could_not_open_PYTHONSTARTUP_n
mov ebx, dword [rax]
call sym.extension.dll_PySys_WriteStderr
call fcn.18023193c
mov dword [rax], ebx
mov rcx, qword [sym.extension.dll_PyExc_IOError]
mov rdx, rdi
call sym.extension.dll_PyErr_SetFromErrnoWithFilename
call sym.extension.dll_PyErr_Print
call sym.extension.dll_PyErr_Clear
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret

Function at 0x180039dc0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor ebx, ebx
mov qword [rsp + 0x10], r9
mov rax, qword [rsp + 0x10]
mov r10d, ebx
cmp r8, rax
jne 0x180039de1
mov r10, rcx
xor r9b, r9b
jmp 0x180039de7
movzx r9d, byte [rsp + 0x10]
mov rax, qword [rsp + 0x10]
cmp r8, rax
je 0x180039df7
mov r10, rdx
mov r9b, 1
mov rax, qword [rsp + 0x10]
test rax, rax
jle 0x180039e30
mov r11, rdx
neg r11
sub r10, rdx
nop word [rax + rax]
movzx r8d, byte [r10 + rdx]
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
xor r8b, cl
mov rcx, qword [rsp + 0x10]
or r9b, r8b
lea r8, [r11 + rdx]
cmp r8, rcx
jl 0x180039e10
test r9b, r9b
sete bl
mov eax, ebx
mov rbx, qword [rsp + 8]
ret
Function at 0x180047820
Capabilities:
Encode data using xor

Disassembly:
mov r9, rcx
test r8d, r8d
je 0x18004786f
movsxd rax, edx
shr rax, 2
test eax, eax
je 0x18004786f
nop dword [rax]
nop word [rax + rax]
mov edx, dword [r9]
lea r9, [r9 + 4]
mov r8d, edx
mov ecx, edx
shl edx, 8
shr r8d, 8
shl ecx, 8
xor r8d, ecx
and r8d, 0xff00ff
xor r8d, edx
rol r8d, 0x10
mov dword [r9 - 4], r8d
dec eax
jne 0x180047840
ret
Function at 0x1800491b0
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rcx + 0x78], 1
mov dword [rcx + 0x10], 0x6a09e667
mov dword [rcx + 0x14], 0xbb67ae85
mov dword [rcx + 0x18], 0x3c6ef372
mov dword [rcx + 0x1c], 0xa54ff53a
mov dword [rcx + 0x20], 0x510e527f
mov dword [rcx + 0x24], 0x9b05688c
mov dword [rcx + 0x28], 0x1f83d9ab
mov qword [rcx + 0x2c], 0x5be0cd19
xor eax, eax
mov dword [rcx + 0x80], 0x20
mov dword [rcx + 0x34], eax
ret

Function at 0x180049210
Capabilities:
Hash data using sha224

Disassembly:
mov qword [rcx + 0x78], 1
mov dword [rcx + 0x10], 0xc1059ed8
mov dword [rcx + 0x14], 0x367cd507
mov dword [rcx + 0x18], 0x3070dd17
mov dword [rcx + 0x1c], 0xf70e5939
mov dword [rcx + 0x20], 0xffc00b31
mov dword [rcx + 0x24], 0x68581511
mov dword [rcx + 0x28], 0x64f98fa7
mov dword [rcx + 0x2c], 0xbefa4fa4
xor eax, eax
mov dword [rcx + 0x80], 0x1c
mov qword [rcx + 0x30], rax
ret
Function at 0x18004c1c0
Capabilities:
Hash data using sha512

Disassembly:
mov qword [rcx + 0xd8], 1
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx + 0x10], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 0x18], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x20], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x28], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x30], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x38], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x40], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x48], rax
xor eax, eax
mov dword [rcx + 0xe0], 0x40
mov qword [rcx + 0x50], rax
ret

Function at 0x18004c260
Capabilities:
Hash data using sha384

Disassembly:
mov qword [rcx + 0xd8], 1
movabs rax, 0xcbbb9d5dc1059ed8
mov qword [rcx + 0x10], rax
movabs rax, 0x629a292a367cd507
mov qword [rcx + 0x18], rax
movabs rax, 0x9159015a3070dd17
mov qword [rcx + 0x20], rax
movabs rax, 0x152fecd8f70e5939
mov qword [rcx + 0x28], rax
movabs rax, 0x67332667ffc00b31
mov qword [rcx + 0x30], rax
movabs rax, 0x8eb44a8768581511
mov qword [rcx + 0x38], rax
movabs rax, 0xdb0c2e0d64f98fa7
mov qword [rcx + 0x40], rax
movabs rax, 0x47b5481dbefa4fa4
mov qword [rcx + 0x48], rax
xor eax, eax
mov dword [rcx + 0xe0], getprotobyname
mov qword [rcx + 0x50], rax
ret

Function at 0x18004cbe0
Capabilities:
Encode data using xor

Disassembly:
mov r9, rcx
test r8d, r8d
je 0x18004cc2f
movsxd rax, edx
shr rax, 2
test eax, eax
je 0x18004cc2f
nop dword [rax]
nop word [rax + rax]
mov edx, dword [r9]
lea r9, [r9 + 4]
mov r8d, edx
mov ecx, edx
shl edx, 8
shr r8d, 8
shl ecx, 8
xor r8d, ecx
and r8d, 0xff00ff
xor r8d, edx
rol r8d, 0x10
mov dword [r9 - 4], r8d
dec eax
jne 0x18004cc00
ret
Function at 0x18004d890
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rcx + 0x6c], 1
xor eax, eax
mov dword [rcx + 0x10], 0x67452301
mov dword [rcx + 0x14], 0xefcdab89
mov dword [rcx + 0x18], 0x98badcfe
mov dword [rcx + 0x1c], 0x10325476
mov dword [rcx + 0x20], 0xc3d2e1f0
mov qword [rcx + 0x24], rax
ret

Function at 0x18004ec00
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
mov rdi, rcx
call sym.extension.dll_PyEval_SaveThread
mov rcx, qword [rdi + 0x10]
xor edx, edx
lea r8, [rsp + 0x38]
mov rbx, rax
cmp dword [rsp + 0x38], edx
sete dl
mov dword [rsp + 0x38], edx
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, rbx
call sym.extension.dll_PyEval_RestoreThread
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x18004ec60
Capabilities:
Get socket status

Disassembly:
sub rsp, 0x248
xorps xmm0, xmm0
comisd xmm0, xmmword [rcx + 0x30]
jb 0x18004ec7b
xor eax, eax
add rsp, 0x248
ret
comisd xmm0, xmm2
jbe 0x18004ec8e
mov eax, 1
add rsp, 0x248
ret
cvttsd2si eax, xmm2
xor r9d, r9d
mov dword [rsp + 0x30], 1
movd xmm0, eax
mov dword [rsp + 0x250], eax
cvtdq2pd xmm0, xmm0
subsd xmm2, xmm0
mulsd xmm2, qword [0x180312c90]
cvttsd2si eax, xmm2
mov dword [rsp + 0x254], eax
mov rax, qword [rcx + 0x10]
lea ecx, [rax + 1]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x250]
mov qword [rsp + 0x20], rax
test edx, edx
je 0x18004ece9
lea r8, [rsp + 0x30]
xor edx, edx
jmp 0x18004ecf1
xor r8d, r8d
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_select]
mov ecx, eax
test eax, eax
jns 0x18004ed08
or eax, 0xffffffff
add rsp, 0x248
ret
xor eax, eax
test ecx, ecx
sete al
add rsp, 0x248
ret

Function at 0x18004ed20
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [rsp + 0x28]
movsd xmm1, qword [0x1803fc648]
xorps xmm0, xmm0
comisd xmm1, xmm0
mov dword [rcx + 0x20], eax
lea rax, [fcn.18004eb30]
mov qword [rcx + 0x10], rdx
mov dword [rcx + 0x18], r8d
mov dword [rcx + 0x1c], r9d
movsd qword [rcx + 0x30], xmm1
mov qword [rcx + 0x28], rax
jb 0x18004ed5b
xor edx, edx
jmp fcn.18004ec00
ret
Function at 0x18004f100
Capabilities:
Resolve dns

Disassembly:
sub rsp, 0x458
xor eax, eax
mov dword [rsp + 0x30], 2
lea r8, [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov r9d, 0x401
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x18004f140
mov ecx, eax
call fcn.18004ebb0
xor eax, eax
add rsp, 0x458
ret
lea rcx, [rsp + 0x40]
call sym.extension.dll_PyString_FromString
add rsp, 0x458
ret

Function at 0x18004fbb0
Capabilities:
Connect socket
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x460
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rsi, r9
xor edi, edi
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x470], eax
movsd xmm1, qword [rbx + 0x30]
xorps xmm0, xmm0
comisd xmm1, xmm0
jbe 0x18004fcf1
test eax, eax
jns 0x18004fcfb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x18004fcea
movsd xmm1, qword [rbx + 0x30]
lea r9, [rsp + 0x250]
lea r8, [rsp + 0x40]
cvttsd2si eax, xmm1
xor edx, edx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x250], 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
mulsd xmm1, qword [0x180312c90]
cvttsd2si eax, xmm1
mov dword [rsp + 0x34], eax
mov rax, qword [rbx + 0x10]
lea ecx, [rax + 1]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x258], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x470], eax
test eax, eax
jne 0x18004fc8c
mov eax, 0x2733
mov edi, 1
jmp 0x18004fcfb
jle 0x18004fcf1
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x40]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18004fca4
mov eax, edi
jmp 0x18004fcfb
mov rcx, qword [rbx + 0x10]
lea rax, [rsp + 0x488]
lea r9, [rsp + 0x470]
mov edx, 0xffff
mov r8d, 0x1007
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x488], 4
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x18004fd12
mov ecx, dword [rsp + 0x470]
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [rsp + 0x470]
test eax, eax
jns 0x18004fcfb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r11, [rsp + 0x460]
mov dword [rsi], edi
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x470], eax
jmp 0x18004fcf1
Function at 0x1800500e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
movaps xmmword [rsp + 0x30], xmm6
movsd xmm6, qword [rcx + 0x30]
or rbp, 0xffffffffffffffff
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm7
mov r15d, r9d
mov r12d, r8d
mov r13, rdx
mov rdi, rcx
comisd xmm6, xmm0
seta bl
test ebx, ebx
je 0x18005013a
call sym.extension.dll__PyTime_FloatTime
movaps xmm7, xmm0
addsd xmm7, qword [rdi + 0x30]
jmp 0x180050140
movsd xmm7, qword [rsp + 0x70]
movsxd r14, ebx
call fcn.18023193c
mov dword [rax], 0
call sym.extension.dll_PyEval_SaveThread
movaps xmm2, xmm6
xor edx, edx
mov rcx, rdi
mov rsi, rax
call fcn.18004ec60
mov ebx, eax
test eax, eax
jne 0x18005017f
mov rcx, qword [rdi + 0x10]
mov r9d, r15d
mov r8d, r12d
mov rdx, r13
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbp, eax
mov rcx, rsi
call sym.extension.dll_PyEval_RestoreThread
cmp ebx, 1
je 0x1800501c8
test r14, r14
je 0x1800501b9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1800501ab
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1800501b9
call sym.extension.dll__PyTime_FloatTime
movaps xmm6, xmm7
subsd xmm6, xmm0
jmp 0x180050143
test rbp, rbp
jns 0x1800501c3
call qword [rdi + 0x28]
jmp 0x1800501db
mov rax, rbp
jmp 0x1800501df
mov rcx, qword [0x18050dee8]
lea rdx, str.timed_out
call sym.extension.dll_PyErr_SetString
or rax, 0xffffffffffffffff
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180050410
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
push r13
push r15
sub rsp, 0xe0
mov rax, qword [rsp + 0x130]
mov r13, rdx
lea rdx, [rsp + 0x30]
or rdi, 0xffffffffffffffff
mov r15d, r9d
mov r12d, r8d
mov qword [rax], 0
mov rbx, rcx
mov rbp, rdi
call fcn.18004f4c0
test eax, eax
jne 0x18005045c
mov rax, rdi
jmp 0x1800505c3
mov qword [rsp + 0x110], rsi
xor edi, edi
mov qword [rsp + 0x118], r14
movaps xmmword [rsp + 0xd0], xmm6
movsd xmm6, qword [rbx + 0x30]
xorps xmm0, xmm0
comisd xmm6, xmm0
seta dil
movaps xmmword [rsp + 0xc0], xmm7
test edi, edi
je 0x1800504a1
call sym.extension.dll__PyTime_FloatTime
movaps xmm7, xmm0
addsd xmm7, qword [rbx + 0x30]
jmp 0x1800504aa
movsd xmm7, qword [rsp + 0x130]
movsxd r14, edi
nop dword [rax]
call fcn.18023193c
mov dword [rax], 0
call sym.extension.dll_PyEval_SaveThread
movsxd r8, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
xor edx, edx
mov rsi, rax
call fcn.180231610
xor edx, edx
mov rcx, rbx
movaps xmm2, xmm6
call fcn.18004ec60
mov edi, eax
test eax, eax
jne 0x180050511
mov rcx, qword [rbx + 0x10]
lea rax, [rsp + 0x30]
mov r9d, r15d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, r12d
mov rdx, r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
movsxd rbp, eax
mov rcx, rsi
call sym.extension.dll_PyEval_RestoreThread
cmp edi, 1
je 0x18005058c
test r14, r14
je 0x18005054e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x18005053d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x18005054e
call sym.extension.dll__PyTime_FloatTime
movaps xmm6, xmm7
subsd xmm6, xmm0
jmp 0x1800504b0
test rbp, rbp
jns 0x180050558
call qword [rbx + 0x28]
jmp 0x18005059f
mov r9d, dword [rbx + 0x20]
mov r8d, dword [rsp + 0x30]
mov ecx, dword [rbx + 0x10]
lea rdx, [rsp + 0x40]
call fcn.18004f160
mov rcx, qword [rsp + 0x130]
test rax, rax
mov qword [rcx], rax
mov rax, 0xffffffffffffffff
cmove rbp, rax
mov rax, rbp
jmp 0x1800505a3
mov rcx, qword [0x18050dee8]
lea rdx, str.timed_out
call sym.extension.dll_PyErr_SetString
or rax, 0xffffffffffffffff
movaps xmm6, xmmword [rsp + 0xd0]
mov r14, qword [rsp + 0x118]
mov rsi, qword [rsp + 0x110]
movaps xmm7, xmmword [rsp + 0xc0]
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x180052610
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x238
lea rdx, [rsp + 0x90]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, eax
test eax, eax
je 0x1800526af
sub edx, 0x2726
je 0x180052692
sub edx, 0x45
je 0x180052675
dec edx
je 0x180052692
lea r8, str.WSAStartup_failed:_error_code__d
lea rcx, [rsp + 0x20]
mov r9d, eax
mov edx, 0x64
call sym.extension.dll_PyOS_snprintf
mov rcx, qword [sym.extension.dll_PyExc_ImportError]
lea rdx, [rsp + 0x20]
call sym.extension.dll_PyErr_SetString
xor eax, eax
add rsp, 0x238
ret
mov rcx, qword [sym.extension.dll_PyExc_ImportError]
lea rdx, str.WSAStartup_failed:_network_not_ready
call sym.extension.dll_PyErr_SetString
xor eax, eax
add rsp, 0x238
ret
mov rcx, qword [sym.extension.dll_PyExc_ImportError]
lea rdx, str.WSAStartup_failed:_requested_version_not_supported
call sym.extension.dll_PyErr_SetString
xor eax, eax
add rsp, 0x238
ret
lea rcx, [0x180052600]
call sym.extension.dll_Py_AtExit
mov eax, 1
add rsp, 0x238
ret