joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140041fac
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
mov ebp, 4
lea r14, str.NaClPageAllocRandomized:_0x_I64x_n
lea r15, str.NaClPageAllocRandomized:_hint_0x_I64x_n
call fcn.1400b7a0f
mov ebx, eax
mov ecx, 2
mov rdx, r14
mov r8, rbx
call fcn.1400b8218
and ebx, 0x7ffffff
shl rbx, 0x10
mov qword [rdi], rbx
mov ecx, 2
mov rdx, r15
mov r8, rbx
call fcn.1400b8218
mov rcx, rdi
mov rdx, rsi
call fcn.140041da5
test eax, eax
je 0x14004204c
dec ebp
jne 0x140041fd1
neg eax
lea rdx, str.NaClPageAllocRandomized:_failed___d___dropping_hints_n
mov ecx, 0xffffffff
mov r8d, eax
call fcn.1400b8218
mov qword [rdi], 0
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140041da5
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140042594
Capabilities:
Suspend thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x510
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x508], rax
add rcx, 0xe0
call fcn.1400b82d8
cmp dword [rsi + 0xf0], 1
jne 0x1400426ad
cmp dword [rsi + 0xd4], 0
jne 0x140042601
lea rax, str.natp__host_thread_is_defined
mov qword [rsp + 0x20], rax
lea rdx, str.Fatal_error_in_file__s__line__d:____s__n
lea r8, str..._.._native_client_src_trusted_service_runtime_win_thread_suspension.c
mov ecx, 0xfffffffc
mov r9d, reloc.WS2_32.dll_setsockopt
call fcn.1400b8218
mov rdi, qword [rsi + 0xd8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x140042630
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.NaClUntrustedThreadSuspend:_SuspendThread___call_failed__error__u_n
mov ecx, 0xfffffffc
mov r8d, eax
call fcn.1400b8218
test ebx, ebx
je 0x14004267a
mov rdx, qword [rsi + 0xf8]
test rdx, rdx
jne 0x140042671
mov ecx, 0x4d0
call fcn.140095b30
mov rdx, rax
mov qword [rsi + 0xf8], rax
test rax, rax
jne 0x140042671
lea rdx, str.NaClUntrustedThreadSuspend:_malloc___failed_n
mov ecx, 0xfffffffc
call fcn.1400b8218
mov rdx, qword [rsi + 0xf8]
mov dword [rdx + 0x30], 0x100003
jmp 0x140042686
lea rdx, [rsp + 0x30]
mov dword [rdx + 0x30], 0x100001
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1400426ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.NaClUntrustedThreadSuspend:_GetThreadContext___failed__error__u_n
mov ecx, 0xfffffffc
mov r8d, eax
call fcn.1400b8218
mov rcx, qword [rsp + 0x508]
xor rcx, rsp
call fcn.140183a80
nop
add rsp, 0x510
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400427e4
Capabilities:
Resume thread

Disassembly:
push rsi
sub rsp, 0x30
mov eax, dword [rcx + 0x100]
test eax, eax
je 0x140042895
mov rsi, rcx
mov dword [rdx], eax
xor eax, eax
mov dword [rcx + 0x100], eax
mov rcx, qword [rcx + 0xc8]
lock dec dword [rcx + 0x70c]
cmp dword [rsi + 0xd4], eax
jne 0x140042844
lea rax, str.natp__host_thread_is_defined
mov qword [rsp + 0x20], rax
lea rdx, str.Fatal_error_in_file__s__line__d:____s__n
lea r8, str..._.._native_client_src_trusted_service_runtime_win_thread_suspension.c
mov ecx, 0xfffffffc
mov r9d, reloc.WS2_32.dll_setsockopt
call fcn.1400b8218
mov rcx, qword [rsi + 0xd8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x140042899
mov esi, 1
cmp eax, 1
ja 0x1400428af
cmp dword [0x1403482b4], 0
je 0x1400428af
lea rax, str.previous_suspend_count___2
mov qword [rsp + 0x20], rax
lea rdx, str.Fatal_error_in_file__s__line__d:____s__n
lea r8, str..._.._native_client_src_trusted_service_runtime_win_thread_suspension.c
mov ecx, 0xfffffffc
mov r9d, 0x97
call fcn.1400b8218
jmp 0x1400428af
xor esi, esi
jmp 0x1400428af
lea rdx, str.NaClAppThreadUnblockIfFaulted:_ResumeThread___call_failed_n
mov ecx, 0xfffffffc
call fcn.1400b8218
mov esi, 1
mov eax, esi
add rsp, 0x30
pop rsi
ret
Function at 0x1400435fb
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x28], rax
call fcn.14004326b
mov rsi, rax
lea rbx, [0x140043e70]
lea rdi, [0x140043e74]
sub rdi, rbx
lea r9, [rsp + 0x24]
mov rcx, rax
mov rdx, rdi
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140043656
lea rdx, str.NaClPatchWindowsExceptionDispatcherToFailFast:_VirtualProtect___failed_to_make_the_routine_writable_n
mov ecx, 0xfffffffc
call fcn.1400b8218
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.140186330
lea r9, [rsp + 0x24]
mov r8d, dword [r9]
mov rcx, rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14004368d
lea rdx, str.NaClPatchWindowsExceptionDispatcherToFailFast:_VirtualProtect___failed_to_restore_page_permissions_n
mov ecx, 0xfffffffc
call fcn.1400b8218
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140183a80
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
sub rsp, 0x28
call fcn.1400432c8
test eax, eax
je 0x1400436b5
add rsp, 0x28
ret
add rsp, 0x28
jmp 0x1400435fb

Function at 0x14004ed00
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r14, [rsp + 0x38]
lea r12, [rsp + 0x28]
lea r15, [rsp + 0x30]
mov ebp, 0xffffffff
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r12
mov r8, r15
mov r9, r14
call qword [rax + 0x20]
mov edi, eax
mov rbx, qword [rsp + 0x28]
sub rbx, r15
mov r9, qword [rsi + 0x40]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.1401a0f1c
cmp rax, rbx
jne 0x14004ed87
cmp edi, 1
je 0x14004ed34
cmp edi, 2
je 0x14004ed87
mov rcx, qword [rsi + 0x40]
call fcn.14019fcbc
neg eax
sbb ebp, ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140183a80
mov eax, ebp
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14004edb0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x14004ede5
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1401a0f1c
xor ebx, ebx
test rsi, rsi
jle 0x14004ee0a
movzx edx, byte [r14 + rbx]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp eax, 0xffffffff
je 0x14004ee0a
inc rbx
cmp rsi, rbx
jne 0x14004edec
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14004ee20
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15d, edx
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp edx, 0xffffffff
je 0x14004ee7d
mov rdi, rcx
mov byte [rsp + 0x57], r15b
cmp byte [rcx + 0x58], 0
je 0x14004ee8c
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x57]
mov edx, 1
mov r8d, 1
call fcn.1401a0f1c
mov esi, 0xffffffff
cmp rax, 1
jne 0x14004ef3c
xor esi, esi
cmp r15d, 0xffffffff
cmovne esi, r15d
jmp 0x14004ef3c
lea rbx, [rsp + 0x58]
lea r12, [rsp + 0x48]
mov qword [r12], rbx
lea rsi, [rsp + 0x57]
lea r13, [rsp + 0x60]
lea r14, [rsp + 0x40]
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, rsi
lea r9, [rsp + 0x58]
call qword [rax + reloc.WS2_32.dll_recv]
cmp qword [rsp + 0x40], rsi
je 0x14004ef37
mov ebp, eax
cmp eax, 3
je 0x14004ef16
cmp ebp, 1
ja 0x14004ef37
mov rsi, qword [rsp + 0x48]
sub rsi, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, rsi
call fcn.1401a0f1c
cmp rax, rsi
jne 0x14004ef37
mov rsi, qword [rsp + 0x40]
cmp ebp, 1
je 0x14004eea9
jmp 0x14004ee7d
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rsi
call fcn.1401a0f1c
cmp rax, 1
je 0x14004ee7d
mov esi, 0xffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140183a80
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14004efa0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x14004efd5
mov r9, qword [rdi + 0x40]
mov edx, 2
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1401a0f1c
xor ebx, ebx
test rsi, rsi
jle 0x14004effb
movzx edx, word [r14 + rbx*2]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp ax, 0xffff
je 0x14004effb
inc rbx
cmp rsi, rbx
jne 0x14004efdc
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14004f010
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov esi, edx
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp dx, 0xffff
je 0x14004f06c
mov rdi, rcx
mov word [rsp + 0x56], si
cmp byte [rcx + 0x58], 0
je 0x14004f07c
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x56]
mov edx, 2
mov r8d, 1
call fcn.1401a0f1c
mov di, 0xffff
cmp rax, 1
jne 0x14004f12b
xor eax, eax
cmp si, 0xffff
cmove esi, eax
mov edi, esi
jmp 0x14004f12b
lea r15, [rsp + 0x58]
lea r12, [rsp + 0x48]
mov qword [r12], r15
lea rbx, [rsp + 0x56]
lea r13, [rsp + 0x60]
lea r14, [rsp + 0x40]
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov r8, rbx
lea r9, [rsp + 0x58]
call qword [rax + reloc.WS2_32.dll_recv]
cmp qword [rsp + 0x40], rbx
je 0x14004f127
mov ebp, eax
cmp eax, 3
je 0x14004f106
cmp ebp, 1
ja 0x14004f127
mov rbx, qword [rsp + 0x48]
sub rbx, r15
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.1401a0f1c
cmp rax, rbx
jne 0x14004f127
mov rbx, qword [rsp + 0x40]
cmp ebp, 1
je 0x14004f099
jmp 0x14004f06c
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rbx
call fcn.1401a0f1c
cmp rax, 1
je 0x14004f06c
mov di, 0xffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140183a80
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400685b0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x140342848], 0
je 0x1400685d5
xor esi, esi
jmp 0x140068665
mov ecx, 0x38
call fcn.14018360c
mov rsi, rax
mov ecx, 0x18
call fcn.14018360c
mov qword [rsi], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x10], rcx
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [rsi + 8], rcx
lea rax, [rsi + 0x20]
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x30], 1
mov qword [0x140342848], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14006864e
cmp word [rax], 0
je 0x14006864e
xor ecx, ecx
nop dword [rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140068640
jmp 0x140068650
xor ecx, ecx
mov qword [rsp + 0x30], rcx
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140068680
mov sil, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140183a80
mov eax, esi
add rsp, 0x40
pop rsi
ret
Function at 0x140068680
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 3
call fcn.14007d170
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
cmp qword [rsi + 8], 0
je 0x1400688cc
mov dword [rsp + 0x4c], 0
lea rcx, [0x1401c9030]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140068726
lea rdx, [0x1401c9080]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140068739
mov rbx, rax
mov rcx, qword [rsi]
lea rdx, [rsp + 0x4c]
call rax
jmp 0x140068734
mov rcx, qword [rsi]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r12, rax
jmp 0x14006873c
xor r12d, r12d
movsxd rbp, dword [rsp + 0x4c]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
test rbp, rbp
je 0x14006885c
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], r14
test ebp, ebp
js 0x1400688ff
shl rbp, 3
lea rdi, [rbp*2]
add rdi, rbp
mov rcx, rdi
call fcn.14018360c
mov rsi, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
add rax, rdi
mov qword [rsp + 0x40], rax
xor r15d, r15d
xorps xmm6, xmm6
jmp 0x1400687df
mov byte [rsi + 0x17], bl
mov rdi, rsi
test rbx, rbx
je 0x1400687cc
mov r8, rbx
add r8, rbx
mov rcx, rdi
mov rdx, r13
call fcn.140186330
mov word [rdi + rbx*2], 0
add rsi, 0x18
add r15, 8
cmp rbp, r15
je 0x14006884d
mov r13, qword [r12 + r15]
movups xmmword [rsi], xmm6
mov qword [rsi + 0x10], 0
mov rcx, r13
call fcn.1401a82e8
mov rbx, rax
movabs rax, 0x7fffffffffffffef
cmp rbx, rax
ja 0x1400688f2
cmp rbx, 0xb
jb 0x1400687b0
lea r14, [rbx + 8]
and r14, 0xfffffffffffffff8
js 0x1400688fa
lea rcx, [r14 + r14]
call fcn.14018360c
mov rdi, rax
mov qword [rsi], rax
movabs rax, 0x7fffffffffffffef
add rax, 0x11
or rax, r14
mov qword [rsi + 0x10], rax
mov qword [rsi + 8], rbx
jmp 0x1400687bb
mov qword [rsp + 0x38], rsi
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.140068460
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x140068880
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x1400688cc
mov rax, qword [rsp + 0x38]
cmp rax, rsi
jne 0x1400688a8
mov rcx, rsi
jmp 0x1400688c2
mov rax, rdi
cmp rsi, rdi
je 0x1400688bd
lea rdi, [rax - 0x18]
cmp byte [rax - 1], 0
jns 0x1400688a0
mov rcx, qword [rax - 0x18]
call fcn.140183668
jmp 0x1400688a0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rsi
call fcn.140183668
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140183a80
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rsi
call fcn.140064d6c
call fcn.140199d54
lea rcx, [rsp + 0x30]
call fcn.140066f9c
int3
Function at 0x14006f310
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14b, 1
cmp qword [0x1403428a8], 0
jne 0x14006f589
mov rdi, qword [0x140342888]
test rdi, rdi
je 0x14006f360
test byte [reloc.WS2_32.dll_accept], 1
jne 0x14006f462
jmp 0x14006f589
movabs r15, 0x7fffffffffffffef
mov ecx, 0x18
call fcn.14018360c
mov rdi, rax
lea rsi, [rsp + 0x40]
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov rcx, rsi
call fcn.1401a82e8
cmp rax, r15
ja 0x14006f5ac
mov rbx, rax
cmp rax, 0xb
jae 0x14006f3c2
mov byte [rdi + 0x17], bl
mov rsi, rdi
test rbx, rbx
jne 0x14006f3f0
jmp 0x14006f403
lea rbp, [rbx + 8]
and rbp, 0xfffffffffffffff8
js 0x14006f5b4
mov rcx, rbp
add rcx, rbp
call fcn.14018360c
mov rsi, rax
mov qword [rdi], rax
add r15, 0x11
or r15, rbp
mov qword [rdi + 0x10], r15
mov qword [rdi + 8], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140186330
mov word [rsi + rbx*2], 0
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x14006f417
mov r8, qword [rdi + 8]
mov rcx, rdi
mov dx, 0x5c
call fcn.14006675a
cmp rax, 0xffffffffffffffff
je 0x14006f43f
add rax, 1
mov rcx, rdi
mov rdx, rax
mov r8, 0xffffffffffffffff
call fcn.140066414
lea rdx, [0x1401c91a0]
mov rcx, rdi
call fcn.1400660ea
mov qword [0x140342888], rdi
test byte [reloc.WS2_32.dll_accept], 1
je 0x14006f589
cmp byte [rdi + 0x17], 0
jns 0x14006f46b
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1403428a8], rax
add rax, 1
cmp rax, 1
ja 0x14006f589
mov word [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14006f586
cmp eax, 0x104
ja 0x14006f586
mov rcx, qword [0x140342888]
lea rdx, [rsp + 0x40]
call fcn.1400662b4
mov rcx, qword [0x140342888]
movzx eax, byte [rcx + 0x17]
test al, al
js 0x14006f4ff
mov rdx, rcx
jmp 0x14006f506
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x14006f521
lea rdx, [0x1401c919c]
call fcn.1400660ea
mov rcx, qword [0x140342888]
lea rdx, [0x1401c91a0]
call fcn.1400660ea
mov rcx, qword [0x140342888]
cmp byte [rcx + 0x17], 0
jns 0x14006f53d
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1403428a8], rax
add rax, 1
cmp rax, 1
ja 0x14006f589
mov qword [0x1403428a8], 0
xor r14d, r14d
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140183a80
mov eax, r14d
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rdi
call fcn.140064d6c
call fcn.140199d54
int3
Function at 0x140070790
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, r9
mov rdi, r8
mov ebx, edx
mov rsi, rcx
call fcn.140096170
test rdi, rdi
je 0x1400707db
test al, al
je 0x1400707db
movsxd rax, ebx
mov rdx, rax
sar rdx, 0x3f
add rax, rdi
adc rdx, 0
mov ecx, edx
and ecx, 1
neg rcx
xor rdx, rcx
jne 0x1400707db
test rcx, rcx
js 0x1400707db
cmp qword [rsi + 0x10], rax
jae 0x1400707e7
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, rsi
mov edx, ebx
mov r8, rdi
mov r9, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140096370

Function at 0x140072220
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, r8
mov r12, rdx
mov r13, rcx
lea r15, [rcx + 0x18]
mov rcx, r15
call fcn.140093ac0
mov r8, qword [r13 + 0x28]
test r8, r8
je 0x140072368
mov rax, r12
shr rax, 0x20
lea edx, [r12*8]
add rdx, 8
xor rdx, rax
movabs rbx, 0x9ddfea08eb382d69
imul rdx, rbx
mov rcx, rdx
shr rcx, 0x2f
xor rdx, rax
xor rdx, rcx
imul rdx, rbx
mov rcx, rdx
shr rcx, 0x2f
xor rcx, rdx
imul rcx, rbx
mov rax, r8
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, r8
sub rax, rdx
movabs rdx, 0x3333333333333333
mov rbx, rax
and rbx, rdx
shr rax, 2
and rax, rdx
add rax, rbx
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs rdi, 0x101010101010101
imul rdi, rax
shr rdi, 0x38
cmp rdi, 1
jbe 0x14007230b
mov rbx, rcx
cmp rcx, r8
jb 0x140072312
mov rax, rcx
xor edx, edx
div r8
mov rbx, rdx
jmp 0x140072312
lea rbx, [r8 - 1]
and rbx, rcx
mov rax, qword [r13 + 0x20]
mov rax, qword [rax + rbx*8]
test rax, rax
je 0x140072368
mov rsi, qword [rax]
test rsi, rsi
je 0x140072368
lea r9, [r8 - 1]
jmp 0x14007233e
cmp qword [rsi + 0x10], r12
je 0x140072381
mov rsi, qword [rsi]
test rsi, rsi
je 0x140072368
mov rax, qword [rsi + 8]
cmp rax, rcx
je 0x140072330
cmp edi, 1
jbe 0x140072360
cmp rax, r8
jb 0x140072363
xor edx, edx
div r8
mov rax, rdx
jmp 0x140072363
and rax, r9
cmp rax, rbx
je 0x140072336
mov rcx, r15
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rdi, qword [0x140348a18]
cmp rdi, 1
ja 0x1400723e4
lea rcx, [0x140348a18]
call fcn.14006ef50
test al, al
je 0x1400723dd
mov qword [0x140348a20], 0
lea rbx, [0x140348a18]
lea rdi, [0x140348a20]
mov rcx, rdi
xor edx, edx
call fcn.1400816e0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14006eff0
jmp 0x1400723e4
mov rdi, qword [0x140348a18]
mov rcx, rdi
call fcn.140081650
mov rbx, rax
mov rcx, rdi
mov rdx, r14
call fcn.140081690
mov rcx, qword [r14 + 0x28]
mov rdx, r12
call qword [rcx + reloc.WS2_32.dll_htonl]
mov rcx, rdi
mov rdx, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140081690
Function at 0x14007f380
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x28
call fcn.140068910
lea rdx, str.enable_low_end_device_mode
mov rcx, rax
call fcn.140068e10
test al, al
je 0x14007f3a6
mov eax, 0x20000000
add rsp, 0x28
ret
add rsp, 0x28
jmp 0x140096be0
push rsi
sub rsp, 0x70
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x28], 0x40
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rcx, qword [rsp + 0x30]
movabs rdx, 0x7fffffffffffffff
cmp rcx, rdx
cmovb rdx, rcx
xor esi, esi
test eax, eax
cmovne rsi, rdx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140183a80
mov rax, rsi
add rsp, 0x70
pop rsi
ret

Function at 0x1400812f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14030e580]
cmp ecx, 0xffffffff
je 0x140081313
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
add eax, 0xffffffff
cmp eax, 2
setb al
jmp 0x140081315
xor eax, eax
add rsp, 0x28
ret

Function at 0x140081320
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
mov ecx, dword [0x14030e580]
cmp ecx, 0xffffffff
je 0x140081346
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14008134b
call fcn.140081460
mov eax, dword [0x140344248]
mov ecx, dword [0x1403488a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x10]
jg 0x140081413
mov rbx, qword [0x140344240]
mov rcx, rbx
call fcn.140093ac0
mov rcx, qword [0x140342a38]
add rcx, 1
mov edx, 0x100
lea rax, [0x140342a40]
nop word cs:[rax + rax]
movzx edi, cl
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x1400813ca
lea edi, [rcx + 1]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x1400813ca
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x1400813a0
jmp 0x1400813ef
lea rcx, [rax + rsi*8]
mov dword [rcx], 1
lea rcx, [rdi + rdi*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x140342a38], rdi
mov dword [r15], edi
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
cmp eax, 0xffffffff
je 0x140081459
cmp eax, 0x100
jge 0x14008145c
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x140344248]
call fcn.140183810
cmp dword [0x140344248], 0xffffffff
jne 0x140081370
mov ecx, 8
call fcn.14018360c
mov rbx, rax
mov rcx, rax
call fcn.140018190
mov qword [0x140344240], rbx
lea rcx, [0x140344248]
call fcn.1401838a8
jmp 0x140081370
int3
int3