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

Disassembly:
test edx, edx
js 0x140009514
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
sub rsp, 0x888
mov rax, qword [0x1400e3008]
xor rax, rsp
mov qword [rsp + 0x860], rax
cmp edx, dword [rcx + 0x438]
jge 0x1400094fd
mov qword [r11 - 0x18], rdi
movsxd rax, edx
imul rdi, rax, 0x218
add rdi, rcx
cmp dword [rdi + 8], 0
je 0x1400094f5
mov qword [r11 - 8], rbx
lea rcx, [rsp + 0x48]
mov qword [r11 - 0x10], rsi
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [rsp + 0x4e]
xor esi, esi
cmp eax, dword [rdi + 0x10c]
jne 0x140009363
movzx eax, word [rsp + 0x4a]
cmp eax, dword [rdi + 0x110]
jne 0x140009363
movzx eax, word [rsp + 0x48]
cmp eax, dword [rdi + 0x114]
je 0x140009424
mov rcx, qword [rdi + 0x218]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, word [rsp + 0x4e]
lea r8, [rdi + 0xc]
movzx eax, word [rsp + 0x4a]
lea rcx, [rdi + 0x118]
movzx r9d, word [rsp + 0x48]
mov dword [rsp + 0x28], edx
mov dword [rdi + 0x10c], edx
lea rdx, str.._s_04d__02d__02d.txt
mov dword [rdi + 0x110], eax
mov dword [rdi + 0x114], r9d
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_wsprintfA]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], pe_nt_image_headers64
lea rcx, [rdi + 0x118]
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rdi + 0x218], rax
cmp rax, 0xffffffffffffffff
jne 0x1400093f6
mov dword [rdi + 8], esi
jmp 0x1400094e5
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140009424
mov rcx, qword [rdi + 0x218]
mov dword [rdi + 8], esi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400094e5
xor edx, edx
lea rcx, [rsp + 0x460]
mov r8d, 0x400
call fcn.1400a3240
lea rbx, [rsp + 0x8a8]
call fcn.140004890
mov r9, qword [rsp + 0x8a0]
lea rdx, [rsp + 0x460]
mov qword [rsp + 0x28], rbx
mov r8d, 0x400
mov qword [rsp + 0x20], rsi
mov rcx, qword [rax]
call fcn.1400a63e0
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x400
call fcn.1400a3240
movzx eax, word [rsp + 0x54]
lea rcx, [rsp + 0x460]
movzx r9d, word [rsp + 0x52]
lea rdx, str._02d:_02d:_02d__s_r_n
movzx r8d, word [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_wsprintfA]
lea rax, [rsp + 0x60]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], sil
jne 0x1400094c0
mov rcx, qword [rdi + 0x218]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rsi, qword [rsp + 0x878]
mov rbx, qword [rsp + 0x880]
mov rdi, qword [rsp + 0x870]
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1400a02d0
add rsp, 0x888
ret
Function at 0x1400095e0
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x170
mov rax, qword [0x1400e3008]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
xor r14d, r14d
mov rcx, qword [rcx + 8]
mov ebp, r8d
mov rsi, rdx
test rcx, rcx
je 0x140009625
call fcn.1400a02f4
mov qword [rbx + 8], r14
mov r8, rsi
lea rdx, [0x1400cc9c4]
lea rcx, [rsp + 0x50]
call fcn.140009a90
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x20
lea rcx, [rsp + 0x50]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140009733
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [rbx + 0x10], ecx
call fcn.1400a05a4
mov qword [rbx + 8], rax
test rax, rax
je 0x1400096bc
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x40]
mov rdx, rax
mov dword [rsp + 0x40], r14d
mov rcx, rdi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
test eax, eax
jne 0x1400096c0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14000970b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x1400096f9
mov edx, r14d
cmp dword [rbx + 0x10], edx
jbe 0x1400096f9
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 8]
mov ecx, edx
inc edx
add byte [rcx + rax], 0x95
mov rax, qword [rbx + 8]
xor byte [rcx + rax], 0xca
cmp edx, dword [rbx + 0x10]
jb 0x1400096e0
mov dword [rbx + 0x14], r14d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x84], eax
mov al, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400a02d0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov rdx, rsi
lea rcx, str._s_file_not_found
call fcn.14009f8c0
int3
Function at 0x140009cb0
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1268
call fcn.1400bc1e0
sub rsp, rax
mov rax, qword [0x1400e3008]
xor rax, rsp
mov qword [rsp + 0x1250], rax
cmp byte [0x1400eafc8], 0
jne 0x140009cf2
mov al, 1
mov rcx, qword [rsp + 0x1250]
xor rcx, rsp
call fcn.1400a02d0
add rsp, 0x1268
ret
xor r9d, r9d
lea r8, [rsp + 0x1030]
mov edx, 0x104
lea rcx, str.DataBinMHPDetect.dll
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x140009d2b
mov rcx, qword [rsp + 0x1250]
xor rcx, rsp
call fcn.1400a02d0
add rsp, 0x1268
ret
mov qword [rsp + 0x1260], rdi
lea r8, [rsp + 0x20]
xor edi, edi
lea rcx, [rsp + 0x30]
mov edx, 0x1000
mov dword [rsp + 0x20], edi
call qword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x140009e81
mov qword [rsp + 0x1278], rsi
mov esi, dword [rsp + 0x20]
shr rsi, 2
test rsi, rsi
je 0x140009e77
mov qword [rsp + 0x1270], rbx
nop word [rax + rax]
mov edx, dword [rsp + rdi*4 + 0x30]
test edx, edx
je 0x140009e63
call fcn.14000a2c0
test al, al
je 0x140009e63
mov r8d, dword [rsp + rdi*4 + 0x30]
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140009e63
mov r9d, 0x104
lea r8, [rsp + 0x1140]
xor edx, edx
mov rcx, rax
call qword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
test eax, eax
je 0x140009e5a
lea rdx, str.GameServer.exe
lea rcx, [rsp + 0x1140]
call fcn.1400a4500
test eax, eax
jne 0x140009e5a
lea r8, [rsp + 0x1030]
mov rdx, rbx
call fcn.140009eb0
test al, al
jne 0x140009e5a
lea rax, [rsp + 0x1030]
or r9, 0xffffffffffffffff
inc r9
cmp byte [rax + r9], 0
jne 0x140009e10
lea r8, [rsp + 0x1030]
mov rdx, rbx
call fcn.140009f90
mov r8d, dword [rsp + rdi*4 + 0x30]
lea r9, [rsp + 0x1140]
test al, al
jne 0x140009e49
lea rdx, str._ProcessManager___d___s__Could_not_initialize_process_
mov ecx, 1
jmp 0x140009e55
lea rdx, str._ProcessManager___d___s__Initialization_successful_
mov ecx, 3
call fcn.14009f970
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc rdi
cmp rdi, rsi
jl 0x140009d80
mov rbx, qword [rsp + 0x1270]
mov rsi, qword [rsp + 0x1278]
mov al, 1
mov rdi, qword [rsp + 0x1260]
mov rcx, qword [rsp + 0x1250]
xor rcx, rsp
call fcn.1400a02d0
add rsp, 0x1268
ret
Function at 0x140009eb0
Capabilities:
Enumerate process modules

Disassembly:
push rbx
push rbp
push rsi
mov eax, 0x2150
call fcn.1400bc1e0
sub rsp, rax
mov rax, qword [0x1400e3008]
xor rax, rsp
mov qword [rsp + 0x2140], rax
mov rbp, rdx
lea r9, [rsp + 0x20]
mov rsi, r8
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov rcx, rbp
mov r8d, 0x2000
mov dword [rsp + 0x20], ebx
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
jne 0x140009f00
mov al, 1
jmp 0x140009f66
mov qword [rsp + 0x2170], rdi
mov edi, dword [rsp + 0x20]
shr rdi, 3
test rdi, rdi
je 0x140009f5c
nop word [rax + rax]
mov rdx, qword [rsp + rbx*8 + 0x30]
lea r8, [rsp + 0x2030]
mov r9d, 0x104
mov rcx, rbp
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x140009f54
mov rdx, rsi
lea rcx, [rsp + 0x2030]
call fcn.1400a4500
test eax, eax
je 0x140009f81
inc rbx
cmp rbx, rdi
jl 0x140009f20
xor al, al
mov rdi, qword [rsp + 0x2170]
mov rcx, qword [rsp + 0x2140]
xor rcx, rsp
call fcn.1400a02d0
add rsp, 0x2150
pop rsi
pop rbp
pop rbx
ret
mov al, 1
jmp 0x140009f5e
Function at 0x140009f90
Capabilities:
Check mutex on windows
Create thread
Inject dll
Inject thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [0x1400e3008]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rdx
movsxd rsi, r9d
mov rbp, r8
mov dword [rsp + 0x20], 4
mov r8, rsi
mov rcx, rbx
mov r9d, 0x1000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
je 0x14000a00f
mov r9, rsi
mov qword [rsp + 0x20], 0
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000a016
mov r9d, 0x8000
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x14000a114
lea rcx, str.kernel32.dll
mov qword [rsp + 0x90], r14
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.LoadLibraryA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
mov rcx, rbx
test rax, rax
je 0x14000a07b
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov r8d, eax
lea rdx, str.XTMPID_d
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r8, [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbp, rax
mov rcx, rbx
test rax, rax
jne 0x14000a091
mov r9d, 0x8000
mov r8, rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x14000a10c
mov qword [rsp + 0x30], 0
mov r9, r14
mov dword [rsp + 0x28], 0
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x14000a0dc
mov r9d, 0x8000
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14000a10c
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, 0x8000
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
test eax, eax
jne 0x14000a0c9
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov r14, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400a02d0
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000bf60
Capabilities:
Delete file
Download and write a file
Move file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x10aa0]
mov eax, 0x10ba0
call fcn.1400bc1e0
sub rsp, rax
mov rax, qword [0x1400e3008]
xor rax, rsp
mov qword [rbp + 0x10a90], rax
cmp byte [0x1400eaeb9], 0
je 0x14000bfa4
lea rdx, str._Database__Please_wait_for_the_current_list_update
xor ecx, ecx
call fcn.14009f970
jmp 0x14000c1c1
cmp byte [0x1400eaeb8], 0
je 0x14000bfc0
lea rdx, str._Database__Please_wait_for_the_current_list_reload
xor ecx, ecx
call fcn.14009f970
jmp 0x14000c1c1
lea r8, [0x1400cc4a8]
mov qword [rsp + 0x10bb0], rbx
lea rdx, str.http:__xteamdev.com_files_MHP_INTERNAL_MHPVerify._s.dat
mov byte [0x1400eaeb9], 1
lea rcx, [rbp + 0x180]
call fcn.140009a90
mov eax, dword [0x1400ccbc8]
lea rcx, [rsp + 0x7e]
movups xmm0, xmmword [str..DataBinMHPVerify.part.dat]
xor edx, edx
mov dword [rsp + 0x78], eax
movsd xmm1, qword [0x1400ccbc0]
mov r8d, 0xe6
movzx eax, word [0x1400ccbcc]
movaps xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x7c], ax
movsd qword [rsp + 0x70], xmm1
call fcn.1400a3240
movups xmm0, xmmword [str..DataBinMHPVerify.dat]
lea rcx, [rbp + 0x89]
movzx eax, byte [0x1400ccbe8]
movsd xmm1, qword [0x1400ccbe0]
xor edx, edx
mov r8d, 0xeb
movaps xmmword [rbp + 0x70], xmm0
movsd qword [rbp + 0x80], xmm1
mov byte [rbp + 0x88], al
call fcn.1400a3240
xor eax, eax
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0x180]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x690]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x290]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x400
mov dword [rsp + 0x40], 0x400
call fcn.140004b50
mov edx, dword [rsp + 0x54]
lea r8, [rbp + 0x290]
lea rcx, [rbp + 0x690]
call fcn.1400048a0
movsxd rbx, eax
test eax, eax
je 0x14000c18f
lea r8, [0x1400ccbec]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.1400a4a60
nop
xor r9d, r9d
lea rdx, [rbp + 0xa90]
mov r8d, 0xffff
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x14000c129
mov r9, qword [rsp + 0x20]
lea rcx, [rbp + 0xa90]
movsxd rdx, eax
mov r8d, 1
call fcn.1400acebc
jmp 0x14000c0f0
mov rcx, qword [rsp + 0x20]
call fcn.1400a4924
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.1400acb5c
lea rdx, str._Database__Updated_successfully
mov byte [0x1400eaeb9], 0
mov ecx, 2
call fcn.14009f970
call fcn.14000be10
lea rdx, str._ServerInfo__Verify_loaded_successfully
mov ecx, 3
call fcn.14009f970
jmp 0x14000c1b9
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov r8d, dword [0x1400ec740]
lea rdx, str._Database__Could_not_update_list__Error:__i_
mov ecx, 1
mov byte [0x1400eaeb9], 0
call fcn.14009f970
mov rbx, qword [rsp + 0x10bb0]
mov rcx, qword [rbp + 0x10a90]
xor rcx, rsp
call fcn.1400a02d0
add rsp, 0x10ba0
pop rbp
ret
Function at 0x14000d560
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rax, dword [0x140176160]
lea rbp, [0x140175788]
imul rcx, rax, 0x54
mov edi, edx
mov rsi, r8
xor edx, edx
add rcx, rbp
mov ebx, r9d
lea r8d, [rdx + 0x50]
call fcn.1400a3240
mov eax, 0x4f
cmp ebx, 0x50
mov rdx, rsi
cmovge ebx, eax
movsxd rax, dword [0x140176160]
imul rcx, rax, 0x54
movsxd r8, ebx
add rcx, rbp
call fcn.1400a12f0
movsxd rax, dword [0x140176160]
lea r9, [rsi + 9]
imul rcx, rax, 0x54
lea rax, [0x1401757d8]
lea r8, [0x1400cc9c4]
mov dword [rcx + rax], edi
xor ecx, ecx
mov eax, dword [0x140176160]
inc eax
cmp eax, 0x1e
cmovge eax, ecx
xor edx, edx
lea rcx, vtable.CLog.0
mov dword [0x140176160], eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.1400092d0

Function at 0x14000d700
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
lea r9, [rcx + 8]
lea rdi, str..MHPServer.ini
mov qword [rsp + 0x28], rdi
lea r8, [0x1400cbfe0]
lea rdx, str.CustomerName
mov dword [rsp + 0x20], 0x20
lea rcx, str.MHPServerInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea r9, [rbx + 0x28]
mov qword [rsp + 0x28], rdi
lea r8, [0x1400cbfe0]
mov dword [rsp + 0x20], 0x24
lea rdx, str.CustomerHardwareId
lea rcx, str.MHPServerInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov r9, rdi
lea rdx, str.MHPServerPort
xor r8d, r8d
lea rcx, str.MHPServerInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov r9, rdi
lea rdx, str.EncDecKey1
lea rcx, str.MHPServerInfo
mov word [rbx + 0x4c], ax
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov r9, rdi
lea rdx, str.EncDecKey2
lea rcx, str.MHPServerInfo
mov dword [rbx + 0x50], eax
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [rbx + 0x54], eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000ddb0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebp, ebp
mov rcx, qword [rcx + 0xd8]
test rcx, rcx
je 0x14000ddf1
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0xd8], rbp
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x14000de0a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0xd0], rbp
lea rcx, [rdi + 0x70]
call fcn.14000afc0
lea rbx, [rdi + 0x28]
mov esi, 8
nop dword [rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000de3c
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rbp
add rbx, 8
sub rsi, 1
jne 0x14000de20
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x14000de65
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x20], rbp
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14000de78
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x10], rbp
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x14000de90
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 8], 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000deb0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400e3008]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov ebx, 2
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov ecx, ebx
lea edx, [r9 + 1]
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov qword [0x1401761f8], rax
cmp rax, 0xffffffffffffffff
jne 0x14000df26
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str._SocketManager__WSASocket___failed_with_error:__d
lea ecx, [rbx - 1]
call fcn.14009f970
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a02d0
add rsp, 0x50
pop rbx
ret
xor ecx, ecx
mov word [rsp + 0x30], bx
call qword [sym.imp.WS2_32.dll_htonl]
movzx ecx, word [0x140176208]
mov dword [rsp + 0x34], eax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [0x1401761f8]
lea rdx, [rsp + 0x30]
mov r8d, reloc.WS2_32.dll_recv
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x14000df95
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str._SocketManager__bind___failed_with_error:__d
mov ecx, 1
mov r8d, eax
call fcn.14009f970
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a02d0
add rsp, 0x50
pop rbx
ret
mov rcx, qword [0x1401761f8]
mov edx, 5
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x14000dfdb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str._SocketManager__listen___failed_with_error:__d
mov ecx, 1
mov r8d, eax
call fcn.14009f970
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a02d0
add rsp, 0x50
pop rbx
ret
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a02d0
add rsp, 0x50
pop rbx
ret

Function at 0x14000e090
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r9, [0x1401761f0]
mov qword [rsp + 0x28], rax
lea r8, [0x14000ec20]
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140176210], rax
test rax, rax
jne 0x14000e0e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._SocketManager__CreateThread___failed_with_error:__d
mov ecx, 1
mov r8d, eax
call fcn.14009f970
xor al, al
add rsp, 0x38
ret
mov edx, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x14000e117
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._SocketManager__SetThreadPriority___failed_with_error:__d
mov ecx, 1
mov r8d, eax
call fcn.14009f970
xor al, al
add rsp, 0x38
ret
mov al, 1
add rsp, 0x38
ret
Function at 0x14000e120
Capabilities:
Create thread
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x50]
mov ecx, 8
cmp eax, ecx
cmova eax, ecx
xor edi, edi
mov dword [0x140176258], eax
mov ebx, edi
test eax, eax
je 0x14000e1a5
lea rsi, [0x1401761f0]
nop dword [rax]
mov qword [rsp + 0x28], rdi
lea r8, [0x14000edf0]
mov r9, rsi
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, ebx
mov qword [rsi + rcx*8 + 0x28], rax
test rax, rax
je 0x14000e1e3
mov edx, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x14000e1b7
inc ebx
cmp ebx, dword [0x140176258]
jb 0x14000e160
mov al, 1
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._SocketManager__SetThreadPriority___failed_with_error:__d
mov ecx, 1
mov r8d, eax
call fcn.14009f970
xor al, al
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._SocketManager__CreateThread___failed_with_error:__d
mov ecx, 1
mov r8d, eax
call fcn.14009f970
mov rbx, qword [rsp + 0x70]
xor al, al
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x14000e210
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor r9d, r9d
xor edx, edx
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [0x1401762c0], rax
test rax, rax
jne 0x14000e254
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._SocketManager__CreateSemaphore___failed_with_error:__d
mov ecx, 1
mov r8d, eax
call fcn.14009f970
xor al, al
add rsp, 0x38
ret
xor eax, eax
lea r9, [0x1401761f0]
mov qword [rsp + 0x28], rax
lea r8, [0x14000ef10]
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1401762c8], rax
test rax, rax
jne 0x14000e2a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._SocketManager__CreateThread___failed_with_error:__d
mov ecx, 1
mov r8d, eax
call fcn.14009f970
xor al, al
add rsp, 0x38
ret
mov edx, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x14000e2d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._SocketManager__SetThreadPriority___failed_with_error:__d
mov ecx, 1
mov r8d, eax
call fcn.14009f970
xor al, al
add rsp, 0x38
ret
mov al, 1
add rsp, 0x38
ret