joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140121110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x140121228
mov rbx, rcx
mov rcx, qword [rcx + 8]
movsxd rax, dword [rcx + 0x3c]
cmp dword [rcx + rax + 0x84], 0
je 0x140121228
add rcx, rax
xor eax, eax
cmp word [rcx + 0x14], 0x78
jb 0x14012122a
add rcx, 0x88
je 0x14012122a
mov rsi, r8
mov r12, rdx
mov edx, dword [rcx]
mov rcx, rbx
call fcn.140121050
test rax, rax
je 0x140121228
cmp r12, 0xffff
jbe 0x140121259
mov r14, rax
mov edx, dword [rax + 0x20]
mov rcx, rbx
call fcn.140121050
mov edx, dword [r14 + 0x18]
lea rcx, [rdx*4]
test rcx, rcx
je 0x140121228
lea r15, [rax + rdx*4]
lea r13, [r12 + 1]
mov qword [rsp + 0x20], rax
mov rbp, rax
mov rdi, r15
sub rdi, rbp
mov rax, rdi
sar rax, 2
shr rdi, 0x3f
add rdi, rax
and rdi, 0xfffffffffffffffe
mov edx, dword [rbp + rdi*2]
mov rcx, rbx
call fcn.140121050
mov cl, byte [r12]
test cl, cl
je 0x1401211f8
mov rdx, r13
cmp cl, byte [rax]
jne 0x1401211fa
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x1401211e8
xor ecx, ecx
lea rdi, [rdi*2]
add rdi, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x14012123b
movzx ecx, cl
sub ecx, eax
cmovs r15, rdi
add rdi, 4
test ecx, ecx
cmovg rbp, rdi
xor eax, eax
cmp rbp, r15
jne 0x1401211b9
jmp 0x14012122a
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edx, dword [r14 + 0x24]
mov rcx, rbx
call fcn.140121050
sub rdi, qword [rsp + 0x20]
sar rdi, 1
movzx r12d, word [rax + rdi]
add r12w, word [r14 + 0x10]
mov word [rsi], r12w
mov al, 1
jmp 0x14012122a

Function at 0x1401213c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1401213f7
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1401213f7
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x1401213f7
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
ret
Function at 0x140123980
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, rdx
mov r14, rcx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x48], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x40]
mov qword [r15], rax
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rbx
mov rsi, rax
call rbx
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 8
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140123a07
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x140123a0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rsi, 0xffffffffffffffff
je 0x140123a11
call fcn.1400c5840
jmp 0x140123a13
mov byte [r14], 0
jmp 0x140123a5a
xor esi, esi
jmp 0x140123a1b
xor esi, esi
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [r14], 1
mov qword [r14 + 8], 0
cmp rsi, 0xffffffffffffffff
je 0x140123a37
test rsi, rsi
je 0x140123a5a
call fcn.1400c5840
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140123a52
mov qword [r14 + 8], rsi
call fcn.1400c5840
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401a4270
mov rax, r14
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140123a80
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
test r8b, r8b
je 0x140123add
lea r8, [rsp + 0x20]
mov rcx, rdx
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140123af4
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x140123afc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rdi, 0xffffffffffffffff
je 0x140123b00
call fcn.1400c5840
jmp 0x140123b02
lea r8, [rsp + 0x20]
mov rcx, rdx
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140123b38
mov byte [rsi], 0
jmp 0x140123bbf
xor edi, edi
jmp 0x140123b0a
xor edi, edi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, [rsp + 0x20]
mov rcx, rdi
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x140123b5b
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140123b38
call fcn.1400c5840
mov rcx, rdi
call fcn.1400e21b0
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x140123b57
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x140123b77
call fcn.1400c5840
jmp 0x140123b79
xor ebx, ebx
jmp 0x140123b81
mov byte [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140123bbf
call fcn.1400c5840
mov rcx, rdi
call fcn.1400e21b0
jmp 0x140123bbf
xor ebx, ebx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi], 1
mov qword [rsi + 8], 0
cmp rbx, 0xffffffffffffffff
je 0x140123b9c
test rbx, rbx
je 0x140123bbf
call fcn.1400c5840
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140123bb7
mov qword [rsi + 8], rbx
call fcn.1400c5840
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401a4270
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x140123c10
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov rbx, qword [rdx]
mov qword [rdx], rax
lea rdi, [rbx + 1]
cmp rdi, 2
jb 0x140123c35
call fcn.1400c5840
cmp qword [rsi], rbx
je 0x140123c78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x140123c62
call fcn.1400c5840
mov rcx, qword [rsi]
call fcn.1400e21b0
mov qword [rsi], 0
cmp rdi, 2
jb 0x140123c70
mov qword [rsi], rbx
call fcn.1400c5840
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140123c90
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, qword [rdx]
mov qword [rdx], 0
lea rdi, [rbx + 1]
cmp rdi, 2
jb 0x140123cb4
call fcn.1400c5840
cmp qword [rsi], rbx
je 0x140123cf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x140123ce1
call fcn.1400c5840
mov rcx, qword [rsi]
call fcn.1400e21b0
mov qword [rsi], 0
cmp rdi, 2
jb 0x140123cef
mov qword [rsi], rbx
call fcn.1400c5840
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x140125390
Capabilities:
Compare security identifiers

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x1401253b0
Capabilities:
Compare security identifiers

Disassembly:
sub rsp, 0x28
mov rdx, qword [rdx]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14012a7b0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r12, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x14012a7e4
mov rax, qword [r12 + 8]
test rax, rax
je 0x14012a80f
mov eax, ebx
not eax
test eax, 0x300
je 0x14012a80f
cmp edi, 2
lea rax, [0x140396ce0]
lea rcx, [0x140396ee0]
cmove rcx, rax
cmp word [rcx], 0
je 0x14012a82e
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401a4270
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xorps xmm0, xmm0
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsi], 0
je 0x14012a80f
cmp byte [0x140396cd0], 0
setne al
bt ebx, 8
jb 0x14012a80f
shr ebx, 9
and ebx, 1
or bl, al
je 0x14012a80f
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea rsi, str.SOFTWARE
cmove rsi, rax
movzx ebp, byte [r12 + 0x17]
test bpl, bpl
js 0x14012a88f
mov rdi, r12
jmp 0x14012a898
mov rdi, qword [r12]
mov rbp, qword [r12 + 8]
mov r14d, 1
xor r15d, r15d
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov rbx, qword [rsi + 8]
mov r13, rbp
sub r13, rbx
jb 0x14012a8d5
mov rdx, qword [rsi]
mov rcx, rdi
mov r8, rbx
call fcn.1401c349c
test eax, eax
je 0x14012a8e3
add rsi, 0x28
inc r15
cmp r15, r14
jb 0x14012a8b7
jmp 0x14012a960
movzx edx, word [rdi + rbx*2]
cmp dx, 0x5c
je 0x14012a8f2
test dx, dx
jne 0x14012a8d5
lea rcx, [rdi + rbx*2]
mov ebp, dword [rsi + 0x10]
lea rax, str.WOW6432Node_
cmp ebp, 1
je 0x14012a920
cmp ebp, 2
jne 0x14012a916
mov rdi, rcx
lea rax, str.WOW6432Node
jmp 0x14012a920
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
cmp dx, 0x5c
mov dword [rsp + 0x2c], ebp
jne 0x14012a93d
lea rdx, [rcx + 2]
dec r13
cmp word [rcx + 2], 0x5c
mov rcx, rdx
je 0x14012a92a
jmp 0x14012a940
mov rdx, rcx
mov r14, qword [rsi + 0x20]
mov rsi, qword [rsi + 0x18]
mov rbp, r13
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rax
xor r15d, r15d
mov rdi, rdx
jmp 0x14012a8dc
cmp dword [rsp + 0x2c], 0
je 0x14012a80f
cmp byte [r12 + 0x17], 0
js 0x14012a978
mov rax, r12
jmp 0x14012a97c
mov rax, qword [r12]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, r12
mov r8, qword [rsp + 0x38]
call fcn.1400b9e10
jmp 0x14012a80f
Function at 0x14012dd60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rdi, r8
mov r14, rdx
mov ebx, ecx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x14012dd30]
lea r8, [rsp + 0x20]
mov qword [r8], rax
lea rcx, [0x140397330]
lea rdx, [0x14012dbf0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14012de59
cmp dword [0x140397338], 0
jne 0x14012de66
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14039733c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
jne 0x14012de0f
mov ecx, 0x20
call fcn.1401a1820
test rax, rax
je 0x14012de66
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax], xmm0
mov ecx, dword [0x14039733c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14012de5e
lea rbp, [0x140397340]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140397350]
mov qword [rax + rbx*8], rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsi + rbx*8], r14
mov esi, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401a4270
mov eax, esi
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1401bfdb0
mov rcx, rsi
call fcn.1400f3e70
mov rcx, r14
mov rax, rdi
call qword [case.0x1401f58d0.0]
xor esi, esi
jmp 0x14012de3f
Function at 0x140134210
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15, r9
mov r14, r8
mov rbp, rdx
mov r13, rcx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs rsi, 0xfffffffe00000000
add rcx, 0x68
mov rdx, r8
call fcn.1400bca60
mov rcx, qword [r13 + 0x70]
mov rdx, rcx
and rdx, rsi
mov rax, qword [0x140362e48]
cmp rdx, rax
jne 0x140134273
call fcn.1400c99e0
mov rax, qword [0x140362e48]
and rsi, rbp
cmp rsi, rax
jne 0x140134283
mov rcx, rbp
call fcn.1400c98c0
mov qword [r13 + 0x70], rbp
lea r12, [rsp + 0x58]
mov qword [r12], 0
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rbx
mov rsi, rax
mov rdi, qword [rbp]
call rbx
xor ebp, ebp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x30], 2
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r12
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14013435d
mov rsi, qword [rsp + 0x58]
cmp qword [r13 + 8], rsi
je 0x140134323
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r13 + 8]
inc rax
cmp rax, 2
jb 0x140134308
call fcn.1400c5840
mov rcx, qword [r13 + 8]
call fcn.1400e21b0
mov qword [r13 + 8], 0
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14013431b
mov qword [r13 + 8], rsi
call fcn.1400c5840
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rsi, [r13 + 0x10]
lea rdx, str.StartWatching
lea r8, str..._.._base_synchronization_waitable_event_watcher_win.cc
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov r9d, 0x28
call fcn.1400c5820
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
mov r8, r13
mov r9, rdi
call fcn.140120750
mov ebp, eax
mov rcx, r14
call fcn.1400bcb10
test r15, r15
je 0x140134381
lock dec dword [r15 + 8]
jne 0x140134381
add r15, 8
add r15, 0xfffffffffffffff8
mov rcx, r15
call fcn.1400d76a0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401a4270
mov eax, ebp
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140142e00
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140397410]
cmp rsi, 1
ja 0x140142e60
lea rcx, [0x140397410]
call fcn.1400c5350
test al, al
je 0x140142e59
mov qword [0x140397418], 0
lea rdi, [0x140397410]
lea rsi, [0x140397418]
mov rcx, rsi
xor edx, edx
call fcn.1400d8e30
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400c53f0
jmp 0x140142e60
mov rsi, qword [0x140397410]
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400d8de0

Function at 0x140142e70
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140397410]
cmp rsi, 1
ja 0x140142ed0
lea rcx, [0x140397410]
call fcn.1400c5350
test al, al
je 0x140142ec9
mov qword [0x140397418], 0
lea rdi, [0x140397410]
lea rsi, [0x140397418]
mov rcx, rsi
xor edx, edx
call fcn.1400d8e30
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400c53f0
jmp 0x140142ed0
mov rsi, qword [0x140397410]
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400d8da0
Function at 0x140148e20
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 rdi, qword [sym.imp.WS2_32.dll_recv]
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r12, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r13, qword [sym.imp.KERNEL32.dll_ResetEvent]
lea r15, 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 rdi
mov ebp, eax
test eax, eax
jg 0x140148ed7
je 0x140148eda
call rbx
cmp eax, 0x2733
jne 0x140148ec3
mov rcx, qword [rsi + 0x28]
mov edx, 0xffffffff
call r12
cmp eax, 0xffffffff
jne 0x140148ea3
mov ecx, 0xfffffffc
lea rdx, str.Transport::ReadSomeData:_Failed_to_wait_on_socket_event_n
call fcn.1401f7e70
mov rcx, qword [rsi + 0x28]
call r13
mov r14d, 2
test eax, eax
jne 0x140148ecf
mov ecx, 0xfffffffc
mov rdx, r15
call fcn.1401f7e70
jmp 0x140148ecf
call rbx
xor r14d, r14d
cmp eax, 4
setne r14b
cmp r14d, 1
jne 0x140148e56
jmp 0x140148eda
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 0x140148f90
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r14b, 1
test r8d, r8d
jle 0x140148fea
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov rbp, qword [sym.imp.WS2_32.dll_send]
mov r15, qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsi + 0x20]
mov rdx, rbx
mov r8d, edi
xor r9d, r9d
call rbp
test eax, eax
jle 0x140148fd7
mov ecx, eax
add rbx, rcx
sub edi, eax
jmp 0x140148fe1
je 0x140148fe7
call r15
cmp eax, 4
jne 0x140148fe7
test edi, edi
jg 0x140148fbb
jmp 0x140148fea
xor r14d, r14d
mov eax, r14d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140149520
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [0x140362028]
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 0x14014956d
lea rdx, str.Failed_to_retrieve_bound_address._n
mov ecx, 0xfffffffd
call fcn.1401f7e70
xor esi, esi
jmp 0x14014957a
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.1401a4270
mov eax, esi
add rsp, 0x50
pop rsi
ret

Function at 0x140149600
Capabilities:
Get socket status

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x238], rax
mov eax, dword [rcx + 0x10]
mov bl, 1
cmp eax, dword [rcx + 0x14]
jl 0x140149673
mov rsi, rcx
lea rdi, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1401a64a0
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.1401a4270
mov eax, ebx
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rcx + 8]
jmp 0x140149600

Function at 0x1401496f0
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 0x20], 0xffffffffffffffff
je 0x14014973a
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_trusted_debug_stub_transport_common.cc
mov ecx, 0xfffffffc
mov r9d, 0x89
call fcn.1401f7e70
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 0x1401497e4
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 0x140149797
lea rdx, str.Failed_to_set_TCP_NODELAY_option._n
mov ecx, 0xfffffffe
call fcn.1401f7e70
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov qword [rsi + 0x28], rax
test rax, rax
jne 0x1401497bb
lea rdx, str.Transport::CreateSocketEvent:_Failed_to_create_socket_event_n
mov ecx, 0xfffffffc
call fcn.1401f7e70
mov rax, qword [rsi + 0x28]
mov rcx, qword [rsi + 0x20]
mov rdx, rax
mov r8d, 0x21
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x1401497e4
lea rdx, str.Transport::CreateSocketEvent:_Failed_to_bind_event_to_socket_n
mov ecx, 0xfffffffc
call fcn.1401f7e70
cmp rdi, 0xffffffffffffffff
setne bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401a4270
mov eax, ebx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x140149850
Capabilities:
Get socket status

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x238], rax
mov eax, dword [rcx + 0x10]
mov bl, 1
cmp eax, dword [rcx + 0x14]
jl 0x140149673
mov rsi, rcx
lea rdi, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1401a64a0
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.1401a4270
mov eax, ebx
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rcx + 8]
jmp 0x140149600

Function at 0x14014cf60
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov r14, r9
mov rbx, r8
mov r15, rcx
mov r12, qword [rsp + 0xd0]
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, r8
shr rsi, 0x20
movzx eax, dl
lea ebp, [rax + rax]
add ebp, 4
mov qword [rsp + 0x20], r9
mov edx, ebp
mov r8d, esi
mov r9d, ebx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov qword [r12], rax
test rax, rax
jne 0x14014cff2
call fcn.1401e4870
mov qword [rsp + 0x20], r14
mov rcx, r15
mov edx, ebp
mov r8d, esi
mov r9d, ebx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov qword [r12], rax
test rax, rax
jne 0x14014cff2
call fcn.1401e4870
mov rdi, qword [r12]
test rdi, rdi
je 0x14014d059
mov rbx, qword [rsp + 0xd8]
movaps xmm0, xmmword [0x140232ef0]
lea rsi, [rsp + 0x30]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov r8d, gethostbyname
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rsi + 0x18]
sub rcx, rdi
add rcx, qword [rsi + 8]
test rax, rax
cmove rcx, rax
mov qword [rbx], rcx
mov sil, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401a4270
mov eax, esi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x14014d03b

Function at 0x140150ff0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, qword [rcx + 8]
test rsi, rsi
je 0x140151033
xor edi, edi
xchg qword [rsi], rdi
test rdi, rdi
je 0x14015102a
bsf rcx, rdi
mov ebx, 1
shl rbx, cl
mov rcx, qword [rsi + rcx*8 + 0x10]
mov rax, qword [rcx + 8]
call qword [case.0x1401f58d0.0]
xor rdi, rbx
jne 0x14015100a
mov rsi, qword [rsi + 0x218]
jmp 0x140150ffb
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x14015d1c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x140397590]
mov ecx, dword [0x14036bfd8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14015d1fd
lea rcx, [0x140397588]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.1400d8de0
lea rcx, [0x140397590]
call fcn.1401a2fc0
cmp dword [0x140397590], 0xffffffff
jne 0x14015d1e9
mov qword [0x140397588], 0
lea rcx, [0x140397588]
xor edx, edx
call fcn.1400d8e30
lea rcx, [0x140397590]
call fcn.1401a3058
jmp 0x14015d1e9

Function at 0x14015d240
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140397590]
mov ecx, dword [0x14036bfd8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14015d275
lea rcx, [0x140397588]
add rsp, 0x28
jmp fcn.1400d8da0
lea rcx, [0x140397590]
call fcn.1401a2fc0
cmp dword [0x140397590], 0xffffffff
jne 0x14015d265
mov qword [0x140397588], 0
lea rcx, [0x140397588]
xor edx, edx
call fcn.1400d8e30
lea rcx, [0x140397590]
call fcn.1401a3058
jmp 0x14015d265