joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4490d0
Capabilities:
Resolve dns

Disassembly:
push rbx
sub rsp, 0x20
mov r8, qword [rcx + 0x48]
mov rdx, qword [rcx + 0x40]
mov rbx, rcx
mov qword [rcx + 0x48], 0
mov rcx, qword [rcx + 0x38]
lea r9, [rbx + 0x48]
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov ecx, eax
call fcn.00449010
mov dword [rbx + 0x58], eax
add rsp, 0x20
pop rbx
ret

Function at 0x44a240
Capabilities:
Connect pipe
Create pipe

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
test byte [rdx + 0x59], 8
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
je 0x44a340
test r9d, r9d
jne 0x44a2f2
cmp qword [rbx + 0x70], 0xffffffffffffffff
je 0x44a284
lea rdx, str.src_win_pipe.c
lea rcx, str.req__pipeHandle__INVALID_HANDLE_VALUE
mov r8d, 0x32d
call fcn.00472160
xor r8d, r8d
mov rcx, qword [rsi + 0x120]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov r9d, 0xff
mov dword [rsp + 0x20], 0x10000
mov edx, 0x40040003
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp rax, 0xffffffffffffffff
mov r8, rax
mov qword [rbx + 0x70], rax
je 0x44a3a5
mov dword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov rdx, rsi
mov rcx, rdi
call fcn.0044a010
test eax, eax
jne 0x44a393
mov rcx, qword [rbx + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x44a410
lea rdx, [rbx + 0x40]
mov qword [rbx + 0x40], 0
mov qword [rdx + 8], 0
mov qword [rdx + 0x10], 0
mov qword [rdx + 0x18], 0
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x44a370
add dword [rsi + 0x78], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, str.src_win_pipe.c
lea rcx, [0x0051b418]
mov r8d, 0x32a
mov dword [rsp + 0x4c], r9d
call fcn.00472160
mov r9d, dword [rsp + 0x4c]
jmp 0x44a25b
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
cmp eax, 0x3e5
je 0x44a32e
call rbp
cmp eax, 0x217
jne 0x44a3f0
mov qword [rbx + 0x40], 0
jmp 0x44a3c2
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
test eax, eax
jle 0x44a408
call rbp
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov rax, qword [rdi + 0x48]
mov qword [rbx + 0x68], 0
test rax, rax
je 0x44a432
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0x68], rdx
mov qword [rax + 0x68], rbx
mov qword [rdi + 0x48], rbx
add dword [rsi + 0x78], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call rbp
test eax, eax
jg 0x44a3b2
call rbp
cdqe
jmp 0x44a3be
lea rcx, str.req__pipeHandle___INVALID_HANDLE_VALUE
lea rdx, str.src_win_pipe.c
mov r8d, 0x345
call fcn.00472160
mov rcx, qword [rbx + 0x70]
jmp 0x44a300
mov qword [rbx + 0x68], rbx
mov qword [rdi + 0x48], rbx
jmp 0x44a32e
Function at 0x44bea0
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r13, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r14, qword [rsp + 0xc0]
lea rbp, str._pipeuv_p__lu
mov edi, r8d
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0xa8], rdx
mov rsi, r9
or edi, 0x400c0000
mov rbx, rdx
mov r12, qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x44bf0e
call r15
cmp eax, 0xe7
mov edx, eax
je 0x44bf0a
cmp eax, 5
jne 0x44bfb8
add rbx, 1
call r13
mov r9, rbx
mov r8, rbp
mov rdx, r14
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.0044bd60
xor r8d, r8d
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov r9d, 1
mov edx, edi
mov rcx, rsi
call r12
cmp rax, 0xffffffffffffffff
mov r10, rax
je 0x44bef5
mov rax, qword [rsp + 0xa0]
xor r9d, r9d
mov rcx, r10
mov qword [rsp + 0x40], r10
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rax + 0x38]
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
mov r10, qword [rsp + 0x40]
je 0x44bfcb
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x40], r10
call fcn.0044ab60
mov rax, qword [rsp + 0xa8]
mov r10, qword [rsp + 0x40]
xor edx, edx
mov qword [rax + 0x118], r10
mov eax, edx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x48], r10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10, qword [rsp + 0x48]
mov dword [rsp + 0x40], eax
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x40]
jmp 0x44bfb8

Function at 0x44d2e0
Capabilities:
Write file on windows

Disassembly:
push rbx
cmp dword [r8 + 0x110], 0
mov r10d, dword [rsp + 0x30]
mov eax, 0x2726
mov r11, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
jne 0x44d301
pop rbx
ret
cmp r10d, 1
je 0x44d320
test r10d, r10d
jne 0x44d311
test r11, r11
jne 0x44d325
mov eax, 0x32
pop rbx
ret
test r11, r11
je 0x44d33b
cmp dword [r11 + 0x10], 0xc
mov eax, 0x32
jne 0x44d2ff
test dword [r11 + 0x58], 0x1200
je 0x44d2ff
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r11
mov dword [rsp + 0x30], r10d
pop rbx
jmp fcn.0044b240
Function at 0x44f7f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, qword [rsp + 0x98]
mov r12, qword [rsp + 0xa8]
cmp rdx, 2
mov r15, rcx
mov rbx, rdx
mov r14, r8
mov rdi, r9
jbe 0x44f912
movzx eax, word [rcx]
cmp ax, 0x5c
je 0x44f940
cmp ax, 0x2f
je 0x44f94b
cmp ax, 0x5c
je 0x44f94b
cmp rbx, 1
jbe 0x44f859
cmp word [r15 + 2], 0x3a
je 0x44f9e0
lea rcx, [rdi + r13 + 4]
add rcx, r12
add rcx, rbx
add rcx, rcx
call fcn.0043d450
mov rdx, qword [rsp + 0xa0]
mov r8, r12
mov rcx, rax
mov rsi, rax
lea rbp, [rsi + r12*2]
call sub.msvcrt.dll_wcsncpy
test r12, r12
jne 0x44f982
mov rcx, rbp
mov r8, rbx
mov rdx, r15
call sub.msvcrt.dll_wcsncpy
test rbx, rbx
lea rbp, [rbp + rbx*2]
jne 0x44f9b0
mov r8, rdi
mov rdx, r14
mov rcx, rbp
call sub.msvcrt.dll_wcsncpy
test r13, r13
lea rbx, [rbp + rdi*2]
je 0x44f8df
test rdi, rdi
jne 0x44f923
mov rdx, qword [rsp + 0x90]
mov rcx, rbx
lea rbx, [rbx + r13*2]
mov r8, r13
call sub.msvcrt.dll_wcsncpy
xor eax, eax
mov rcx, rsi
mov word [rbx], ax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44fa50
test al, 0x10
jne 0x44fa50
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test rdx, rdx
je 0x44f859
movzx eax, word [rcx]
jmp 0x44f833
cmp word [rbx - 2], 0x2e
je 0x44f8c8
mov edx, 0x2e
add rbx, 2
mov word [rbx - 2], dx
jmp 0x44f8c8
cmp word [rcx + 2], 0x5c
je 0x44fa20
mov ebp, 4
mov r12d, 2
lea rcx, [rdi + r13 + 4]
add rcx, rbx
add rcx, r12
add rcx, rcx
call fcn.0043d450
mov rdx, qword [rsp + 0xa0]
mov rsi, rax
mov r8, r12
mov rcx, rax
add rbp, rsi
call sub.msvcrt.dll_wcsncpy
movzx edx, word [rbp - 2]
lea rcx, [0x0051be1e]
call sub.msvcrt.dll_wcsrchr
test rax, rax
jne 0x44f88f
mov r8d, 0x5c
add rbp, 2
mov word [rbp - 2], r8w
jmp 0x44f88f
movzx edx, word [rbp - 2]
lea rcx, [0x0051be1e]
call sub.msvcrt.dll_wcsrchr
test rax, rax
jne 0x44f8ab
mov ecx, 0x5c
add rbp, 2
mov word [rbp - 2], cx
jmp 0x44f8ab
cmp rbx, 2
je 0x44f9f7
movzx eax, word [r15 + 4]
cmp ax, 0x2f
je 0x44fa20
cmp ax, 0x5c
je 0x44fa20
cmp r12, 1
jbe 0x44fa20
mov r8d, 2
mov rdx, r15
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x44fa60
nop dword [rax + rax]
lea rcx, [rdi + r13 + 4]
add rcx, rbx
add rcx, rcx
call fcn.0043d450
mov rdx, qword [rsp + 0xa0]
mov rbp, rax
xor r8d, r8d
mov rcx, rax
mov rsi, rbp
call sub.msvcrt.dll_wcsncpy
jmp 0x44f88f
mov rcx, rsi
xor esi, esi
call fcn.0043d460
jmp 0x44f8fe
add r15, 4
sub rbx, 2
lea rbp, [r12 + r12]
jmp 0x44f956
Function at 0x44fcb0
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp edx, 0x16
mov rsi, rcx
mov ebx, edx
ja 0x44fd50
cmp edx, 2
je 0x44fd10
jg 0x44fcf5
test edx, edx
jne 0x44fcff
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x44fd41
cmp dword [rsp + 0x2c], 0x103
mov eax, 0xfffff038
cmove eax, ebx
add rsp, 0x38
pop rbx
pop rsi
ret
cmp edx, 9
je 0x44fd10
cmp edx, 0xf
je 0x44fd10
mov eax, 0xfffff02a
add rsp, 0x38
pop rbx
pop rsi
ret
mov edx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, eax
xor eax, eax
test edx, edx
jne 0x44fcee
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
mov ebx, eax
je 0x44fd60
mov ecx, ebx
call fcn.00440300
add rsp, 0x38
pop rbx
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00440300
jmp 0x44fcee
mov eax, 0xfffff019
jmp 0x44fcee
lea rdx, [rsp + 0x2c]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x44fd33
cmp dword [rsp + 0x2c], 0x103
mov eax, 0xfffff038
jne 0x44fcee
jmp 0x44fd33
Function at 0x4528d0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov eax, dword [rcx + 0x58]
test al, 1
jne 0x452940
test eax, 0x10000
je 0x452950
mov r9d, dword [rcx + 0x10]
cmp r9d, 0xc
je 0x452930
cmp r9d, 0xe
je 0x452920
cmp r9d, 7
mov eax, 0xfffff008
je 0x45291b
lea rdx, str.src_win_stream.c
lea rcx, [0x0051c551]
mov r8d, 0xc8
call fcn.00472160
mov eax, 0xfffff02a
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.0045c0b0
add rsp, 0x28
jmp 0x454710
mov eax, 0xfffff00d
jmp 0x45291b
mov eax, 0xfffff031
jmp 0x45291b
sub rsp, 0x58
mov eax, dword [rcx + 0x100]
mov r9d, 0xfffff008
test eax, eax
jne 0x45475a
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
mov r9d, dword [rsp + 0x4c]
je 0x454762
mov eax, r9d
add rsp, 0x58
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.00440300
mov r9d, eax
jmp 0x45475a
Function at 0x452e70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov eax, dword [rdx + 0x58]
mov rbp, rcx
mov rbx, rdx
test ah, 1
je 0x4530e1
test eax, 0x20000
jne 0x4530c0
lea rsi, [rbx + 0xc0]
mov edx, eax
lea rcx, [0x0054c940]
or edx, 0x80000
test eax, 0x100000
mov qword [rbx + 0xc0], 0
mov dword [rbx + 0x58], edx
lea rdi, [rbx + 0x80]
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x50], 0
mov qword [rsi + 8], 0
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], 0
je 0x452f07
mov rax, qword [rbx + 0xf0]
test rax, rax
je 0x453102
or rax, 1
mov qword [rbx + 0xd8], rax
lea rax, [rsp + 0x4c]
mov dword [rsp + 0x4c], 0
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 0x110]
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
mov r8d, 1
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x452fb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x453010
mov rsi, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rsi
test eax, eax
jle 0x453130
call rsi
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0xc0], rax
mov rax, qword [rbp + 0x48]
mov qword [rbx + 0xe8], 0
test rax, rax
je 0x453140
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0xe8], rdx
mov qword [rax + 0x68], rdi
mov qword [rbp + 0x48], rdi
add dword [rbx + 0x78], 1
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, dword [rbx + 0x58]
test eax, 0x40000
je 0x453013
or eax, 0x20000
add dword [rbx + 0x78], 1
mov qword [rbx + 0xe8], 0
mov dword [rbx + 0x58], eax
mov eax, dword [rsp + 0x48]
mov qword [rbx + 0xc8], rax
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x4530b0
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0xe8], rdx
mov qword [rax + 0x68], rdi
mov qword [rbp + 0x48], rdi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, dword [rbx + 0x58]
mov edx, eax
add dword [rbx + 0x78], 1
or edx, 0x20000
test eax, 0x100000
mov dword [rbx + 0x58], edx
je 0x452fac
cmp qword [rbx + 0xf8], 0xffffffffffffffff
jne 0x452fac
mov rdx, qword [rbx + 0xf0]
lea rcx, [rbx + 0xf8]
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0xffffffff
mov r9, rdi
lea r8, [0x00453540]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x452fac
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
test eax, eax
jle 0x453150
call rsi
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0xc0], rax
mov rax, qword [rbp + 0x48]
mov qword [rbx + 0xe8], 0
test rax, rax
jne 0x452fee
nop dword [rax]
mov qword [rbx + 0xe8], rdi
mov qword [rbp + 0x48], rdi
jmp 0x452fac
lea rdx, str.src_win_tcp.c
lea rcx, [0x0051c648]
mov r8d, 0x1e6
call fcn.00472160
mov eax, dword [rbx + 0x58]
jmp 0x452e95
lea rdx, str.src_win_tcp.c
lea rcx, [0x0051c620]
mov r8d, 0x1e5
call fcn.00472160
mov eax, dword [rbx + 0x58]
jmp 0x452e8a
lea rdx, str.src_win_tcp.c
lea rcx, str.req__event_handle
mov r8d, 0x203
call fcn.00472160
mov rax, qword [rbx + 0xf0]
jmp 0x452efc
call rsi
cdqe
jmp 0x452f76
mov qword [rbx + 0xe8], rdi
mov qword [rbp + 0x48], rdi
jmp 0x452fa8
call rsi
cdqe
jmp 0x45308a
Function at 0x453160
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x58], edx
mov dword [rsp + 0x60], r8d
mov rsi, rcx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x58]
mov r8d, 8
mov edx, 0xffff
call rbx
cmp eax, 0xffffffff
je 0x4531d2
mov eax, dword [rsp + 0x58]
test eax, eax
jne 0x4531b0
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
ret
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x60]
mov r8d, 3
mov edx, 6
mov rcx, rsi
call rbx
cmp eax, 0xffffffff
jne 0x4531a0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x4531e0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
cmp qword [r8], 0xffffffffffffffff
mov eax, 0xfffff00e
mov rbp, rcx
mov rdi, rdx
mov rsi, r8
mov rbx, r9
mov dword [rsp + 0x48], 1
jne 0x4532c3
lea r8, [rsp + 0x48]
mov edx, 0x8004667e
mov rcx, r9
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x453313
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x4532df
xor r9d, r9d
mov rdx, qword [rbp + 0x38]
mov r8, rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x4532d0
mov edx, dword [rdi]
cmp dword [rsp + 0xa0], 0x17
je 0x453360
mov rax, qword [0x00523e10]
mov ecx, dword [rax]
mov rax, qword [0x00523d90]
mov rax, qword [rax]
test rax, rax
je 0x453290
test edx, 0x100000
jne 0x453290
test ecx, ecx
je 0x4533a1
test edx, 0x2000000
jne 0x453322
test edx, 0x4000000
jne 0x453370
cmp dword [rsp + 0xa0], 0x17
mov qword [rsi], rbx
je 0x453392
xor eax, eax
and edx, 0x1000000
jne 0x4532f0
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, dword [rsp + 0xa8]
test eax, eax
jne 0x4533c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, str.src_win_tcp.c
lea rcx, [0x0051c688]
mov r8d, 0x96
mov dword [rsp + 0x3c], eax
call fcn.00472160
mov eax, dword [rsp + 0x3c]
jmp 0x4532c3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x4c]
mov r8d, 1
mov edx, 6
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4533d0
mov edx, dword [rdi]
jmp 0x45329c
mov rax, qword [0x00523e20]
mov ecx, dword [rax]
jmp 0x453271
mov r8d, 0x3c
mov edx, 1
mov rcx, rbx
call fcn.00453160
test eax, eax
jne 0x4532c3
mov edx, dword [rdi]
jmp 0x4532a8
or edx, 0x1000000
xor eax, eax
mov dword [rdi], edx
jmp 0x4532c3
mov edx, 3
mov rcx, rbx
call rax
test eax, eax
je 0x4533e3
mov edx, dword [rdi]
or edx, 0x40000
mov dword [rdi], edx
jmp 0x453290
mov edx, dword [rdi]
or edx, 0x100000
mov dword [rdi], edx
jmp 0x45325a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x4532c3
jmp 0x453354
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
cmp eax, 1
jne 0x4533f8
mov edx, dword [rdi]
jmp 0x453290
call rbp
jmp 0x4532c3
Function at 0x453400
Capabilities:
Set socket configuration

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
mov rcx, qword [rcx + 0x110]
mov rsi, rdx
mov ebp, r8d
mov r12d, r9d
cmp rcx, 0xffffffffffffffff
je 0x453460
cmp word [rsi], 0x17
je 0x4534d0
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x453503
or dword [rbx + 0x58], 0x200
xor edi, edi
mov eax, edi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test r9b, 1
movzx ecx, word [rdx]
je 0x453474
cmp cx, 0x17
mov edi, 0x57
jne 0x45344d
xor r8d, r8d
mov edx, 1
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x453525
movzx eax, word [rsi]
mov rcx, qword [rbx + 8]
lea rdx, [rbx + 0x58]
lea r8, [rbx + 0x110]
mov dword [rsp + 0x28], 0
mov r9, r13
mov dword [rsp + 0x20], eax
call fcn.004531e0
test eax, eax
mov edi, eax
jne 0x453532
mov rcx, qword [rbx + 0x110]
jmp 0x453425
and r12d, 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov dword [rsp + 0x3c], r12d
mov r8d, 0x1b
mov edx, 0x29
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x110]
jmp 0x45342f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
mov edi, eax
jne 0x45344d
mov dword [rbx + 0x118], 0x2740
jmp 0x453444
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x45344d
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x45344d

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

Disassembly:
sub rsp, 0x28
mov r9, qword [rcx + 0x110]
cmp r9, 0xffffffffffffffff
je 0x454291
mov ecx, dword [rcx + 0x118]
test ecx, ecx
jne 0x454288
mov rcx, r9
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x454280
add rsp, 0x28
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
add rsp, 0x28
jmp fcn.00440300
mov eax, 0xfffff019
jmp 0x454278
Function at 0x454710
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov eax, dword [rcx + 0x58]
test al, 1
jne 0x452940
test eax, 0x10000
je 0x452950
mov r9d, dword [rcx + 0x10]
cmp r9d, 0xc
je 0x452930
cmp r9d, 0xe
je 0x452920
cmp r9d, 7
mov eax, 0xfffff008
je 0x45291b
lea rdx, str.src_win_stream.c
lea rcx, [0x0051c551]
mov r8d, 0xc8
call fcn.00472160
mov eax, 0xfffff02a
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.0045c0b0
add rsp, 0x28
jmp 0x454710
mov eax, 0xfffff00d
jmp 0x45291b
mov eax, 0xfffff031
jmp 0x45291b
sub rsp, 0x58
mov eax, dword [rcx + 0x100]
mov r9d, 0xfffff008
test eax, eax
jne 0x45475a
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
mov r9d, dword [rsp + 0x4c]
je 0x454762
mov eax, r9d
add rsp, 0x58
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.00440300
mov r9d, eax
jmp 0x45475a
Function at 0x454ec0
Capabilities:
Set socket configuration

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp dword [rdx + 0x10], 0xc
mov rdi, rcx
mov rbx, rdx
mov rsi, r8
je 0x454eef
lea rdx, str.src_win_tcp.c
lea rcx, str.handle__type__UV_TCP
mov r8d, 0x460
call fcn.00472160
mov rcx, qword [rsi + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x454fd1
mov eax, dword [rsi + 0x40]
test eax, eax
js 0x454f2c
mov dword [rsp + 0x20], 8
lea r9, [rbx + 0x110]
mov r8d, 0x700b
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x454f80
mov rcx, qword [rsi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
test byte [rbx + 0x59], 8
mov qword [rsi + 0x70], 0xffffffffffffffff
jne 0x455041
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x454fb0
sub eax, 1
mov edx, dword [rbx + 0x58]
test eax, eax
mov dword [rbx + 0x78], eax
jne 0x454f74
test dl, 1
je 0x454f74
test dl, 8
jne 0x454f74
mov rax, qword [rdi + 0x50]
or edx, 8
mov dword [rbx + 0x58], edx
mov qword [rbx + 0x50], rax
mov qword [rdi + 0x50], rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [rbx + 0x130]
mov qword [rsi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rsi
test rax, rax
je 0x454f44
xor edx, edx
mov rcx, rbx
call rax
mov eax, dword [rbx + 0x78]
test eax, eax
jne 0x454f4b
nop
lea rdx, str.src_win_tcp.c
lea rcx, [0x0051c74f]
mov r8d, 0x488
call fcn.00472160
mov eax, dword [rbx + 0x78]
jmp 0x454f4b
mov eax, dword [rbx + 0x58]
test ah, 8
je 0x454f44
mov edx, eax
and dh, 0xf7
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
jne 0x455051
test al, 1
jne 0x455010
test al, 0x40
je 0x455010
mov edx, eax
and edx, 0xfffff7bf
test al, 0x20
mov dword [rbx + 0x58], edx
je 0x455010
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
nop word [rax + rax]
cmp qword [rbx + 0x100], 0
je 0x454f44
mov rcx, qword [rsi + 0x40]
call fcn.00460650
mov ecx, eax
mov rsi, qword [rbx + 0x100]
call fcn.00440300
mov rcx, rbx
mov edx, eax
call rsi
jmp 0x454f44
mov rdx, rsi
mov rcx, rbx
call fcn.00452ad0
jmp 0x454f44
jns 0x455010
lea rdx, str.src_win_tcp.c
lea rcx, [0x0051c889]
mov r8d, 0x469
call fcn.00472160
jmp 0x455010
Function at 0x455070
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
cmp dword [rdx + 0x10], 0xc
mov rsi, rcx
mov rbx, rdx
mov rdi, r8
je 0x4550a0
lea rdx, str.src_win_tcp.c
lea rcx, str.handle__type__UV_TCP
mov r8d, 0x490
call fcn.00472160
sub dword [rbx + 0x7c], 1
jne 0x455130
mov eax, dword [rbx + 0x58]
test al, 1
je 0x4551a0
mov eax, dword [rsi + 0x20]
test eax, eax
je 0x455160
sub eax, 1
mov dword [rsi + 0x20], eax
mov rcx, qword [rdi + 0x40]
test ecx, ecx
js 0x45518e
test byte [rbx + 0x58], 1
mov ecx, 0x3e3
je 0x4551f0
mov rbp, qword [rdi + 0x70]
call fcn.00440300
mov rcx, rdi
mov edx, eax
call rbp
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x4551c5
sub eax, 1
mov edx, dword [rbx + 0x58]
test eax, eax
mov dword [rbx + 0x78], eax
jne 0x455125
test dl, 1
je 0x455125
test dl, 8
jne 0x455125
mov rax, qword [rsi + 0x50]
or edx, 8
mov dword [rbx + 0x58], edx
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
jns 0x4550b5
lea rdx, str.src_win_tcp.c
lea rcx, [0x0051c718]
mov r8d, 0x492
call fcn.00472160
mov eax, dword [rsi + 0x20]
test eax, eax
jne 0x4550c0
nop word [rax + rax]
lea rcx, [0x0051c733]
lea rdx, str.src_win_tcp.c
mov r8d, 0x492
call fcn.00472160
mov eax, dword [rsi + 0x20]
sub eax, 1
mov dword [rsi + 0x20], eax
mov rcx, qword [rdi + 0x40]
test ecx, ecx
jns 0x4550d2
call fcn.00460650
mov ecx, eax
jmp 0x4550e1
test al, 0x40
je 0x4550b5
mov edx, eax
and edx, 0xffffffbf
test al, 0x20
mov dword [rbx + 0x58], edx
je 0x4550b5
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
jmp 0x4550b5
lea rdx, str.src_win_tcp.c
lea rcx, [0x0051c74f]
mov r8d, 0x4a9
call fcn.00472160
mov eax, dword [rbx + 0x78]
jmp 0x4550fc
mov rcx, qword [rbx + 0x110]
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov r8d, 0x7010
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
mov ecx, eax
jne 0x455230
or dword [rbx + 0x58], 0x19000
add dword [rsi + 0xa8], 1
jmp 0x4550e1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
jmp 0x4550e1

Function at 0x455320
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
mov rcx, qword [rcx + 0x110]
mov esi, edx
cmp rcx, 0xffffffffffffffff
je 0x45535f
mov dword [rsp + 0x3c], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov r8d, 1
mov edx, 6
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x455383
test esi, esi
jne 0x455373
and dword [rbx + 0x58], 0xfdffffff
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
ret
or dword [rbx + 0x58], 0x2000000
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x45535f
add rsp, 0x48
pop rbx
pop rsi
ret