joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400094f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x1400bc040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x140009546
call fcn.1400096c0
mov dword [rbp - 0x59], ebx
lea rax, [0x1400bc0c0]
mov qword [rbp - 0x51], rax
movups xmm0, xmmword [rbp - 0x59]
movups xmmword [rsi], xmm0
xor eax, eax
jmp 0x140009635
mov dword [rbp + 0x17], ebx
mov qword [rbp + 0x1f], rbx
mov qword [rbp + 0x27], rbx
lea rcx, [rbp + 0x1f]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
xor eax, eax
movups xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x49], rax
lea rax, [rdi + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rbp - 0x59], rax
lea rax, [rbp - 0x39]
mov qword [rbp - 0x51], rax
mov ecx, dword [0x1400e75f4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x59]
mov ecx, dword [0x1400e75f4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r9, rsi
lea r8, [rbp - 0x39]
mov rcx, rdi
call fcn.140009af0
test rax, rax
je 0x1400095f3
nop dword [rax + rax]
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
mov r9, rsi
lea r8, [rbp - 0x39]
mov rcx, rdi
call fcn.140009af0
test rax, rax
jne 0x1400095d0
mov rdx, qword [rbp - 0x49]
mov ecx, dword [0x1400e75f4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rdi, [rbp - 0x39]
mov esi, 0xa
nop dword [rax]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000961e
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add rdi, 8
sub rsi, 1
jne 0x140009610
lea rcx, [rbp + 0x1f]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14008cbe0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400097a0
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 [0x1400e75f4]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400098e0
cmp qword [rax], rbx
je 0x1400097dc
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400097c8
add rsp, 0x70
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x1400098e0
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x1400098a0
cmp ecx, 1
jne 0x1400098e0
xorps xmm0, xmm0
mov dword [rbx + 0x50], 2
lea rdx, [rbx + 0x58]
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x30], xmm0
call qword [sym.imp.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 qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
lea r8, [0x1400b71d0]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCopyException_void____ptr64__void_const____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
lea rax, vtable.std::exception.0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call qword [sym.imp.VCRUNTIME140.dll___std_exception_destroy]
jmp 0x1400098c6
xorps xmm0, xmm0
mov dword [rbx + 0x50], 1
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCurrentException_void____ptr64_]
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x58]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrAssign_void____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
add rsp, 0x70
pop rbx
ret
Function at 0x14000a550
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400bc040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, qword [rsp + 0xa0]
lea r9, [rsp + 0x50]
xor esi, esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x50], esi
call qword [sym.imp.WS2_32.dll_WSASend]
mov rcx, qword gs:[0x58]
mov edi, eax
mov eax, 4
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x1400e7520], ecx
jle 0x14000a5d9
lea rcx, [0x1400e7520]
call fcn.14008ccb0
cmp dword [0x1400e7520], 0xffffffff
jne 0x14000a5d9
lea rcx, [0x140092c70]
call fcn.14008d2fc
lea rcx, [0x1400e7520]
call fcn.14008cc44
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
lea rax, [0x1400bc0d0]
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
mov eax, dword [rbx]
cmp eax, 0x40
jne 0x14000a605
mov edx, 0x2746
jmp 0x14000a611
cmp eax, 0x4d2
jne 0x14000a619
mov edx, 0x274d
mov rcx, rbx
call fcn.14002e830
test edi, edi
je 0x14000a624
mov eax, 0xffffffff
jmp 0x14000a62a
mov eax, dword [rsp + 0x50]
mov dword [rbx], esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008cbe0
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000a640
Capabilities:
Get socket status

Disassembly:
push rbx
push rdi
push r12
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x1400bc040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, qword [rsp + 0x2d0]
mov r12, r9
mov r15, r8
movzx edi, dl
mov r14, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14000a690
mov edx, 0x2719
mov rcx, rbx
call fcn.14002e830
xor eax, eax
jmp 0x14000a80e
cmp byte [rsp + 0x2c8], 0
mov qword [rsp + 0x2a8], rbp
je 0x14000a6b3
test dil, 0x10
je 0x14000a6b3
xor ebp, ebp
mov dword [rbx], ebp
xor eax, eax
jmp 0x14000a806
mov qword [rsp + 0x268], rsi
mov r8, r12
mov rdx, r15
mov qword [rsp + 0x260], r13
mov qword [rsp + 0x20], rbx
call fcn.14000a550
test eax, eax
jns 0x14000a7f4
test dil, 1
jne 0x14000a890
xor ebp, ebp
mov r13d, 4
mov rax, qword gs:[0x58]
mov edx, dword [0x1400e7520]
mov edi, r13d
mov rsi, qword [rax]
cmp edx, dword [rsi + r13]
jle 0x14000a73d
lea rcx, [0x1400e7520]
call fcn.14008ccb0
mov edx, dword [0x1400e7520]
cmp edx, 0xffffffff
jne 0x14000a73d
lea rcx, [0x140092c70]
call fcn.14008d2fc
lea rcx, [0x1400e7520]
call fcn.14008cc44
mov edx, dword [0x1400e7520]
mov rcx, qword [rbx + 8]
mov rax, qword [0x1400bc0d8]
cmp qword [rcx + 8], rax
jne 0x14000a756
cmp dword [rbx], 0x2733
je 0x14000a7ad
cmp edx, dword [rsi + r13]
jle 0x14000a789
lea rcx, [0x1400e7520]
call fcn.14008ccb0
cmp dword [0x1400e7520], 0xffffffff
jne 0x14000a789
lea rcx, [0x140092c70]
call fcn.14008d2fc
lea rcx, [0x1400e7520]
call fcn.14008cc44
mov rcx, qword [rbx + 8]
mov rax, qword [0x1400bc0d8]
cmp qword [rcx + 8], rax
jne 0x14000a890
cmp dword [rbx], 0x4d5
jne 0x14000a890
mov edi, r13d
lea ecx, [r14 + 1]
mov qword [rsp + 0x48], r14
xor r9d, r9d
mov dword [rsp + 0x40], 1
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x14000a82e
mov r8, r12
mov dword [rbx], ebp
mov rdx, r15
mov qword [rsp + 0x20], rbx
mov rcx, r14
call fcn.14000a550
test eax, eax
js 0x14000a6ed
mov eax, eax
mov rsi, qword [rsp + 0x268]
mov r13, qword [rsp + 0x260]
mov rbp, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14008cbe0
add rsp, 0x270
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov eax, dword [rdi + rdx]
cmp dword [0x1400e7520], eax
jle 0x14000a872
lea rcx, [0x1400e7520]
call fcn.14008ccb0
cmp dword [0x1400e7520], 0xffffffff
jne 0x14000a872
lea rcx, [0x140092c70]
call fcn.14008d2fc
lea rcx, [0x1400e7520]
call fcn.14008cc44
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x1400bc0d0]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
xor eax, eax
jmp 0x14000a7f6
Function at 0x14000a8a0
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400bc040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r9
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov esi, ecx
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000a917
mov dword [rdi], 0
cmp esi, 0x17
jne 0x14000a912
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov edx, 0x29
mov dword [rsp + 0x20], 4
mov r8d, 0x1b
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, rbx
jmp 0x14000a985
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400e7520], eax
jle 0x14000a960
lea rcx, [0x1400e7520]
call fcn.14008ccb0
cmp dword [0x1400e7520], 0xffffffff
jne 0x14000a960
lea rcx, [0x140092c70]
call fcn.14008d2fc
lea rcx, [0x1400e7520]
call fcn.14008cc44
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x1400bc0d0]
mov qword [rsp + 0x38], rax
mov rax, 0xffffffffffffffff
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14008cbe0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140021f20
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140021f48
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140021f6e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140021f70
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140021fc9
test ecx, ecx
jle 0x140021fa9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140021fc9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140021fc9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140021ff0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140022012
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140022028
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140022044
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140022046
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140022082
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14002211e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400220bd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400220fe
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14002211e
cmp rbx, rax
ja 0x1400220d0
test rbx, rbx
je 0x14002211e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140022580
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400bc040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400225ad
xor eax, eax
jmp 0x140022719
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400225e7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400225e7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140022719
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14002270c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14002262a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140022655
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140022711
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400226c4
sub eax, 1
je 0x1400226c4
cmp eax, 2
jne 0x14002270c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140022711
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400226f2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14002270c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140022711
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14008cbe0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400233d0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x1400bc040]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx ebx, dl
mov rdi, rcx
mov eax, 1
lock xadd dword [0x1400e7380], eax
inc eax
cmp eax, 1
jne 0x14002341f
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1400e7384], eax
test bl, bl
je 0x140023431
xor ebx, ebx
lock xadd dword [0x1400e7384], ebx
test ebx, ebx
jne 0x140023455
mov rax, rdi
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14008cbe0
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov rax, qword gs:[0x58]
mov edx, 4
mov dword [rsp + 0x24], 0
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400e7520], eax
jle 0x1400234a6
lea rcx, [0x1400e7520]
call fcn.14008ccb0
cmp dword [0x1400e7520], 0xffffffff
jne 0x1400234a6
lea rcx, [0x140092c70]
call fcn.14008d2fc
lea rcx, [0x1400e7520]
call fcn.14008cc44
lea rax, [0x1400bc0d0]
mov dword [rsp + 0x20], ebx
lea rdx, str.winsock
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call fcn.1400083b0
int3
Function at 0x140026840
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400bc040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140026913
cmp byte [rcx + 0x71], 0
je 0x140026913
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14002690f
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 0x1400268d4
sub eax, 1
je 0x1400268d8
cmp eax, 2
jne 0x14002690f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008cbe0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140026906
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 0x14002690f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400268bc
xor al, al
jmp 0x1400268bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008cbe0
add rsp, 0x60
pop rbx
ret
Function at 0x140027e90
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rdi, rcx
mov rcx, qword [rcx + 0x320]
test rcx, rcx
jne 0x140027eb8
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
call qword [rax + select]
imul r14, qword [rdi + 0x2e0], 0xf4240
mov rbp, qword [rdi + 0x1f8]
lea rsi, [rdi + 0x200]
lea rcx, [rsp + 0x30]
call fcn.140005830
mov rax, qword [rsp + 0x30]
test rax, rax
js 0x140027f02
movabs rbx, 0x7fffffffffffffff
mov rcx, rbx
sub rcx, rax
cmp rcx, r14
jge 0x140027f17
jmp 0x140027f1b
movabs rbx, 0x8000000000000000
mov rcx, rbx
sub rcx, rax
cmp r14, rcx
jl 0x140027f1b
lea rbx, [r14 + rax]
cmp byte [rsi + 8], 0
je 0x140027f3d
lea r8, [rsi + 0x10]
lea rdx, [rbp + 0x28]
mov r9, 0xffffffffffffffff
mov rcx, qword [rbp + 0x58]
call fcn.1400308a0
mov byte [rsi + 8], 0
mov rax, rsi
mov qword [rax], rbx
mov qword [rsp + 0x30], rdi
mov rbp, qword [rdi + 0x1f8]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov ecx, dword [0x1400e75f4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r14d, r14d
test rax, rax
je 0x140027f73
mov rdx, qword [rax + 8]
jmp 0x140027f76
mov rdx, r14
mov r8d, 0x90
call fcn.14002e690
mov rbx, rax
mov qword [rsp + 0x40], rax
mov qword [rax + 0x20], r14
lea rax, [0x14003b6a0]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
mov dword [rbx + 0x38], r14d
lea rax, [0x1400bc0c0]
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], r14
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x50], rax
lea rcx, [rbx + 0x58]
lea r9, [rdi + 0x238]
call fcn.14003c4a0
mov qword [rsp + 0x48], rbx
mov byte [rsi + 8], 1
lea r9, [rsi + 0x10]
lea rdx, [rbp + 0x28]
mov qword [rsp + 0x20], rbx
mov r8, rsi
mov rcx, qword [rbp + 0x58]
call fcn.14003c610
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
lea rcx, [rsp + 0x38]
call fcn.14003b5e0
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x1400282d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400bc040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [rcx + 8]
lea rax, [0x1400bc0c0]
xor edi, edi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xorps xmm0, xmm0
mov dword [rsp + 0x50], edi
mov rbx, rdx
mov qword [rsp + 0x38], 2
movdqu xmmword [rsp + 0x40], xmm0
cmp rcx, 0xffffffffffffffff
jne 0x140028338
mov edx, 0x2719
lea rcx, [rsp + 0x20]
call fcn.14002e830
jmp 0x1400283ec
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]
mov edx, 4
test eax, eax
jne 0x140028387
cmp rcx, 0x80
ja 0x14002843a
movups xmm0, xmmword [rsp + 0x38]
mov eax, dword [rsp + 0x50]
movsd xmm1, qword [rsp + 0x48]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov dword [rbx + 0x18], eax
jmp 0x140028402
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400e7520], eax
jle 0x1400283cb
lea rcx, [0x1400e7520]
call fcn.14008ccb0
cmp dword [0x1400e7520], 0xffffffff
jne 0x1400283cb
lea rcx, [0x140092c70]
call fcn.14008d2fc
lea rcx, [0x1400e7520]
call fcn.14008cc44
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
lea rax, [0x1400bc0d0]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
mov dword [rbx + 0x18], edi
mov edi, dword [rsp + 0x20]
mov qword [rbx], 2
test edi, edi
jne 0x140028428
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008cbe0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rdx, str.local_endpoint
lea rcx, [rsp + 0x20]
call fcn.1400083b0
int3
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400e7520], eax
jle 0x14002847e
lea rcx, [0x1400e7520]
call fcn.14008ccb0
cmp dword [0x1400e7520], 0xffffffff
jne 0x14002847e
lea rcx, [0x140092c70]
call fcn.14008d2fc
lea rcx, [0x1400e7520]
call fcn.14008cc44
mov dword [rsp + 0x20], 0x2726
lea rax, [0x1400bc0d0]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call fcn.140008340
int3
Function at 0x14002ef40
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rdi, rdx
mov rbp, qword [rcx]
lea r14, [rcx + 0x40]
lea rsi, [rcx + 8]
mov qword [rsp + 0x30], rdx
mov ecx, dword [0x1400e75f4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r15d, r15d
test rax, rax
je 0x14002ef85
mov rdx, qword [rax + 8]
jmp 0x14002ef88
mov rdx, r15
mov r8d, 0xa0
call fcn.14002e690
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rax + 0x20], r15
lea rax, [0x14003c290]
mov qword [rbx + 0x28], rax
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov dword [rbx + 0x30], r15d
mov dword [rbx + 0x38], r15d
lea rax, [0x1400bc0c0]
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], r15
mov rax, qword [rdi]
mov qword [rbx + 0x50], rax
movzx eax, byte [rdi + 8]
mov byte [rbx + 0x58], al
mov rax, qword [rdi + 0x10]
mov qword [rbx + 0x60], rax
lea rcx, [rbx + 0x68]
mov r9, r14
call fcn.14003c4a0
mov qword [rsp + 0x40], rbx
mov byte [rsi + 8], 1
lea r9, [rsi + 0x10]
lea rdx, [rbp + 0x28]
mov qword [rsp + 0x20], rbx
mov r8, rsi
mov rcx, qword [rbp + 0x58]
call fcn.14003c610
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
lea rcx, [rsp + 0x30]
call fcn.14003c1d0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret