joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400051c4
Capabilities:
Access the windows event log

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
sub rsp, 0x60
mov eax, edx
mov r13d, 1
mov esi, edx
shr eax, 0x1e
movzx ebp, cx
cmp eax, r13d
jbe 0x14000520a
lea ebx, [r13 + 1]
cmp eax, ebx
je 0x14000520f
cmp eax, 3
jne 0x140005205
mov bx, r13w
jmp 0x14000520f
mov ebx, r13d
jmp 0x14000520f
mov ebx, 4
mov rax, qword [0x14000c7a8]
test rax, rax
je 0x140005279
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x50]
call rax
test eax, eax
js 0x140005279
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x140005279
and qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x98]
mov r10, qword [rdi]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
movzx r8d, bp
movzx edx, bx
mov r9d, esi
mov rcx, rdi
mov dword [rsp + 0x28], r13d
and qword [rsp + 0x20], 0
call qword [r10 + 0x18]
mov r11, qword [rdi]
mov rcx, rdi
call qword [r11 + 0x10]
jmp 0x1400052d0
lea rdx, [0x140002748]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x1400052d0
and qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x98]
mov r9d, esi
mov qword [rsp + 0x38], rcx
and dword [rsp + 0x30], 0
movzx r8d, bp
mov rcx, rax
movzx edx, bx
mov word [rsp + 0x28], r13w
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r13
ret
Function at 0x1400053a0
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x8c0
mov rax, qword [0x14000b110]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
mov rbx, rcx
mov esi, r8d
mov rbp, rdx
lea rcx, [rsp + 0x6a2]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x6a0], r12w
call sub.msvcrt.dll_memset
mov edi, 0x208
lea rcx, [rsp + 0x492]
mov r8, rdi
xor edx, edx
mov word [rsp + 0x490], r12w
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x282]
mov r8, rdi
xor edx, edx
mov word [rsp + 0x280], r12w
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x34]
xor edx, edx
mov r8d, 0x24c
mov edi, r12d
mov dword [rsp + 0x30], r12d
call sub.msvcrt.dll_memset
lea r8, [0x140002758]
lea rcx, [rsp + 0x6a0]
mov r9, rbp
mov edx, 0x104
mov qword [rsp + 0x20], rbx
call fcn.140003e48
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x6a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13d, 0x105
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140005513
inc edi
cmp word [rsp + 0x490], r12w
je 0x1400054b0
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x490]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, r12d
jle 0x1400054fc
lea r8, [rsp + 0x5c]
lea rax, [rsp + 0x490]
mov rdx, r13
sub r8, rax
lea rcx, [rsp + 0x490]
lea rax, [rdx + 0x7ffffef9]
cmp rax, r12
je 0x1400054ef
movzx eax, word [r8 + rcx]
cmp ax, r12w
je 0x1400054ef
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400054cb
cmp rdx, r12
jne 0x1400054f8
sub rcx, 2
mov word [rcx], r12w
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, r12d
jne 0x14000548b
cmp edi, esi
jb 0x1400055b4
lea rax, [rsp + 0x490]
lea r8, [0x140001cc8]
lea rcx, [rsp + 0x280]
mov r9, rbp
mov rdx, r13
mov qword [rsp + 0x20], rax
call fcn.140003e48
mov edi, 0x80
lea rcx, [rsp + 0x280]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [rdi - 0x52]
lea rcx, [rsp + 0x280]
call qword [sym.imp.msvcrt.dll_wcsrchr]
cmp rax, r12
je 0x1400055b4
lea r8, [0x140002770]
lea rcx, [rsp + 0x280]
mov rdx, r13
mov word [rax], r12w
call fcn.140003d7c
lea rcx, [rsp + 0x280]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp rbx, 0xffffffffffffffff
je 0x1400055c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.1400084d0
mov rbx, qword [rsp + 0x900]
add rsp, 0x8c0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400055f0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x508
mov rax, qword [0x14000b110]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov r8, rcx
xor ebx, ebx
mov edi, 0x207
mov word [rsp + 0xe0], bx
lea rcx, [r11 - 0x438]
lea r9, [r11 + 0x10]
mov rdx, rdi
mov word [r11 - 0x2a], bx
call qword [sym.imp.msvcrt.dll__vsnwprintf]
cmp eax, ebx
jl 0x14000573e
cdqe
cmp rax, rdi
ja 0x14000573e
jne 0x140005666
mov word [rsp + 0x4ee], bx
xor edx, edx
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
call sub.msvcrt.dll_memset
mov eax, 6
lea rdx, [rsp + 0xe0]
mov word [rsp + 0xb0], ax
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
xor ecx, ecx
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0xac], 0x81
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
je 0x140005726
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11d, dword [rsp + 0x50]
movzx ecx, r11w
or ecx, 0x80070000
cmp r11d, ebx
cmovle ecx, r11d
jmp 0x14000573a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
mov eax, ecx
jmp 0x140005743
mov eax, 0x8007007a
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.1400084d0
add rsp, 0x508
pop rdi
pop rbx
ret
Function at 0x1400069b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x14000b110]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rax, [rsp + 0x30]
mov rbx, r8
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x30], 0xf0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
cmp eax, edx
jne 0x140006a2c
cmp dword [rsp + 0x30], 2
jb 0x140006a70
mov eax, dword [rsp + 0x40]
lea ecx, [rdx + 0x4e]
and eax, 0xffdf
cmp eax, ecx
je 0x140006a28
cmp eax, 0x59
jne 0x140006a70
mov dword [rbx], 1
jmp 0x140006a70
mov dword [rbx], edx
jmp 0x140006a70
mov eax, dword [rbx]
mov word [rsp + 0x42], dx
mov r9d, 1
neg eax
lea rax, [rsp + 0x40]
mov rdx, rsi
sbb r8w, r8w
mov rcx, rdi
mov dword [rsp + 0x28], 4
and r8w, 0xb
mov qword [rsp + 0x20], rax
add r8w, 0x4e
mov word [rsp + 0x40], r8w
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400084d0
add rsp, 0x140
pop rdi
pop rsi
pop rbx
ret

Function at 0x140006a94
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], r8
push rdi
sub rsp, 0x30
mov ebx, dword [0x14000b13c]
lea rax, [r11 + 0x20]
lea rbp, [0x14000b13c]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x18]
lea rdx, [0x140002d90]
xor r8d, r8d
mov qword [r11 - 0x18], rbp
mov rdi, rcx
mov dword [rsp + 0x58], 4
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006afb
cmp dword [rsp + 0x50], 4
je 0x140006b27
mov dword [0x14000b13c], ebx
jmp 0x140006b27
lea rdx, [0x140002d90]
mov r9d, 4
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov dword [0x14000b13c], ebx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140007ab8
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], rsp
lea rcx, [0x14000b4b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp byte [0x14000c71a], 0
jne 0x140007b53
lea rax, [0x14000c808]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, [0x1400031a0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x140007b47
and qword [0x14000c808], 0
lea rcx, [0x140003550]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
movzx ecx, bx
or ecx, 0x80070000
test ebx, ebx
cmovle ecx, ebx
mov dword [rsp + 0x58], ecx
lea rdx, [0x140007b41]
mov rcx, rsp
call sub.msvcrt.dll__local_unwind
nop
nop
mov eax, dword [rsp + 0x58]
jmp 0x140007b62
call fcn.140007b70
mov byte [0x14000c71a], 1
lea rcx, [0x14000b4b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x140008188
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x14000d868], rdi
je 0x1400081e8
cmp rax, rdi
jne 0x1400081db
mov r12d, 1
jmp 0x1400081e8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400081c1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x1400081fd
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140008264
mov eax, dword [0x14000d860]
cmp eax, ebx
jne 0x14000825a
mov dword [0x14000d860], 1
lea r13, [0x140001548]
lea rdi, [0x140001530]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14000824c
cmp eax, ebx
jne 0x14000824c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x140008241
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000822a
cmp eax, ebx
je 0x140008264
mov eax, 0xff
jmp 0x1400083ac
mov dword [0x14000b554], 1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x14000828c
lea rdx, [0x140001528]
lea rcx, [0x1400014b8]
call sub.msvcrt.dll__initterm
mov dword [0x14000d860], 2
cmp r12d, ebx
jne 0x14000829b
mov rax, rbx
xchg qword [0x14000d868], rax
cmp qword [0x14000d870], rbx
je 0x1400082c3
lea rcx, [0x14000d870]
call fcn.14000862c
cmp eax, ebx
je 0x1400082c3
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14000d870]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x1400082d9
mov eax, 0xff
jmp 0x1400083ac
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14000835e
cmp word [rcx], bx
je 0x1400082f4
cmp edx, ebx
jne 0x14000835e
cmp word [rcx], bx
je 0x14000830a
cmp word [rcx], 0x20
ja 0x14000830a
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082f4
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140003b3c
mov dword [0x14000b550], eax
cmp dword [0x14000b534], ebx
jne 0x140008348
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000b554], ebx
jne 0x14000835c
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000b550]
jmp 0x1400083ac
cmp word [rcx], 0x22
jne 0x140008371
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082e5
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.1400b4000
add rsp, 0x28
jmp 0x140008188
Function at 0x1400084d0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000b110]
jne 0x1400084eb
rol rcx, 0x10
test cx, 0xffff
jne 0x1400084e7
ret 0
ror rcx, 0x10
jmp 0x1400088a8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000b610]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x14000b708]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000892d
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, [0x14000b610]
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.ntdll.dll_RtlVirtualUnwind
jmp 0x14000894f
mov rax, qword [rsp + 0x88]
mov qword [0x14000b708], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000b6a8], rax
mov rax, qword [0x14000b708]
mov qword [0x14000b580], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000b690], rax
mov dword [0x14000b570], 0xc0000409
mov dword [0x14000b574], 1
mov rax, qword [0x14000b110]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000b118]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140001570]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140008744
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x140008791
cmp rcx, 0xffffffffffffffff
je 0x140008791
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008789
cmp dword [rcx + 0x3c], edx
jl 0x140008789
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008789
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008791
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14000cf00
Capabilities:
Hash data using crc32b

Disassembly:
xor r9d, r9d
lea r10, [0x1401894c0]
nop word [rax + rax]
xor eax, eax
test r9b, 1
je 0x14000cf1c
bts eax, 7
mov ecx, r9d
shr ecx, 1
test cl, 1
je 0x14000cf2a
bts eax, 6
shr ecx, 1
test cl, 1
je 0x14000cf35
bts eax, 5
shr ecx, 1
test cl, 1
je 0x14000cf40
bts eax, 4
shr ecx, 1
test cl, 1
je 0x14000cf4b
bts eax, 3
shr ecx, 1
test cl, 1
je 0x14000cf56
bts eax, 2
shr ecx, 1
test cl, 1
je 0x14000cf61
bts eax, 1
test cl, 2
je 0x14000cf6a
bts eax, 0
shl eax, 0x18
lea ecx, [rax + rax]
mov edx, ecx
xor edx, 0x4c11db7
test eax, eax
cmovns edx, ecx
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov r8d, eax
xor r8d, 0x4c11db7
test edx, edx
cmovns r8d, eax
xor ecx, ecx
lea edx, [rcx + 0x1e]
test r8b, 1
je 0x14000d001
lea eax, [rdx + 1]
bts ecx, eax
sar r8d, 1
test r8b, 1
je 0x14000d00d
bts ecx, edx
sar r8d, 1
sub edx, 2
cmp edx, 0xfffffffe
jg 0x14000cff5
mov dword [r10], ecx
inc r9d
add r10, 4
cmp r9d, 0x100
jl 0x14000cf10
mov dword [0x1401894b0], 1
ret
Function at 0x14000fe50
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp dword [r8 + 0x38], 1
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rbp, rcx
je 0x14000fe7f
xor eax, eax
jmp 0x140010037
mov ecx, dword [r9 + 0x10]
mov qword [rsp + 0x30], rsi
call qword [sym.imp.WS2_32.dll_ntohl]
mov esi, eax
lea rax, [rsi - 1]
cmp rax, 0xfe
ja 0x14000fff8
mov ecx, dword [rdi + 0x1c]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xa4]
jne 0x14000fff8
mov ecx, dword [rdi + 0x20]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0x9c]
jne 0x14000fff8
mov ecx, dword [rdi + 0x24]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xa0]
jne 0x14000fff8
mov eax, dword [rbx + 0x1c]
cmp dword [rdi + 0x28], eax
jne 0x14000fff8
mov edx, 1
mov r8b, 0xff
mov rcx, rbx
call fcn.140010050
cmp rsi, qword [rbx + 0x48]
jae 0x14000ff05
mov qword [rbx + 0x48], rsi
movzx ecx, word [rdi + 4]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 0x18], ax
movzx eax, byte [rdi + 6]
mov byte [rbx + 0x21], al
movzx eax, byte [rdi + 7]
mov byte [rbx + 0x20], al
mov ecx, dword [rdi + 8]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, 0x240
mov esi, 0x1000
cmp eax, ecx
jb 0x14000ff3f
cmp eax, esi
mov ecx, eax
cmova ecx, esi
cmp ecx, dword [rbx + 0xd0]
jae 0x14000ff4d
mov dword [rbx + 0xd0], ecx
mov ecx, dword [rdi + 0xc]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, esi
jb 0x14000ff66
mov ecx, 0x10000
mov esi, eax
cmp eax, ecx
cmova esi, ecx
cmp esi, dword [rbx + 0xd4]
jae 0x14000ff74
mov dword [rbx + 0xd4], esi
mov ecx, dword [rdi + 0x14]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx + 0x50], eax
mov ecx, dword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx + 0x54], eax
mov rcx, rbx
mov dword [rbp + 0x24], 1
test r14, r14
je 0x14000ffc0
call fcn.14000d570
mov dword [rbx + 0x38], 5
mov dword [r14], 1
mov qword [r14 + 8], rbx
mov eax, dword [rbx + 0x1c8]
mov dword [r14 + 0x14], eax
xor eax, eax
jmp 0x140010032
xor edi, edi
cmp dword [rbx + 0x38], 1
sete dil
add edi, 3
call fcn.14000d5a0
cmp dword [rbx + 0x140], 0
mov dword [rbx + 0x38], edi
jne 0x14000fff4
lea rcx, [rbp + 0x48]
mov rdx, rbx
call fcn.14000cd00
mov dword [rbx + 0x140], 1
xor eax, eax
jmp 0x140010032
xor edi, edi
mov rcx, rbx
mov dword [rbx + 0x1c8], edi
call fcn.14000d5a0
mov dword [rbx + 0x38], 9
cmp dword [rbx + 0x140], edi
jne 0x14001002d
lea rcx, [rbp + 0x48]
mov rdx, rbx
call fcn.14000cd00
mov dword [rbx + 0x140], 1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140010f30
Capabilities:
Resolve dns

Disassembly:
push rbx
push r14
sub rsp, 0x58
mov rax, qword [0x140185fc0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r14, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x140010f75
cmp word [rax + 0x10], 2
jne 0x140010f75
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [r14], eax
xor eax, eax
jmp 0x140011029
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x50], rsi
xor esi, esi
mov qword [rsp + 0x48], rdi
mov ebp, esi
mov qword [rsp + 0x40], r15
mov edi, esi
mov dword [rsp + 0x28], 0
lea r15d, [rsi + 0x2e]
nop
lea rdx, [rbx + 1]
mov qword [rsp + 0x20], rdx
cmp byte [rbx], 0x30
je 0x140010fe3
mov r8d, 0xa
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp eax, 0xff
ja 0x14001100b
mov rdx, qword [rsp + 0x20]
cmp rdx, rbx
je 0x14001100b
mov rcx, rdx
sub rcx, rbx
cmp rcx, 3
jg 0x14001100b
mov byte [rsp + rdi + 0x28], al
movsx eax, byte [rdx]
cmp ebp, 3
mov ecx, esi
cmovl ecx, r15d
cmp eax, ecx
jne 0x14001100b
inc ebp
lea rbx, [rdx + 1]
inc rdi
cmp rdi, 4
jl 0x140010fa0
mov eax, dword [rsp + 0x28]
mov dword [r14], eax
jmp 0x140011010
mov esi, 0xffffffff
mov r15, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14011e5f0
add rsp, 0x58
pop r14
pop rbx
ret

Function at 0x140011050
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140185fc0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400110b9
movzx eax, word [rsp + 0x20]
cmp al, 1
jne 0x1400110b3
shr ax, 8
cmp al, 1
jne 0x1400110b3
mov ecx, 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14011e5f0
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14011e5f0
add rsp, 0x1d8
ret

Function at 0x1400111b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140185fc0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x1400111f8
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14011e5f0
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x2a]
mov dword [rbx], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 4], ax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14011e5f0
add rsp, 0x40
pop rbx
ret
Function at 0x140011230
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x140185fc0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r11, r9
mov dword [rsp + 0x54], reloc.WS2_32.dll_recv
mov rbx, rdx
lea r9, [rsp + 0x54]
xor edx, edx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rdx
mov r10, r8
mov qword [rsp + 0x38], rdx
test rbx, rbx
mov dword [rsp + 0x50], edx
mov r8d, r11d
cmove r9, rdx
cmove rax, rdx
mov qword [rsp + 0x30], r9
mov rdx, r10
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x1400112be
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x1400112ba
cmp eax, 0x13
jne 0x1400112c8
xor eax, eax
jmp 0x1400112ed
test dword [rsp + 0x50], 0x8000
je 0x1400112cf
mov eax, 0xffffffff
jmp 0x1400112ed
test rbx, rbx
je 0x1400112e9
mov eax, dword [rsp + 0x64]
movzx ecx, word [rsp + 0x62]
mov dword [rbx], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 4], ax
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14011e5f0
add rsp, 0x80
pop rbx
ret

Function at 0x140011310
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x140185fc0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor r14d, r14d
mov rbp, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x140011362
movzx ecx, word [rdx + 4]
mov eax, 2
mov word [rsp + 0x58], ax
mov qword [rsp + 0x60], r14
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x5a], ax
mov eax, dword [rbx]
mov dword [rsp + 0x5c], eax
mov qword [rsp + 0x40], r14
mov rax, rbx
neg rax
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x58]
mov r8d, ebp
sbb r9d, r9d
mov rdx, rsi
and r9d, 0x10
mov rcx, rdi
mov dword [rsp + 0x30], r9d
test rbx, rbx
lea r9, [rsp + 0x50]
cmove rax, r14
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x1400113be
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
jmp 0x1400113c2
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14011e5f0
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret