joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400198d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov dword [rax + 0x20], r9d
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor r14d, r14d
lea r9, [rbp + 0x38]
mov qword [rax - 0x48], r14
mov qword [rax - 0x50], r14
mov dword [rax - 0x58], r14d
mov dword [rbp + 0x38], r14d
call qword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [0x14024a330]
lea rdi, [0x14024a328]
movabs r15, 0x4d54ee85da812030
mov dword [rbp - 0x1c], r14d
add rdx, r15
mov ebx, eax
cmp rdx, 1
jbe 0x140019950
mov rcx, qword [0x14024a328]
mov edx, eax
mov r8, qword [rcx + 0x30]
mov rcx, rdi
call r8
jmp 0x140019955
test ebx, ebx
setne al
mov dword [rbp - 0x20], ebx
movabs r10, 0x4800144005b3
mov rbx, qword [rbp + 0x40]
movzx eax, al
add rax, 2
mov qword [rbp - 0x18], rdi
movups xmm0, xmmword [rbp - 0x20]
mov qword [rbp - 0x10], rax
movsd xmm1, qword [rbp - 0x10]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov r9, qword [rbx + 0x10]
cmp r9, 1
je 0x140019997
mov eax, dword [rbx]
mov r8d, eax
jmp 0x1400199c7
mov rcx, qword [rbx + 8]
mov rax, r10
mov r8d, dword [rbx]
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul eax, ecx, 0x3e8
add eax, r8d
cmp eax, 0x40
jne 0x140019a06
mov rcx, qword [0x14024a330]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x1400199fb
mov rax, qword [0x14024a328]
mov edx, 0x2746
mov rcx, rdi
call qword [rax + 0x30]
mov dword [rbp - 0x20], 0x2746
jmp 0x140019a73
mov al, 1
mov dword [rbp - 0x20], 0x2746
jmp 0x140019a73
cmp r9, 1
jne 0x140019a39
mov rcx, qword [rbx + 8]
mov rax, r10
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul eax, ecx, 0x3e8
add r8d, eax
cmp r8d, 0x4d2
jne 0x140019a93
mov rcx, qword [0x14024a330]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x140019a6a
mov rax, qword [0x14024a328]
mov edx, 0x274d
mov rcx, rdi
call qword [rax + 0x30]
jmp 0x140019a6c
mov al, 1
mov dword [rbp - 0x20], 0x274d
movzx eax, al
mov qword [rbp - 0x18], rdi
add rax, 2
movups xmm0, xmmword [rbp - 0x20]
mov qword [rbp - 0x10], rax
movsd xmm1, qword [rbp - 0x10]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
test esi, esi
je 0x140019a9e
mov eax, 0xffffffff
jmp 0x140019aff
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140019ab8
lea rdi, [0x14024a310]
cmp rax, 1
je 0x140019ab8
mov rdi, qword [rbx + 8]
mov rax, qword [rdi + 8]
add rax, r15
mov dword [rbp - 0x1c], r14d
cmp rax, 1
jbe 0x140019ad6
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + 0x30]
jmp 0x140019ad8
xor al, al
movzx eax, al
add rax, 2
mov dword [rbp - 0x20], r14d
mov qword [rbp - 0x10], rax
movsd xmm1, qword [rbp - 0x10]
mov eax, dword [rbp + 0x38]
mov qword [rbp - 0x18], rdi
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001a5d0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
lea rax, vtable.boost::asio::detail::win_iocp_io_context.0
mov qword [rcx], rax
xor esi, esi
cmp qword [rcx + 0xa8], rsi
je 0x14001a6a2
call fcn.14001ab00
mov rdi, qword [rbx + 0xa8]
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x20], rax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x28], rax
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
lock xadd dword [0x14026aed0], eax
mov rcx, qword [rdi + 8]
test eax, eax
je 0x14001a656
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14001a678
xor r8d, r8d
mov rdx, rcx
lea rcx, [fcn.140002df0]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov edx, 0xffffffff
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rbx + 0xa8]
test rdi, rdi
je 0x14001a69b
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov rcx, rdi
call fcn.14015ae00
mov qword [rbx + 0xa8], rsi
mov rcx, qword [rbx + 0x90]
test rcx, rcx
je 0x14001a70a
mov rdx, rcx
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdx + 0x20]
mov qword [rbx + 0x90], rax
test rax, rax
jne 0x14001a6d7
mov qword [rbx + 0x98], rsi
mov qword [rdx + 0x20], rsi
mov rax, qword [rcx + 0x28]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rsi
xor r9d, r9d
lea r8, [rsp + 0x20]
mov rdx, rcx
xor ecx, ecx
call rax
mov rcx, qword [rbx + 0x90]
mov rdx, rcx
test rcx, rcx
jne 0x14001a6c0
lea rcx, [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14001a723
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rbx + 0x48]
test rdi, rdi
je 0x14001a743
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov rcx, rdi
call fcn.14015ae00
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14001a752
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, vtable.boost::asio::execution_context::service.0
mov qword [rbx], rax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14001abe0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x80
xor eax, eax
lea rbx, [rcx + 0x28]
test rcx, rcx
mov ecx, dword [0x14026aefc]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001ad37
nop dword [rax + rax]
cmp qword [rax], rbx
je 0x14001ac27
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14001ac10
add rsp, 0x80
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x14001ad37
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x14001ad04
cmp ecx, 1
jne 0x14001ad37
lea rdx, [rbx + 0x58]
mov dword [rbx + 0x50], 2
lea rcx, [rsp + 0x30]
call fcn.140133bb4
xorps xmm0, xmm0
lea rax, vtable.boost::asio::multiple_exceptions.0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x68]
movups xmmword [rsp + 0x58], xmm0
call fcn.140133bb4
lea rcx, [rsp + 0x30]
call fcn.140133c94
lea rcx, [rsp + 0x20]
call fcn.140133c08
lea r8, [0x140246120]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.140133bdc
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140133bb4
lea rcx, [rsp + 0x20]
call fcn.140133c94
lea rcx, [rsp + 0x68]
call fcn.140133c94
lea rax, vtable.std::exception.0
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x50], rax
call fcn.14015e060
lea rdx, [rsp + 0x40]
lea rcx, [rbx + 0x58]
call fcn.140133bac
lea rcx, [rsp + 0x40]
call fcn.140133c94
add rsp, 0x80
pop rbx
ret
lea rcx, [rsp + 0x20]
mov dword [rbx + 0x50], 1
call fcn.140133c08
lea rcx, [rsp + 0x20]
call fcn.140133c14
lea rcx, [rbx + 0x58]
lea rdx, [rsp + 0x20]
call fcn.140133bac
lea rcx, [rsp + 0x20]
call fcn.140133c94
add rsp, 0x80
pop rbx
ret
Function at 0x14001bc10
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x14001bd0f
mov qword [rsp + 0x40], rdi
mov eax, 0xffffffff
lock xadd dword [rcx + 0x30], eax
cmp eax, 1
jne 0x14001bc3f
call fcn.14001ab00
mov rcx, qword [rbx + 0x30]
call fcn.14001ab00
mov rdi, qword [rbx + 0x38]
test rdi, rdi
je 0x14001bcef
mov rax, qword [rdi + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rdi + 8]
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x14026aed0], eax
mov rcx, qword [rdi + 8]
test eax, eax
je 0x14001bca5
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14001bcc7
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.140002df0]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rdi + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rbx + 0x38]
test rdi, rdi
je 0x14001bce7
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov rcx, rdi
call fcn.14015ae00
mov qword [rbx + 0x38], 0
mov rcx, qword [rbx + 0x30]
mov rdi, qword [rsp + 0x40]
test rcx, rcx
je 0x14001bd07
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0x30], 0
add rsp, 0x30
pop rbx
ret
Function at 0x140022a00
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rbp, r9
mov rsi, rdx
mov r14, rcx
xor r15d, r15d
mov dword [r11 + 0x28], r15d
lea rax, [r11 + 0x28]
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x50], r15
mov qword [r11 - 0x58], r15
lea r9d, [r15 + 2]
mov r8, rbp
lea rdx, [0x1401e0cc4]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov edi, r15d
mov qword [rsp + 0x50], r15
mov edx, dword [rsp + 0xa0]
shr rdx, 1
je 0x140022a7b
lea rcx, [rsp + 0x40]
call fcn.140033fe0
mov rdi, qword [rsp + 0x50]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r15
mov r9d, 2
mov r8, rbp
lea rdx, [0x1401e0cc4]
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov qword [rsi], r15
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
test eax, eax
je 0x140022b1e
test rbx, rbx
je 0x140022b01
sub rdi, rbx
sar rdi, 1
add rdi, rdi
mov rax, rbx
cmp rdi, 0x1000
jb 0x140022af6
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022b6b
mov rdx, rdi
mov rcx, rbx
call fcn.14015ae00
mov rax, rsi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x140022b25
mov rdx, rbx
mov rcx, rsi
call fcn.14000c6a0
nop
test rbx, rbx
je 0x140022b01
sub rdi, rbx
sar rdi, 1
add rdi, rdi
mov rax, rbx
cmp rdi, 0x1000
jb 0x140022af6
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022af6
call fcn.1401644c4
int3
Function at 0x140028110
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x60], 0
mov rbx, rcx
je 0x1400281ea
test edx, edx
jne 0x1400281f7
mov rcx, qword [rcx + 0x58]
mov qword [rsp + 0x40], rsi
call fcn.14001ab00
mov rsi, qword [rbx + 0x60]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov r9d, 0xffffffff
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x20], rax
lea ecx, [r8 + 2]
mov rax, qword [rsi + 8]
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov eax, edi
lock xadd dword [0x14026aed0], eax
mov rcx, qword [rsi + 8]
test eax, eax
je 0x140028194
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1400281b6
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.140002df0]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rsi + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rsi, qword [rbx + 0x60]
test rsi, rsi
je 0x1400281d6
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov rcx, rsi
call fcn.14015ae00
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x60], rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test edx, edx
je 0x1400281f7
mov rax, qword [rcx + 0x58]
xor edi, edi
xchg dword [rax + 0x34], edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400294c0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1f0
mov rax, qword [0x140249670]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
movzx ebx, dl
mov rdi, rcx
mov eax, 1
lock xadd dword [0x14026aee8], eax
inc eax
cmp eax, 1
jne 0x14002950d
lea ecx, [rax + 1]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x14026aeec], eax
test bl, bl
je 0x140029581
xor ebx, ebx
lock xadd dword [0x14026aeec], ebx
test ebx, ebx
je 0x140029581
movabs rcx, 0x4d54ee85da812030
mov qword [rsp + 0x200], rsi
add rcx, qword [0x14024a330]
lea rsi, [0x14024a328]
mov dword [rsp + 0x24], 0
cmp rcx, 1
jbe 0x14002955e
mov rax, qword [0x14024a328]
mov edx, ebx
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x140029560
mov al, 1
movzx eax, al
add rax, 2
mov qword [rsp + 0x28], rsi
mov rsi, qword [rsp + 0x200]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], ebx
test al, 1
jne 0x1400295a5
mov rax, rdi
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.14015ade0
mov rbx, qword [rsp + 0x208]
add rsp, 0x1f0
pop rdi
ret
lea rdx, str.winsock
lea rcx, [rsp + 0x20]
call fcn.1400182d0
int3
Function at 0x140031300
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xd0
mov rbx, qword [rcx + 0x18]
xor edi, edi
mov eax, edi
lock xadd dword [rbx + 0x30], eax
test eax, eax
jne 0x140031337
mov rcx, rbx
call fcn.14001ab00
mov rbx, qword [rsp + 0xe0]
add rsp, 0xd0
pop rdi
ret
mov dword [rsp + 0x90], edi
lea rcx, [rsp + 0x98]
call fcn.140133c08
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
lea rax, [rbx + 0x28]
test rbx, rbx
cmove rax, rdi
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x14026aefc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x14026aefc]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.14001ae30
test rax, rax
je 0x1400313ea
nop dword [rax]
nop word [rax + rax]
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.14001ae30
test rax, rax
jne 0x1400313d0
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x14026aefc]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rbx, [rsp + 0x40]
mov edi, 0xa
mov rcx, qword [rbx]
test rcx, rcx
je 0x140031413
call fcn.14015b358
add rbx, 8
sub rdi, 1
jne 0x140031406
lea rcx, [rsp + 0x98]
call fcn.140133c94
mov rbx, qword [rsp + 0xe0]
add rsp, 0xd0
pop rdi
ret

Function at 0x140047da0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140047dcf
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x140047dc7
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140047e18
mov ecx, dword [0x14026aefc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140047e08
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140047e08
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x140047e23
inc ecx
inc rax
cmp rax, 2
jl 0x140047df6
mov rcx, rbx
call fcn.14015b358
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14005fee0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rcx, rdx
mov edx, 4
jmp 0x140071170
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.140070e7c
mov rcx, rax
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp 0x14005ff80
mov rcx, rdx
jmp 0x140071160
mov rdx, rcx
lea rcx, [rsp + 8]
jmp 0x14005fe00
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
test rdx, rdx
je 0x1400711a0
movzx eax, byte [r9 + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc r9
imul r8, r10
cmp r9, rdx
jb 0x140071182
mov rax, r8
ret
Function at 0x140065610
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r14, r8
mov rdi, rdx
mov r13, rcx
and dword [rax - 0x38], 0
mov rcx, r8
call fcn.140067ef8
mov rbp, rax
lea r9, [rax + 2]
movabs rcx, 0xaaaaaaaaaaaaaaab
mov rax, rcx
mul r9
mov r12, rdx
shr r12, 1
mov rax, rcx
mul rbp
shr rdx, 1
lea rcx, [rdx + rdx*2]
mov r15, rbp
sub r15, rcx
mov rcx, rdi
call fcn.14000bae0
mov dword [rsp + 0x20], 1
mov rcx, r14
call fcn.1400633b8
mov rdx, rax
mov rcx, rdi
call fcn.14000b780
test rbp, rbp
je 0x14006574d
mov esi, 2
lea rdx, [rsi - 2]
mov rcx, r14
call fcn.14005f7a8
movzx ebx, byte [rax]
shl ebx, 8
lea rdx, [rsi - 1]
cmp rdx, rbp
jae 0x1400656d6
mov rcx, r14
call fcn.14005f7a8
movzx ecx, byte [rax]
or ebx, ecx
shl ebx, 8
cmp rsi, rbp
jae 0x1400656ee
mov rdx, rsi
mov rcx, r14
call fcn.14005f7a8
movzx ecx, byte [rax]
or ebx, ecx
mov rax, rbx
shr rax, 0x12
mov dl, byte [rax + r13]
mov rcx, rdi
call fcn.14000c9b0
mov rax, rbx
shr rax, 0xc
and eax, 0x3f
mov dl, byte [rax + r13]
mov rcx, rdi
call fcn.14000c9b0
mov rax, rbx
shr rax, 6
and eax, 0x3f
mov dl, byte [rax + r13]
mov rcx, rdi
call fcn.14000c9b0
and ebx, 0x3f
mov dl, byte [rbx + r13]
mov rcx, rdi
call fcn.14000c9b0
add rsi, 3
lea rax, [rsi - 2]
cmp rax, rbp
jb 0x1400656ae
test r15, r15
je 0x14006577e
lea rdx, [r12*4 - 1]
mov rcx, rdi
call fcn.14000b850
mov byte [rax], 0x3d
cmp r15, 1
jne 0x14006577e
lea rdx, [r12*4 - 2]
mov rcx, rdi
call fcn.14000b850
mov byte [rax], 0x3d
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14007aa8c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rcx
mov rbp, rdx
mov rcx, rdx
call fcn.140067ef8
mov rcx, rsi
mov qword [rsp + 0x40], rax
call fcn.140067ef8
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.14000a800
xor edi, edi
mov r14, qword [rax]
test r14, r14
je 0x14007aafc
mov rdx, rdi
mov rcx, rsi
call fcn.14005f7a8
mov rdx, rdi
mov rcx, rbp
mov rbx, rax
call fcn.14005f7a8
inc rdi
mov cl, byte [rax]
xor byte [rbx], cl
cmp rdi, r14
jb 0x14007aad7
mov rbx, qword [rsp + 0x48]
mov rax, rsi
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140082240
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x2d0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x140249670]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
call fcn.140082318
test al, al
jne 0x1400822fd
mov ecx, 0x202
lea rdx, [rsp + 0x120]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400822f6
call fcn.140067f0c
mov rbx, rax
test rax, rax
je 0x1400822ed
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 2
jl 0x1400822ed
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x30]
call fcn.14005ba84
nop
lea rdx, str.Failed_to_Initate_WinSock2.2
lea rcx, [rsp + 0x30]
call fcn.14002e2d0
mov rax, qword [rbx]
lea r9, [rsp + 0x30]
lea r8, str.WinSock2
mov edx, 2
mov rcx, rbx
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x30]
call fcn.14001bb60
mov byte [0x140268d3f], 0
jmp 0x1400822fd
mov byte [0x140268d3f], 1
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.14015ade0
add rsp, 0x2d0
pop rbx
ret
Function at 0x140084d20
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, 2
mov word [rcx], di
movzx ecx, dx
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rbx + 4]
mov ecx, edi
lea rdx, str.127.0.0.1
mov word [rbx + 2], ax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.WS2_32.dll_inet_pton]

Function at 0x140084d60
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, reloc.WS2_32.dll_socket
mov word [rcx], di
movzx ecx, dx
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rbx + 8]
mov ecx, edi
lea rdx, [0x1401aba2c]
mov word [rbx + 2], ax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.WS2_32.dll_inet_pton]

Function at 0x140084da0
Capabilities:
Connect socket

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140249670]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp dword [rcx], 0x17
mov rbx, rcx
jne 0x140084ddc
lea rcx, [rsp + 0x20]
call fcn.140084d60
mov rcx, rbx
call fcn.140085078
mov r8d, 0x1c
lea rdx, [rsp + 0x20]
jmp 0x140084df9
lea rcx, [rsp + 0x20]
call fcn.140084d20
mov rcx, rbx
call fcn.140085078
mov r8d, setsockopt
lea rdx, [rsp + 0x20]
movsxd rcx, eax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
mov ecx, eax
sete al
mov byte [rbx + 4], al
mov eax, ecx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14015ade0
add rsp, 0x50
pop rbx
ret
Function at 0x140084e24
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
push rbp
push rdi
push r14
lea rbp, [rax - 0x48]
sub rsp, 0x130
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov eax, edx
mov r14, rcx
mov edx, 2
lea r8d, [rdx + 0xf]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp byte [rbp + 0x70], 0
je 0x140084e87
mov dword [rbp + 0x70], 1
lea r8, [rbp + 0x70]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp qword [rbp + 0x60], 0
je 0x140084f6e
mov dword [rsp + 0x20], 8
lea r9, [rbp + 0x60]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140084f6e
call fcn.140067f0c
mov rsi, rax
test rax, rax
je 0x140084f6e
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 3
jl 0x140084f6e
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x40]
call fcn.14005ba84
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea rdx, str.Failed_to_set_UDP_send_buffer_size_to
lea rcx, [rsp + 0x40]
call fcn.14002e2d0
mov rcx, rax
mov rdx, qword [rbp + 0x60]
call fcn.14005f510
mov rcx, rax
lea rdx, str._for_socket
call fcn.14002e2d0
mov rcx, rax
mov rdx, rdi
call fcn.14005f510
mov rcx, rax
lea rdx, str._error_code:
call fcn.14002e2d0
mov rcx, rax
mov edx, ebx
call fcn.14002a180
mov rax, qword [rsi]
lea r9, [rsp + 0x40]
lea r8, str.SimpleUDP
mov edx, 3
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x40]
call fcn.14001bb60
cmp qword [rbp + 0x68], 0
je 0x140085056
mov dword [rsp + 0x20], 8
lea r9, [rbp + 0x68]
mov edx, 0xffff
mov r8d, 0x1002
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140085056
call fcn.140067f0c
mov rsi, rax
test rax, rax
je 0x140085056
mov r9, qword [rax]
mov rcx, rax
call qword [r9 + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 3
jl 0x140085056
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x40]
call fcn.14005ba84
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea rdx, str.Failed_to_set_UDP_receive_buffer_size_to
lea rcx, [rsp + 0x40]
call fcn.14002e2d0
mov rcx, rax
mov rdx, qword [rbp + 0x68]
call fcn.14005f510
mov rcx, rax
lea rdx, str._for_socket
call fcn.14002e2d0
mov rcx, rax
mov rdx, rdi
call fcn.14005f510
mov rcx, rax
lea rdx, str._error_code:
call fcn.14002e2d0
mov rcx, rax
mov edx, ebx
call fcn.14002a180
mov rax, qword [rsi]
lea r9, [rsp + 0x40]
lea r8, str.SimpleUDP
mov edx, 3
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x40]
call fcn.14001bb60
mov edx, edi
mov rcx, r14
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
jmp 0x140085158
mov dword [rcx + 8], edx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rdx
call fcn.140085078
movsxd rcx, eax
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.WS2_32.dll_send]