joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401e2420
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1402c1308]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1401e2458
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1401e24af
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x1401e24bc
xor edx, edx
xor eax, eax
jmp 0x1401e24e6
cmp eax, 0x103
je 0x1401e24f0
test eax, eax
js 0x1401e24cf
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1401e24e6
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x1402c1370]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1401d8520
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1401cf990
mov ecx, 7
int 0x29
ud2

Function at 0x1401e2540
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1402c1308]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1401e2578
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1401e25d6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x1401e2603
test eax, eax
js 0x1401e25e2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1401e25f9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x1402c1370]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1401d8520
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1401cf990
mov ecx, 7
int 0x29
ud2
Function at 0x1401e2660
Capabilities:
Create udp socket

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov edi, edx
cmp word [rcx], 0
mov eax, 2
mov r14d, 0x17
cmove r14d, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor ebx, ebx
mov ecx, r14d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1401e2741
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x1401e26c8
mov esi, eax
cmp eax, 0x2726
jne 0x1401e2734
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, r14d
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1401e272c
mov rsi, rax
xor ebx, ebx
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x1401e2741
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov ebx, 1
mov rsi, rdi
jmp 0x1401e2741
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov ebx, 1
mov rax, rbx
mov rdx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x1401e3250
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x60], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x5c], ecx
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
lea r14, [rbp + 0x20]
mov r12, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xor edi, edi
xor eax, eax
mov qword [rbp - 8], rax
nop word cs:[rax + rax]
Function at 0x1401e45c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1401e4730
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x1401e45fd
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1401e46f5
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1401e4713
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rbp + 4], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rbp + 4]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401e465c
mov eax, dword [rbp + 4]
mov ecx, 2
test rax, rax
je 0x1401e469f
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x1401e46a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x40], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x1401e46a7
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x1401e46d1
lea rax, [rbp - 8]
jmp 0x1401e46b3
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1401e46d7
mov qword [rbp - 8], 1
lea rax, [rbp - 0x10]
mov qword [rax], 0
lea rcx, [rbp - 0x40]
call fcn.1401cf260
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
cmp rcx, 2
jne 0x1401e46e2
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop rbp
ret
test rcx, rcx
jne 0x1401e4645
mov ecx, 1
jmp 0x1401e464f
mov r8d, 0x10
mov rcx, rbx
call fcn.140214c40
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x1401e460a
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140214c40
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x1401e460a
mov qword [rbp - 0x40], 0
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.1402149f0
int3
Function at 0x1401e8b30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.1401eb000
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
movabs r14, 0x8000000000000000
cmp rcx, r14
jne 0x1401e8b6e
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], r14
jmp 0x1401e8b94
mov rdx, qword [rbp - 0x18]
Function at 0x1401ea630
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x140331341]
mov ecx, 0x10
mov edx, 8
call fcn.140022d40
test rax, rax
je 0x1401ea71b
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1401ea7d0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
invalid
jne 0x1401ea70d
mov rax, qword [rbx]
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.140215fa0
ud2

Function at 0x1401ed520
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x208
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x186], ax
mov rax, qword [0x1403314b0]
cmp rax, 3
jne 0x1401ed652
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
ja 0x1401ed678
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
inc rdi
lea rcx, [rbp + 0x158]
mov rdx, rbx
mov r8, rdi
call fcn.1401f9850
cmp qword [rbp + 0x158], 0
je 0x1401ed5c1
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1401ed643
mov rcx, qword [rbp + 0x160]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x120], xmm0
movaps xmmword [rbp + 0x140], xmm0
movaps xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x178], 0
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x178]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1401ed624
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1401ed63c
mov rax, qword [rbp + 0x178]
movzx ecx, word [rbp + 0x186]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x208
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rbx, rdx
call fcn.140214f00
mov rdx, rbx
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
jbe 0x1401ed577
lea r9, [rbp + 0x170]
mov rcx, rsi
mov r8, rdi
call fcn.140214f70
jmp 0x1401ed643
Function at 0x1401ed7c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x60], xmm0
mov dword [rbp + 0x34], 0x80
lea rdx, [rbp - 0x60]
lea r8, [rbp + 0x34]
mov rcx, rax
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1401ed84a
mov eax, dword [rbp + 0x34]
movzx ecx, word [rbp - 0x60]
cmp ecx, 0x17
je 0x1401ed85a
cmp ecx, 2
jne 0x1401ed898
cmp eax, 0xf
jbe 0x1401ed8b2
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
jmp 0x1401ed8a8
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x1401ed89f
cmp eax, 0x1b
jbe 0x1401ed8ca
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov edx, dword [rbp - 0x48]
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rbp + 0x24], xmm0
mov word [rsi], 1
movups xmm0, xmmword [rbp + 0x22]
movups xmmword [rsi + 2], xmm0
movzx r8d, word [rbp + 0x32]
mov word [rsi + 0x12], r8w
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
jmp 0x1401ed8a8
lea rax, str.invalid_argument
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb8
pop rsi
pop rbp
ret
lea rcx, [0x1402c2022]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x39
call fcn.1402162f0
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x3a
call fcn.1402162f0
int3
Function at 0x140201920
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x1402019aa
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1402019a0
cmp r11, r10
ja 0x140201a26
cmp r10, rdx
ja 0x140201a38
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x1402019a2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140201980
jmp 0x140201a07
ja 0x1402019aa
mov r11, r10
cmp rax, r8
jne 0x140201947
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x140201a0b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1402019e0
mov r8, r10
sub ecx, r9d
jns 0x1402019fe
jmp 0x140201a0d
cmp r10, rdx
je 0x140201a1a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140201a0d
xor al, 1
cmp r8, rdx
jne 0x1402019c0
jmp 0x140201a0d
xor eax, eax
jmp 0x140201a0d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.1402161b0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1402167f0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140216780
int3

Function at 0x1402045d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14020461a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14020461a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14020461a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14020461a
cmp dword [rcx + 0x84], 0xe
jbe 0x14020461a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14020461c
xor al, al
add rsp, 0x28
ret
Function at 0x140213a60
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
lea rcx, [0x140286565]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140213ac1
mov rdi, rax
lea rdx, [0x140286586]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140213ac1
mov rsi, rax
lea rdx, [0x140286594]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140213ac1
mov rdi, rax
xor ebx, ebx
jmp 0x140213b47
lea rcx, [0x140286520]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140213bbf
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140213bbf
mov rdi, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140213bbf
mov rbx, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140213bbf
mov rsi, rax
lea rcx, [rbp - 0x40]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rdi
test eax, eax
jne 0x140213bbf
mov rdi, qword [rbp - 0x40]
movzx eax, byte [0x140331341]
mov ecx, 0x18
mov edx, 8
call fcn.140022d40
test rax, rax
je 0x140213bf1
mov rcx, rax
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
xor eax, eax
lock cmpxchg qword [0x1403313c8], rcx
je 0x140213bb3
mov rsi, rax
cmp qword [rcx], 0
mov qword [rbp - 8], rcx
je 0x140213b9c
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp - 8]
call fcn.140022d50
mov rcx, rsi
mov rax, rcx
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rax, str.parking_lot_requires_either_NT_Keyed_Events__WinXP__or_WaitOnAddress_WakeByAddress__Win8_
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x30], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
lea rdx, str.C:Usersdiddy.cargo_registry_srcindex.crates.io_6f17d22bba15001fparking_lot_core_0.9.10_src_thread_parkerwindowsmod.rs
lea rcx, [rbp - 0x40]
call fcn.140216230
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rbx
mov ecx, 8
mov edx, 0x18
call fcn.140215fa0
ud2
Function at 0x140214f70
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov r14, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.1401f5330
mov rdx, qword [rbp - 0x28]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x140214ff9
mov rdi, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14021502c
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140215040
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x140215060
mov rcx, qword [rbp - 0x20]
mov r8d, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.140022d50
mov rcx, qword [r14]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test rbx, rbx
je 0x140215060
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140022d50
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x1800084e0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rdi, qword [0x180388178]
test rdi, rdi
je 0x180008666
cmp byte [0x180388170], 0
jne 0x180008666
xor r14d, r14d
mov esi, 1
mov ebx, r14d
xor eax, eax
lock cmpxchg dword [0x180388020], esi
je 0x180008551
nop dword [rax]
cmp rbx, 0x20
jae 0x18000853a
xor ecx, ecx
jmp 0x18000853c
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180388020], esi
jne 0x180008530
cmp qword [0x180388028], r14
je 0x18000865f
mov ecx, dword [0x1803883bc]
mov ebx, r14d
mov qword [rsp + 0x40], rbp
test ecx, ecx
je 0x18000858f
mov rdx, qword [0x1803883b0]
mov rax, rdx
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x1800085b6
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180008580
mov ebp, 4
xchg dword [0x180388020], r14d
test ebp, ebp
mov rbp, qword [rsp + 0x40]
jne 0x180008666
mov byte [0x180388170], 1
mov al, 1
jmp 0x180008668
cmp ebx, 0xffffffff
je 0x18000858f
mov eax, ebx
imul r8, rax, 0x38
test byte [r8 + rdx + 0x20], 2
jne 0x180008655
mov r8d, esi
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180061400
mov ebp, eax
test eax, eax
jne 0x180008594
mov edx, esi
mov ecx, ebx
call fcn.1800617ec
mov ebp, eax
cmp qword [rsp + 0x20], r14
je 0x180008594
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18000863c
mov rbx, qword [rsp + 0x20]
mov esi, eax
mov r8d, dword [rbx]
test r8d, r8d
je 0x180008632
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180008632
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180008603
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180388028]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180008594
mov ebp, 5
jmp 0x180008594
xchg dword [0x180388020], r14d
xor al, al
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x180008680
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rdi, qword [0x180388130]
test rdi, rdi
je 0x180008806
cmp byte [0x180388128], 0
jne 0x180008806
xor r14d, r14d
mov esi, 1
mov ebx, r14d
xor eax, eax
lock cmpxchg dword [0x180388020], esi
je 0x1800086f1
nop dword [rax]
cmp rbx, 0x20
jae 0x1800086da
xor ecx, ecx
jmp 0x1800086dc
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180388020], esi
jne 0x1800086d0
cmp qword [0x180388028], r14
je 0x1800087ff
mov ecx, dword [0x1803883bc]
mov ebx, r14d
mov qword [rsp + 0x40], rbp
test ecx, ecx
je 0x18000872f
mov rdx, qword [0x1803883b0]
mov rax, rdx
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x180008756
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180008720
mov ebp, 4
xchg dword [0x180388020], r14d
test ebp, ebp
mov rbp, qword [rsp + 0x40]
jne 0x180008806
mov byte [0x180388128], 1
mov al, 1
jmp 0x180008808
cmp ebx, 0xffffffff
je 0x18000872f
mov eax, ebx
imul r8, rax, 0x38
test byte [r8 + rdx + 0x20], 2
jne 0x1800087f5
mov r8d, esi
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180061400
mov ebp, eax
test eax, eax
jne 0x180008734
mov edx, esi
mov ecx, ebx
call fcn.1800617ec
mov ebp, eax
cmp qword [rsp + 0x20], r14
je 0x180008734
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800087dc
mov rbx, qword [rsp + 0x20]
mov esi, eax
mov r8d, dword [rbx]
test r8d, r8d
je 0x1800087d2
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800087d2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x1800087a3
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180388028]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180008734
mov ebp, 5
jmp 0x180008734
xchg dword [0x180388020], r14d
xor al, al
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x180008820
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rdi, qword [0x180388158]
test rdi, rdi
je 0x1800089a6
cmp byte [0x180388150], 0
jne 0x1800089a6
xor r14d, r14d
mov esi, 1
mov ebx, r14d
xor eax, eax
lock cmpxchg dword [0x180388020], esi
je 0x180008891
nop dword [rax]
cmp rbx, 0x20
jae 0x18000887a
xor ecx, ecx
jmp 0x18000887c
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180388020], esi
jne 0x180008870
cmp qword [0x180388028], r14
je 0x18000899f
mov ecx, dword [0x1803883bc]
mov ebx, r14d
mov qword [rsp + 0x40], rbp
test ecx, ecx
je 0x1800088cf
mov rdx, qword [0x1803883b0]
mov rax, rdx
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x1800088f6
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800088c0
mov ebp, 4
xchg dword [0x180388020], r14d
test ebp, ebp
mov rbp, qword [rsp + 0x40]
jne 0x1800089a6
mov byte [0x180388150], 1
mov al, 1
jmp 0x1800089a8
cmp ebx, 0xffffffff
je 0x1800088cf
mov eax, ebx
imul r8, rax, 0x38
test byte [r8 + rdx + 0x20], 2
jne 0x180008995
mov r8d, esi
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180061400
mov ebp, eax
test eax, eax
jne 0x1800088d4
mov edx, esi
mov ecx, ebx
call fcn.1800617ec
mov ebp, eax
cmp qword [rsp + 0x20], r14
je 0x1800088d4
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18000897c
mov rbx, qword [rsp + 0x20]
mov esi, eax
mov r8d, dword [rbx]
test r8d, r8d
je 0x180008972
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180008972
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180008943
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180388028]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800088d4
mov ebp, 5
jmp 0x1800088d4
xchg dword [0x180388020], r14d
xor al, al
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret