joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180036110
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x180069310]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x180036154
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1800361ba
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1800361f1
test eax, eax
js 0x1800361cb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1800361e4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.180027670
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.18002e7a0
mov rcx, rax
call fcn.180027bf0
mov ecx, 7
int 0x29
ud2

Function at 0x180037af0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x180037b28
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.180037b40
nop
add rsp, 0x38
ret

Function at 0x180037b40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x180037b83
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x18002b640]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.18005c420
ud2
Function at 0x180045b60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x180045bda
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x180045bd0
cmp r11, r10
ja 0x180045c73
cmp r10, rdx
ja 0x180045c87
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x180045bd2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x180045bb0
jmp 0x180045c47
ja 0x180045bda
mov r11, r10
cmp rax, r8
jne 0x180045b82
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x180045c4b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x180045c20
mov r8, r10
sub ecx, r9d
jns 0x180045c3e
jmp 0x180045c4d
cmp r10, rdx
je 0x180045c59
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x180045c4d
xor al, 1
cmp r8, rdx
jne 0x180045c00
jmp 0x180045c4d
xor eax, eax
jmp 0x180045c4d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.18005c4c0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.18005c920
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.18005c8b0
ud2
Function at 0x180052c70
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180052ca0
xor eax, eax
jmp 0x180052d63
mov rbp, rbx
cmp word [rax], si
je 0x180052cc5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180052cac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180052ca8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180052b90
movsxd r14, eax
test eax, eax
jne 0x180052d03
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x180052c99
mov rcx, r14
call fcn.180050670
mov rdi, rax
test rax, rax
jne 0x180052d1c
xor ecx, ecx
call fcn.18004f954
jmp 0x180052cf8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180052b90
test eax, eax
jne 0x180052d4d
mov rcx, rdi
call fcn.18004f954
jmp 0x180052d57
xor ecx, ecx
call fcn.18004f954
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1800545f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1800a1240]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180054647
cmp word [rdx], r13w
jne 0x180054647
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18005464c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180054771
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180054792
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180054685
mov rdx, r9
mov word [rbx], cx
jmp 0x1800546ac
cmp r9, r8
jae 0x1800546bc
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180054666
jmp 0x180054771
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x180054766
cmp dword [rsp + 0x80], esi
je 0x180054766
lea r8, [0x1800a1240]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18005473e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18005470e
mov word [rbx], r13w
jmp 0x18005476e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18005471b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18005476e
cmp word [rsp + 0x70], r13w
jne 0x18005474b
cmp rbx, r14
je 0x180054708
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180056cb0
cmp word [rsp + 0x70], r13w
je 0x180054771
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1800a1240]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18005476b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180054771
Function at 0x140002200
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14001e040]
xor rax, rsp
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140002299
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword gs:[0x58]
mov edi, eax
mov eax, 4
mov dword [rsp + 0x24], 0
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x14001f4b4], ecx
jle 0x140002280
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x140002280
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
lea rax, [0x14001e0c8]
mov dword [rsp + 0x20], edi
test edi, edi
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x50]
jne 0x1400022ae
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400126f0
add rsp, 0x40
pop rbx
ret
lea rdx, [0x140015b70]
lea rcx, [rsp + 0x20]
call fcn.1400020d0
int3

Function at 0x1400026d0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14001e040]
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 [0x14001f4c0], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x140002749
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400126f0
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.1400024d0]
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.1400126f0
add rsp, 0x40
pop rbx
ret
Function at 0x1400032c0
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 [0x14001f4dc]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140003400
cmp qword [rax], rbx
je 0x1400032fc
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400032e8
add rsp, 0x70
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140003400
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x1400033c0
cmp ecx, 1
jne 0x140003400
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, [0x14001abc8]
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 0x1400033e6
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 0x140004680
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x14001e040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, qword [rsp + 0xb0]
lea r9, [rsp + 0x50]
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x50], r14d
call qword [sym.imp.WS2_32.dll_WSASend]
mov rcx, qword gs:[0x58]
mov esi, eax
mov edi, 4
add rdi, qword [rcx]
mov ecx, dword [rdi]
cmp dword [0x14001f4b4], ecx
jle 0x14000470e
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x14000470e
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
lea rbp, [0x14001e0c8]
mov qword [rsp + 0x48], rbp
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
mov eax, dword [rbx]
cmp eax, 0x40
jne 0x140004774
mov eax, dword [rdi]
cmp dword [0x14001f4b4], eax
jle 0x14000476a
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x14000476a
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
mov dword [rsp + 0x40], 0x2746
jmp 0x1400047ba
cmp eax, 0x4d2
jne 0x1400047c7
mov eax, dword [rdi]
cmp dword [0x14001f4b4], eax
jle 0x1400047b2
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x1400047b2
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
mov dword [rsp + 0x40], 0x274d
mov qword [rsp + 0x48], rbp
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
test esi, esi
je 0x1400047d2
mov eax, 0xffffffff
jmp 0x1400047d9
mov eax, dword [rsp + 0x50]
mov dword [rbx], r14d
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400126f0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140004800
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x268
mov rax, qword [0x14001e040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, qword [rsp + 0x2d0]
mov r13, r9
mov r12, r8
movzx edi, dl
mov r15, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400048a9
mov rax, qword gs:[0x58]
mov esi, 4
mov rcx, qword [rax]
mov eax, dword [rsi + rcx]
cmp dword [0x14001f4b4], eax
jle 0x140004886
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], r15d
jne 0x140004886
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
lea rax, [0x14001e0c8]
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rax
xor eax, eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x140004a1b
cmp byte [rsp + 0x2c8], 0
mov qword [rsp + 0x260], r14
je 0x1400048ce
test dil, 0x10
je 0x1400048ce
xor r14d, r14d
mov dword [rbx], r14d
xor eax, eax
jmp 0x140004a13
mov r8, r13
mov qword [rsp + 0x2a8], rbp
mov rdx, r12
mov qword [rsp + 0x20], rbx
call fcn.140004680
test eax, eax
jns 0x140004a09
test dil, 1
jne 0x140004a9e
mov esi, 4
xor r14d, r14d
mov rax, qword gs:[0x58]
mov edx, dword [0x14001f4b4]
mov edi, esi
mov rbp, qword [rax]
add rbp, rdi
cmp edx, dword [rbp]
jle 0x140004953
lea rcx, [0x14001f4b4]
call fcn.14001277c
mov edx, dword [0x14001f4b4]
cmp edx, 0xffffffff
jne 0x140004953
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
mov edx, dword [0x14001f4b4]
mov edi, esi
mov rcx, qword [rbx + 8]
mov rax, qword [0x14001e0d0]
cmp qword [rcx + 8], rax
jne 0x14000496c
cmp dword [rbx], 0x2733
je 0x1400049c1
cmp edx, dword [rbp]
jle 0x14000499e
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x14000499e
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
mov rcx, qword [rbx + 8]
mov rax, qword [0x14001e0d0]
cmp qword [rcx + 8], rax
jne 0x140004a9e
cmp dword [rbx], 0x4d5
jne 0x140004a9e
mov edi, esi
lea ecx, [r15 + 1]
mov qword [rsp + 0x48], r15
xor r9d, r9d
mov dword [rsp + 0x40], 1
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], r14
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x140004a3c
mov r8, r13
mov dword [rbx], r14d
mov rdx, r12
mov qword [rsp + 0x20], rbx
mov rcx, r15
call fcn.140004680
test eax, eax
js 0x140004900
mov eax, eax
mov rbp, qword [rsp + 0x2a8]
mov r14, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400126f0
add rsp, 0x268
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdi + rcx]
cmp dword [0x14001f4b4], eax
jle 0x140004a80
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x140004a80
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x14001e0c8]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
xor eax, eax
jmp 0x140004a0b
Function at 0x1400076a0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x14001e040]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx ebx, dl
mov rdi, rcx
mov eax, 1
lock xadd dword [0x14001f4c8], eax
inc eax
cmp eax, 1
jne 0x1400076ed
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x14001f4cc], eax
test bl, bl
je 0x1400076ff
xor ebx, ebx
lock xadd dword [0x14001f4cc], ebx
test ebx, ebx
jne 0x140007723
mov rax, rdi
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400126f0
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 [0x14001f4b4], eax
jle 0x140007774
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x140007774
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
lea rax, [0x14001e0c8]
mov dword [rsp + 0x20], ebx
lea rdx, str.winsock
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call fcn.1400020d0
int3
Function at 0x140009ba0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x14001e040]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
mov qword [rbp - 0x59], rdi
lea rax, [0x14001e0d8]
mov qword [rbp - 0x51], rax
mov rbx, qword [rcx + 0x18]
mov eax, edi
lock xadd dword [rbx + 0x30], eax
test eax, eax
jne 0x140009bf2
mov rcx, rbx
call fcn.1400031e0
jmp 0x140009cd1
mov dword [rbp + 0x27], edi
mov qword [rbp + 0x2f], rdi
mov qword [rbp + 0x37], rdi
lea rcx, [rbp + 0x2f]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
xor eax, eax
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rax
lea rax, [rbx + 0x28]
test rbx, rbx
cmove rax, rdi
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x29]
mov qword [rbp - 0x41], rax
mov ecx, dword [0x14001f4dc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 0x49]
mov ecx, dword [0x14001f4dc]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x29]
mov rcx, rbx
call fcn.140003410
test rax, rax
je 0x140009c95
nop word [rax + rax]
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x29]
mov rcx, rbx
call fcn.140003410
test rax, rax
jne 0x140009c80
mov rdx, qword [rbp - 0x39]
mov ecx, dword [0x14001f4dc]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rbx, [rbp - 0x29]
mov edi, 0xa
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x140009cbd
call fcn.140012a70
add rbx, 8
sub rdi, 1
jne 0x140009cb0
lea rcx, [rbp + 0x2f]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400126f0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x14000b9f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14000ba1f
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x14000ba17
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14000ba68
mov ecx, dword [0x14001f4dc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14000ba58
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14000ba58
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x14000ba73
inc ecx
inc rax
cmp rax, 2
jl 0x14000ba46
mov rcx, rbx
call fcn.140012a70
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 0x14000be80
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14001e040]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
lea rdx, str.SoftwareitsshuxProcessSpoofer_Pro
mov qword [rsp + 0x38], rax
mov rbx, r9
mov qword [rsp + 0x30], rcx
mov rdi, r8
mov dword [rsp + 0x28], 0x20006
xor r9d, r9d
mov dword [rsp + 0x20], ecx
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000bef6
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.Error_creating_opening_registry_key._n
call fcn.1400092a0
xor al, al
jmp 0x14000bf5d
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14000bf00
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14000bf5b
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.Error_writing_to_registry._n
call fcn.1400092a0
xor al, al
jmp 0x14000bf5d
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400126f0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret