joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140180c3b
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov r14, rcx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp byte [0x1403eb3c0], 0
jne 0x140180c7c
call fcn.1401804b8
test al, al
je 0x140180d41
xorps xmm0, xmm0
lea r15, [rsp + 0x50]
movaps xmmword [r15], xmm0
mov rcx, r15
mov rdx, rdi
call sub.ntdll.dll_RtlInitUnicodeString
lea r13, [rsp + 0x4c]
mov dword [r13], 0x18
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14026fe30]
movaps xmmword [rdi], xmm0
mov edx, 0x18
mov rcx, rdi
call fcn.140043710
mov ebp, 5
mov edx, dword [rsp + 0x4c]
mov rcx, rdi
call fcn.140044ed8
mov r12, qword [rsp + 0x30]
mov eax, dword [rsp + 0x4c]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], eax
mov rcx, r14
mov rdx, r15
mov r8d, 1
mov r9, r12
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0xc0000023
je 0x140180d0f
cmp eax, 0x80000005
jne 0x140180d17
dec ebp
jne 0x140180ccf
xor esi, esi
jmp 0x140180d50
test eax, eax
js 0x140180d13
mov eax, dword [r12 + 4]
mov dword [rbx], eax
mov r8d, dword [r12 + 0xc]
test r8, r8
je 0x140180d45
mov edx, dword [r12 + 8]
add rdx, r12
add r8, rdx
mov rcx, rsi
call fcn.1400489cc
jmp 0x140180d4d
xor esi, esi
jmp 0x140180d5d
mov rcx, rsi
call fcn.14004380c
mov sil, 1
lea rcx, [rsp + 0x68]
mov qword [rcx], rdi
call fcn.1400437de
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140203460
mov eax, esi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401832f0
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
movzx eax, byte [r8 + 0x17]
test al, al
mov rcx, qword [r8]
cmovns rcx, r8
mov qword [rsp + 0x60], rcx
cmovs rax, qword [r8 + 8]
mov qword [rsp + 0x68], rax
lea rsi, [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1401056c0
cmp byte [rsp + 0x87], 0
jns 0x140183352
mov rsi, qword [rsp + 0x70]
movaps xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x30], xmm0
lea rdi, [rsp + 0x48]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1401056c0
cmp byte [rsp + 0x5f], 0
jns 0x14018337a
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [rsp + 0x5f], 0
js 0x1401833bb
cmp byte [rsp + 0x87], 0
js 0x1401833cf
test esi, esi
setne bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140203460
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x48]
call fcn.1402021a8
cmp byte [rsp + 0x87], 0
jns 0x140183399
mov rcx, qword [rsp + 0x70]
call fcn.1402021a8
jmp 0x140183399

Function at 0x1401833e0
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x58
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
lea rsi, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1401056c0
cmp byte [rsp + 0x4f], 0
jns 0x14018341b
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [rsp + 0x4f], 0
jns 0x140183439
mov rcx, qword [rsp + 0x38]
call fcn.1402021a8
test esi, esi
setne bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140203460
mov eax, ebx
add rsp, 0x58
pop rbx
pop rsi
ret
Function at 0x140183460
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x40], xmm0
lea rdi, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1401056c0
cmp byte [rsp + 0x6f], 0
jns 0x1401834a4
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x6f], 0
js 0x1401834c5
test rsi, rsi
jne 0x1401834d8
jmp 0x140183581
mov rcx, qword [rsp + 0x58]
call fcn.1402021a8
test rsi, rsi
je 0x140183581
test edi, edi
je 0x140183581
mov ecx, edi
add rcx, rcx
call fcn.1402021dc
mov rbx, rax
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0x30], xmm0
lea r14, [rsp + 0x58]
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.1401056c0
cmp byte [rsp + 0x6f], 0
jns 0x140183514
mov r14, qword [rsp + 0x58]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x6f], 0
jns 0x140183534
mov rcx, qword [rsp + 0x58]
call fcn.1402021a8
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x14018359f
mov rcx, rbx
call fcn.14022f908
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x20]
call fcn.1401056f0
cmp byte [rsi + 0x17], 0
jns 0x140183568
mov rcx, qword [rsi]
call fcn.1402021a8
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.1402021e4
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140203460
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
int3

Function at 0x140183990
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1403eba18], 0
jne 0x1401839cd
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1401839c0
mov dword [rdi], eax
mov dword [0x1403eba20], eax
mov qword [0x1403eba18], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140186110
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rsi, r9
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x68], rax
add rcx, 0x68
mov rdx, r8
call fcn.14011eff0
mov rcx, qword [rbx + 0x70]
movabs r15, 0xfffffffc00000000
mov rax, rcx
and rax, r15
cmp rax, qword [0x1403bc448]
jne 0x140186167
call fcn.14004472e
and r15, r14
cmp r15, qword [0x1403bc448]
jne 0x14018617b
mov rcx, r14
call fcn.140044610
mov qword [rbx + 0x70], r14
mov qword [rsp + 0x60], 0
mov r12, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r12
mov r15, rax
mov r14, qword [r14]
call r12
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov rcx, rax
mov rdx, r14
mov r8, r15
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14018625c
mov r14, qword [rsp + 0x60]
cmp qword [rbx + 8], r14
je 0x140186220
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rbx + 8]
inc rax
cmp rax, 2
jb 0x140186205
call fcn.14011dc90
mov rcx, qword [rbx + 8]
call fcn.1400f41d0
mov qword [rbx + 8], 0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140186218
mov qword [rbx + 8], r14
call fcn.14011dc90
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r14, [rbx + 0x10]
lea rdx, str.StartWatching
lea r8, str....._base_synchronizationwaitable_event_watcher_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x28
call fcn.14011dc70
mov rdx, qword [rsp + 0x60]
mov rcx, r14
mov r8, rbx
mov r9, r15
call fcn.140160b80
mov ebx, eax
jmp 0x14018625e
xor ebx, ebx
mov rcx, rdi
call fcn.14011f0b0
test rsi, rsi
je 0x140186279
lock dec dword [rsi + 8]
jne 0x140186279
mov rcx, rsi
call fcn.140102bc0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140203460
mov eax, ebx
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14018d9c0
Capabilities:
Connect pipe

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, r8
mov r15, rdx
mov rdi, rcx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rbx, [rcx + 0x38]
xor r14d, r14d
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, rbx
mov rdx, rax
call fcn.1400a727c
mov rax, qword [rdi + 0x38]
lea rcx, [rax + 1]
cmp rcx, 2
jb 0x14018dc08
mov qword [rdi + 0x30], rax
lea r14, [rdi + 0x40]
lea rdx, str.Start
lea r8, str.....mojopubliccppplatformplatform_channel_server_win.cc
lea r12, [rsp + 0x40]
mov rcx, r12
mov r9d, gethostbyname
call fcn.14011dc70
lea r8, [rdi + 8]
mov rdx, qword [rdi + 0x38]
mov rcx, r14
mov r9, r12
call fcn.140160b80
test al, al
je 0x14018dabb
lea r12, [rdi + 0x18]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r13, [rsp + 0x38]
mov qword [r13], rax
lea rbp, [rsp + 0x40]
mov rcx, rbp
mov rdx, r15
call fcn.140143302
mov dword [rbp], 0
lea rdx, [rsp + 0x48]
mov rcx, r13
call fcn.14004eed0
mov rcx, rbp
call fcn.140143390
mov rcx, qword [r13]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x14018dac3
xor r14d, r14d
jmp 0x14018dbfe
xor r14d, r14d
jmp 0x14018dc08
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14018dbdb
cmp eax, 0x217
jne 0x14018dc29
mov rcx, r14
call fcn.140160ad0
mov rcx, rbx
call fcn.140055c40
call fcn.140103090
mov rbx, qword [rax]
lea rcx, [rdi + 0xa0]
mov r12, qword [rdi + 0xa8]
lea r15, [rsp + 0x40]
mov rdx, r15
call fcn.140119190
lea r14, [rsp + 0x20]
mov rcx, r14
mov rdx, r15
call fcn.140119110
mov qword [r14 + 8], r12
mov rcx, r15
call fcn.1401190b0
mov ecx, 0x50
call fcn.14020216c
mov r15, rax
lea rdx, [0x14018ddf0]
lea r8, [0x14018ded0]
lea r9, [0x14018de90]
mov rcx, rax
call fcn.14011efd0
lea rax, [0x14018dd40]
mov qword [r15 + 0x20], rax
mov dword [r15 + 0x28], 0
lea rcx, [r15 + 0x30]
mov rdx, r14
call fcn.140119110
mov rax, qword [r14 + 8]
mov qword [r15 + 0x38], rax
mov rax, qword [rsi]
mov qword [r15 + 0x40], rax
mov qword [rsi], 0
lea rcx, [r15 + 0x48]
lea rdx, [rsp + 0x38]
call fcn.14004eed0
lea r12, [rsp + 0x30]
mov qword [r12], r15
lea rdx, str.Start
lea r8, str.....mojopubliccppplatformplatform_channel_server_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x47
call fcn.14011dc70
mov rcx, rbx
mov rdx, r15
mov r8, r12
call fcn.140102b20
mov rcx, r14
call fcn.1401190b0
lea rcx, [rdi + 0x10]
lea rdx, [rsp + 0x38]
call fcn.14007e370
add rdi, 0x98
mov rcx, rdi
mov rdx, rsi
call fcn.14011eff0
mov r14b, 1
lea rcx, [rsp + 0x38]
call fcn.140055c40
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140203460
mov eax, r14d
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rbx
call fcn.140055c40
jmp 0x14018dab3
Function at 0x14019a4fc
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rdx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword [rcx + 8]
mov ebx, 8
inc rax
cmp rax, 1
ja 0x14019a66f
mov rdi, rcx
cmp qword [rcx + 0x18], 0
jne 0x14019a66f
lea rbx, [rdi + 8]
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov rcx, rbx
mov rdx, rax
call fcn.1400a727c
mov rax, qword [rbx]
mov ebx, 0x3b
inc rax
cmp rax, 2
jb 0x14019a66f
mov ecx, 0x20
call fcn.14020216c
mov rbx, rax
mov rcx, rax
call fcn.1401d83a0
mov r15, qword [rdi + 8]
mov ecx, 0x18
call fcn.14020216c
mov r14, rax
mov rax, qword [rsi]
mov qword [rsi], 0
mov qword [r14], r15
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rbx
mov qword [rsp + 0x38], r14
mov rcx, qword [rdi + 0x18]
movabs r12, 0xfffffffc00000000
mov rax, rcx
and rax, r12
cmp rax, qword [0x1403bc448]
jne 0x14019a5da
call fcn.14004472e
mov rax, rbx
and rax, r12
cmp rax, qword [0x1403bc448]
jne 0x14019a5f1
mov rcx, rbx
call fcn.140044610
mov qword [rdi + 0x18], rbx
lea r15, [rdi + 0x10]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x14019a6b0]
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, r15
mov rdx, rax
call fcn.1400a727c
mov rax, qword [rdi + 0x10]
inc rax
cmp rax, 1
ja 0x14019a65c
mov rcx, qword [rdi + 0x18]
and r12, rcx
cmp r12, qword [0x1403bc448]
jne 0x14019a64d
call fcn.14004472e
mov qword [rdi + 0x18], 0
mov ebx, 0x3b
jmp 0x14019a665
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x38]
call fcn.14019ab2c
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x14019a690
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
mov edx, 1
call qword [case.0x1400f45b0.0]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140203460
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14019ed70
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x1401e70d4
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
lea rsi, [rsp + 0x20]
mov r8d, 0x198
mov rcx, rsi
mov dl, 0xaa
call fcn.1402055c0
mov cx, 0x202
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1401e713d
movzx eax, byte [rsp + 0x21]
shl eax, 8
cmp eax, 0x200
jne 0x1401e7153
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.140203460
nop
add rsp, 0x1c0
pop rsi
ret
lea rdx, str.WSAStartup_failed_with_error:__d_n
mov ecx, 0xfffffffd
mov r8d, eax
call fcn.14014fd13
jmp 0x1401e716a
lea rdx, str.Could_not_find_a_usable_version_of_Winsock.dll_n
mov ecx, 0xfffffffd
call fcn.14014fd13
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 0xffffffff
call fcn.1402165c4
int3
Function at 0x14019ed7c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov r14, qword [sym.imp.WS2_32.dll_recv]
mov r15, qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r12, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdi, str.Transport::ReadSomeData:_Failed_to_wait_on_socket_event_n
mov r13, qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rbx, str.Transport::ReadSomeData:_Failed_to_reset_socket_event_n
movsxd rdx, dword [rsi + 0x14]
mov r8d, 0x1000
sub r8d, edx
add rdx, qword [rsi + 8]
mov rcx, qword [rsi + 0x20]
xor r9d, r9d
call r14
mov ebp, eax
test eax, eax
jg 0x14019ee28
je 0x14019ee2b
call r15
cmp eax, 0x2733
jne 0x14019ee1e
mov rcx, qword [rsi + 0x28]
mov edx, 0xffffffff
call r12
cmp eax, 0xffffffff
jne 0x14019ee04
mov ecx, 0xfffffffc
mov rdx, rdi
call fcn.14014fd13
mov rcx, qword [rsi + 0x28]
call r13
test eax, eax
jne 0x14019edb9
mov ecx, 0xfffffffc
mov rdx, rbx
call fcn.14014fd13
jmp 0x14019edb9
call r15
cmp eax, 4
je 0x14019edb9
jmp 0x14019ee2b
add dword [rsi + 0x14], ebp
test ebp, ebp
setg al
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov sil, 1
test r8d, r8d
jle 0x14019ef4b
mov edi, r8d
mov rbx, rdx
mov r14, rcx
mov r15, qword [sym.imp.WS2_32.dll_send]
mov r12, qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [r14 + 0x20]
mov rdx, rbx
mov r8d, edi
xor r9d, r9d
call r15
test eax, eax
jle 0x14019ef39
mov ecx, eax
add rbx, rcx
sub edi, eax
jmp 0x14019ef43
je 0x14019ef49
call r12
cmp eax, 4
jne 0x14019ef49
test edi, edi
jg 0x14019ef1c
jmp 0x14019ef4b
xor esi, esi
mov eax, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14019f3ca
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea r8, [rsp + 0x2c]
mov dword [r8], reloc.WS2_32.dll_recv
mov rcx, qword [rcx]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14019f417
lea rdx, str.Failed_to_retrieve_bound_address._n
mov ecx, 0xfffffffd
call fcn.14014fd13
xor esi, esi
jmp 0x14019f424
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
mov esi, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140203460
mov eax, esi
add rsp, 0x50
pop rsi
ret

Function at 0x14019f470
Capabilities:
Get socket status

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x238], rax
mov eax, dword [rcx + 0x10]
mov bl, 1
cmp eax, dword [rcx + 0x14]
jl 0x14019f4e3
mov rsi, rcx
lea rdi, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1402055c0
mov rcx, qword [rsi + 0x20]
mov qword [rdi + 8], rcx
mov dword [rdi], 1
lea rax, [rsp + 0x28]
mov qword [rax], 0
inc ecx
mov qword [rsp + 0x20], rax
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.140203460
mov eax, ebx
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rcx + 8]
jmp 0x14019f470

Function at 0x14019f560
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 0x20], 0xffffffffffffffff
je 0x14019f5aa
lea rax, str.handle_accept___NACL_INVALID_SOCKET
mov qword [rsp + 0x20], rax
lea rdx, str.Fatal_error_in_file__s__line__d:____s__n
lea r8, str....._native_client_src_trusteddebug_stub_transport_common.cc
mov ecx, 0xfffffffc
mov r9d, 0x89
call fcn.14014fd13
mov rcx, qword [rsi + 0x18]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
mov qword [rsi + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x14019f60b
lea r9, [rsp + 0x34]
mov dword [r9], 1
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 6
mov r8d, 1
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14019f603
lea rdx, str.Failed_to_set_TCP_NODELAY_option._n
mov ecx, 0xfffffffe
call fcn.14014fd13
mov rcx, rsi
call fcn.14019f686
cmp rdi, 0xffffffffffffffff
setne bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140203460
mov eax, ebx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x14019f730
Capabilities:
Get socket status

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x238], rax
mov eax, dword [rcx + 0x10]
mov bl, 1
cmp eax, dword [rcx + 0x14]
jl 0x14019f4e3
mov rsi, rcx
lea rdi, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1402055c0
mov rcx, qword [rsi + 0x20]
mov qword [rdi + 8], rcx
mov dword [rdi], 1
lea rax, [rsp + 0x28]
mov qword [rax], 0
inc ecx
mov qword [rsp + 0x20], rax
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.140203460
mov eax, ebx
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rcx + 8]
jmp 0x14019f470

Function at 0x1401a6640
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x1401a667e
test rax, rax
je 0x1401a674a
mov rcx, qword [rbx]
mov qword [rax], rcx
add rax, 8
mov qword [rsi + 8], rax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
sub rax, qword [rsi]
mov r15, rax
sar r15, 3
lea rcx, [r15 + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x1401a6776
movabs rdx, 0x1fffffffffffffff
lea rdi, [rsi + 0x18]
mov r14, rax
sar r14, 2
cmp r14, rcx
cmovbe r14, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae r14, rdx
test r14, r14
je 0x1401a66d8
mov rcx, rdi
mov rdx, r14
call fcn.1401a74d0
jmp 0x1401a66da
xor eax, eax
shl r15, 3
add r15, rax
je 0x1401a674a
lea rax, [rax + r14*8]
mov rcx, qword [rbx]
mov qword [r15], rcx
lea rcx, [r15 + 8]
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
cmp r8, rdx
je 0x1401a6718
nop dword [rax]
mov r9, qword [r8 - 8]
add r8, 0xfffffffffffffff8
mov qword [r15 - 8], r9
add r15, 0xfffffffffffffff8
cmp r8, rdx
jne 0x1401a6700
mov rdx, qword [rsi]
mov qword [rsi], r15
mov qword [rsi + 8], rcx
mov r8, qword [rsi + 0x10]
mov qword [rsi + 0x10], rax
test rdx, rdx
je 0x1401a6672
sub r8, rdx
sar r8, 3
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1401a6ed0
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.14004460c
mov rcx, rsi
call fcn.14003dd50
int3
Function at 0x1401ab630
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1401ab6d0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1403ec8b0]
lea rdx, [0x1401ab4d0]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1401ab6c4
cmp dword [0x1403ec8b8], 0
je 0x1401ab681
xor esi, esi
jmp 0x1401ab6ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x1403ec8bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1401ab67d
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140203460
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call fcn.14021f4a0
int3

Function at 0x1401ab700
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 [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x1401ab6d0]
mov qword [rsp + 0x28], rax
lea rcx, [0x1403ec8b0]
lea rdx, [0x1401ab4d0]
lea r8, [rsp + 0x28]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1401ab817
cmp dword [0x1403ec8b8], 0
je 0x1401ab76c
mov rcx, rsi
mov rax, rdi
call qword [case.0x1400f45b0.0]
xor esi, esi
jmp 0x1401ab7c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x1403ec8bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
je 0x1401ab7dc
lea r15, [0x1403ec8c0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1403ec8d0]
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.140203460
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
mov edx, 0x28
call fcn.1400feae0
test rax, rax
je 0x1401ab75c
mov r14, rax
mov ecx, dword [0x1403ec8bc]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1401ab790
mov rcx, r14
call fcn.1400fea50
jmp 0x1401ab75c
call fcn.14021f4a0
int3

Function at 0x1401abd90
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1401abdd2
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
nop word [rax + rax]
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1401abddc
add rdi, rbx
sub rsi, rbx
jne 0x1401abdb0
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14021f4a0
int3