joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426410
Capabilities:
Connect pipe
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov r14, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rbx, qword [rsp + 0x128]
lea r12, str._pipeuv_p__lu
mov ebp, r8d
mov qword [rsp + 0x108], rdx
mov edx, r9d
shr ebp, 4
mov dword [rsp + 0x118], r9d
mov qword [rsp + 0x100], rcx
mov eax, ebp
lea rsi, [rsp + 0x70]
mov r13, qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
and eax, 1
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
or ebp, 2
test r8b, 0x20
cmove ebp, eax
mov eax, ebp
or eax, 0x40000000
and r8d, 0x40
cmovne ebp, eax
and edx, 0x10
cmp edx, 1
sbb eax, eax
and eax, 0x80000080
sub eax, 0x3ffc0000
cmp edx, 1
sbb edi, edi
and edi, 0x80000080
sub edi, 0x7ffbff00
and r9d, 0x20
cmove eax, edi
or ebp, 0xc0000
mov dword [rsp + 0x4c], eax
jmp 0x4264db
call r15
cmp eax, 0xe7
mov edx, eax
je 0x4264d7
cmp eax, 5
jne 0x4265d0
add rbx, 1
call r14
mov r9, rbx
mov r8, r12
mov edx, 0x40
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.004263e0
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, ebp
mov rcx, rsi
call r13
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x4264c2
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0x50], 0x18
lea r9, [rsp + 0x50]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x30], 0
mov rcx, rsi
mov dword [rsp + 0x20], 3
mov edx, dword [rsp + 0x4c]
mov dword [rsp + 0x60], eax
xor eax, eax
test byte [rsp + 0x118], 0x40
setne al
xor r8d, r8d
shl eax, 0x1e
mov dword [rsp + 0x28], eax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x4265e0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x426601
mov rax, qword [rsp + 0x108]
xor edx, edx
mov qword [rax], rbx
mov rax, qword [rsp + 0x100]
mov qword [rax], rdi
mov eax, edx
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test eax, eax
jne 0x4265b6
jmp 0x426530
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rdi, 0xffffffffffffffff
mov edx, eax
je 0x4265b6
mov dword [rsp + 0x4c], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x4c]
jmp 0x4265b6
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
cmp eax, 0x217
je 0x42659e
call rsi
cmp rdi, 0xffffffffffffffff
mov edx, eax
jne 0x426631
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x4c], edx
mov rcx, rbx
call rsi
mov edx, dword [rsp + 0x4c]
jmp 0x4265b6
mov dword [rsp + 0x4c], eax
mov rcx, rdi
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov edx, dword [rsp + 0x4c]
jmp 0x426622
Function at 0x4280b0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov eax, dword [rcx + 0x58]
mov rsi, qword [rcx + 8]
mov rbx, rcx
mov r9d, dword [rbx + 0x7c]
mov ecx, eax
or ch, 0x10
lea r10d, [r9 + 1]
test r9d, r9d
mov dword [rbx + 0x58], ecx
mov dword [rbx + 0x7c], r10d
jne 0x4280e3
test al, 4
je 0x428190
test ecx, 0x10000
mov qword [rbx + 0x70], r8
mov qword [rbx + 0x68], rdx
jne 0x42817b
test ecx, 0x80000
je 0x4281b0
mov rax, qword [rbx + 0xf0]
test rax, rax
je 0x428330
and ecx, 0x1000000
lea rdi, [rbx + 0x80]
je 0x4282c0
mov qword [rbx + 0x238], 0
mov r8d, 0x10
mov rdx, rdi
lea rcx, [0x00426100]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x428262
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x428170
lea rdx, [0x00426650]
xor r9d, r9d
mov r8d, 0x32
call fcn.00410560
or dword [rbx + 0x58], 0x10000
add dword [rbx + 0x78], 1
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ecx, eax
or ecx, 0x1004
test al, 8
mov dword [rbx + 0x58], ecx
je 0x4280e3
add dword [rsi + 8], 1
mov ecx, dword [rbx + 0x58]
jmp 0x4280e3
and ecx, 0x1000000
lea rdi, [rbx + 0x80]
jne 0x428126
lea rdx, [rbx + 0xc0]
mov qword [rbx + 0xc0], 0
mov qword [rdx + 8], 0
mov qword [rdx + 0x10], 0
mov qword [rdx + 0x18], 0
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbx + 0x118]
lea rdx, [0x006e2440]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x428300
test byte [rbx + 0x5a], 8
je 0x42814f
cmp qword [rbx + 0xf8], 0xffffffffffffffff
jne 0x42814f
mov rdx, qword [rbx + 0xf0]
lea rcx, [rbx + 0xf8]
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0xffffffff
mov r9, rdi
lea r8, [0x004262c0]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x42814f
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
test eax, eax
jle 0x428320
call rbp
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0xc0], rax
mov qword [rbx + 0xe8], 0
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x4283a0
mov rax, qword [rax + 0x68]
mov qword [rbx + 0xe8], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x428170
lea rdx, [rbx + 0xc0]
mov qword [rbx + 0xc0], 0
mov qword [rdx + 8], 0
mov qword [rdx + 0x10], 0
mov qword [rdx + 0x18], 0
or rax, 1
mov qword [rbx + 0xd8], rax
jmp 0x4281ed
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
cmp eax, 0x3e5
jne 0x428269
jmp 0x428214
call rbp
cdqe
jmp 0x42827f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [rbx + 0xf0], rax
je 0x4283b0
mov ecx, dword [rbx + 0x58]
lea rdi, [rbx + 0x80]
test ecx, 0x1000000
jne 0x428126
lea rdx, [rbx + 0xc0]
and ecx, 0x80000
mov qword [rbx + 0xc0], 0
mov qword [rdx + 8], 0
mov qword [rdx + 0x10], 0
mov qword [rdx + 0x18], 0
je 0x4281ed
jmp 0x4282ea
mov qword [rbx + 0xe8], rdi
mov qword [rsi + 0x48], rdi
jmp 0x428170
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x0044e712]
mov ecx, eax
call fcn.00416440
nop
nop
nop word cs:[rax + rax]
Function at 0x42ae00
Capabilities:
Create thread
Resume thread

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rcx
mov ecx, 0x18
mov rdi, rdx
mov rsi, r8
call fcn.004109f0
test rax, rax
mov rbx, rax
je 0x42aee0
mov qword [rax], rdi
mov qword [rax + 8], rsi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, rax
lea r8, [0x0042ac80]
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
je 0x42ae74
mov qword [rbp], rax
mov rcx, rax
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.msvcrt.dll__errno]
mov eax, dword [rax]
mov rcx, rbx
mov dword [rsp + 0x3c], eax
call fcn.00410a10
mov eax, dword [rsp + 0x3c]
cmp eax, 0xb
je 0x42aec2
jle 0x42aeb0
cmp eax, 0xd
je 0x42aed0
cmp eax, 0x16
jne 0x42aeb4
mov eax, 0xfffff019
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
test eax, eax
je 0x42ae6b
mov eax, 0xfffff01a
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 0xfffff008
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 0xfffff004
jmp 0x42ae6b
mov eax, 0xfffff027
jmp 0x42ae6b
Function at 0x430620
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp qword [r8], 0xffffffffffffffff
mov eax, 0xfffff00e
mov rbp, rcx
mov rdi, rdx
mov rsi, r8
mov rbx, r9
mov dword [rsp + 0x30], 1
jne 0x4306e1
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov rcx, r9
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x430720
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x430706
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 0x430800
mov eax, dword [rdi]
cmp dword [rsp + 0x90], 0x17
je 0x430770
mov rdx, qword [0x00451840]
mov edx, dword [rdx]
test eax, 0x80000
jne 0x4306c0
test edx, edx
je 0x4306f0
test eax, 0x1000000
jne 0x430730
test eax, 0x2000000
jne 0x430780
cmp dword [rsp + 0x90], 0x17
mov qword [rsi], rbx
je 0x430715
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
jne 0x430820
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
or dword [rdi], 0x400000
xor eax, eax
jmp 0x4306e1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 1
mov edx, 6
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x430830
mov eax, dword [rdi]
jmp 0x4306c7
mov rdx, qword [0x00451850]
mov edx, dword [rdx]
jmp 0x4306b5
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x3c], 0x3c
lea r9, [rsp + 0x38]
mov dword [rsp + 0x20], 4
mov r8d, 8
mov edx, 0xffff
mov rcx, rbx
mov rbp, qword [sym.imp.WS2_32.dll_setsockopt]
call rbp
cmp eax, 0xffffffff
je 0x4307eb
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x4306d2
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov r8d, 3
mov edx, 6
mov rcx, rbx
call rbp
cmp eax, 0xffffffff
jne 0x4306d2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x4306e1
jmp 0x4306d2
mov edx, dword [rsp + 0x98]
test edx, edx
je 0x430706
mov eax, dword [rdi]
or eax, 0x80000
mov dword [rdi], eax
jmp 0x43069e
mov eax, dword [rdi]
or eax, 0x20000
mov dword [rdi], eax
jmp 0x4306c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x4306e1
jmp 0x430762
Function at 0x430850
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 0x4308b0
cmp word [rsi], 0x17
je 0x430920
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x430953
or dword [rbx + 0x58], 0x2000
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 0x4308c4
cmp cx, 0x17
mov edi, 0x57
jne 0x43089d
xor r8d, r8d
mov edx, 1
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x430975
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.00430620
test eax, eax
mov edi, eax
jne 0x430982
mov rcx, qword [rbx + 0x110]
jmp 0x430875
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 0x43087f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
mov edi, eax
jne 0x43089d
mov dword [rbx + 0x118], 0x2740
jmp 0x430894
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x43089d
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x43089d
Function at 0x432a80
Capabilities:
Set socket configuration

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [r8 + 0x70]
mov rbx, rdx
mov rsi, r8
cmp rcx, 0xffffffffffffffff
je 0x432b50
mov eax, dword [r8 + 0x40]
test eax, eax
js 0x432ace
lea r9, [rdx + 0x110]
mov dword [rsp + 0x20], 8
mov r8d, 0x700b
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x432b10
mov rcx, qword [rsi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rsi + 0x70], 0xffffffffffffffff
mov edx, dword [rbx + 0x58]
test dl, 0x40
jne 0x432b40
sub dword [rbx + 0x78], 1
jne 0x432b06
test dl, 1
je 0x432b06
test dl, 0x20
jne 0x432b06
or edx, 0x20
mov dword [rbx + 0x58], edx
mov rax, qword [rdi + 0x50]
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 0x432b4b
xor edx, edx
mov rcx, rbx
call rax
mov edx, dword [rbx + 0x58]
jmp 0x432ae4
mov rdx, rsi
mov rcx, rbx
call fcn.00430230
mov edx, dword [rbx + 0x58]
jmp 0x432ae4
mov edx, dword [rdx + 0x58]
test dl, 0x40
je 0x432ae4
mov eax, edx
and eax, 0xffffffbf
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], eax
jne 0x432b85
test dl, 1
jne 0x432b85
test dl, 4
je 0x432b85
mov eax, edx
and eax, 0xffffffbb
and edx, 8
mov dword [rbx + 0x58], eax
je 0x432b85
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
cmp qword [rbx + 0x100], 0
je 0x432b4b
mov rcx, qword [rsi + 0x40]
call fcn.0043e410
mov ecx, eax
mov rsi, qword [rbx + 0x100]
call fcn.00416500
mov rcx, rbx
mov edx, eax
call rsi
mov edx, dword [rbx + 0x58]
jmp 0x432ae4

Function at 0x432bc0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
sub dword [rdx + 0x7c], 1
mov rsi, rcx
mov rbx, rdx
mov rdi, r8
jne 0x432be2
mov eax, dword [rdx + 0x58]
test al, 1
je 0x432c90
sub dword [rsi + 0x20], 1
mov ecx, dword [rbx + 0x118]
test ecx, ecx
je 0x432c40
mov dword [rbx + 0x118], 0
mov rbp, qword [rdi + 0x70]
call fcn.00416500
mov rcx, rdi
mov edx, eax
call rbp
mov eax, dword [rbx + 0x78]
mov edx, dword [rbx + 0x58]
sub eax, 1
test eax, eax
mov dword [rbx + 0x78], eax
jne 0x432c36
test dl, 1
je 0x432c36
test dl, 0x20
jne 0x432c36
or edx, 0x20
mov dword [rbx + 0x58], edx
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, qword [rdi + 0x40]
test ecx, ecx
js 0x432cb5
test byte [rbx + 0x58], 1
mov ecx, 0x3e3
jne 0x432bfa
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 0x432cc1
or dword [rbx + 0x58], 0xc080
add dword [rsi + 0xb0], 1
jmp 0x432bfa
test al, 4
je 0x432be2
mov edx, eax
and edx, 0xfffffffb
test al, 8
mov dword [rbx + 0x58], edx
je 0x432be2
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
jmp 0x432be2
call fcn.0043e410
mov ecx, eax
jmp 0x432bfa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
jmp 0x432bfa
Function at 0x433780
Capabilities:
Set socket configuration

Disassembly:
cmp dword [rcx + 0x10], 0xc
mov r9d, r8d
jne 0x413860
test byte [rcx + 0x58], 3
jne 0x413860
movzx eax, word [rdx]
cmp ax, 2
je 0x413870
cmp ax, 0x17
jne 0x413860
mov r8d, 0x1c
jmp 0x433780
mov eax, 0xfffff019
ret
mov r8d, 0x10
jmp 0x433780
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
mov rcx, qword [rcx + 0x110]
mov rdi, rdx
mov ebp, r8d
mov r12d, r9d
cmp rcx, 0xffffffffffffffff
je 0x4337e0
cmp word [rdi], 0x17
je 0x433870
mov r8d, ebp
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4338a3
or dword [rbx + 0x58], 0x2000
xor esi, esi
mov eax, esi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test r9b, 1
movzx ecx, word [rdx]
je 0x433810
cmp cx, 0x17
mov esi, 0x57
je 0x433810
mov ecx, esi
call fcn.00416500
mov esi, eax
mov eax, esi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r8d, r8d
mov edx, 1
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x4338d0
movzx eax, word [rdi]
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.00430620
test eax, eax
mov esi, eax
jne 0x4338e0
mov rcx, qword [rbx + 0x110]
jmp 0x4337a5
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 0x4337af
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
mov esi, eax
je 0x4338c0
test esi, esi
jne 0x4337f4
jmp 0x4337cd
mov dword [rbx + 0x118], 0x2740
jmp 0x4337c4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
jmp 0x4338b2
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4337f4
Function at 0x435030
Capabilities:
Manipulate console buffer

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r12, qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx r13d, byte [rsp + 0xc0]
lea rax, [rsp + 0x30]
mov rsi, rcx
mov edi, edx
mov ebx, r9d
mov r14d, r8d
mov rbp, qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov qword [rsp + 0x28], rax
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43514b
movsx edx, word [rsp + 0x3c]
movsx eax, word [rsp + 0x40]
movsx r8d, word [rsp + 0x30]
movsx r9d, word [rsp + 0x32]
movsx ecx, word [rsp + 0x36]
sub eax, edx
mov edx, dword [0x0044b240]
add eax, 1
mov dword [0x0044b238], r8d
mov dword [0x0044b23c], eax
cmp edx, 0xffffffff
je 0x435180
mov r10d, ecx
sub r10d, eax
cmp edx, r10d
jg 0x4350d1
lea edx, [r10 + 1]
mov dword [0x0044b240], edx
lea r10d, [rax + rdx]
cmp r10d, r9d
jle 0x4350e5
mov edx, r9d
sub edx, eax
mov dword [0x0044b240], edx
test edx, edx
jns 0x4350f5
mov dword [0x0044b240], 0
xor edx, edx
lea r9d, [rbx + rcx]
lea ecx, [rbx + rdx]
test r13b, r13b
cmovne ecx, r9d
cmp ecx, edx
jl 0x435111
add eax, edx
lea edx, [rax - 1]
cmp ecx, eax
cmovl edx, ecx
test r14b, r14b
mov ecx, edi
je 0x435120
movsx eax, word [rsp + 0x34]
lea ecx, [rax + rdi]
test ecx, ecx
js 0x435190
lea eax, [r8 - 1]
cmp ecx, r8d
cmovl eax, ecx
shl edx, 0x10
movzx eax, ax
mov rcx, qword [rsi + 0x110]
or edx, eax
call rbp
test eax, eax
jne 0x435194
call r15
cmp eax, 0x57
jne 0x4351b0
mov rcx, qword [rsi + 0x110]
mov rdx, qword [rsp + 0x28]
call r12
test eax, eax
jne 0x435080
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
jmp 0x435080
movsx edx, cx
mov dword [0x0044b240], edx
mov ecx, edx
jmp 0x4350d1
xor eax, eax
jmp 0x43512e
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call r15
mov rdi, qword [rsp + 0xc8]
mov dword [rdi], eax
mov eax, 0xffffffff
jmp 0x435196
Function at 0x438360
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rbx, rcx
mov ecx, dword [rcx + 0x58]
mov edx, ecx
and dh, 0xef
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
jne 0x438380
test cl, 1
je 0x4383b0
test edx, 0x10000
je 0x43839c
test edx, 0x2000000
jne 0x4383d2
and edx, 0x200000
je 0x438424
xor esi, esi
mov eax, esi
add rsp, 0x70
pop rbx
pop rsi
pop rdi
ret
test cl, 4
je 0x438380
mov edx, ecx
and edx, 0xffffeffb
and ecx, 8
mov dword [rbx + 0x58], edx
je 0x438380
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
mov edx, dword [rbx + 0x58]
jmp 0x438380
mov edi, 0x10
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0
lea r9, [rsp + 0x4c]
mov word [rsp + 0x50], di
mov rcx, qword [rbx + 0x110]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x43839c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x43839e
lea rcx, [0x006e2578]
call fcn.0042b3f0
mov eax, 2
xchg dword [0x006e25cc], eax
cmp eax, 1
je 0x438460
lea rcx, [0x006e2578]
call fcn.0042b3c0
or dword [rbx + 0x58], 0x200000
jmp 0x43839c
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r8d, 3
mov edx, 0xc0000000
lea rcx, str.conout_
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x438550
lea rdx, [0x006e25b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x438550
lock or dword [0x006e25c8], 1
mov eax, 1
mov edx, 1
mov ecx, 0xd
mov word [rsp + 0x58], dx
mov word [rsp + 0x5a], cx
xor edx, edx
mov ecx, 0xd
mov word [rsp + 0x50], ax
mov dword [rsp + 0x54], 1
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, 0xd
mov word [rsp + 0x5c], ax
mov dword [rsp + 0x60], 0
mov word [rsp + 0x5e], r8w
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x4c]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
je 0x4385e3
xor esi, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x43839e
jmp 0x43844c
mov r9d, 1
mov r10d, 1
mov r11d, 0xd
mov esi, 0xd
xor edx, edx
mov word [rsp + 0x50], r9w
mov word [rsp + 0x58], r10w
mov word [rsp + 0x5a], r11w
mov ecx, 0xd
mov dword [rsp + 0x54], 1
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [rsp + 0x5e], si
mov word [rsp + 0x5c], ax
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x60], 0
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x4c]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
je 0x4385d0
cmp rdi, 0xffffffffffffffff
jne 0x438532
jmp 0x43844c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rdi, 0xffffffffffffffff
jne 0x4385e9
mov esi, eax
jmp 0x43853d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x438534
Function at 0x438ea0
Capabilities:
Set socket configuration

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
xor esi, esi
test byte [rcx + 0x59], 0x20
mov rbx, rcx
mov rdi, rdx
mov r12d, r8d
mov ebp, r9d
mov dword [rsp + 0x38], 0
jne 0x438f08
test r9b, 1
jne 0x438f20
mov rcx, qword [rbx + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x438fb0
test bpl, 4
jne 0x438f30
cmp word [rdi], 0x17
je 0x438f61
mov r8d, r12d
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x438fa2
or dword [rbx + 0x58], 0x2000
xor esi, esi
mov eax, esi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp word [rdx], 0x17
mov esi, 0x57
jne 0x438f08
jmp 0x438ed0
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov r8d, 4
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x438fa2
mov rcx, qword [rbx + 0x70]
jmp 0x438ee4
or dword [rbx + 0x58], 0x400000
cmp word [rdi], 0x17
jne 0x438eea
and ebp, 1
jne 0x438eea
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov r8d, 0x1b
mov edx, 0x29
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x70]
jmp 0x438eea
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
jmp 0x438f08
movzx ecx, word [rdi]
xor r8d, r8d
mov edx, 2
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x438fa2
cmp qword [rbx + 0x70], 0xffffffffffffffff
movzx r14d, word [rdi]
mov rsi, qword [rbx + 8]
mov dword [rsp + 0x3c], 1
jne 0x43901a
lea r8, [rsp + 0x3c]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x43902d
mov rcx, rsi
movzx r9d, r14w
mov r8, r13
mov rdx, rbx
call fcn.00438d90
mov esi, eax
test esi, esi
jne 0x43901f
mov rcx, qword [rbx + 0x70]
jmp 0x438ede
mov esi, 0xfffff00e
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x438f08
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
jmp 0x43900d
Function at 0x439040
Capabilities:
Set socket configuration

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x168
xor eax, eax
mov r12d, dword [rsp + 0x1c0]
lea rbx, [rsp + 0x50]
mov r13, rcx
test r8, r8
mov ecx, 0x21
mov rbp, rdx
mov r10, r8
mov rdi, rbx
mov rsi, r9
rep stosq qword [rdi], rax
je 0x439099
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, r10
call fcn.00413660
test eax, eax
jne 0x439116
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x50], eax
mov rdx, qword [rbp]
cmp r12d, 1
mov qword [rsp + 0x58], rdx
mov rdx, qword [rbp + 8]
mov qword [rbx + 0x10], rdx
mov rdx, qword [rbp + 0x10]
mov qword [rbx + 0x18], rdx
mov edx, dword [rbp + 0x18]
mov dword [rbx + 0x20], edx
mov rdx, qword [rsi]
mov qword [rsp + 0xd8], rdx
mov rdx, qword [rsi + 8]
mov qword [rbx + 0x90], rdx
mov rdx, qword [rsi + 0x10]
mov qword [rbx + 0x98], rdx
mov edx, dword [rsi + 0x18]
mov dword [rbx + 0xa0], edx
je 0x439150
test r12d, r12d
jne 0x439160
mov r8d, 0x2e
mov edx, 0x29
mov rcx, qword [r13 + 0x70]
mov dword [rsp + 0x20], 0x108
mov r9, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, eax
xor eax, eax
cmp edx, 0xffffffff
je 0x439130
add rsp, 0x168
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.00416500
add rsp, 0x168
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r8d, 0x2d
jmp 0x4390f3
mov eax, 0xfffff019
jmp 0x439116