joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d9d0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov dword [rsp + 0x20], r9d
push rsi
push rdi
push r14
sub rsp, 0x30
cmp qword [rcx + 0x110], 0xffffffffffffffff
mov r14d, r8d
mov rdi, rdx
mov rbx, rcx
jne 0x14001da44
movzx ecx, word [rdx]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001da1e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14001daa9
movzx r9d, word [rdi]
mov r8, rsi
mov rcx, qword [rbx + 8]
mov rdx, rbx
call fcn.14001d560
mov ebp, eax
test eax, eax
je 0x14001da44
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
jmp 0x14001daa9
cmp word [rdi], 0x17
jne 0x14001da75
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x68]
mov edx, 0x29
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x110]
mov r8d, r14d
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x14001daa0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x14001daa9
mov dword [rbx + 0x118], eax
or dword [rbx + 0x58], 0x2000
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14001dde0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
xor eax, eax
lea rbx, [rdx + 0x80]
mov qword [rbx + 0x40], rax
lea r14, [rbx + 0x40]
mov qword [r14 + 8], rax
xor ebp, ebp
mov qword [r14 + 0x10], rax
mov rdi, rdx
mov qword [r14 + 0x18], rax
mov rsi, rcx
or dword [rdx + 0x58], 0x40000
lea rax, [0x1402f1306]
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rax
test dword [rdx + 0x58], 0x80000
mov dword [rsp + 0x40], ebp
je 0x14001de54
mov rax, qword [rbx + 0x70]
or rax, 1
mov qword [rbx + 0x58], rax
mov rcx, qword [rdi + 0x110]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x40]
mov r8d, 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], ebp
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x14001dedf
mov eax, dword [rdi + 0x58]
bt eax, 0x11
jae 0x14001df47
bts eax, 0x10
mov dword [rdi + 0x58], eax
mov eax, dword [rsp + 0x78]
mov qword [rbx + 0x48], rax
inc dword [rdi + 0x78]
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14001ded2
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x14001dfbd
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x14001dfbd
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x14001df47
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x14001defe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14001df0c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [r14], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14001df3a
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x14001dfbd
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x14001dfbd
or dword [rdi + 0x58], 0x10000
inc dword [rdi + 0x78]
test dword [rdi + 0x58], 0x80000
je 0x14001dfbd
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x14001dfbd
mov rdx, qword [rbx + 0x70]
lea r8, [0x14001dac0]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
test eax, eax
jne 0x14001dfbd
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x14001df9f
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x14001dfad
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov rdx, rbx
mov rcx, rsi
mov qword [r14], rax
call fcn.14001d4b0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14001e710
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rdi, r8
mov rcx, qword [r8 + 0x70]
mov rbx, rdx
cmp rcx, 0xffffffffffffffff
jne 0x14001e78f
mov eax, dword [rdx + 0x58]
test al, 0x40
je 0x14001e807
mov edx, eax
and edx, 0xffffffbf
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
jne 0x14001e765
test dl, 1
jne 0x14001e765
test al, 4
je 0x14001e765
and eax, 0xffffffbb
mov dword [rbx + 0x58], eax
test al, 8
je 0x14001e765
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov r9, qword [rbx + 0x100]
test r9, r9
je 0x14001e807
mov ecx, dword [r8 + 0x40]
call fcn.140022d30
mov ecx, eax
call fcn.1400232d0
mov edx, eax
mov rcx, rbx
call r9
jmp 0x14001e807
cmp dword [r8 + 0x40], 0
jl 0x14001e7e4
lea r9, [rdx + 0x110]
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x700b
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14001e7e4
mov rax, qword [rbx + 0x130]
mov qword [rdi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rdi
test rax, rax
je 0x14001e807
xor edx, edx
mov rcx, rbx
call rax
jmp 0x14001e807
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x70], 0xffffffffffffffff
test byte [rbx + 0x58], 0x40
je 0x14001e807
mov rdx, rdi
mov rcx, rbx
call fcn.14001db00
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x14001e830
test ecx, ecx
jne 0x14001e830
test al, 0x20
jne 0x14001e830
or eax, 0x20
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14001e840
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov edi, edx
mov rcx, qword [rcx + 0x110]
cmp rcx, 0xffffffffffffffff
je 0x14001e88b
mov dword [rsp + 0x40], edx
lea r9, [rsp + 0x40]
mov edx, 6
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14001e88b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x14001e8a2
mov ecx, dword [rbx + 0x58]
mov eax, ecx
btr eax, 0x18
bts ecx, 0x18
test edi, edi
cmove ecx, eax
xor eax, eax
mov dword [rbx + 0x58], ecx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14001eb00
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x40]
lea r9, [rcx + 0x48]
mov r8, qword [r9]
mov rdi, rcx
mov rcx, qword [rcx + 0x38]
xor ebx, ebx
mov qword [r9], rbx
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
cmp eax, 0x273f
jg 0x14001eb98
je 0x14001eb85
mov ecx, eax
test eax, eax
je 0x14001ec09
sub ecx, 8
je 0x14001eb72
sub ecx, 0x271e
je 0x14001eb5f
cmp ecx, 0x16
jne 0x14001ebb4
mov ebx, 0xfffff43d
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff446
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff442
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff443
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, eax
sub ecx, 0x277d
je 0x14001ec04
sub ecx, 0x37c
je 0x14001ebf1
sub ecx, 1
je 0x14001ebde
cmp ecx, 1
je 0x14001ebcb
mov ecx, eax
call fcn.1400232d0
mov ebx, eax
mov dword [rdi + 0x58], eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff444
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff447
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff440
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff43e
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001f6b0
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
push rsi
sub rsp, 0x38
lea rcx, str.UV_THREADPOOL_SIZE
mov dword [0x1402f1384], 4
call fcn.1401db2e4
test rax, rax
je 0x14001f6dc
mov rcx, rax
call fcn.1401e225c
jmp 0x14001f6e2
mov eax, dword [0x1402f1384]
test eax, eax
jne 0x14001f6ed
mov eax, 1
jmp 0x14001f6f7
mov ecx, 0x80
cmp eax, ecx
cmova eax, ecx
xor esi, esi
mov dword [0x1402f1384], eax
lea rbx, [0x1402f13f0]
mov qword [0x1402f1418], rbx
cmp eax, 4
jbe 0x14001f745
mov ecx, eax
shl rcx, 3
test rcx, rcx
je 0x14001f725
call qword [fcn.1401da214]
jmp 0x14001f728
mov rax, rsi
mov qword [0x1402f1418], rax
test rax, rax
jne 0x14001f745
mov dword [0x1402f1384], 4
mov qword [0x1402f1418], rbx
mov qword [rsp + 0x58], rbp
lea rcx, [0x1402f13b0]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x30], r15
call qword [sym.imp.KERNEL32.DLL_InitializeConditionVariable]
lea rcx, [0x1402f1388]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea rax, [0x1402f1460]
xor r9d, r9d
mov qword [0x1402f1460], rax
xor edx, edx
mov qword [0x1402f1468], rax
xor ecx, ecx
lea rax, [0x1402f1450]
mov r8d, 0x7fffffff
mov qword [0x1402f1450], rax
mov qword [0x1402f1458], rax
lea rax, [0x1402f1420]
mov qword [0x1402f1420], rax
mov qword [0x1402f1428], rax
call qword [sym.imp.KERNEL32.DLL_CreateSemaphoreA]
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x14001f7e4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.1400232d0
test eax, eax
jne 0x14001f8e8
mov eax, dword [0x1402f1384]
mov ebp, esi
test eax, eax
je 0x14001f8be
lea r15, [0x14001f3c0]
nop dword [rax + rax]
mov rax, qword [0x1402f1418]
mov ecx, ebp
lea rbx, [rax + rcx*8]
mov ecx, 0x18
call qword [fcn.1401da214]
mov r14, rax
test rax, rax
je 0x14001f8e8
mov qword [rax], r15
lea r8, [0x14001d0c0]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rsi
mov r9, r14
mov qword [r14 + 8], rax
xor edx, edx
mov dword [rsp + 0x20], 4
xor ecx, ecx
call fcn.1401ec70c
test rax, rax
jne 0x14001f879
call fcn.1401e1e4c
mov edi, dword [rax]
call fcn.1401e1e4c
mov rcx, r14
mov ebx, dword [rax]
call qword [fcn.1401db01c]
call fcn.1401e1e4c
mov dword [rax], ebx
test edi, edi
jne 0x14001f8e8
jmp 0x14001f889
mov qword [rbx], rax
mov rcx, rax
mov qword [r14 + 0x10], rax
call qword [sym.imp.KERNEL32.DLL_ResumeThread]
mov eax, dword [0x1402f1384]
inc ebp
cmp ebp, eax
jb 0x14001f800
test eax, eax
je 0x14001f8be
nop dword [rax]
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x14001f8e8
inc esi
cmp esi, dword [0x1402f1384]
jb 0x14001f8a0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x14001f8e8
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x38
pop rsi
pop rbx
ret
call fcn.1401e9cd4
int3
Function at 0x140021260
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
xor ebp, ebp
mov qword [rax - 0x10], rbp
mov rbx, r8
mov dword [rax - 0x18], ebp
mov rsi, rcx
mov dword [rax - 0x20], 0x10000
mov r9d, 0xff
mov rcx, qword [rdi + 0x120]
xor r8d, r8d
mov edx, 0x40040003
mov dword [rax - 0x28], 0x10000
call qword [sym.imp.KERNEL32.DLL_CreateNamedPipeW]
mov qword [rbx + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x140021312
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x1400212cb
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1400212d9
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x140021305
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x1400213f8
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x1400213f8
mov r8, rax
mov dword [rsp + 0x20], ebp
mov rdx, rdi
mov rcx, rsi
call fcn.140020a60
test eax, eax
je 0x14002134c
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x1400212cb
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1400212d9
xor eax, eax
mov qword [rsp + 0x50], r14
mov qword [rbx + 0x40], rax
lea rdx, [rbx + 0x40]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x58], rax
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.DLL_ConnectNamedPipe]
test eax, eax
jne 0x1400213f3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x1400213f3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x217
jne 0x140021394
mov rax, rbp
jmp 0x1400213c8
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x1400213b8
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1400213c6
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x1400213eb
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x1400213ef
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
mov r14, qword [rsp + 0x50]
inc dword [rdi + 0x78]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140021650
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
test dword [rdx + 0x58], 0x1000000
lea rdi, [rdx + 0x80]
mov rbx, rdx
mov rsi, rcx
je 0x14002169b
mov qword [rdx + 0x238], 0
lea rcx, [0x140021410]
mov rdx, rdi
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.KERNEL32.DLL_QueueUserWorkItem]
jmp 0x140021755
xor eax, eax
lea rcx, [rdi + 0x40]
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
test dword [rdx + 0x58], 0x80000
je 0x1400216c5
mov rax, qword [rdi + 0x70]
or rax, 1
mov qword [rdi + 0x58], rax
mov qword [rsp + 0x20], rcx
lea rdx, [0x1402f1470]
mov rcx, qword [rbx + 0x118]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400216f5
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
jne 0x140021759
test dword [rbx + 0x58], 0x80000
je 0x1400217b0
cmp qword [rdi + 0x70], 0
jne 0x140021726
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [rdi + 0x70], rax
test rax, rax
je 0x1400217e9
cmp qword [rdi + 0x78], 0xffffffffffffffff
lea rcx, [rdi + 0x78]
jne 0x1400217b0
mov rdx, qword [rdi + 0x58]
lea r8, [0x14001dac0]
mov dword [rsp + 0x28], 4
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
test eax, eax
jne 0x1400217b0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x14002176b
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x140021779
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rdi + 0x40], rax
mov qword [rdi + 0x68], 0
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x1400217a6
mov rax, qword [rax + 0x68]
mov qword [rdi + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x1400217cf
mov qword [rdi + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x1400217cf
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x1400217cf
xor r9d, r9d
lea rdx, [0x1400221c0]
lea r8d, [r9 + 0x32]
call fcn.140016c80
or dword [rbx + 0x58], 0x10000
inc dword [rbx + 0x78]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.140023220
int3
Function at 0x140021910
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rbx, rdx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov rcx, rbx
movaps xmm0, xmmword [rsp + 0x30]
mov edi, r9d
mov edx, r8d
lea r8, [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call qword [rbx + 0x68]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x1400219cf
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400219cf
mov rcx, qword [rbx + 0x118]
lea r9, [rsp + 0x70]
cmp edi, eax
mov qword [rsp + 0x20], 0
cmova edi, eax
mov r8d, edi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400219b1
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea r9, [rsp + 0x40]
mov rdx, rbx
mov r8d, eax
call fcn.140021870
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov edx, dword [rsp + 0x70]
lea r8, [rsp + 0x30]
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
mov eax, dword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
lea r8, [rsp + 0x30]
mov rdx, 0xfffffffffffff024
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x50
pop rdi
ret
Function at 0x140022a90
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x1402dd5c8]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor eax, eax
mov ebx, 2
mov qword [0x1402f1600], rax
xor ecx, ecx
mov word [0x1402f1600], bx
mov qword [0x1402f1608], rax
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [0x1402f1604]
mov word [0x1402f1602], ax
lea rcx, str.0.0.0.0
call fcn.140020760
test eax, eax
jne 0x140022d20
call fcn.140010ee0
test eax, eax
jne 0x140022d20
lea ecx, [rbx + 0x41]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
je 0x140022c7a
mov ecx, 0x202
lea rdx, [rsp + 0x2c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140022c93
mov qword [rsp + 0x480], rdi
xor r8d, r8d
mov edi, 1
mov ecx, ebx
mov edx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140022bad
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x140022ca2
mov eax, dword [0x1402f1640]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x1402f1640], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x140022cb7
jmp 0x140022bd4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x140022d0b
cmp eax, 0x273a
jbe 0x140022d0b
cmp eax, 0x2740
jae 0x140022d0b
xor r8d, r8d
mov edx, edi
lea ecx, [r8 + 0x17]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140022c4b
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x140022ccc
mov eax, dword [0x1402f163c]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x1402f163c], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x140022ce1
jmp 0x140022c72
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x140022cf6
cmp eax, 0x273a
jbe 0x140022cf6
cmp eax, 0x2740
jae 0x140022cf6
mov rdi, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401b48e0
add rsp, 0x470
pop rbx
ret
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.140023220
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.140023220
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.140023220
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.140023220
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.140023220
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.140023220
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.140023220
int3
call fcn.1401e9cd4
int3
Function at 0x140023890
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x140023a29
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rdx, str.RtlNtStatusToDosError
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x1402f15f0], rax
test rax, rax
je 0x140023a3e
lea rdx, str.NtDeviceIoControlFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x1402f15b0], rax
test rax, rax
je 0x140023a53
lea rdx, str.NtQueryInformationFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x1402f15c0], rax
test rax, rax
je 0x140023a68
lea rdx, str.NtSetInformationFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x1402f15d0], rax
test rax, rax
je 0x140023a7d
lea rdx, str.NtQueryVolumeInformationFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x1402f15c8], rax
test rax, rax
je 0x140023a92
lea rdx, str.NtQueryDirectoryFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp qword [0x1402f15c8], 0
mov qword [0x1402f15d8], rax
je 0x140023aa7
lea rdx, str.NtQuerySystemInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x1402f15e0], rax
test rax, rax
je 0x140023abc
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
test rax, rax
je 0x140023ad1
lea rdx, [0x1402b2d20]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rcx, str.powrprof.dll
mov qword [0x1402f15f8], rax
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test rax, rax
je 0x1400239fa
lea rdx, str.PowerRegisterSuspendResumeNotification
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x1402f15b8], rax
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test rax, rax
je 0x140023a23
lea rdx, str.SetWinEventHook
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x1402f15e8], rax
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, [0x1402b38a8]
call fcn.140023220
int3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, [0x1402b38e8]
call fcn.140023220
int3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, [0x1402b38e8]
call fcn.140023220
int3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, [0x1402b38e8]
call fcn.140023220
int3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, [0x1402b38e8]
call fcn.140023220
int3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, [0x1402b38e8]
call fcn.140023220
int3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, [0x1402b38e8]
call fcn.140023220
int3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, [0x1402b38e8]
call fcn.140023220
int3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, [0x1402b38a8]
call fcn.140023220
int3