joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a0c80
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1401ee038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x14020a4b0]
test rdi, rdi
jne 0x1400a0d33
mov ecx, 0x50
call fcn.14012a8b0
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, SafeArrayCopy
call fcn.14012a8b0
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x1400a0d55
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x14020a4b0], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400a0d81
mov rcx, rax
call fcn.14014d1e4
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.1400a0db0
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14012b460
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.140166ee0
lea rax, str.null_pointer_passed_to_non_null_argument_of_char_traits_..._::length
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__s___nullptr
mov r8d, 0x109
call fcn.140166ee0
int3
Function at 0x1400a0db0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1401ee038]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 3
call fcn.14008b350
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x1400a0f44
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x1401d51e4]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x1400a0f7b
lea rdx, [0x1401d5234]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400a0f69
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x14021c008]
mov r14, rax
movsxd r12, dword [rsp + 0x4c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
test r12, r12
je 0x1400a0f71
test r12d, r12d
js 0x1400a0fe6
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.14012a8b0
mov rbx, rax
mov qword [rsp + 0x30], rax
add r15, rax
mov qword [rsp + 0x40], r15
xor r13d, r13d
xor r15d, r15d
mov rcx, rbx
add rcx, r13
je 0x1400a0f8e
mov rdx, qword [r14 + r15]
call fcn.140166050
add r15, 8
add r13, 0x18
cmp r12, r15
jne 0x1400a0eb2
mov r15, rbx
add r15, r13
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400a09b0
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x1400a0f06
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x1400a0f44
cmp r15, rbx
je 0x1400a0f3c
add r15, 0xffffffffffffffe8
jmp 0x1400a0f2a
mov rcx, qword [r15]
call fcn.14012a8ec
lea rax, [r15 - 0x18]
cmp r15, rbx
mov r15, rax
je 0x1400a0f3c
test r15, r15
je 0x1400a0fba
cmp byte [r15 + 0x17], 0
jns 0x1400a0f1e
jmp 0x1400a0f16
mov rcx, rbx
call fcn.14012a8ec
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14012b460
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x1400a0e64
xor r15d, r15d
xor ebx, ebx
jmp 0x1400a0edf
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x1400a0e61
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.140166ee0
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x44
call fcn.140166ee0
lea rcx, [rsp + 0x30]
call fcn.140166200
int3
Function at 0x1400a4180
Capabilities:
Initialize winsock library

Disassembly:
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1401ee038]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
mov rax, qword [0x14020a4f8]
cmp rax, 1
jbe 0x1400a41c1
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.14012b460
nop
add rsp, 0x1c0
pop rsi
ret
lea rcx, [0x14020a4f8]
call fcn.14009cc90
test al, al
je 0x1400a4218
lea rsi, [rsp + 0x20]
mov r8d, 0x198
mov rcx, rsi
mov dl, 0xaa
call fcn.14012e3f0
mov cx, 0x202
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400a41fd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x14020a500]
lea rcx, [0x14020a4f8]
xor r8d, r8d
mov r9, rcx
call fcn.14009cd50
jmp 0x1400a41a7
mov rax, qword [0x14020a4f8]
jmp 0x1400a41a7

Function at 0x1400a6a40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov ebx, r9d
mov rsi, rcx
mov rax, qword [0x1401ee038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
test r8b, r8b
jne 0x1400a6b16
or ebx, 8
lea r8, [rsp + 0x30]
mov rcx, rdx
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400a6bce
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1400a6b0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x1400a6b12
call fcn.1400f6c70
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi], 1
mov qword [rsi + 8], 0
cmp rbx, 0xffffffffffffffff
je 0x1400a6ace
test rbx, rbx
je 0x1400a6af1
call fcn.1400f6c70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400a6ae9
mov qword [rsi + 8], rbx
call fcn.1400f6c70
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14012b460
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x1400a6ab3
xor ebx, ebx
jmp 0x1400a6aab
lea r8, [rsp + 0x30]
mov rcx, rdx
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400a6bce
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x1400a6bc6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rdi, 0xffffffffffffffff
je 0x1400a6bca
call fcn.1400f6c70
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x38]
mov qword [r14], rax
or ebx, 8
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 2
xor r15d, r15d
mov rcx, rdi
mov edx, ebx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
mov rbx, qword [r14]
cmovne r15, rbx
mov qword [rsp + 0x30], r15
test r15, r15
je 0x1400a6bd6
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400a6a98
call fcn.1400f6c70
mov rcx, rdi
call fcn.1400e0410
jmp 0x1400a6a8e
xor edi, edi
jmp 0x1400a6b5a
xor edi, edi
jmp 0x1400a6b52
mov byte [rsi], 0
jmp 0x1400a6af1
mov byte [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400a6af1
call fcn.1400f6c70
mov rcx, rdi
call fcn.1400e0410
jmp 0x1400a6af1
Function at 0x1400aa0a0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x1400aa195
cmp qword [rsi], 0
jne 0x1400aa195
cmp dword [rsi + 0x14], 0
jne 0x1400aa195
cmp qword [rsi + 8], 0
jne 0x1400aa195
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x1400aa114
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400aa17c
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400aa10c
mov qword [rsi], r14
call fcn.1400f6c70
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x1400aa14e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1400aa164
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400aa146
mov qword [rsi + 8], r14
call fcn.1400f6c70
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400f6c70
mov rcx, qword [rsi + 8]
call fcn.1400e0410
mov qword [rsi + 8], 0
jmp 0x1400aa133
call fcn.1400f6c70
mov rcx, qword [rsi]
call fcn.1400e0410
mov qword [rsi], 0
jmp 0x1400aa0fa
mov rcx, rsi
call fcn.14019fb30
mov rax, qword [rsi]
jmp 0x1400aa0da
Function at 0x1400b03a0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401ee038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12, qword [rcx + 0x10]
cmp r12, qword [rcx + 0x18]
je 0x1400b0401
test r12, r12
je 0x1400b0518
mov rax, qword [rdi]
mov qword [r12], rax
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012b460
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r14
jbe 0x1400b0466
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r13, rax
neg r13
shl rax, 3
mov r14, rbx
sub r14, rax
mov r15, r12
sub r15, rbx
je 0x1400b044f
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.14012dd40
mov r12, qword [rsi + 8]
add r14, r15
mov qword [rsi + 0x10], r14
lea rax, [r12 + r13*8]
mov qword [rsi + 8], rax
mov r12, r14
jmp 0x1400b03ce
mov rax, r12
sub rax, r14
sar rax, 2
cmp r12, r14
mov r15d, 1
cmovne r15, rax
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x50], rax
mov rax, r15
shr rax, 0x3d
jne 0x1400b0544
lea rcx, [r15*8]
call fcn.14012a8b0
mov rdx, r15
and rdx, 0xfffffffffffffffc
mov rcx, r12
sub rcx, rbx
mov r9, r12
lea rdx, [rax + rdx*2]
mov r8, rdx
sub r9, rbx
je 0x1400b04e3
sar rcx, 3
lea r8, [r9 + rdx]
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x1400b0518
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x1400b04cb
lea r9, [rax + r15*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x30]
mov qword [rcx], r14
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r12
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r12
call fcn.1401a0fd0
mov r12, qword [rsi + 0x10]
jmp 0x1400b03ce
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.140166ee0
call fcn.1401661a0
int3
Function at 0x1400b9770
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x1401ee038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x1400b9740]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x14020aa88]
lea rdx, [0x1400b95e0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400b9880
cmp dword [0x14020aa90], 0
jne 0x1400b9870
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14020aa94]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x1400b981c
mov ecx, 1
mov edx, 0x28
call fcn.1400d3b80
test rax, rax
je 0x1400b9870
mov r14, rax
mov ecx, dword [0x14020aa94]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400b9868
lea r15, [0x14020aa98]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x14020aaa0]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14012b460
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.1400d3ae0
mov rcx, rsi
mov rax, rdi
call qword [0x14021c008]
xor esi, esi
jmp 0x1400b984c
call fcn.140144d40
int3

Function at 0x1400b9d60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401fd8e8]
cmp ecx, 0xffffffff
je 0x1400b9e3a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x1400b9e3a
mov eax, dword [0x14020c300]
mov ecx, dword [0x1401fd9c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400b9e44
mov rbx, qword [0x14020c2f8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400b9e8a
mov rax, qword [0x14020aae0]
inc rax
xor ecx, ecx
lea rdx, [0x14020aaf0]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x1400b9e97
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x14020c2f0]
inc ecx
mov dword [0x14020c2f0], ecx
mov dword [rax + 0x14], ecx
mov qword [0x14020aae0], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x1400b9eac
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400b9eb0
jmp 0x1400b9d8a
lea rcx, [0x14020c300]
call fcn.14012aa10
cmp dword [0x14020c300], 0xffffffff
jne 0x1400b9daf
mov ecx, 8
call fcn.14012a8b0
mov rbx, rax
mov rcx, rax
call fcn.1400e17c0
mov qword [0x14020c2f8], rbx
lea rcx, [0x14020c300]
call fcn.14012aaa8
jmp 0x1400b9daf
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1400b9dc7
inc rcx
cmp rcx, 0x100
jne 0x1400b9dda
jmp 0x1400b9e20
int3
Function at 0x1400b9eb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14012b400
sub rsp, rax
mov rax, qword [0x1401ee038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1401fd8e8]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x1400b9f64
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400b9fc7
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14012e3f0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14012a92c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14012dd40
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14012b460
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.1400ca2d0
test al, al
je 0x1400b9fca
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x1400b9fa2
mov eax, 0xffffffff
lock cmpxchg dword [0x1401fd8e8], ecx
je 0x1400b9ee8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1401fd8e8]
mov dword [rsp + 0x2c], ecx
jmp 0x1400b9ee8
lea rcx, [rsp + 0x2c]
call fcn.1400ca2d0
test al, al
je 0x1400b9fcd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x1400b9fcd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x1400b9f7b
int3
int3
int3

Function at 0x1400b9fe0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x1401ee038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, dword [0x1401fd8e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
je 0x1400ba029
and rax, 0xfffffffffffffffc
je 0x1400ba05c
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x1400ba05c
mov rsi, qword [rax + rcx]
jmp 0x1400ba05e
lea rdx, [0x1401da265]
lea r8, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r9d, 0x1f6
call fcn.1400f6c50
movabs rdx, 0x141dd76000
mov rcx, rsi
call fcn.140197750
xor esi, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14012b460
mov rax, rsi
add rsp, 0x50
pop rsi
ret

Function at 0x1400ba080
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401fd8e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400ba0be
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x1400ba0b7
call fcn.1400b9eb0
jmp 0x1400ba09e
Function at 0x1400baa70
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x1400baa80
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x1400baaa1
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1400baac1
cmp byte [r14 + 0x68], 0
jne 0x1400bab43
or edi, 0x20000000
test dil, 8
jne 0x1400bab77
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x1400baadf
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x1400baaf0
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x1400bab58
cmp byte [r14], 0
jne 0x1400bab66
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1400bab97
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x1400bab4e
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x1400baac1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400bab2e
lea rcx, [r14 + 0x30]
call fcn.14008e230
mov r15, rax
jmp 0x1400baaf7
add r14, 8
mov rcx, r14
call fcn.14008e230
mov r9, rax
jmp 0x1400bab00
cmp byte [r14 + 0x88], 0
je 0x1400bab8c
or edi, 0x40000000
jmp 0x1400baacb
or edi, 0x10000000
jmp 0x1400baacb
cmp ebx, 4
jne 0x1400baba6
mov edx, 6
jmp 0x1400bab0d
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1400babb8
mov edx, 7
jmp 0x1400bab0d
cmp ebx, 1
jne 0x1400babc7
mov edx, 4
jmp 0x1400bab0d
xor edx, edx
jmp 0x1400bab0d
Function at 0x1400baa80
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x1400baa80
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x1400baaa1
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1400baac1
cmp byte [r14 + 0x68], 0
jne 0x1400bab43
or edi, 0x20000000
test dil, 8
jne 0x1400bab77
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x1400baadf
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x1400baaf0
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x1400bab58
cmp byte [r14], 0
jne 0x1400bab66
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1400bab97
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x1400bab4e
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x1400baac1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400bab2e
lea rcx, [r14 + 0x30]
call fcn.14008e230
mov r15, rax
jmp 0x1400baaf7
add r14, 8
mov rcx, r14
call fcn.14008e230
mov r9, rax
jmp 0x1400bab00
cmp byte [r14 + 0x88], 0
je 0x1400bab8c
or edi, 0x40000000
jmp 0x1400baacb
or edi, 0x10000000
jmp 0x1400baacb
cmp ebx, 4
jne 0x1400baba6
mov edx, 6
jmp 0x1400bab0d
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1400babb8
mov edx, 7
jmp 0x1400bab0d
cmp ebx, 1
jne 0x1400babc7
mov edx, 4
jmp 0x1400bab0d
xor edx, edx
jmp 0x1400bab0d

Function at 0x1400babd0
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r15, rcx
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1400bac08
cmp byte [r15 + 0x68], 0
jne 0x1400bac96
or edi, 0x20000000
test dil, 8
jne 0x1400baccd
xor r14d, r14d
cmp byte [r15 + 0x70], 0
mov r12d, 0
je 0x1400bac26
mov r12, qword [r15 + 0x78]
cmp byte [r15 + 0x50], 0
mov r13d, 0
je 0x1400bac37
mov r13, qword [r15 + 0x58]
cmp byte [r15 + 0x28], 0
jne 0x1400bacab
cmp byte [r15], 0
jne 0x1400bacb9
xor r9d, r9d
cmp ebx, 4
jne 0x1400bac87
mov edx, 6
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
test eax, eax
jne 0x1400baca1
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1400baced
mov edx, 7
jmp 0x1400bac51
or edi, 0x80000000
jmp 0x1400bac08
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400bac72
lea rcx, [r15 + 0x30]
call fcn.14008e230
mov r14, rax
jmp 0x1400bac3e
add r15, 8
mov rcx, r15
call fcn.14008e230
mov r9, rax
jmp 0x1400bac47
cmp byte [r15 + 0x88], 0
je 0x1400bace2
or edi, 0x40000000
jmp 0x1400bac12
or edi, 0x10000000
jmp 0x1400bac12
mov edx, 1
test ebx, ebx
je 0x1400bac51
cmp ebx, 1
jne 0x1400bad09
mov edx, 4
jmp 0x1400bac51
xor edx, edx
jmp 0x1400bac51
Function at 0x1400c8c60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x30
mov rax, rcx
mov rcx, qword [0x1401ee038]
xor rcx, rsp
mov qword [rsp + 0x28], rcx
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400c8ce3
cmp byte [rax + 0x90], 0
jne 0x1400c8ce3
mov sil, 1
cmp byte [rax + 0x91], 0
jne 0x1400c8cce
lea rdx, [rsp + 0x27]
mov byte [rdx], 0xaa
mov r8d, 1
mov r9d, 2
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
je 0x1400c8ce3
cmp esi, 0xffffffff
setne cl
cmp eax, 0x2733
sete sil
or sil, cl
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14012b460
mov eax, esi
add rsp, 0x30
pop rsi
ret
xor esi, esi
jmp 0x1400c8cce

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401ee038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rbx, [rsp + 0x28]
mov r8d, SysAllocStringByteLen
mov rcx, rbx
mov dl, 0xaa
call fcn.14012e3f0
mov rcx, rbx
call fcn.1400c7d40
lea r8, [rsp + 0xa8]
mov rdx, qword [r8 + 8]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400c8d8a
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
mov rcx, rsi
call fcn.1400a4600
xor ecx, ecx
test al, al
mov esi, 0xffffff94
cmovne esi, ecx
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14012b460
mov eax, esi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400c7e00
mov esi, eax
jmp 0x1400c8d6d

Function at 0x1400ca2d0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400ca2e5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret