joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140024dc8
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x14017dac0]
call fcn.14004e198
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x140024e48
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140024e0d
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x140024e48
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.14004f9f0
lea r8d, [rdi + 1]
mov word [rax], bp
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rbx
call sub.msvcrt.dll_wcslen
sub edi, eax
mov ecx, edi
call fcn.14004fb30
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140024fa4
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea edi, [rbx + 1]
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov esi, 0x8000
lea ecx, [rdi + 1]
test si, ax
cmovne ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140024fdc
or ebx, 2
mov ecx, 4
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140024fef
or ebx, 4
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140025648
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rbx, rcx
mov rcx, qword [rcx]
mov rdi, rdx
lea rdx, [rbp - 0x10]
xor r13d, r13d
mov r12d, r13d
call qword [sym.imp.USER32.dll_GetClientRect]
test rdi, rdi
jne 0x140025695
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_GetDC]
lea r12d, [r13 + 1]
mov rdi, rax
test byte [rbx + 0x28], 8
je 0x1400257ba
call qword [sym.imp.USER32.dll_GetFocus]
cmp qword [rbx], rax
jne 0x1400257ba
mov r15d, dword [rbp - 8]
mov r14d, dword [rbp - 4]
sub r15d, dword [rbp - 0x10]
sub r14d, dword [rbp - 0xc]
test r15d, r15d
jle 0x14002580c
test r14d, r14d
jle 0x14002580c
mov rcx, rdi
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rsi, rax
test rax, rax
je 0x14002580c
mov r8d, r14d
mov edx, r15d
mov rcx, rdi
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r13, rax
test rax, rax
je 0x1400257af
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov r9, qword [rbx + 0x20]
xor eax, eax
test r9, r9
je 0x140025744
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DrawStateW]
jmp 0x14002575c
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
lea rdx, [rbp - 0x10]
mov rcx, rsi
mov r8, rax
call qword [sym.imp.USER32.dll_FillRect]
add dword [rbp - 0x10], 2
add dword [rbp - 0xc], 2
sub dword [rbp - 8], 2
sub dword [rbp - 4], 2
lea rdx, [rbp - 0x10]
mov rcx, rsi
call qword [sym.imp.USER32.dll_DrawFocusRect]
mov dword [rsp + 0x40], 0xcc0020
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
mov r9d, r15d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r14d
call qword [sym.imp.GDI32.dll_BitBlt]
mov rcx, r13
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x14002580c
mov r9, qword [rbx + 0x20]
test r9, r9
je 0x1400257f4
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.USER32.dll_DrawStateW]
jmp 0x14002580c
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
lea rdx, [rbp - 0x10]
mov rcx, rdi
mov r8, rax
call qword [sym.imp.USER32.dll_FillRect]
test r12d, r12d
je 0x14002581d
mov rcx, qword [rbx]
mov rdx, rdi
call qword [sym.imp.USER32.dll_ReleaseDC]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14002583c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14d, r9d
mov r15d, r8d
mov r12, rdx
mov rdi, rcx
xor ebp, ebp
call qword [sym.imp.USER32.dll_GetMessagePos]
mov rcx, qword [rdi]
lea edx, [rbp - 0xc]
mov ebx, eax
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov rcx, qword [rdi]
mov r13, rax
call fcn.14002bfa4
mov rcx, rax
call fcn.14002cfc0
mov rcx, qword [0x14017b680]
mov qword [rsp + 0x30], rax
call fcn.14004e404
movsx ecx, bx
mov dword [rsp + 0x70], ecx
shr ebx, 0x10
lea rdx, [rsp + 0x70]
movsx ecx, bx
mov rsi, rax
mov dword [rsp + 0x74], ecx
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_ScreenToClient]
lea ecx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, 0x8000
test bx, ax
lea eax, [rbp + 1]
lea ecx, [rax + 0x11]
cmovne ebp, eax
call qword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
je 0x1400258e8
or ebp, 2
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
je 0x1400258fb
or ebp, 4
mov eax, dword [rsp + 0x70]
mov dword [rsi], eax
mov eax, dword [rsp + 0x74]
mov dword [rsi + 4], eax
call fcn.140024fa4
mov r8, qword [rsp + 0x30]
mov dword [rsi + 8], eax
movzx eax, word [rsp + 0x90]
mov r9, r12
mov dword [rsi + 0x18], eax
lea rax, [0x14002596c]
mov rdx, r13
mov qword [rsp + 0x28], rax
mov ecx, 0x332c
mov dword [rsi + 0xc], r15d
mov qword [rsp + 0x20], rsi
mov dword [rsi + 0x10], ebp
mov dword [rsi + 0x14], r14d
call fcn.140034300
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14002e83c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetFocus]
mov rbx, rax
test rax, rax
je 0x14002e908
mov ecx, 9
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x14002e908
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x14002e908
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x14002e908
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x14002e908
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rdx, str.RichE
lea rcx, [rsp + 0x20]
mov r8d, 5
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x14002e8e9
lea rdx, str.RICHE
lea rcx, [rsp + 0x20]
mov r8d, 4
call sub.msvcrt.dll_wcsncmp
test eax, eax
jne 0x14002e908
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x14002e9b2
test rdi, rdi
je 0x14002e947
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x14002e93a
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x14002e93a
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x14002e947
mov edx, 1
mov rcx, rdi
call fcn.14002e9c0
test rbx, rbx
je 0x14002e961
lea rdx, str.PB_Hotkey
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x14002e9b2
lea rdx, str.PB_WindowID
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
mov rbx, rax
test rax, rax
je 0x14002e9b2
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x14002e9b2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x58], eax
jne 0x14002e9b2
mov rcx, qword [0x14017dbc0]
lea rdx, [rbx - 1]
call fcn.14004e198
test rax, rax
je 0x14002e9b2
mov rax, qword [rax + 0x10]
jmp 0x14002e9b4
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14002f704
Capabilities:
Create thread

Disassembly:
xor r9d, r9d
jmp 0x14002f704
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov r14d, r9d
mov rbp, r8
mov rsi, rdx
test r8, r8
je 0x14002f7fd
test rdx, rdx
je 0x14002f7fd
mov rdx, rcx
mov rcx, qword [0x14017dc80]
call fcn.14004e198
mov rdi, rax
test rax, rax
je 0x14002f7fd
or qword [rax + 0x40], 0xffffffffffffffff
test r14d, r14d
je 0x14002f7ed
mov rcx, qword [0x14017aba8]
lea r8d, [rbx + 0x18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdx, rsi
lea rcx, [rax + 8]
mov r14, rax
mov qword [rax], rdi
call fcn.14004f6b0
lea rcx, [r14 + 0x10]
mov rdx, rbp
call fcn.14004f6b0
lea rax, [rsp + 0x60]
lea r8, [0x14002f9e0]
mov qword [rsp + 0x28], rax
mov r9, r14
mov edx, 0x4000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14002f7c7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
jmp 0x14002f7fd
mov rcx, qword [r14 + 8]
call fcn.14004f680
mov rcx, qword [r14 + 0x10]
call fcn.14004f680
mov rcx, qword [0x14017aba8]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14002f7fd
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call fcn.14002f814
mov ebx, eax
mov rbp, qword [rsp + 0x58]
movsxd rax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14002f814
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
mov eax, 0x1090
call fcn.14001cca0
sub rsp, rax
mov rdi, rcx
mov rcx, r8
mov rbx, rdx
xor esi, esi
xor ebp, ebp
call fcn.140107120
and qword [rsp + 0x30], rsi
lea r8d, [rsi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x28], pe_nt_image_headers64
mov r14, rax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
test rax, rax
je 0x14002f9ae
lea r8, [0x1401229ec]
lea rdx, str.TYPE
mov rcx, rdi
call fcn.1400303b4
test rax, rax
je 0x14002f9a5
lea rdx, [0x1401229d4]
mov rcx, rdi
call fcn.1400302a4
test rax, rax
je 0x14002f9a5
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400305bc
test rax, rax
je 0x14002f9a5
lea rdx, str.STOR
mov r8, r14
mov rcx, rdi
call fcn.1400303b4
test rax, rax
je 0x14002f98c
lea rdx, str.125_150
mov rcx, rdi
call fcn.1400302a4
test rax, rax
je 0x14002f98c
cmp dword [rdi + 0x30], esi
jne 0x14002f911
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14003052c
test rax, rax
je 0x14002f98c
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov ebp, 1
call fcn.1400307a4
test rax, rax
je 0x14002f98c
and qword [rdi + 0x40], rsi
and dword [rdi + 0x48], esi
and qword [rsp + 0x20], rsi
lea r9, [rsp + 0x10c8]
lea rdx, [rsp + 0x90]
mov r8d, 0x1000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, dword [rsp + 0x10c8]
test r8d, r8d
jle 0x14002f98a
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.1400303f8
test rax, rax
je 0x14002f98c
movsxd rax, dword [rsp + 0x10c8]
add qword [rdi + 0x40], rax
cmp dword [rdi + 0x48], esi
je 0x14002f92f
jmp 0x14002f98c
mov esi, ebp
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14003078c
test ebp, ebp
je 0x14002f9a5
mov rcx, rdi
call fcn.140030384
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call fcn.140107110
lea r11, [rsp + 0x1090]
mov ecx, esi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
neg ecx
sbb rdx, rdx
mov eax, esi
add rdx, 0xfffffffffffffffe
mov qword [rdi + 0x40], rdx
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14002fdec
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov r14d, r9d
mov rsi, r8
mov rbp, rdx
test rdx, rdx
je 0x14002fee5
test r8, r8
je 0x14002fee5
mov rdx, rcx
mov rcx, qword [0x14017dc80]
call fcn.14004e198
mov rdi, rax
test rax, rax
je 0x14002fee5
or qword [rax + 0x40], 0xffffffffffffffff
test r14d, r14d
je 0x14002fed5
mov rcx, qword [0x14017aba8]
lea r8d, [rbx + 0x18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdx, rsi
lea rcx, [rax + 8]
mov r14, rax
mov qword [rax], rdi
call fcn.14004f6b0
lea rcx, [r14 + 0x10]
mov rdx, rbp
call fcn.14004f6b0
lea rax, [rsp + 0x58]
lea r8, [0x1400300dc]
mov qword [rsp + 0x28], rax
mov r9, r14
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14002feaf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
jmp 0x14002fee5
mov rcx, qword [r14 + 8]
call fcn.14004f680
mov rcx, qword [r14 + 0x10]
call fcn.14004f680
mov rcx, qword [0x14017aba8]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14002fee5
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call fcn.14002fefc
mov ebx, eax
mov rbp, qword [rsp + 0x60]
movsxd rax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14002fefc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
mov eax, 0x1090
call fcn.14001cca0
sub rsp, rax
mov rbx, rcx
mov rcx, rdx
mov rbp, r8
xor esi, esi
xor edi, edi
call fcn.140107120
lea r8, [0x1401229ec]
lea rdx, str.TYPE
mov rcx, rbx
mov r14, rax
call fcn.1400303b4
test rax, rax
je 0x1400300a8
lea rdx, [0x1401229d4]
mov rcx, rbx
call fcn.1400302a4
test rax, rax
je 0x1400300a8
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400305bc
test rax, rax
je 0x1400300a8
lea rdx, str.RETR
mov r8, r14
mov rcx, rbx
call fcn.1400303b4
test rax, rax
je 0x14003008f
lea rdx, str.125_150
mov rcx, rbx
call fcn.1400302a4
test rax, rax
je 0x14003008f
cmp dword [rbx + 0x30], esi
jne 0x14002ffc7
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14003052c
test rax, rax
je 0x14003008f
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov edi, 1
call fcn.1400307a4
test rax, rax
je 0x14003008f
and qword [rsp + 0x30], rsi
xor r9d, r9d
mov r8d, edi
mov edx, 0xc0000000
mov rcx, rbp
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
test rax, rax
je 0x14003008f
and qword [rbx + 0x40], rsi
and dword [rbx + 0x48], esi
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
mov r8d, 0x1000
call fcn.1400302b0
mov rsi, rax
jmp 0x140030080
cmp dword [rbx + 0x48], 0
jne 0x140030084
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x10c8]
lea rdx, [rsp + 0x90]
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, esi
lea rdx, [rsp + 0x90]
add qword [rbx + 0x40], rax
lea rcx, [rsp + 0x40]
mov r8d, 0x1000
call fcn.1400302b0
mov esi, eax
test eax, eax
jne 0x140030037
mov rcx, rbp
mov esi, edi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14003078c
test edi, edi
je 0x1400300a8
mov rcx, rbx
call fcn.140030384
mov rcx, r14
call fcn.140107110
lea r11, [rsp + 0x1090]
mov ecx, esi
mov rbp, qword [r11 + 0x28]
neg ecx
mov eax, esi
sbb rdx, rdx
add rdx, 0xfffffffffffffffe
mov qword [rbx + 0x40], rdx
mov rbx, qword [r11 + 0x20]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400305bc
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xb60]
sub rsp, 0xc60
xor ebx, ebx
mov r12, rdx
mov rdi, rcx
mov r15d, ebx
cmp dword [rcx + 0x30], ebx
je 0x1400306e1
lea r8, [0x140122967]
lea rdx, str.PASV
call fcn.1400303b4
lea r8, [rsp + 0x60]
lea rdx, [0x140122a30]
mov r9d, 0x400
mov rcx, rdi
call fcn.1400302c4
test rax, rax
je 0x14003076c
lea rdi, [rsp + 0x63]
cmp byte [rsp + 0x63], bl
je 0x14003076c
mov r14d, ebx
lea esi, [rbx + 1]
mov dl, byte [rdi]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x14003066f
mov rcx, rdi
cmp dl, 0x39
jg 0x140030657
add rdi, rsi
mov dl, byte [rdi]
cmp dl, 0x30
jge 0x140030648
mov byte [rdi], bl
call sub.msvcrt.dll_atoi
add r15d, esi
mov dword [rsp + r14*4 + 0x30], eax
add r14, rsi
cmp r14, 6
je 0x140030676
add rdi, rsi
cmp byte [rdi], bl
jne 0x14003063c
cmp r15d, 6
jne 0x14003076c
mov eax, dword [rsp + 0x3c]
mov r9d, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x38]
lea rdx, [0x140122a38]
lea rcx, [rbp + 0x360]
mov dword [rsp + 0x20], eax
call fcn.140107430
mov edx, dword [rsp + 0x40]
lea rcx, [rbp + 0x360]
shl edx, 8
add edx, dword [rsp + 0x44]
call fcn.140030bf4
mov qword [r12], rax
test rax, rax
je 0x14003076c
mov dword [r12 + 0x34], 5
mov ebx, esi
jmp 0x14003076c
xor edx, edx
or rcx, 0xffffffffffffffff
call fcn.1400315f4
mov qword [rdi + 0x10], rax
test rax, rax
je 0x14003076c
mov dword [rbp + 0xb90], reloc.WS2_32.dll_recv
mov rcx, qword [rax]
lea r8, [rbp + 0xb90]
lea rdx, [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_getsockname]
movzx ecx, word [rsp + 0x4a]
call qword [sym.imp.WS2_32.dll_ntohs]
lea rdx, str.127_0_0_1__d__d
lea rcx, [rsp + 0x60]
movzx eax, ax
movzx r9d, al
sar eax, 8
movzx r8d, al
call sub.msvcrt.dll_sprintf
lea r8, [rsp + 0x60]
lea rdx, str.PORT
mov rcx, rdi
call fcn.1400303b4
lea rdx, [0x1401229d4]
mov rcx, rdi
call fcn.1400302a4
mov esi, 1
test rax, rax
cmovne ebx, esi
lea r11, [rsp + 0xc60]
movsxd rax, ebx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140030918
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
xor ebx, ebx
cmp word [0x14017c8b8], bx
jne 0x140030a0b
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
mov word [0x14017c8b8], di
test eax, eax
je 0x140030959
mov word [0x14017c8b8], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14017c8e8], rax
test rax, rax
je 0x140030a0b
lea rdx, [0x140122a90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017c8e8]
lea rdx, [0x140122aa0]
mov qword [0x14017c8c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017c8e8]
lea rdx, str.getnameinfo
mov qword [0x14017c8d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017c8e8]
lea rdx, str.WSAStringToAddressA
mov qword [0x14017c8d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14017c8c8], rbx
mov qword [0x14017c8e0], rax
je 0x140030a0b
cmp qword [0x14017c8d0], rbx
je 0x140030a0b
cmp qword [0x14017c8d8], rbx
je 0x140030a0b
mov ecx, dword [0x14017c8bc]
test rax, rax
cmovne ecx, edi
mov dword [0x14017c8bc], ecx
movsx rax, word [0x14017c8b8]
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x140031150
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
cmp dword [rcx], 1
mov rax, rdx
mov rdi, rcx
jne 0x14003117d
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
jmp 0x1400311c5
cmp qword [rcx + 0x38], rsi
je 0x1400311c5
cmp r8d, dword [rcx + 0x40]
mov rdx, qword [rcx + 0x48]
mov esi, r8d
cmovg esi, dword [rcx + 0x40]
mov rcx, rax
movsxd rbx, esi
mov r8, rbx
call sub.msvcrt.dll_memcpy
sub dword [rdi + 0x40], esi
add qword [rdi + 0x48], rbx
cmp dword [rdi + 0x40], 0
jne 0x1400311c5
mov r8, qword [rdi + 0x38]
mov rcx, qword [0x14017aba8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 0x38], 0
mov rbx, qword [rsp + 0x30]
movsxd rax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400311d8
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x38
cmp dword [rcx], 1
mov r10d, r8d
mov r11, rdx
jne 0x1400311f6
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
jmp 0x140031234
cmp byte [rcx + 0x20], 0
lea r8, [rcx + 4]
mov edx, 0x1c
jne 0x14003120a
mov edx, reloc.WS2_32.dll_recv
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140031218
mov rcx, qword [rax]
jmp 0x14003121c
mov rcx, qword [rcx + 0x30]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r8
xor r9d, r9d
mov r8d, r10d
mov rdx, r11
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
add rsp, 0x38
ret
Function at 0x14003123c
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x760]
sub rsp, 0x860
mov rsi, rcx
mov rcx, qword [0x14017dcc0]
xor edi, edi
mov r14d, edi
call fcn.14004df94
mov rcx, qword [rsi]
lea r12d, [rdi + 1]
mov r15, rax
cmp word [rsi + 0x24], r12w
jne 0x1400312c5
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140031431
lea rcx, [rsi + 0x30]
lea edx, [rdi + 0x28]
call fcn.14004ec00
mov r14d, r12d
mov dword [rax], r12d
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rcx, rax
mov rax, qword [rsi + 0x28]
mov qword [r15 + 8], rax
mov qword [r15], rcx
jmp 0x140031431
xor r9d, r9d
mov r8d, 0x800
lea rdx, [rsp + 0x60]
cmp word [rsi + 0x26], di
je 0x1400312f6
lea rax, [rbp + 0x7a0]
mov dword [rbp + 0x7a0], 0x1c
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
jmp 0x140031311
lea rax, [rbp + 0x7a8]
mov dword [rbp + 0x7a8], reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
mov r12d, eax
test eax, eax
jle 0x140031431
mov rbx, qword [rsi + 0x30]
mov r14d, 2
test rbx, rbx
je 0x140031371
lea rcx, [rbx + 0x14]
cmp word [rsi + 0x26], di
je 0x14003134e
movsxd r8, dword [rbp + 0x7a0]
lea rdx, [rsp + 0x40]
jmp 0x14003135a
movsxd r8, dword [rbp + 0x7a8]
lea rdx, [rsp + 0x30]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140031368
mov rbx, qword [rbx]
jmp 0x140031331
lea rdi, [rbx + 0x10]
test rbx, rbx
jne 0x1400313ba
lea rcx, [rsi + 0x30]
mov edx, 0x60
call fcn.14004ec00
xor r8d, r8d
mov dword [rax], r14d
mov qword [rax + 0x28], rsi
mov rdi, rax
cmp word [rsi + 0x26], r8w
je 0x1400313b0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + 4], xmm0
movsd xmm1, qword [rsp + 0x50]
movsd qword [rax + 0x14], xmm1
mov eax, dword [rsp + 0x58]
mov dword [rdi + 0x1c], eax
jmp 0x1400313ba
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rax + 4], xmm0
mov r8, qword [rdi + 0x38]
mov rcx, qword [0x14017aba8]
test r8, r8
jne 0x1400313f6
movsxd rbx, r12d
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [rsp + 0x60]
mov r8, rbx
mov rcx, rax
mov qword [rdi + 0x38], rax
mov dword [rdi + 0x40], r12d
mov qword [rdi + 0x48], rax
call sub.msvcrt.dll_memcpy
jmp 0x140031426
mov eax, dword [rdi + 0x40]
mov edx, 8
add eax, r12d
movsxd r9, eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movsxd rcx, dword [rdi + 0x40]
lea rdx, [rsp + 0x60]
add rcx, rax
movsxd r8, r12d
mov qword [rdi + 0x38], rax
call sub.msvcrt.dll_memcpy
add dword [rdi + 0x40], r12d
mov qword [r15], rdi
mov rcx, qword [rsi + 0x28]
mov qword [r15 + 8], rcx
mov eax, r14d
mov rbx, qword [rsp + 0x8b0]
add rsp, 0x860
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret