joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e5410
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1402f73d4]
mov r12, rcx
test ebx, ebx
jle 0x1400e5540
mov rax, qword [0x1402f73d8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1400e545c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400e54e3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1400e5440
mov rcx, r12
call fcn.1400e5db0
mov rsi, rax
test rax, rax
je 0x1400e5562
mov rax, qword [0x1402f73d8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1400e5ee0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1402f73d8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400e5547
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400e54dc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400e54f0
add dword [0x1402f73d4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1402f73d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400e54dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400e53a0
nop dword [rax]
xor ebx, ebx
jmp 0x1400e5467
mov rax, qword [0x1402f73d8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400e53a0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400e53a0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400e5a20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1402f7440]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402f7420]
test rbx, rbx
je 0x1400e5a74
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400e5a6b
test r12, r12
je 0x1400e5a6b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400e5a50
lea rcx, [0x1402f7440]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400e5db0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140295920]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400e5dd0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400e5dd8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400e5dd0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400e5e25
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400e5e1c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400e5dd0
add rax, 0x28
cmp rax, r9
jne 0x1400e5e08
xor eax, eax
ret

Function at 0x1400e5e30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140295920]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400e5e50
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400e5e58
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400e5e50
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400e5ee0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140295920]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400e5f00
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400e5f08
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1400e7890
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [str._u__]
mov rax, qword [rsi]
test rax, rax
je 0x1400e7920
cmp qword [rax + 0x30], 0
jne 0x1400e7940
lea rbx, [0x140118208]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x1400e78f0
cmp qword [rax + 0x30], 0
jne 0x1400e7910
lea rdx, [0x140118208]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1400f0700
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400ec790
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1400e78d2
test rax, rax
jne 0x1400e7910
call fcn.1400ec790
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x1400e78e0
call fcn.1400ec790
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1400e78b0
test rax, rax
jne 0x1400e7940
call fcn.1400ec790
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x1400e78bb
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x1400e7950
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1400e7a62
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400e7a3a
add rax, 1
cmp rax, 0x6b
je 0x1400e7a57
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x1400e7a30
cmp edx, 0x6a
je 0x1400e7a57
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400e7a4b
Function at 0x1400e8470
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [str._u__]
mov rax, qword [rsi]
test rax, rax
je 0x1400e8660
cmp qword [rax + 0x28], 0
jne 0x1400e8648
lea rcx, [0x1402f74f8]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x1400e8655
call fcn.1400e7a80
mov rax, qword [rsi]
test rax, rax
je 0x1400e84f0
cmp qword [rax + 0x30], 0
jne 0x1400e8510
lea rdx, [0x140118208]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x1400e8524
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400ec790
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1400e84c0
test rax, rax
jne 0x1400e8510
call fcn.1400ec790
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x1400e84de
call fcn.1400e75c0
cmp qword [0x1402fb050], 0
mov rbx, rax
je 0x1400e84de
test rax, rax
je 0x1400e84de
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.1400ee630
cmp eax, 1
je 0x1400e86cd
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400f0706
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x1400e86a8
cmp qword [rax + 0x30], 0
je 0x1400e8690
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400f0706
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1400e84ac
mov rax, qword [rsi]
jmp 0x1400e84b9
call fcn.1400ec790
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x1400e8498
test rax, rax
jne 0x1400e8648
call fcn.1400ec790
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1400e84ac
jmp 0x1400e84b1
lea rdx, [0x140118208]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x1400e861e
call fcn.1400ec790
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1400e8690
test rax, rax
jne 0x1400e861a
call fcn.1400ec790
jmp 0x1400e861a
call fcn.1400e7950
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [str._u__]
mov rdx, qword [rax]
lea rax, [0x1402f7508]
mov qword [rdx + 0x10], rax
ret
Function at 0x1400ec610
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400ec630
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x1400ec678
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400ec624
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400ec665
Function at 0x1400ec790
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1402f75e0]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x1400ec7b3
lea rax, [0x1402f75e8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x1400ec7fb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1400ec7f8
lea rax, [0x1402f7620]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x1400ec82b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1400ec828
xor ecx, ecx
mov byte [0x1402f7639], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1402f7642], rdx
lea r8, [0x1402f75e0]
lea rbx, [0x1402f763a]
mov qword [0x1402f7652], rdx
mov qword [0x1402f7662], rdx
mov qword [0x1402f7672], rdx
xor edx, edx
mov qword [0x1402f763a], rax
mov qword [0x1402f764a], rax
mov qword [0x1402f765a], rax
mov qword [0x1402f766a], rax
mov byte [0x1402f767a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400eca06
lea rcx, [0x1402f7620]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x1400ec951
lea rsi, [0x1402f7520]
lea r8, [0x1402f767a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x1400ec8fd
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x1400ec8f0
lea rcx, [0x1402f7620]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x1400ec9f3
lea rcx, [0x1400ec6a0]
mov qword [0x1402f7520], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1402f7520]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1402f7620]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1402f767a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x1400eca26
nop dword [rax]
cmp byte [rax], 0x41
jne 0x1400ec9a3
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x1400ec990
mov rax, rdx
mov qword [0x1402f7520], rax
lea rsi, [0x1402f7520]
jmp 0x1400ec9c9
cmp rdx, rsi
je 0x1400ec92f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x1400ec9c0
cmp rdx, rsi
je 0x1400ec92f
mov qword [rdx + 8], rsi
lea rcx, [0x1400ec6a0]
call sub.msvcrt.dll__onexit
jmp 0x1400ec92f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.1400ec610
xor eax, eax
jmp 0x1400ec948
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.1400ec610
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.1400ec610
xor eax, eax
jmp 0x1400ec9af
Function at 0x180003220
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x180034310]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
xor edi, edi
lea rax, vtable.CTcpSocket.0
mov rbx, rcx
mov qword [rcx + 0x10], rdi
mov dword [rcx + 0x18], edi
mov qword [rcx], rax
mov dword [rcx + 0x58], edi
mov qword [rcx + 0x48], rdi
mov qword [rcx + 0x50], rdi
lea rax, vtable.CBuffer.0
lea rdx, [rsp + 0x20]
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x60], rax
mov dword [rcx + 0x78], edi
mov qword [rcx + 0x68], rdi
mov qword [rcx + 0x70], rdi
mov qword [rcx + 0x80], rax
mov dword [rcx + 0x98], edi
mov qword [rcx + 0x88], rdi
mov qword [rcx + 0x90], rdi
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edx, [rdi + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, edi
mov qword [rbx + 8], rax
xchg dword [rbx + 0x20], ecx
mov qword [rbx + 0xb0], 0xffffffffffffffff
mov qword [rbx + 0xa0], rdi
mov qword [rbx + 0xa8], rdi
mov dword [rbx + 0x1c], edi
mov rax, rbx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.180015b10
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1d0
pop rdi
ret

Function at 0x180003300
Capabilities:
Set socket configuration

Disassembly:
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x20], 0
mov rdi, rcx
je 0x18000337a
mov rcx, qword [rcx + 0xb0]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 0x80
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 1
xor ebx, ebx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0xb0]
call qword [sym.imp.KERNEL32.dll_CancelIo]
xchg dword [rdi + 0x20], ebx
mov rcx, qword [rdi + 0xb0]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, qword [rsp + 0x48]
mov qword [rdi + 0xb0], 0xffffffffffffffff
add rsp, 0x30
pop rdi
ret
Function at 0x180003850
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov esi, r8d
mov r12, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rdi + 0x14], eax
je 0x180003893
nop dword [rax]
mov r9d, 1
xchg dword [rdi + 0x10], r9d
cmp r9d, 1
je 0x180003880
mov dword [rdi + 0x14], eax
inc dword [rdi + 0x18]
xor r13d, r13d
lea ebp, [rsi + 0xe]
cmp qword [rdi + 0x88], r13
jne 0x1800038aa
mov edx, r13d
jmp 0x1800038b6
mov edx, dword [rdi + 0x90]
sub edx, dword [rdi + 0x88]
lea rcx, [rdi + 0x80]
add edx, 4
call fcn.180001080
mov rax, qword [rdi + 0x90]
mov dword [rax], ebp
add qword [rdi + 0x90], 4
cmp qword [rdi + 0x88], r13
jne 0x1800038e4
mov edx, r13d
jmp 0x1800038f0
mov edx, dword [rdi + 0x90]
sub edx, dword [rdi + 0x88]
lea rcx, [rdi + 0x80]
add edx, 0xa
call fcn.180001080
mov rax, qword [rdi + 0x30]
mov rcx, qword [rdi + 0x90]
mov qword [rcx], rax
movzx eax, word [rdi + 0x38]
mov word [rcx + 8], ax
add qword [rdi + 0x90], 0xa
cmp qword [rdi + 0x88], r13
jne 0x18000392b
mov eax, r13d
jmp 0x180003937
mov eax, dword [rdi + 0x90]
sub eax, dword [rdi + 0x88]
lea edx, [rax + rsi]
lea rcx, [rdi + 0x80]
call fcn.180001080
mov rcx, qword [rdi + 0x90]
mov r8, rsi
mov rdx, r12
call fcn.180015b40
mov r11d, r13d
mov r9, r13
mov r10, r13
test esi, esi
jle 0x1800039c4
nop word [rax + rax]
movzx ecx, byte [rdi + r9 + 0x30]
mov r8, qword [rdi + 0x90]
inc r9
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0xcccccccd
imul edx, edx, 0x1c8
sub ecx, edx
mul r11d
add cl, 0x36
xor byte [r10 + r8], cl
shr edx, 3
lea ecx, [rdx + rdx*4]
add ecx, ecx
cmp r11d, ecx
cmove r9, r13
inc r11d
inc r10
cmp r11d, esi
jl 0x180003970
add qword [rdi + 0x90], rsi
cmp qword [rdi + 0x88], r13
jne 0x1800039d9
mov r8d, r13d
jmp 0x1800039e7
mov r8d, dword [rdi + 0x90]
sub r8d, dword [rdi + 0x88]
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
call fcn.180003a50
mov r11, qword [rdi + 0x88]
lea rcx, [rdi + 0x80]
mov edx, 0x400
mov qword [rdi + 0x90], r11
call fcn.180001140
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [rdi + 0x14]
mov eax, 1
jne 0x180003a2e
dec dword [rdi + 0x18]
jne 0x180003a2e
mov qword [rdi + 0x10], r13
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x180003a50
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
xor edi, edi
mov r14d, r8d
mov rsi, rdx
mov r13, rcx
mov ebp, r8d
mov r12d, edi
cmp r8d, 0x40000
jl 0x180003ae1
nop dword [rax + rax]
mov ebx, edi
nop word [rax + rax]
mov rcx, qword [r13 + 0xb0]
xor r9d, r9d
mov r8d, 0x40000
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x180003ac4
inc ebx
cmp ebx, 0xf
jl 0x180003aa0
cmp ebx, 0xf
je 0x180003b42
sub ebp, 0x40000
add r12d, eax
add rsi, 0x40000
cmp ebp, 0x40000
jge 0x180003a90
test ebp, ebp
jle 0x180003b19
nop word [rax + rax]
mov rcx, qword [r13 + 0xb0]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x180003b11
inc edi
cmp edi, 0xf
jl 0x180003af0
cmp edi, 0xf
je 0x180003b42
add r12d, eax
or eax, 0xffffffff
cmp r12d, r14d
cmove eax, r12d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
or eax, 0xffffffff
jmp 0x180003b23
Function at 0x180003f30
Capabilities:
Create thread
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x30
mov eax, dword [rcx + 0x21c]
movzx ebx, r8w
mov rbp, rdx
mov rdi, rcx
test eax, eax
jne 0x180003f5f
mov dword [rcx + 0x23c], 0x598
jmp 0x180003f7e
cmp eax, 0x598
jbe 0x180003f78
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov dword [rcx + 0x23c], eax
mov qword [rsp + 0x48], rsi
xor esi, esi
xor r8d, r8d
mov dword [rcx + 0x8c], esi
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
lea rcx, [rdi + 0xb8]
mov dword [rdi + 0xd8], 0x598
mov qword [rdi + 0x258], rax
mov eax, dword [rdi + 0x70]
mov dword [rdi + 0xdc], eax
mov eax, dword [rdi + 0x74]
mov dword [rdi + 0xe0], eax
call fcn.180001370
mov dword [rdi + 0x48], 1
mov qword [rdi + 0x4c], 5
mov dword [rdi + 0x54], 1
mov eax, 1
lock xadd qword [0x18003c2a0], rax
inc rax
mov qword [rdi + 0x68], rax
jne 0x180004009
mov eax, 1
lock xadd qword [0x18003c2a0], rax
inc rax
mov qword [rdi + 0x68], rax
mov rcx, qword [rdi + 0x58]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x40], 0x40000
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x58]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x40], 0x40000
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
movzx r8d, bx
mov rdx, rbp
mov rcx, rdi
call fcn.1800041e0
test eax, eax
je 0x1800040be
lea rax, [rdi + 0x80]
lea r8, [0x1800043f0]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], esi
call fcn.18001656c
mov qword [rdi + 0x78], rax
test rax, rax
je 0x1800040ad
mov rcx, qword [rdi + 0x40]
mov esi, 1
call qword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x180004100
mov dword [rdi + 0x84], 8
mov ecx, 0x65f
jmp 0x1800040d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rdi + 0x84], send
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rdi + 0x48], esi
mov qword [rdi + 0x4c], 5
mov dword [rdi + 0x54], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call fcn.180004d40
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov eax, esi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1800041e0
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rsi
push r12
push r13
push r14
sub rsp, 0x80
mov rax, qword [0x180034310]
xor rax, rsp
mov qword [rsp + 0x68], rax
movzx r12d, r8w
mov r14d, 2
mov r13, rdx
mov rbp, rcx
xor esi, esi
mov edx, r14d
lea r8d, [rsi + 0x11]
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x180004232
xor eax, eax
jmp 0x1800043c5
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x30], rcx
lea r8, [rsp + 0x50]
mov r9d, 4
mov rcx, rax
mov edx, 0x9800000c
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rbp + 0x58]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbp + 0x58]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 4
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov rcx, r13
mov qword [rbp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov r8, r13
xor edx, edx
xor ecx, ecx
mov r9d, eax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
lea eax, [rbx + 1]
movsxd rcx, eax
call fcn.180014f9c
mov rcx, r13
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov r8, r13
xor edx, edx
mov r9d, eax
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
mov byte [rbx + rdi], sil
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, rdi
mov rbx, rax
call fcn.180015af4
mov rdi, qword [rsp + 0x70]
test rbx, rbx
jne 0x180004353
xor eax, eax
jmp 0x1800043c0
movzx ecx, r12w
mov word [rsp + 0x58], r14w
call qword [sym.imp.WS2_32.dll_htons]
mov rdx, qword [rbp + 0x60]
mov r8d, gethostbyname
mov word [rsp + 0x5a], ax
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov rcx, qword [rbp + 0x58]
mov dword [rsp + 0x5c], eax
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x1800043be
mov rcx, qword [rbp + 0x58]
lea rdx, [rsp + 0x58]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1800043b9
cmp eax, 0xffffffff
jne 0x1800043be
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1800043be
mov esi, 1
mov eax, esi
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180015b10
add rsp, 0x80
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret