joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140074a50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, rdx
mov edx, dword [rbx + 0x58]
mov rsi, qword [rbx + 8]
mov qword [rbx + 0x68], rcx
mov ecx, dword [rbx + 0x7c]
mov qword [rbx + 0x70], r8
mov eax, edx
lea r8d, [rcx + 1]
or ah, 0x10
mov dword [rbx + 0x7c], r8d
mov r8d, edx
and r8d, 4
mov dword [rbx + 0x58], eax
or r8d, ecx
jne 0x1400749d0
mov eax, edx
or eax, 0x1004
and edx, 8
mov dword [rbx + 0x58], eax
jne 0x140074a00
nop dword [rax]
test eax, 0x10000
jne 0x1400749f3
test eax, 0x80000
je 0x1400749e8
cmp qword [rbx + 0xf0], 0
je 0x140074a10
mov rdx, rbx
mov rcx, rsi
call fcn.140073770
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
add dword [rsi + 8], 1
jmp 0x1400749d0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0xf0], rax
test rax, rax
jne 0x1400749e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CreateEvent
mov ecx, eax
call fcn.140060580
nop
nop word cs:[rax + rax]
nop dword [rax]
sub rsp, 0x28
mov rax, qword [rcx + 0x110]
cmp rax, 0xffffffffffffffff
je 0x140074a91
mov ecx, dword [rcx + 0x118]
test ecx, ecx
jne 0x140074a88
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140074a80
add rsp, 0x28
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
add rsp, 0x28
jmp fcn.1400605e0
mov eax, 0xfffff019
jmp 0x140074a78
Function at 0x140074de0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [rcx + 0x58]
test al, 1
jne 0x140073320
test ah, 0x80
je 0x140073330
mov eax, dword [rcx + 0x10]
cmp eax, 0xc
je 0x140073318
cmp eax, 0xe
je 0x140073310
cmp eax, 7
mov edx, 0xfffff02a
mov eax, 0xfffff008
cmovne eax, edx
ret
jmp fcn.14007b270
jmp 0x140074de0
mov eax, 0xfffff00d
ret
mov eax, 0xfffff031
ret
sub rsp, 0x58
mov eax, dword [rcx + 0x100]
test eax, eax
jne 0x140074e48
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]
mov edx, eax
mov eax, dword [rsp + 0x4c]
cmp edx, 0xffffffff
je 0x140074e30
add rsp, 0x58
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400605e0
add rsp, 0x58
ret
mov eax, 0xfffff008
jmp 0x140074e25
Function at 0x1400753a0
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 0x140075458
mov eax, dword [r8 + 0x40]
test eax, eax
js 0x140075424
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 0x140075420
mov rax, qword [rbx + 0x130]
mov qword [rsi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rsi
test rax, rax
je 0x1400754eb
xor edx, edx
mov rcx, rbx
call rax
mov edx, dword [rbx + 0x58]
jmp 0x14007543e
mov rcx, qword [rsi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [rbx + 0x58]
mov qword [rsi + 0x70], 0xffffffffffffffff
test dl, 0x40
jne 0x1400754e0
sub dword [rbx + 0x78], 1
jne 0x140075449
test dl, 1
jne 0x1400754c0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov edx, dword [rdx + 0x58]
test dl, 0x40
je 0x14007543e
mov ecx, edx
and ecx, 0xffffffbf
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], ecx
jne 0x140075490
test dl, 1
jne 0x140075490
test dl, 4
je 0x140075490
mov ecx, edx
and ecx, 0xffffffbb
and edx, 8
mov dword [rbx + 0x58], ecx
je 0x140075490
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
nop dword [rax]
cmp qword [rbx + 0x100], 0
mov edx, ecx
je 0x14007543e
mov ecx, dword [rsi + 0x40]
call fcn.14007f790
mov rsi, qword [rbx + 0x100]
mov ecx, eax
call fcn.1400605e0
mov rcx, rbx
mov edx, eax
call rsi
mov edx, dword [rbx + 0x58]
jmp 0x14007543e
test dl, 0x20
jne 0x140075449
mov rax, qword [rdi + 0x50]
or edx, 0x20
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 rdx, rsi
mov rcx, rbx
call fcn.140073430
mov edx, dword [rbx + 0x58]
jmp 0x14007543e
Function at 0x140075500
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
sub dword [rdx + 0x7c], 1
mov rdi, rcx
mov rbx, rdx
mov rsi, r8
jne 0x14007551e
mov eax, dword [rdx + 0x58]
test al, 1
je 0x140075590
mov rax, qword [rsi + 0x40]
sub dword [rdi + 0x20], 1
mov ecx, eax
test eax, eax
js 0x1400755f8
mov ecx, 0x3e3
test byte [rbx + 0x58], 1
je 0x1400755b8
mov rbp, qword [rsi + 0x70]
call fcn.1400605e0
mov rcx, rsi
mov edx, eax
call rbp
sub dword [rbx + 0x78], 1
mov edx, dword [rbx + 0x58]
jne 0x140075559
test dl, 1
jne 0x140075568
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
test dl, 0x20
jne 0x140075559
mov rax, qword [rdi + 0x50]
or edx, 0x20
mov dword [rbx + 0x58], edx
mov qword [rbx + 0x50], rax
mov qword [rdi + 0x50], rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
test al, 4
je 0x14007551e
mov edx, eax
and edx, 0xfffffffb
mov dword [rbx + 0x58], edx
test al, 8
je 0x14007551e
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
jmp 0x14007551e
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]
mov ecx, eax
test eax, eax
jne 0x140075608
or dword [rbx + 0x58], 0xc080
add dword [rdi + 0xa8], 1
jmp 0x14007553b
call fcn.14007f790
mov ecx, eax
jmp 0x14007553b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
jmp 0x14007553b
Function at 0x1400759e0
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
jne 0x140075a20
mov eax, dword [rbx + 0x58]
mov edx, eax
or eax, 0x1000000
and edx, 0xfeffffff
test esi, esi
cmove eax, edx
mov dword [rbx + 0x58], eax
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
ret
mov dword [rsp + 0x3c], edx
lea r9, [rsp + 0x3c]
mov edx, 6
mov r8d, 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400759f8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x140075a12
jmp 0x1400759f8
Function at 0x14007ad80
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 0x14007ada0
test cl, 1
je 0x14007add0
test edx, 0x10000
je 0x14007adbc
test edx, 0x2000000
jne 0x14007adf0
and edx, 0x200000
je 0x14007ae40
xor eax, eax
add rsp, 0x70
pop rbx
pop rsi
pop rdi
ret
test cl, 4
je 0x14007ada0
mov edx, ecx
and edx, 0xffffeffb
and ecx, 8
mov dword [rbx + 0x58], edx
je 0x14007ada0
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
jmp 0x14007ada0
xor r9d, r9d
pxor xmm0, xmm0
mov r10d, 0x10
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x50]
movups xmmword [rsp + 0x52], xmm0
mov r8d, 1
mov word [rsp + 0x62], r9w
lea r9, [rsp + 0x4c]
mov word [rsp + 0x50], r10w
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x14007adbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14007adbe
lea rsi, [0x140274eb8]
mov rcx, rsi
call fcn.14006e670
mov eax, 2
xchg dword [0x140274edc], eax
cmp eax, 1
je 0x14007ae78
mov rcx, rsi
call fcn.14006e640
or dword [rbx + 0x58], 0x200000
jmp 0x14007adbc
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov qword [rsp + 0x30], 0
lea rcx, str.conout_
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14007af48
lea rdx, [0x140274ec0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14007afe0
mov ecx, 1
xor edx, edx
movabs rax, 0xd000100000001
mov word [rsp + 0x50], cx
mov ecx, 0xd
mov qword [rsp + 0x54], rax
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, 0xd
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x60], 0
mov word [rsp + 0x5e], r8w
lea r9, [rsp + 0x4c]
mov rcx, qword [rbx + 0x110]
mov r8d, 1
mov word [rsp + 0x5c], ax
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
je 0x14007afc8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14007ae67
mov eax, 1
xor edx, edx
mov ecx, 0xd
mov word [rsp + 0x50], ax
movabs rax, 0xd000100000001
mov qword [rsp + 0x54], rax
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edx, 0xd
lea r9, [rsp + 0x4c]
mov dword [rsp + 0x60], 0
mov word [rsp + 0x5e], dx
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x50]
mov r8d, 1
mov word [rsp + 0x5c], ax
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x14007ae67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
test esi, esi
jne 0x14007adbe
jmp 0x14007ae67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14007afb2
lock or dword [0x140274ed8], 1
jmp 0x14007aed1
Function at 0x14007b5f0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2c8
cmp qword [rdx + 0x70], 0xffffffffffffffff
mov rbp, rcx
mov rdi, rdx
mov rbx, r8
mov esi, r9d
mov dword [rsp + 0x38], 1
jne 0x14007b760
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x14007b6d0
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x14007b6b8
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 0x14007b6b8
lea rax, [rsp + 0x3c]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov dword [rsp + 0x3c], 0x274
mov qword [rsp + 0x20], rax
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x14007b6b8
cmp dword [rsp + 0x68], 1
je 0x14007b6f8
mov qword [rdi + 0x70], rbx
cmp esi, 0x17
je 0x14007b6e8
xor eax, eax
add rsp, 0x2c8
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x2c8
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x2c8
pop rbx
pop rsi
pop rdi
pop rbp
ret
or dword [rdi + 0x58], 0x400000
jmp 0x14007b6a3
mov edx, 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x14007b740
lea rax, [0x14007fb40]
lea rcx, [0x14007f990]
or dword [rdi + 0x58], 0x20000
movq xmm0, rcx
movq xmm1, rax
punpcklqdq xmm0, xmm1
movups xmmword [rdi + 0x198], xmm0
jmp 0x14007b69a
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
cmp eax, 1
je 0x14007b69a
call rbp
jmp 0x14007b6a5
mov eax, 0xfffff00e
jmp 0x14007b6a5
Function at 0x14007b770
Capabilities:
Set socket configuration

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
mov rbp, rdx
mov r12d, r8d
mov esi, r9d
mov dword [rsp + 0x38], 0
test byte [rcx + 0x59], 0x20
jne 0x14007b7e2
mov r13d, r9d
and r13d, 1
je 0x14007b7ac
cmp word [rdx], 0x17
mov edi, 0x57
jne 0x14007b7e4
mov rcx, qword [rbx + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x14007b868
and esi, 4
jne 0x14007b7f8
cmp word [rbp], 0x17
je 0x14007b832
mov r8d, r12d
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14007b8b0
or dword [rbx + 0x58], 0x2000
xor edi, edi
mov eax, edi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea r9, [rsp + 0x3c]
mov dword [rsp + 0x3c], 1
mov edx, 0xffff
mov r8d, 4
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14007b8b0
cmp word [rbp], 0x17
mov rcx, qword [rbx + 0x70]
jne 0x14007b7c6
or dword [rbx + 0x58], 0x400000
test r13d, r13d
jne 0x14007b7c6
lea r9, [rsp + 0x38]
mov r8d, 0x1b
mov edx, 0x29
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x70]
jmp 0x14007b7c6
movzx ecx, word [rbp]
xor r8d, r8d
mov edx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14007b8b0
mov rcx, qword [rbx + 8]
movzx r9d, word [rbp]
mov r8, rax
mov rdx, rbx
call fcn.14007b5f0
mov edi, eax
test eax, eax
jne 0x14007b8c0
mov rcx, qword [rbx + 0x70]
jmp 0x14007b7ba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x14007b7e4
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14007b7e4
Function at 0x14007c350
Capabilities:
Set socket configuration

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov eax, dword [rcx + 0x58]
mov rbp, rdx
mov edx, eax
mov rbx, rcx
mov rdi, r8
and edx, 0x402000
mov esi, r9d
cmp edx, 0x2000
je 0x14007c46d
mov dword [rsp + 0x30], 0
test ah, 0x20
jne 0x14007c429
mov rcx, qword [rcx + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x14007c4d0
lea r9, [rsp + 0x50]
mov r8d, 4
mov edx, 0xffff
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x20], 4
mov r13, qword [sym.imp.WS2_32.dll_setsockopt]
call r13
cmp eax, 0xffffffff
je 0x14007c520
mov r12, qword [0x140234290]
cmp word [r12], 0x17
jne 0x14007c406
or dword [rbx + 0x58], 0x400000
mov rcx, qword [rbx + 0x70]
lea r9, [rsp + 0x30]
mov r8d, 0x1b
mov dword [rsp + 0x20], 4
mov edx, 0x29
call r13
mov rcx, qword [rbx + 0x70]
mov r8d, 0x1c
mov rdx, r12
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14007c520
or dword [rbx + 0x58], 0x2000
pxor xmm0, xmm0
mov dword [rsp + 0x40], 0
movaps xmmword [rsp + 0x30], xmm0
test rdi, rdi
je 0x14007c45a
xor edx, edx
lea r8, [rsp + 0x50]
mov rcx, rdi
call fcn.140084060
test eax, eax
jne 0x14007c46d
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x40], eax
movdqu xmm1, xmmword [rbp + 8]
movaps xmmword [rsp + 0x30], xmm1
test esi, esi
je 0x14007c480
cmp esi, 1
je 0x14007c4c0
mov eax, 0xfffff019
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r8d, 0xd
mov rcx, qword [rbx + 0x70]
mov edx, 0x29
mov dword [rsp + 0x20], 0x14
lea r9, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, eax
xor eax, eax
cmp edx, 0xffffffff
jne 0x14007c472
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400605e0
jmp 0x14007c472
mov r8d, 0xc
jmp 0x14007c486
mov r12, qword [0x140234290]
xor r8d, r8d
mov edx, 2
movzx ecx, word [r12]
call qword [sym.imp.WS2_32.dll_socket]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x14007c520
movzx r9d, word [r12]
mov rcx, qword [rbx + 8]
mov r8, rax
mov rdx, rbx
call fcn.14007b5f0
mov r12d, eax
test eax, eax
jne 0x14007c548
mov rcx, qword [rbx + 0x70]
jmp 0x14007c39e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r12d, eax
test eax, eax
je 0x14007c429
mov ecx, r12d
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.1400605e0
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14007c531
Function at 0x14007cc20
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov r14, qword [rsp + 0xd0]
mov r12d, dword [rsp + 0xd8]
mov r15, qword [rsp + 0xe0]
mov rsi, rcx
mov rbx, rdx
mov rdi, r8
mov ebp, r9d
test byte [rdx + 0x59], 0x20
jne 0x14007cc8d
cmp r12d, 0x10
je 0x14007ce10
cmp r12d, 0x1c
jne 0x14007ce30
mov rdx, qword [0x140234290]
mov rcx, rbx
xor r9d, r9d
mov r8d, r12d
call fcn.14007b770
mov ecx, eax
test eax, eax
jne 0x14007cdd1
pxor xmm0, xmm0
lea rax, [rsi + 0x40]
mov r13, qword [rbx + 8]
mov r8d, ebp
movups xmmword [rsi + 0x40], xmm0
lea r9, [rsp + 0x5c]
mov rdx, rdi
movups xmmword [rsi + 0x50], xmm0
mov rcx, qword [rbx + 0x70]
mov dword [rsi + 8], 5
mov qword [rsi + 0x70], rbx
mov qword [rsi + 0x78], r15
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
jne 0x14007cdb0
mov eax, dword [rbx + 0x58]
test eax, 0x20000
jne 0x14007cd60
mov edx, ebp
mov rcx, rdi
call fcn.140084570
mov qword [rsi + 0x60], rax
add qword [rbx + 0x60], rax
mov eax, dword [rbx + 0x7c]
add dword [rbx + 0x78], 1
lea edx, [rax + 1]
add qword [rbx + 0x68], 1
mov dword [rbx + 0x7c], edx
test eax, eax
jne 0x14007cd40
mov eax, dword [rbx + 0x58]
test al, 4
jne 0x14007cd40
mov edx, eax
or edx, 4
mov dword [rbx + 0x58], edx
test al, 8
je 0x14007cd40
mov rax, qword [rbx + 8]
add dword [rax + 8], 1
nop word [rax + rax]
add dword [r13 + 0x20], 1
xor eax, eax
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov edx, dword [rbx + 0x7c]
mov qword [rsi + 0x60], 0
add dword [rbx + 0x78], 1
lea ecx, [rdx + 1]
add qword [rbx + 0x68], 1
mov dword [rbx + 0x7c], ecx
mov ecx, eax
and ecx, 4
or ecx, edx
je 0x14007cdf0
mov rax, qword [r13 + 0x48]
add dword [r13 + 0x20], 1
mov qword [rsi + 0x68], 0
test rax, rax
je 0x14007ce20
mov rdx, qword [rax + 0x68]
mov qword [rsi + 0x68], rdx
mov qword [rax + 0x68], rsi
mov qword [r13 + 0x48], rsi
jmp 0x14007cd45
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14007ccf7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
test eax, eax
je 0x14007cd45
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400605e0
mov edx, eax
or edx, 4
mov dword [rbx + 0x58], edx
test al, 8
je 0x14007cd83
mov rax, qword [rbx + 8]
add dword [rax + 8], 1
jmp 0x14007cd83
mov rdx, qword [0x140234280]
jmp 0x14007cc75
mov qword [rsi + 0x68], rsi
mov qword [r13 + 0x48], rsi
jmp 0x14007cd45
mov eax, 0xfffff019
jmp 0x14007cd47
Function at 0x14007ce40
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe8
mov ebp, dword [rsp + 0x150]
lea r12, [rsp + 0x60]
mov rbx, rcx
mov rsi, rdx
mov rcx, r9
mov rdx, r12
mov edi, r8d
call fcn.14007fec0
test eax, eax
jne 0x14007cf2a
cmp qword [rbx + 0x68], 0
jne 0x14007d003
test byte [rbx + 0x59], 0x20
jne 0x14007cee8
cmp ebp, 0x10
je 0x14007cf80
cmp ebp, 0x1c
jne 0x14007cff9
mov r13, qword [0x140234290]
mov rcx, qword [rbx + 0x70]
mov dword [rsp + 0x5c], 0
movzx eax, word [r13]
cmp rcx, 0xffffffffffffffff
je 0x14007cfb0
cmp word [r13], 0x17
je 0x14007cf50
mov r8d, ebp
mov rdx, r13
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14007cf90
or dword [rbx + 0x58], 0x2000
mov rcx, qword [rbx + 0x70]
mov rdx, rsi
mov dword [rsp + 0x30], ebp
lea r9, [rsp + 0x5c]
mov qword [rsp + 0x40], 0
mov r8d, edi
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASendTo]
mov edx, eax
mov eax, dword [rsp + 0x5c]
test edx, edx
jne 0x14007cf40
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400605e0
jmp 0x14007cf2a
lea r9, [rsp + 0x5c]
mov r8d, 0x1b
mov edx, 0x29
or dword [rbx + 0x58], 0x400000
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x70]
jmp 0x14007cecc
mov r13, qword [0x140234280]
jmp 0x14007cea5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
test eax, eax
je 0x14007cee8
mov ecx, r14d
call fcn.1400605e0
jmp 0x14007cf2a
movzx ecx, ax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14007cf90
mov rcx, qword [rbx + 8]
movzx r9d, word [r13]
mov r8, rax
mov rdx, rbx
call fcn.14007b5f0
mov r14d, eax
test eax, eax
jne 0x14007cfee
mov rcx, qword [rbx + 0x70]
jmp 0x14007cec0
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14007cfa1
mov eax, 0xfffff019
jmp 0x14007cf2a
mov eax, 0xfffff008
jmp 0x14007cf2a
Function at 0x14007d300
Capabilities:
Get common file path

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
mov rsi, rcx
mov rbx, rdx
test rcx, rcx
je 0x14007d450
test rdx, rdx
je 0x14007d450
lea rdi, [rsp + 0x40]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14007d408
cmp eax, 0x104
ja 0x14007d457
mov edx, eax
xor ecx, ecx
mov word [rsp + rdx*2 + 0x40], cx
lea edx, [rax - 1]
cmp word [rsp + rdx*2 + 0x40], 0x5c
je 0x14007d428
xor edx, edx
mov r9d, 0xffffffff
mov r8, rdi
mov ecx, 0xfde9
mov qword [rsp + 0x38], 0
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rbp
test eax, eax
je 0x14007d408
mov rdx, qword [rbx]
mov ecx, edx
cmp edx, eax
jl 0x14007d45e
cmp rdx, 0x7fffffff
mov eax, 0x7fffffff
mov r8, rdi
mov qword [rsp + 0x38], 0
cmova ecx, eax
mov qword [rsp + 0x20], rsi
xor edx, edx
mov r9d, 0xffffffff
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], ecx
mov ecx, 0xfde9
call rbp
test eax, eax
je 0x14007d408
sub eax, 1
cdqe
mov qword [rbx], rax
xor eax, eax
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400605e0
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 3
je 0x14007d440
xor eax, eax
mov word [rsp + rdx*2 + 0x40], ax
jmp 0x14007d361
cmp word [rsp + 0x42], 0x3a
jne 0x14007d42d
jmp 0x14007d361
mov eax, 0xfffff019
jmp 0x14007d3f8
mov eax, 0xfffff01a
jmp 0x14007d3f8
cdqe
mov qword [rbx], rax
mov eax, 0xfffff024
jmp 0x14007d3f8
Function at 0x14007d470
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push rbx
sub rsp, 0x250
mov r8, rcx
test rcx, rcx
je 0x14007d5af
lea rbx, [rsp + 0x40]
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rbx
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14007d558
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x14007d578
mov rdx, rbx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x14007d578
cmp rax, 0x104
ja 0x14007d5b6
cmp word [rsp + rax*2 + 0x3e], 0x5c
lea rdx, [rax - 1]
je 0x14007d588
cmp rax, 1
jbe 0x14007d548
cmp word [rsp + 0x42], 0x3a
jne 0x14007d548
movzx eax, word [rsp + 0x40]
lea edx, [rax - 0x41]
cmp dx, 0x19
jbe 0x14007d51f
lea edx, [rax - 0x61]
cmp dx, 0x19
ja 0x14007d548
sub eax, 0x20
mov edx, 0x3d
mov word [rsp + 0x3a], ax
lea rcx, [rsp + 0x38]
mov word [rsp + 0x38], dx
mov rdx, rbx
mov dword [rsp + 0x3c], 0x3a
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x14007d578
xor eax, eax
add rsp, 0x250
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp eax, 0x7a
je 0x14007d5a8
call fcn.1400605e0
add rsp, 0x250
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x14007d565
cmp rax, 3
je 0x14007d4fd
xor ecx, ecx
mov rax, rdx
mov word [rsp + rdx*2 + 0x40], cx
jmp 0x14007d4f7
mov eax, 0xfffff020
jmp 0x14007d56a
mov eax, 0xfffff019
jmp 0x14007d56a
mov eax, 0xfffff01a
jmp 0x14007d56a

Function at 0x14007d5d0
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x68
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov edx, eax
mov rax, 0xffffffffffffffff
test edx, edx
je 0x14007d5f9
mov rax, qword [rsp + 0x30]
add rsp, 0x68
ret

Function at 0x14007d600
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x68
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov edx, eax
mov rax, 0xffffffffffffffff
test edx, edx
je 0x14007d629
mov rax, qword [rsp + 0x28]
add rsp, 0x68
ret

Function at 0x14007d640
Capabilities:
Enumerate processes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x260
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 2
mov esi, eax
mov dword [rsp + 0x20], 0x238
lea rdi, [rsp + 0x20]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x14007d68f
jmp 0x14007d6b0
mov rdx, rdi
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x14007d6b0
cmp dword [rsp + 0x28], esi
jne 0x14007d680
mov esi, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
add rsp, 0x260
pop rbx
pop rsi
pop rdi
ret
mov esi, 0xffffffff
jmp 0x14007d699