joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400075f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x140018ef0]
mov rax, qword [rsi]
test rax, rax
je 0x1400077e0
cmp qword [rax + 0x28], 0
jne 0x1400077c8
lea rcx, [0x1400222b8]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x1400077d5
call fcn.140006c00
mov rax, qword [rsi]
test rax, rax
je 0x140007670
cmp qword [rax + 0x30], 0
jne 0x140007690
lea rdx, [0x140016498]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x1400076a4
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14000b910
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140007640
test rax, rax
jne 0x140007690
call fcn.14000b910
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x14000765e
call fcn.140006740
cmp qword [0x140025050], 0
mov rbx, rax
je 0x14000765e
test rax, rax
je 0x14000765e
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14000d7b0
cmp eax, 1
je 0x14000784d
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400153e6
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x140007828
cmp qword [rax + 0x30], 0
je 0x140007810
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400153e6
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14000762c
mov rax, qword [rsi]
jmp 0x140007639
call fcn.14000b910
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x140007618
test rax, rax
jne 0x1400077c8
call fcn.14000b910
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14000762c
jmp 0x140007631
lea rdx, [0x140016498]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x14000779e
call fcn.14000b910
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140007810
test rax, rax
jne 0x14000779a
call fcn.14000b910
jmp 0x14000779a
call fcn.140006ad0
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x140018ef0]
mov rdx, qword [rax]
lea rax, [0x1400222c8]
mov qword [rdx + 0x10], rax
ret
Function at 0x14000b790
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000b7b0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x14000b7f8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14000b7a4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000b7e5
Function at 0x14000b910
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1400223a0]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x14000b933
lea rax, [0x1400223a8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x14000b97b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000b978
lea rax, [0x1400223e0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x14000b9ab
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000b9a8
xor ecx, ecx
mov byte [0x1400223f9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140022402], rdx
lea r8, [0x1400223a0]
lea rbx, [0x1400223fa]
mov qword [0x140022412], rdx
mov qword [0x140022422], rdx
mov qword [0x140022432], rdx
xor edx, edx
mov qword [0x1400223fa], rax
mov qword [0x14002240a], rax
mov qword [0x14002241a], rax
mov qword [0x14002242a], rax
mov byte [0x14002243a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000bb86
lea rcx, [0x1400223e0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x14000bad1
lea rsi, [0x1400222e0]
lea r8, [0x14002243a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14000ba7d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x14000ba70
lea rcx, [0x1400223e0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x14000bb73
lea rcx, [0x14000b820]
mov qword [0x1400222e0], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1400222e0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1400223e0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14002243a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x14000bba6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x14000bb23
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x14000bb10
mov rax, rdx
mov qword [0x1400222e0], rax
lea rsi, [0x1400222e0]
jmp 0x14000bb49
cmp rdx, rsi
je 0x14000baaf
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x14000bb40
cmp rdx, rsi
je 0x14000baaf
mov qword [rdx + 8], rsi
lea rcx, [0x14000b820]
call sub.msvcrt.dll__onexit
jmp 0x14000baaf
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.14000b790
xor eax, eax
jmp 0x14000bac8
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.14000b790
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.14000b790
xor eax, eax
jmp 0x14000bb2f
Function at 0x140001ae5
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push rsi
sub rsp, 0x20
mov esi, 0x30
mov rax, qword gs:[esi]
mov rax, qword [rax + 0x60]
cmp byte [rax + 2], 1
je 0x140001b0c
xor ecx, ecx
mov edx, 0xf4240
call fcn.14002be70
jmp 0x140001aef
xor ecx, ecx
call fcn.140042220
int3
Function at 0x14001e782
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
mov rbx, qword [0x1400851c0]
test rbx, rbx
jne 0x14001e8d1
lea rcx, [0x140066543]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x14001e7ff
mov rbx, rax
lea rdx, [0x140066564]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14001e7ff
mov rdi, rax
lea rdx, [0x140066572]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14001e7ff
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], 0
jmp 0x14001e889
lea rcx, [0x14006e8a0]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x14001e8e4
mov rdi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14001e8e4
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14001e8e4
mov r14, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14001e8e4
mov rdi, rax
lea rcx, [rbp - 0x48]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x14001e8e4
mov qword [rbp - 0x18], r14
mov rax, qword [rbp - 0x48]
mov qword [rbp - 0x10], rax
push 0x18
pop rcx
call fcn.14001e942
mov rbx, rax
mov rax, qword [rbp - 0x18]
mov qword [rbx], rax
mov qword [rbx + 8], rdi
mov rax, qword [rbp - 0x10]
mov qword [rbx + 0x10], rax
xor eax, eax
lock cmpxchg qword [0x1400851c0], rbx
je 0x14001e8d1
mov rdi, rax
mov rcx, qword [rbx]
mov rdx, qword [rbx + 0x10]
call fcn.14001e970
push 8
pop rdx
mov rcx, rbx
call fcn.1400137f0
mov rbx, rdi
and qword [rsi + 8], 0
mov qword [rsi], rbx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rax, str.parking_lot_requires_either_NT_Keyed_Events__WinXP__or_WaitOnAddress_WakeByAddress__Win8_
lea rcx, [rbp - 0x48]
mov qword [rcx], rax
mov qword [rcx + 8], 1
mov qword [rcx + 0x10], 8
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
lea rdx, str.C:Usersdiddy.cargo_registry_srcindex.crates.io_6f17d22bba15001fparking_lot_core_0.9.10_src_thread_parkerwindowsmod.rs
call fcn.14005f310
int3

Function at 0x14001f9e0
Capabilities:
Query environment variable

Disassembly:
lea rdx, str.RUST_MIN_STACKthere_is_no_such_thing_as_a_release_load
mov r8d, 0xe
jmp fcn.14002f520
Function at 0x1400268c0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x1400268e5
cmp rax, rcx
je 0x1400268eb
cmp rdx, 4
jae 0x1400268f2
xor eax, eax
xor r8d, r8d
jmp 0x140026990
pop rbp
jmp fcn.1400144c0
xor eax, eax
jmp 0x1400269a7
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400636d0]
movdqa xmm3, xmmword [0x1400636e0]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140026920
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1400269a7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140026990
pop rbp
ret

Function at 0x14002a960
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1400695f8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14002a9d1
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14002a9fe
test eax, eax
js 0x14002a9dd
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14002a9f4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x140069660]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14002a060
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14002a1c0
mov ecx, 7
int 0x29
ud2
Function at 0x140030c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, rdx
mov qword [rbp - 0x20], rcx
movzx r15d, byte [rdx + 0x18]
mov byte [rdx + 0x18], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 2
mov qword [rbp - 8], 0
mov r12, qword [rdx + 8]
movzx esi, word [rdx + 0x10]
mov eax, 2
xor edi, edi
xor r13d, r13d
jmp 0x140030ccc
Function at 0x1400311f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb 0x14003125c
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x14003125c
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x14003125c
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x140031308
cmp byte [rdx], 0xed
jne 0x140031311
movzx r12d, byte [rdx + 1]
mov r8d, r12d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x140031311
add byte [rax], al
movzx r13d, byte [rdx + 2]
cmp rbx, 3
jb 0x1400312a1
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
and r13d, 0x3f
shl r12d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
sub rax, rbx
cmp rax, r8
jb 0x1400313fb
add rdx, 3
mov r15, rdx
and r12d, 0x3c0
or r14d, r13d
or r14d, r12d
add r14d, 0x10000
add byte [rax], al
add dword [rax], eax
mov rcx, rsi
mov edx, r14d
call fcn.14002f0a0
mov esi, 0x48ffffdd
add edi, 0xfffffffd
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
sub rax, rbx
sub eax, ebx
cmp rax, rdi
jb 0x140031420
mov rcx, qword [rsi + 8]
add rcx, rbx
mov rdx, r15
jmp 0x1400313ae
test rdi, rdi
je 0x1400313a0
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x140031338
add r9, 2
cmp r8, rax
cmovne r8, r9
nop word cs:[rax + rax]
mov r9, r8
cmp r8, rax
je 0x1400313a0
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x140031330
cmp r10b, 0xe0
jb 0x14003131a
cmp r10b, 0xed
jne 0x14003136f
cmp r8, rax
je 0x1400313a0
lea r8, [r9 + 2]
cmp r8, rax
je 0x1400313a0
cmp byte [r9 + 1], 0x9f
ja 0x14003139c
add r9, 3
mov r8, r9
jmp 0x140031330
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
cmp r10b, 0xf0
jb 0x140031330
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x140031330
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x1400313ce
add rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add rbx, rdi
mov qword [rsi + 0x10], rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.140060ee0
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x1400313ab
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r15, rdx
mov rdx, rbx
call fcn.140060ee0
mov rdx, r15
jmp 0x1400312bc
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.140060ee0
mov rbx, qword [rsi + 0x10]
jmp 0x1400312f9

Function at 0x140031850
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
Function at 0x1400345a0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x268
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1e0], 0xfffffffffffffffe
mov r14, r8
mov rbx, rdx
mov rsi, rcx
lea rcx, [rbp + 0x168]
call fcn.1400165f0
cmp word [rbp + 0x168], 2
jne 0x140034657
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], 0
mov byte [rbp - 0x28], 1
movabs rax, 0x3a0000003a
mov qword [rbp - 0x30], rax
mov r12b, 0x3a
mov r15, qword [rbp - 0x38]
mov rdi, r14
jmp 0x14003462c
mov r15, rdi
cmp rdi, r14
ja 0x1400346d9
mov cl, 0x3a
mov rdx, rbx
mov r8, rdi
call fcn.140018220
cmp rax, 1
jne 0x1400346a4
mov rdi, rdx
cmp rdx, r14
jae 0x140034620
cmp byte [rbx + rdi], r12b
jne 0x140034620
mov qword [rbp - 0x38], r15
lea rcx, [rdi + 1]
jmp 0x1400346ac
movzx eax, byte [0x140085328]
mov edx, 0x20
xor ecx, ecx
call fcn.1400424b0
test rax, rax
je 0x140034c53
movups xmm0, xmmword [rbp + 0x168]
movups xmm1, xmmword [rbp + 0x178]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov rcx, rax
add rcx, 0x20
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 1
mov qword [rsi + 0x18], rcx
jmp 0x1400346ef
mov qword [rbp - 0x38], r15
test al, 1
je 0x1400346dd
lea r11, str.invalid_port_value
mov qword [rbp - 0x38], rdi
lea r11, str.invalid_socket_address
mov ecx, 4
Function at 0x14003d320
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x40]
call fcn.14002fb10
mov rax, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
mov rcx, rax
neg rcx
jno 0x14003d36d
mov qword [rbp - 0x20], rdi
movabs rax, 0x8000000000000000
mov qword [rbp - 0x28], rax
jmp 0x14003d39a
mov rcx, qword [rbp - 0x30]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x58]
call fcn.14003d230
mov rbx, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x20]
mov rax, rbx
neg rax
jno 0x14003d40b
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x14003d3f0
lea rax, [rdi - 1]
mov qword [rbp - 0x10], rax
mov rax, qword [rdi - 1]
mov qword [rbp - 8], rax
mov rax, qword [rdi + 7]
mov qword [rbp], rax
mov rax, qword [rax]
test rax, rax
je 0x14003d3ca
mov rcx, qword [rbp - 8]
call rax
mov rcx, qword [rbp - 8]
mov rax, qword [rbp]
cmp qword [rax + 8], 0
je 0x14003d3e2
mov rdx, qword [rax + 0x10]
call fcn.1400137f0
mov edx, 8
mov rcx, qword [rbp - 0x10]
call fcn.1400137f0
movabs rax, 0x8000000000000000
mov qword [rsi], rax
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov r14, qword [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003d42a
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x14003d3fd
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
je 0x14003d3fd
mov edx, 2
mov rcx, rdi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.1400137f0
Function at 0x14003f580
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x140085328]
mov edx, 0x10
xor ecx, ecx
call fcn.1400424b0
test rax, rax
je 0x14003f660
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14003f790]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14003f652
mov rax, qword [rbx]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rax]
test rax, rax
je 0x14003f617
mov rcx, qword [rbp - 0x18]
call rax
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
je 0x14003f62f
mov rdx, qword [rax + 0x10]
call fcn.1400137f0
mov edx, 8
mov rcx, qword [rbp - 0x20]
call fcn.1400137f0
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.14005f17a
ud2
Function at 0x14003fce0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10a8
call fcn.14005e6f0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1010], xmm6
mov qword [rbp + 0x1008], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov qword [rbp + 0xfe0], rcx
lea rcx, [rbp - 0x50]
mov r8d, 0x1000
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm6, xmm6
lea r12, [rbp + 0xffc]
lea r13, [0x140035590]
lea rdi, [rbp + 0xfb0]
mov r15, qword [sym.imp.kernel32.dll_WriteFileEx]
mov rsi, qword [sym.imp.kernel32.dll_SleepEx]
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r12
mov qword [rsp + 0x20], r13
mov rcx, qword [rbp + 0xfe0]
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rdi
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x14003fde0
nop
mov ecx, 0xffffffff
mov edx, 1
call rsi
cmp dword [rbp + 0xffc], 1
jne 0x14003fda0
mov eax, dword [rbp + 0x1000]
mov ebx, dword [rbp + 0x1004]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
test eax, eax
cmovne rbx, rcx
jne 0x14003fdf3
jmp 0x14003fe36
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rcx, rbx
mov eax, ecx
and eax, 3
shr rcx, 0x20
cmp eax, 2
jne 0x14003fe20
call fcn.14002c4d0
cmp al, 0xb
mov eax, 0
cmove rbx, rax
je 0x14003fe36
jmp 0x14003ff0b
cmp rcx, 0xb
mov eax, 0
cmove rbx, rax
cmp ecx, 0xb
jne 0x14003ff0b
test rbx, rbx
je 0x14003fed7
cmp rbx, 0x1000
ja 0x14003ff8f
xor r14d, r14d
nop
cmp rbx, r14
jb 0x14003ff7b
mov r8d, ebx
sub r8d, r14d
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r12
mov qword [rsp + 0x20], r13
mov rcx, qword [rbp + 0xfd8]
mov r9, rdi
call r15
test eax, eax
je 0x14003fed1
mov ecx, 0xffffffff
mov edx, 1
call rsi
cmp dword [rbp + 0xffc], 1
jne 0x14003fea0
cmp dword [rbp + 0x1000], 0
jne 0x14003fed7
mov eax, dword [rbp + 0x1004]
add r14, rax
cmp r14, rbx
jne 0x14003fe50
jmp 0x14003fd58
call qword [sym.imp.kernel32.dll_GetLastError]
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0xfe0]
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1010]
add rsp, 0x10a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x14003fed7
lea rax, [rbx - 1]
mov qword [rbp + 0xfd0], rax
mov rax, qword [rbx - 1]
mov qword [rbp + 0xfe8], rax
mov rax, qword [rbx + 7]
mov qword [rbp + 0xff0], rax
mov rax, qword [rax]
test rax, rax
je 0x14003ff47
mov rcx, qword [rbp + 0xfe8]
call rax
mov rcx, qword [rbp + 0xfe8]
mov rax, qword [rbp + 0xff0]
cmp qword [rax + 8], 0
je 0x14003ff65
mov rdx, qword [rax + 0x10]
call fcn.1400137f0
mov edx, 8
mov rcx, qword [rbp + 0xfd0]
call fcn.1400137f0
jmp 0x14003fed7
lea r8, str.std_src_syspalwindowspipe.rs
mov rcx, r14
mov rdx, rbx
call fcn.14005f6c0
jmp 0x14003ffa3
lea r8, str.std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, rbx
call fcn.14005f340
ud2