joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000376c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor edi, edi
mov ebp, r8d
mov rax, rdx
mov r14, rcx
test rdx, rdx
je 0x14000374c
cmp word [rdx], di
je 0x14000374c
mov qword [r11 - 0x38], rdi
lea r12d, [rdi + 1]
mov r8d, r12d
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140003747
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd r15, eax
test eax, eax
jle 0x14000373e
mov ecx, ebp
call fcn.140038488
mov rsi, rax
test rax, rax
je 0x14000373e
lea edx, [rdi + 2]
cmp ebp, 0xffffffff
mov rcx, r14
cmovne edx, ebp
call fcn.140001a38
mov rbx, rax
test rax, rax
je 0x140003733
mov qword [rax + 0x40], rsi
lea r8, [r15 + 0x10]
mov qword [rbx + 0x60], rdi
cmp r14, 0xffffffffffffffff
mov dword [rbx + 0x68], edi
cmove r14, rax
mov dword [rbx + 0x20], edi
mov qword [rax + 0x48], r14
xor edx, edx
mov rax, qword [rax + 8]
mov qword [rbx + 0x58], rax
mov rcx, qword [0x140224818]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 0x38], rax
mov rcx, rax
test rax, rax
je 0x140003663
lea eax, [r15 + 0x10]
mov dword [rcx + 8], eax
mov rax, qword [rbx + 0x38]
mov qword [rax], rdi
mov rax, qword [rbx + 0x38]
add rax, 0x10
mov qword [rbx + 0x70], rax
cmp ebp, 0xffffffff
je 0x14000366c
mov dword [rbx + 0x50], r12d
mov rdx, rbx
mov rcx, rsi
call fcn.14002e380
mov ebp, edi
mov r14d, 0x4000
lea eax, [r14 + rbp]
cmp eax, r15d
jle 0x14000368e
mov r14d, r15d
sub r14d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.14002e3a0
mov r12, rax
test rax, rax
je 0x14000371d
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rdi
mov r8d, r14d
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x78]
cmp edx, r14d
jne 0x140003709
add ebp, edx
cmp dword [rbx + 0x20], edi
jne 0x1400036d9
mov rcx, r12
call fcn.1400385c0
mov dword [rbx + 0x20], eax
mov edx, dword [rsp + 0x78]
mov rcx, rsi
cmp ebp, r15d
jl 0x1400036e9
mov r8d, 1
jmp 0x1400036ec
xor r8d, r8d
call fcn.14002e620
test eax, eax
je 0x1400036fc
cmp ebp, r15d
jl 0x14000367f
jmp 0x14000372f
mov rcx, rsi
call fcn.14002e780
mov dword [rbx + 0x24], eax
jmp 0x140003724
lea rax, str.file_read_error
mov dword [rbx + 0x24], 0x100
mov qword [rbx + 0x30], rax
jmp 0x14000372f
mov dword [rbx + 0x24], 1
mov rdx, rsi
mov rcx, rbx
call fcn.14003856c
mov qword [rbx + 0x40], rdi
mov rcx, rsi
call fcn.14002e860
mov rdi, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
jmp 0x14000374e
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
or r8d, 0xffffffff
jmp 0x140003550
Function at 0x14000399c
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rdx, qword [rcx + 0x20]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r8d, 0x1000
sub r8d, dword [rcx + 8]
mov rbx, rcx
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x1000
sub eax, dword [rbx + 8]
cmp dword [rsp + 0x40], eax
jne 0x1400039eb
mov rax, qword [rbx + 0x20]
mov qword [rbx], rax
mov eax, 1
mov dword [rbx + 8], 0x1000
jmp 0x1400039ed
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140004278
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x14000433c
lea rcx, [0x140226ba0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140226b80]
jmp 0x140004302
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400042ff
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140226b80]
mov rdx, rsi
call fcn.14003923c
jmp 0x140004302
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400042cf
mov rdi, qword [reloc.WS2_32.dll_accept]
lea rcx, [0x140226b80]
lea rdx, [rdi + 1]
mov qword [reloc.WS2_32.dll_accept], rdx
lea edx, [rbx + 0x20]
call fcn.1400391f8
lea rcx, [0x140226ba0]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140004450
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140004380
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140226ba0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140226b80]
jmp 0x14000448c
cmp qword [rbx + 0x18], rdi
je 0x140004493
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140004483
jmp 0x1400044ad
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140226b80]
call fcn.14003923c
lea rcx, [0x140226ba0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jl case.0x1400044be.6
invalid
in al, dx
sub al, ch
invalid
mov eax, 0x40159038
add dword [rax], eax
add byte [rax], al
add esp, 0x28
jne 0x140295691
dec dword [rax - 0x7d]
invalid
Function at 0x140008ee0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140226ecc], 0
mov rbx, rcx
jne 0x140008ef7
call fcn.140009260
mov ecx, dword [0x140226ec8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
test rax, rax
jne 0x140008f1f
call fcn.140009260
mov ecx, dword [0x140226ec8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
movsxd r9, dword [r11 + 4]
mov eax, reloc.WS2_32.dll_recv
movsxd r10, dword [r11]
mov r8d, dword [r11 + r10*4 + 0x4c]
mov edx, dword [r11 + r10*4 + 8]
ror r8d, 0xd
add r8d, dword [r11 + r9*4 + 0x4c]
ror edx, 5
add edx, dword [r11 + r9*4 + 8]
mov dword [r11 + r10*4 + 8], r8d
mov dword [r11 + r10*4 + 0x4c], edx
sub r10d, 1
cmovs r10d, eax
sub r9d, 1
mov dword [r11], r10d
cmovs r9d, eax
mov dword [r11 + 4], r9d
mov r9d, r8d
mov r8d, edx
add rbx, 1
je 0x140008f9f
mov rdx, rbx
mov eax, ebx
shr rdx, 0x20
imul rax, r9
mov rcx, rdx
imul rcx, r8
imul rdx, r9
shr rcx, 0x20
shr rax, 0x20
add rax, rcx
add rax, rdx
add rsp, 0x20
pop rbx
ret
shl r9, 0x20
and r9, r8
mov rax, r9
add rsp, 0x20
pop rbx
ret
Function at 0x14000ad94
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, qword [rcx + 0x10]
mov rdi, rcx
mov rcx, qword [rcx + 8]
xor ebx, ebx
mov esi, ebx
call fcn.140039b80
mov rcx, qword [rdi + 0x60]
mov r12, rax
call fcn.140039b80
mov r13, rax
call fcn.14005c890
mov rbp, rax
lea eax, [rbx + 1]
test rbp, rbp
je 0x14000af37
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov r8d, eax
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14000af2a
test byte [rdi + 0x40], 2
mov qword [rdi + 0x18], rax
jne 0x14000ae36
lea edx, [rbx + 0x34]
mov rcx, rbp
lea r8d, [rbx + 1]
call fcn.14005cb00
mov r8, qword [0x140226f68]
test r8, r8
je 0x14000ae4f
mov edx, 0x2714
mov rcx, rbp
call fcn.14005cb00
mov r8, qword [0x140226f70]
test r8, r8
je 0x14000ae85
cmp qword [0x140226f78], rbx
je 0x14000ae85
mov edx, 0x27bf
mov rcx, rbp
call fcn.14005cb00
mov r8, qword [0x140226f78]
mov edx, 0x27c0
mov rcx, rbp
call fcn.14005cb00
mov r8, r12
mov edx, 0x2712
mov rcx, rbp
call fcn.14005cb00
mov r8, r13
mov edx, 0x2722
mov rcx, rbp
call fcn.14005cb00
lea r8, [0x14000ad50]
mov edx, 0x4e2b
mov rcx, rbp
call fcn.14005cb00
mov r8, rdi
mov edx, 0x2711
mov rcx, rbp
call fcn.14005cb00
mov r8d, dword [rdi + 0x44]
mov edx, 0x9c
mov rcx, rbp
call fcn.14005cb00
mov r8d, dword [rdi + 0x48]
mov edx, 0x9b
mov rcx, rbp
call fcn.14005cb00
mov edx, 0x63
mov rcx, rbp
lea r8d, [rdx - 0x62]
call fcn.14005cb00
mov rcx, rbp
call fcn.14005c950
test eax, eax
jne 0x14000af14
cmp dword [rdi + 4], 0xfffffffb
mov eax, 1
cmovne esi, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x14000af2a
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rbp
call fcn.14005cae0
mov eax, 1
cmp esi, eax
jne 0x14000af44
mov dword [rdi + 4], 0xfffffffe
jmp 0x14000af51
cmp dword [rdi + 4], 0xfffffffb
setne bl
add ebx, 0xfffffffc
mov dword [rdi + 4], ebx
mov rcx, r12
call fcn.140039c60
mov rcx, r13
call fcn.140039c60
lea r11, [rsp + 0x40]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000b098
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
mov r12, r9
mov rcx, qword [0x140226f80]
mov r14d, r8d
mov rsi, rdx
xor ebx, ebx
call fcn.14002c6f4
mov r15, rax
test rbp, rbp
je 0x14000b07e
test rsi, rsi
je 0x14000b07e
mov rcx, qword [0x140224818]
lea edx, [rbx + 8]
mov r8d, 0x98
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rbp
mov rdi, rax
or dword [rax + 4], 0xffffffff
mov dword [rax], ebx
call fcn.14005c80c
mov rcx, rsi
mov qword [rdi + 8], rax
call fcn.14005c80c
mov rcx, r12
mov qword [rdi + 0x10], rax
call fcn.14005c80c
mov qword [rdi + 0x60], rax
mov eax, dword [r15]
mov dword [rdi + 0x44], eax
mov eax, dword [r15 + 4]
mov dword [rdi + 0x48], eax
mov dword [rdi + 0x40], r14d
test r14b, 1
je 0x14000b06b
lea rax, [rsp + 0x60]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x14000af84]
mov edx, 0x10000
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14000b076
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, rdi
jmp 0x14000b07e
mov rcx, rdi
call fcn.14000ad94
movsxd rbx, eax
mov rcx, rdi
call fcn.14005eee0
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea r9, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
xor r8d, r8d
jmp 0x14000af94

Function at 0x14000b384
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [fcn.14000b2a0]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.14002dbbc
xor r8d, r8d
mov qword [0x140226fb0], rax
xor edx, edx
mov ecx, ebx
call fcn.14002c78c
xor ebx, ebx
mov qword [0x140226fc0], rax
cmp word [0x140226fa8], bx
jne 0x14000b4a7
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x14000b3ec
movzx eax, di
jmp 0x14000b3ee
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x140226fa8], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140226fb8], rax
test rax, rax
je 0x14000b4a7
lea rdx, [0x14013af90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140226fb8]
lea rdx, [0x14013afa0]
mov qword [0x140226f88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140226fb8]
lea rdx, str.getnameinfo
mov qword [0x140226f90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140226fb8]
lea rdx, str.WSAStringToAddressA
mov qword [0x140226f98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140226f88], rbx
mov qword [0x140226fa0], rax
je 0x14000b4a7
cmp qword [0x140226f90], rbx
je 0x14000b4a7
cmp qword [0x140226f98], rbx
je 0x14000b4a7
mov ecx, dword [0x140226fac]
test rax, rax
cmovne ecx, edi
mov dword [0x140226fac], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x14000b4c0
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, edx
mov rbx, rcx
mov rdx, rcx
xor edi, edi
mov rcx, qword [0x140226fb0]
mov r14d, r8d
mov ebp, edi
call fcn.14002d99c
mov rsi, rax
test rax, rax
je 0x14000b60c
cmp r12d, 0xffff
ja 0x14000b5f5
mov r15d, r14d
mov r13d, r14d
btr r15d, 0x1c
and r13d, 0x10000000
mov eax, r13d
cmove r15d, r14d
neg eax
lea eax, [rdi + 1]
sbb ecx, ecx
and ecx, 0x15
add ecx, 2
test r15d, r15d
cmove r15d, eax
xor r8d, r8d
mov edx, r15d
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14000b5f5
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 1
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jle 0x14000b5ec
mov rax, qword [rsp + 0x88]
lea r8, [rsi + 8]
mov ecx, edi
mov dword [rsp + 0x28], r12d
test r13d, r13d
mov qword [rsp + 0x20], rax
mov r9, r8
mov rdx, r14
setne cl
call fcn.14005f0f4
test eax, eax
je 0x14000b5ec
lea r12d, [rdi + 1]
cmp r15d, r12d
jne 0x14000b5c8
lea edx, [rdi + 0x64]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
cmove ebp, r12d
test rbp, rbp
je 0x14000b5ec
test r13d, r13d
mov qword [rsi], r14
mov word [rsi + 0x24], r15w
mov rbp, rsi
setne dil
cmp rbx, 0xffffffffffffffff
mov word [rsi + 0x26], di
cmove rbx, rsi
mov qword [rsi + 0x28], rbx
jmp 0x14000b60c
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [0x140226fb0]
cmp rbx, 0xffffffffffffffff
cmove rbx, rsi
mov rdx, rbx
call fcn.14002db50
lea r11, [rsp + 0x40]
mov rax, rbp
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14000b648
Capabilities:
Get hostname
Resolve dns

Disassembly:
xor ecx, ecx
jmp 0x14000b650
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x120
and dword [0x140227000], 0
mov edi, ecx
and qword [0x140226ff8], 0
mov edx, 0xff
and qword [0x140227008], 0
xor ebx, ebx
mov dword [0x140226fd0], ecx
lea rcx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x14000b711
cmp edi, 0x10000000
jne 0x14000b6e7
cmp dword [0x140226fac], ebx
je 0x14000b711
mov rcx, qword [0x140226fc8]
test rcx, rcx
je 0x14000b6bb
call qword [0x140226f90]
and qword [0x140226fc8], rbx
lea r9, [0x140226fc8]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [0x140226f88]
test rax, rax
jne 0x14000b711
mov rax, qword [0x140226fc8]
mov qword [0x140227008], rax
jmp 0x14000b70c
lea rcx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x14000b711
mov r8d, 0x20
lea rcx, [0x140226fe0]
mov rdx, rax
call fcn.14002ce50
mov ebx, 1
mov rax, rbx
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret
Function at 0x14000b87c
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x940]
sub rsp, 0xa40
xor ebx, ebx
mov rdi, rcx
cmp dword [rcx], 1
jne 0x14000b928
movsxd rcx, dword [rcx + 8]
lea rax, [rbp + 0x958]
mov rdi, rcx
mov qword [rsp + 0x38], rcx
inc ecx
mov dword [rsp + 0x30], 1
xor r9d, r9d
mov qword [rbp + 0x958], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x14000b921
je 0x14000b991
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14000b991
lea r8, [rbp + 0x950]
mov edx, 0x4004667f
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x14000b921
cmp dword [rbp + 0x950], ebx
lea ebx, [rax + 2]
jne 0x14000b991
mov ebx, 4
jmp 0x14000b991
mov rcx, qword [rcx + 0x30]
lea rdx, [rbp + 0x140]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov r8d, 0x800
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rbp + 0x950], eax
test eax, eax
jle 0x14000b991
mov rcx, qword [0x140224818]
xor edx, edx
movsxd r8, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movsxd rcx, dword [rbp + 0x950]
lea rdx, [rbp + 0x140]
mov dword [rdi + 0x40], ecx
mov r8, rcx
mov rcx, rax
mov qword [rdi + 0x38], rax
mov qword [rdi + 0x48], rax
call fcn.14002ce50
mov ebx, 2
lea r11, [rsp + 0xa40]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000ba84
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 rdi, rcx
xor esi, esi
mov rcx, qword [0x140226fc0]
mov r15d, esi
call fcn.14002c6f4
mov rcx, qword [rdi]
lea r12d, [rsi + 1]
mov r14, rax
cmp word [rdi + 0x24], r12w
jne 0x14000bb0d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000bc8b
lea rcx, [rdi + 0x30]
lea edx, [rsi + 0x28]
call fcn.1400391f8
mov rcx, rax
mov r15d, r12d
mov dword [rax], r12d
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [rdi + 0x28]
mov qword [r14 + 8], rax
mov qword [r14], rcx
jmp 0x14000bc8b
xor r9d, r9d
lea rdx, [rsp + 0x60]
mov ebx, reloc.WS2_32.dll_recv
mov r8d, 0x800
cmp word [rdi + 0x26], si
je 0x14000bb43
lea rax, [rbp + 0x7a0]
mov dword [rbp + 0x7a0], 0x1c
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
jmp 0x14000bb5a
lea rax, [rbp + 0x7a8]
mov dword [rbp + 0x7a8], ebx
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 0x14000bc8b
mov rsi, qword [rdi + 0x30]
mov r15d, 2
xor eax, eax
test rsi, rsi
je 0x14000bbbe
lea rcx, [rsi + 0x14]
cmp word [rdi + 0x26], ax
je 0x14000bb99
movsxd r8, dword [rbp + 0x7a0]
lea rdx, [rsp + 0x40]
jmp 0x14000bba5
movsxd r8, dword [rbp + 0x7a8]
lea rdx, [rsp + 0x30]
call fcn.140039880
test eax, eax
je 0x14000bbb3
mov rsi, qword [rsi]
jmp 0x14000bb7a
mov rax, rsi
add rbx, rax
test rsi, rsi
jne 0x14000bc0d
mov edx, 0x60
lea rcx, [rdi + 0x30]
call fcn.1400391f8
mov rbx, rax
xor r8d, r8d
mov dword [rax], r15d
mov qword [rax + 0x28], rdi
mov al, byte [rdi + 0x26]
mov byte [rbx + 0x20], al
cmp word [rdi + 0x26], r8w
je 0x14000bc03
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx + 4], xmm0
movsd xmm1, qword [rsp + 0x50]
movsd qword [rbx + 0x14], xmm1
mov eax, dword [rsp + 0x58]
mov dword [rbx + 0x1c], eax
jmp 0x14000bc0d
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rbx + 4], xmm0
mov r8, qword [rbx + 0x38]
movsxd rsi, r12d
test r8, r8
jne 0x14000bc49
mov rcx, qword [0x140224818]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8, rsi
mov dword [rbx + 0x40], r12d
mov rcx, rax
mov qword [rbx + 0x38], rax
lea rdx, [rsp + 0x60]
mov qword [rbx + 0x48], rax
call fcn.14002ce50
jmp 0x14000bc80
mov ecx, dword [rbx + 0x40]
mov edx, 8
add ecx, r12d
movsxd r9, ecx
mov rcx, qword [0x140224818]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movsxd rcx, dword [rbx + 0x40]
lea rdx, [rsp + 0x60]
add rcx, rax
mov qword [rbx + 0x38], rax
mov r8, rsi
call fcn.14002ce50
add dword [rbx + 0x40], r12d
mov qword [r14], rbx
mov rcx, qword [rdi + 0x28]
mov qword [r14 + 8], rcx
mov rbx, qword [rsp + 0x8b0]
mov eax, r15d
add rsp, 0x860
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000c280
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
mov rax, rdx
cmp dword [rcx], 1
mov rdi, rcx
jne 0x14000c2ad
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
jmp 0x14000c2f5
cmp qword [rcx + 0x38], rsi
je 0x14000c2f5
cmp r8d, dword [rcx + 0x40]
mov esi, r8d
mov rdx, qword [rcx + 0x48]
cmovg esi, dword [rcx + 0x40]
mov rcx, rax
movsxd rbx, esi
mov r8, rbx
call fcn.14002ce50
sub dword [rdi + 0x40], esi
add qword [rdi + 0x48], rbx
cmp dword [rdi + 0x40], 0
jne 0x14000c2f5
mov r8, qword [rdi + 0x38]
xor edx, edx
mov rcx, qword [0x140224818]
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 0x14000c308
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x38
cmp dword [rcx], 1
mov r10, rdx
jne 0x14000c323
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
jmp 0x14000c35b
mov al, byte [rcx + 0x20]
lea r9, [rcx + 4]
neg al
mov rax, qword [rcx + 0x28]
sbb edx, edx
and edx, 0xc
add edx, 0x10
test rax, rax
je 0x14000c342
mov rcx, qword [rax]
jmp 0x14000c346
mov rcx, qword [rcx + 0x30]
mov dword [rsp + 0x28], edx
mov rdx, r10
mov qword [rsp + 0x20], r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
add rsp, 0x38
ret
Function at 0x14000d7a4
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rbx, rdx
mov rdi, rcx
mov rcx, qword [rcx]
lea rdx, [rbp - 0x10]
xor r12d, r12d
mov r13d, r12d
call qword [sym.imp.USER32.dll_GetClientRect]
test rbx, rbx
jne 0x14000d7f2
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
lea r13d, [r12 + 1]
mov rdx, qword [rdi]
mov rcx, rbx
call fcn.1400606ac
test byte [rdi + 0x28], 8
mov qword [rbp + 0x30], rax
je 0x14000d926
call qword [sym.imp.USER32.dll_GetFocus]
cmp qword [rdi], rax
jne 0x14000d926
mov r15d, dword [rbp - 8]
mov r14d, dword [rbp - 4]
sub r15d, dword [rbp - 0x10]
sub r14d, dword [rbp - 0xc]
test r15d, r15d
jle 0x14000d978
test r14d, r14d
jle 0x14000d978
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rsi, rax
test rax, rax
je 0x14000d978
mov r8d, r14d
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r12, rax
test rax, rax
je 0x14000d91b
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov r9, qword [rdi + 0x20]
xor eax, eax
test r9, r9
je 0x14000d8b0
mov dword [rsp + 0x48], 4
xor r8d, r8d
mov dword [rsp + 0x40], eax
xor edx, edx
mov dword [rsp + 0x38], eax
mov rcx, rsi
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DrawStateW]
jmp 0x14000d8c8
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
lea rdx, [rbp - 0x10]
add dword [rbp - 0xc], 2
mov rcx, rsi
sub dword [rbp - 8], 2
sub dword [rbp - 4], 2
call qword [sym.imp.USER32.dll_DrawFocusRect]
mov dword [rsp + 0x40], 0xcc0020
mov r9d, r15d
and dword [rsp + 0x38], 0
xor r8d, r8d
and dword [rsp + 0x30], 0
xor edx, edx
mov qword [rsp + 0x28], rsi
mov rcx, rbx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.GDI32.dll_BitBlt]
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x14000d978
mov r9, qword [rdi + 0x20]
test r9, r9
je 0x14000d960
mov dword [rsp + 0x48], 4
xor r8d, r8d
mov dword [rsp + 0x40], r12d
xor edx, edx
mov dword [rsp + 0x38], r12d
mov rcx, rbx
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.USER32.dll_DrawStateW]
jmp 0x14000d978
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
lea rdx, [rbp - 0x10]
mov rcx, rbx
mov r8, rax
call qword [sym.imp.USER32.dll_FillRect]
mov rdx, qword [rbp + 0x30]
mov rcx, rbx
call fcn.140060818
test r13d, r13d
je 0x14000d995
mov rcx, qword [rdi]
mov rdx, rbx
call qword [sym.imp.USER32.dll_ReleaseDC]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret