joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2be0
Capabilities:
Hash data using sha512

Disassembly:
push rdi
sub rsp, 0x40
mov r8, rcx
test rcx, rcx
je 0x4a2d00
lea rax, [rdx - 1]
cmp rax, 0x3f
ja 0x4a2ce0
xor eax, eax
lea rdi, [rcx + 0x48]
mov byte [rsp], dl
movdqa xmm0, xmmword [0x00717140]
mov word [rsp + 0x1e], ax
and rdi, 0xfffffffffffffff8
mov eax, ecx
sub eax, edi
mov byte [rsp + 0x11], 0
mov qword [rsp + 9], 0
mov qword [rsp + 1], 0x10100
mov qword [rsp + 0x12], 0
mov dword [rsp + 0x1a], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rcx + 0x40], 0
mov qword [rcx + 0xe8], 0
lea ecx, [rax + 0xf0]
xor eax, eax
shr ecx, 3
rep stosq qword [rdi], rax
mov dword [r8 + 0xe4], edx
pxor xmm0, xmmword [rsp]
movups xmmword [r8], xmm0
movdqa xmm0, xmmword [0x00717150]
pxor xmm0, xmmword [rsp + 0x10]
movups xmmword [r8 + 0x10], xmm0
movdqa xmm0, xmmword [0x00717160]
pxor xmm0, xmmword [rsp + 0x20]
movups xmmword [r8 + 0x20], xmm0
movdqa xmm0, xmmword [0x00717170]
pxor xmm0, xmmword [rsp + 0x30]
movups xmmword [r8 + 0x30], xmm0
add rsp, 0x40
pop rdi
ret
cmp byte [rcx + 0xe8], 0
je 0x4a2cf1
mov qword [rcx + 0x58], 0xffffffffffffffff
mov qword [r8 + 0x50], 0xffffffffffffffff
mov eax, 0xffffffff
jmp 0x4a2cd3
mov eax, 0xffffffff
jmp 0x4a2cd3

Function at 0x4a2d10
Capabilities:
Hash data using sha512

Disassembly:
push r12
push rdi
sub rsp, 0xe8
mov r10, r8
mov r12, rcx
mov r8, r9
test rcx, rcx
je 0x4a2e8c
lea rax, [rdx - 1]
cmp rax, 0x3f
ja 0x4a2e68
lea rax, [r9 - 1]
cmp rax, 0x3f
ja 0x4a2e68
test r10, r10
je 0x4a2e68
lea rdi, [rcx + 0x48]
xor eax, eax
mov byte [rsp + 0x20], dl
movdqa xmm0, xmmword [0x00717140]
and rdi, 0xfffffffffffffff8
mov byte [rsp + 0x21], r9b
lea r9, [rsp + 0x60]
mov qword [rsp + 0x2a], 0
mov word [rsp + 0x3e], ax
xor eax, eax
mov qword [rsp + 0x22], 0x101
mov qword [rsp + 0x32], 0
mov dword [rsp + 0x3a], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rcx + 0x40], 0
mov qword [rcx + 0xe8], 0
sub ecx, edi
add ecx, 0xf0
shr ecx, 3
rep stosq qword [rdi], rax
mov rdi, r9
mov ecx, 0x10
mov dword [r12 + 0xe4], edx
rep stosq qword [rdi], rax
mov rdx, r10
mov rcx, r9
pxor xmm0, xmmword [rsp + 0x20]
movups xmmword [r12], xmm0
movdqa xmm0, xmmword [0x00717150]
pxor xmm0, xmmword [rsp + 0x30]
movups xmmword [r12 + 0x10], xmm0
movdqa xmm0, xmmword [0x00717160]
pxor xmm0, xmmword [rsp + 0x40]
movups xmmword [r12 + 0x20], xmm0
movdqa xmm0, xmmword [0x00717170]
pxor xmm0, xmmword [rsp + 0x50]
movups xmmword [r12 + 0x30], xmm0
call sub.msvcrt.dll_memcpy
mov r8d, pe_nt_image_headers64
mov rcx, r12
mov rdx, rax
call fcn.004a2910
xor eax, eax
add rsp, 0xe8
pop rdi
pop r12
ret
cmp byte [r12 + 0xe8], 0
je 0x4a2e7c
mov qword [r12 + 0x58], 0xffffffffffffffff
mov qword [r12 + 0x50], 0xffffffffffffffff
mov eax, 0xffffffff
jmp 0x4a2e58
mov eax, 0xffffffff
jmp 0x4a2e58
Function at 0x4a4520
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov r14, qword [0x0072afd0]
xor r12d, r12d
movabs rax, 0x5851f42d4c957f2d
mov rdi, rdx
lea rdx, [r8 + 1]
mov r13, rcx
imul rax, rdx
lea rbp, [rcx + 0x187a0]
movabs rdx, 0x810a978a59f5a1fc
lea rsi, [rsp + 0x20]
xor rdx, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdx
movabs rdx, 0xa77099df38c2d846
xor rdx, rax
mov qword [rsp + 0x30], rdx
movabs rdx, 0x8126b91cbf22495c
xor rdx, rax
mov qword [rsp + 0x38], rdx
movabs rdx, 0x494d2597179f8a62
xor rdx, rax
mov qword [rsp + 0x40], rdx
movabs rdx, 0x9237efb9ceaaec0c
xor rdx, rax
mov qword [rsp + 0x48], rdx
movabs rdx, 0x2f2a56746ce62d78
xor rdx, rax
mov qword [rsp + 0x50], rdx
movabs rdx, 0x84853bf7b62ce54e
xor rax, rdx
mov qword [rsp + 0x58], rax
mov eax, dword [r14 + 0x18]
test eax, eax
je 0x4a4688
nop dword [rax]
mov eax, dword [r14]
mov rcx, rsi
shl eax, 0xa
shr eax, 6
lea ebx, [rax - 1]
mov eax, r12d
add r12d, 1
imul rax, rax, 0x1878
and rbx, r8
mov r8, rbp
shl rbx, 6
add rbx, qword [r13]
prefetchnta byte [rbx]
lea r15, [r13 + rax + 0x20]
mov rdx, r15
call fcn.004a9340
mov rax, qword [rbx]
xor qword [rsp + 0x20], rax
mov rax, qword [rbx + 8]
xor qword [rsp + 0x28], rax
mov rax, qword [rbx + 0x10]
xor qword [rsp + 0x30], rax
mov rax, qword [rbx + 0x18]
xor qword [rsp + 0x38], rax
mov rax, qword [rbx + 0x20]
xor qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x28]
xor qword [rsp + 0x48], rax
mov rax, qword [rbx + 0x30]
xor qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x38]
xor qword [rsp + 0x58], rax
movsxd rax, dword [r15 + 0x1814]
mov r8, qword [rsp + rax*8 + 0x20]
cmp dword [r14 + 0x18], r12d
ja 0x4a45f0
movdqa xmm0, xmmword [rsp + 0x20]
movdqa xmm1, xmmword [rsp + 0x30]
movdqa xmm2, xmmword [rsp + 0x40]
movdqa xmm3, xmmword [rsp + 0x50]
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi + 0x20], xmm2
movups xmmword [rdi + 0x30], xmm3
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x4b1d10
Capabilities:
Delete service
Stop service

Disassembly:
push r12
push rbx
sub rsp, 0x48
mov rcx, qword [0x00780a10]
test rcx, rcx
je 0x4b1db0
movzx r12d, byte [0x00780a38]
test r12b, r12b
je 0x4b1d50
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, r12d
mov qword [0x00780a10], 0
add rsp, 0x48
pop rbx
pop r12
ret
lea r8, [rsp + 0x20]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, qword [0x00780a10]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x4b1d88
test ebx, ebx
setne r12b
mov rcx, qword [0x00780a10]
jmp 0x4b1d34
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.e_43_1me_1_37m_msr_e_0m
mov ecx, 3
lea rdx, str.e_0m_se_0_31mfailed_to_remove_WinRing0_driver__error__u
mov r9d, eax
call fcn.00405880
jmp 0x4b1d79
mov r12d, 1
mov eax, r12d
add rsp, 0x48
pop rbx
pop r12
ret
Function at 0x4bb3f0
Capabilities:
Get common file path

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, rcx
mov r13, rdx
mov rbp, r8
call sub.msvcrt.dll_wcslen
mov rdi, rax
mov rbx, rax
jmp 0x4bb430
lea rsi, [rbx - 1]
movzx eax, word [r12 + rsi*2]
cmp ax, 0x2f
je 0x4bb488
cmp ax, 0x5c
je 0x4bb488
mov rbx, rsi
test rbx, rbx
jne 0x4bb418
test r13, r13
je 0x4bb467
mov ecx, 0x20a
call fcn.004b75d0
mov qword [r13], rax
mov rdx, rax
test rax, rax
je 0x4bb51e
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4bb506
mov rcx, r12
call sub.msvcrt.dll__wcsdup
mov qword [rbp], rax
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
test rsi, rsi
je 0x4bb435
test r13, r13
je 0x4bb4c2
lea r14, [rbx + rbx + 2]
mov rcx, r14
call fcn.004b75d0
mov qword [r13], rax
mov rcx, rax
test rax, rax
je 0x4bb51e
mov r8, rbx
mov rdx, r12
call sub.msvcrt.dll_wcsncpy
mov rax, qword [r13]
xor ecx, ecx
mov word [rax + r14 - 2], cx
sub rdi, rsi
lea rsi, [rdi + rdi]
mov rcx, rsi
call fcn.004b75d0
mov qword [rbp], rax
mov rcx, rax
test rax, rax
je 0x4bb51e
lea rdx, [r12 + rbx*2]
lea r8, [rdi - 1]
call sub.msvcrt.dll_wcsncpy
mov rax, qword [rbp]
xor edx, edx
mov word [rax + rsi - 2], dx
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [r13]
call fcn.004b75f0
mov qword [r13], 0
mov eax, 0xffffffff
jmp 0x4bb4f7
lea rdx, [0x0071b8e0]
mov ecx, 0xe
call fcn.004bb090
nop
Function at 0x4bc800
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
lea rcx, [0x00a09e00]
mov dword [0x00780de0], eax
call fcn.004d41c0
test eax, eax
jne 0x4bc860
lea rax, [0x00781e00]
lea rdx, [0x00780e00]
lea rcx, [rax + 0x288000]
nop
mov qword [rdx + 8], rax
add rax, 0x2880
add rdx, 0x10
mov qword [rdx - 0x10], 0
cmp rax, rcx
jne 0x4bc840
add rsp, 0x58
ret
lea rdx, str.uv_mutex_init
mov ecx, eax
call fcn.004bb090
nop
nop
Function at 0x4be3b0
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x150]
call qword [sym.imp.msvcrt.dll__wrmdir]
cdqe
mov qword [rbx + 0x88], rax
cmp rax, 0xffffffffffffffff
je 0x4be3e0
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
call fcn.004bb150
cdqe
mov qword [rbx + 0x88], rax
add rsp, 0x20
pop rbx
ret

Function at 0x4be620
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x150]
call qword [sym.imp.msvcrt.dll__wmkdir]
cdqe
mov qword [rbx + 0x88], rax
cmp rax, 0xffffffffffffffff
je 0x4be650
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov rax, 0xfffffffffffff019
mov dword [rbx + 0x14c], ecx
cmp ecx, 0x7b
jne 0x4be680
mov qword [rbx + 0x88], rax
add rsp, 0x20
pop rbx
ret
call fcn.004bb150
cdqe
jmp 0x4be66a

Function at 0x4bedf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [rcx + 0x150]
mov rbx, rcx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4bee58
mov qword [rbx + 0x88], 0xfffffffffffff02c
xor r12d, r12d
mov dword [rbx + 0x14c], 0x10b
mov rcx, r12
call fcn.004b75f0
xor ecx, ecx
call fcn.004b75f0
mov qword [rbx + 0x90], 0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov ecx, 0x290
call fcn.004b75d0
mov r12, rax
test rax, rax
je 0x4bef00
mov rcx, rsi
lea rbp, [0x0071bb76]
call sub.msvcrt.dll_wcslen
mov rdi, rax
test rax, rax
jne 0x4bef20
lea rcx, [rdi + rdi + 8]
call fcn.004b75d0
mov r13, rax
test rax, rax
je 0x4bef00
mov r9, rsi
mov r8, rbp
lea rdx, [rdi + 3]
mov rcx, rax
call qword [sym.imp.msvcrt.dll__snwprintf]
lea rdx, [r12 + 0x38]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, r13
mov qword [r12 + 0x30], rax
call fcn.004b75f0
cmp qword [r12 + 0x30], 0xffffffffffffffff
je 0x4bef50
mov dword [r12 + 0x288], 0
mov qword [rbx + 0x90], r12
mov qword [rbx + 0x88], 0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov qword [rbx + 0x88], 0xfffffffffffff027
mov dword [rbx + 0x14c], 0xe
jmp 0x4bee2b
movzx eax, word [rsi + rax*2 - 2]
cmp ax, 0x5c
je 0x4bef3c
lea rbp, str._s
cmp ax, 0x2f
jne 0x4bee89
lea rbp, [0x0071bb7e]
jmp 0x4bee89
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
cmp eax, 2
je 0x4beed1
call rsi
mov dword [rbx + 0x14c], eax
mov ecx, eax
call fcn.004bb150
cdqe
mov qword [rbx + 0x88], rax
jmp 0x4bee2b

Function at 0x4c6ea0
Capabilities:
Resolve dns

Disassembly:
push rbx
sub rsp, 0x20
mov r8, qword [rcx + 0x48]
mov rdx, qword [rcx + 0x40]
mov rbx, rcx
mov qword [rcx + 0x48], 0
mov rcx, qword [rcx + 0x38]
lea r9, [rbx + 0x48]
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov ecx, eax
call fcn.004c6de0
mov dword [rbx + 0x58], eax
add rsp, 0x20
pop rbx
ret
Function at 0x4c8090
Capabilities:
Connect pipe
Create pipe

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rcx
mov rsi, rdx
mov rbx, r8
mov edi, r9d
test byte [rdx + 0x58], 0x40
je 0x4c8198
mov rax, qword [rbx + 0x70]
test edi, edi
jne 0x4c814c
cmp rax, 0xffffffffffffffff
je 0x4c80da
mov r8d, 0x33f
lea rdx, str.src_win_pipe.c
lea rcx, str.req__pipeHandle__INVALID_HANDLE_VALUE
call qword [sym.imp.msvcrt.dll__assert]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov rcx, qword [rsi + 0x120]
mov r9d, 0xff
mov qword [rsp + 0x38], 0
mov edx, 0x40040003
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x70], rax
mov r8, rax
cmp rax, 0xffffffffffffffff
je 0x4c8202
mov dword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov rdx, rsi
mov rcx, rbp
call fcn.004c7e40
test eax, eax
jne 0x4c81f0
mov rax, qword [rbx + 0x70]
cmp rax, 0xffffffffffffffff
je 0x4c8250
lea rdx, [rbx + 0x40]
mov qword [rbx + 0x40], 0
mov qword [rbx + 0x48], 0
mov qword [rdx + 0x10], 0
mov qword [rdx + 0x18], 0
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4c81c0
add dword [rsi + 0x78], 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r8d, 0x33c
lea rdx, str.src_win_pipe.c
lea rcx, [0x0071c038]
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x4c80ae
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
cmp eax, 0x3e5
je 0x4c8188
call rdi
cmp eax, 0x217
jne 0x4c8270
mov qword [rbx + 0x40], 0
jmp 0x4c821f
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
test eax, eax
jle 0x4c828c
call rdi
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov rax, qword [rbp + 0x48]
mov qword [rbx + 0x68], 0
test rax, rax
je 0x4c8298
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0x68], rdx
mov qword [rax + 0x68], rbx
mov qword [rbp + 0x48], rbx
add dword [rsi + 0x78], 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r8d, 0x357
lea rdx, str.src_win_pipe.c
lea rcx, str.req__pipeHandle___INVALID_HANDLE_VALUE
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x4c8156
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call rdi
test eax, eax
jg 0x4c820f
call rdi
cdqe
jmp 0x4c821b
mov qword [rbx + 0x68], rbx
mov qword [rbp + 0x48], rbx
jmp 0x4c8188
Function at 0x4c8550
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov eax, dword [rdx + 0x58]
mov rsi, rcx
mov rbx, rdx
test ah, 0x10
je 0x4c8710
test eax, 0x10000
jne 0x4c86c0
cmp qword [rbx + 0x118], 0xffffffffffffffff
je 0x4c86e8
mov eax, dword [rbx + 0x58]
lea rdi, [rbx + 0x80]
test eax, 0x1000000
je 0x4c85e0
mov r8d, 0x10
mov rdx, rdi
mov qword [rbx + 0x238], 0
lea rcx, [0x004c82b0]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x4c86b0
mov rcx, rbx
call fcn.004c84f0
or dword [rbx + 0x58], 0x10000
add dword [rbx + 0x78], 1
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [rbx + 0xc0]
mov qword [rbx + 0xc0], 0
mov qword [rbx + 0xc8], 0
mov qword [rdx + 0x10], 0
mov qword [rdx + 0x18], 0
test eax, 0x80000
je 0x4c8626
mov rax, qword [rbx + 0xf0]
or rax, 1
mov qword [rbx + 0xd8], rax
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbx + 0x118]
lea rdx, [0x00a09e40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c8738
test byte [rbx + 0x5a], 8
je 0x4c85bd
cmp qword [rbx + 0xf0], 0
je 0x4c87b0
cmp qword [rbx + 0xf8], 0xffffffffffffffff
jne 0x4c85bd
mov dword [rsp + 0x28], 4
mov rdx, qword [rbx + 0xd8]
lea rcx, [rbx + 0xf8]
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
lea r8, [0x004c8a10]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x4c85bd
nop dword [rax]
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4c874c
mov r8d, 0x45c
lea rdx, str.src_win_pipe.c
lea rcx, [0x0071c150]
call qword [sym.imp.msvcrt.dll__assert]
cmp qword [rbx + 0x118], 0xffffffffffffffff
jne 0x4c8583
mov r8d, 0x45e
lea rdx, str.src_win_pipe.c
lea rcx, str.handle__handle___INVALID_HANDLE_VALUE
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x4c8583
mov r8d, 0x45b
lea rdx, str.src_win_pipe.c
lea rcx, [0x0071c128]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x58]
jmp 0x4c856a
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
cmp eax, 0x3e5
je 0x4c864d
call rbp
test eax, eax
jle 0x4c87a0
call rbp
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0xc0], rax
mov rax, qword [rsi + 0x48]
mov qword [rbx + 0xe8], 0
test rax, rax
je 0x4c87e8
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0xe8], rdx
mov qword [rax + 0x68], rdi
mov qword [rsi + 0x48], rdi
or dword [rbx + 0x58], 0x10000
add dword [rbx + 0x78], 1
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
call rbp
cdqe
jmp 0x4c875e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0xf0], rax
test rax, rax
jne 0x4c8665
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x0071c1a7]
mov ecx, eax
call fcn.004bb090
nop dword [rax]
mov qword [rbx + 0xe8], rdi
mov qword [rsi + 0x48], rdi
jmp 0x4c878c
Function at 0x4c94e0
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r12, qword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
mov rbp, rcx
mov rdi, rdx
lea r13, [rsp + 0x4c]
mov esi, r8d
nop dword [rax + rax]
mov edx, ebx
mov r8d, esi
mov r9, r13
mov rcx, rbp
mov qword [rsp + 0x20], 0
add rdx, rdi
sub r8d, ebx
call r12
test eax, eax
je 0x4c9580
add ebx, dword [rsp + 0x4c]
cmp esi, ebx
ja 0x4c9508
mov eax, 0
jne 0x4c9548
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov dword [rsp + 0x3c], eax
mov r8d, 0x67d
lea rdx, str.src_win_pipe.c
lea rcx, str.bytes_read__count
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rsp + 0x3c]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x4c9710
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x30]
mov r12, rcx
mov ebx, edx
mov edi, r8d
xor edx, edx
xor r8d, r8d
lea rsi, [rsp + 0x50]
mov rcx, rbp
call fcn.004b76f0
movdqu xmm0, xmmword [rsp + 0x30]
mov edx, ebx
mov r8, rsi
mov rcx, r12
movaps xmmword [rsp + 0x50], xmm0
call qword [r12 + 0x68]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x4c9765
mov r8d, dword [rsp + 0x50]
test r8d, r8d
jne 0x4c9788
mov r8, rsi
mov rdx, 0xfffffffffffff024
mov rcx, r12
call qword [r12 + 0x70]
xor eax, eax
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp r8d, edi
mov rcx, qword [r12 + 0x118]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x20], 0
cmova r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c97d0
mov edx, dword [rsp + 0x4c]
mov r8, rsi
mov rcx, r12
call qword [r12 + 0x70]
mov eax, dword [rsp + 0x4c]
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm1, xmmword [rsp + 0x50]
mov r8, rbp
mov rcx, r12
mov edx, eax
movaps xmmword [rsp + 0x30], xmm1
call fcn.004c9690
xor eax, eax
jmp 0x4c9779
Function at 0x4c9ae0
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r13, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r12, qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea rbp, str._pipeuv_p__lu
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [rsp + 0xc0]
mov edi, r8d
mov qword [rsp + 0xa0], rcx
mov rsi, r9
mov rbx, rdx
mov qword [rsp + 0xa8], rdx
or edi, 0x400c0000
jmp 0x4c9b52
call r15
mov r8d, eax
cmp eax, 0xe7
je 0x4c9b4e
cmp eax, 5
jne 0x4c9bfd
add rbx, 1
call r13
mov r9, rbx
mov r8, rbp
mov rdx, r14
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.004c99c0
mov r9d, 1
xor r8d, r8d
mov edx, edi
mov qword [rsp + 0x38], 0
mov rcx, rsi
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call r12
mov r10, rax
cmp rax, 0xffffffffffffffff
je 0x4c9b38
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x40], r10
xor r9d, r9d
mov rcx, r10
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rax + 0x38]
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov r10, qword [rsp + 0x40]
test rax, rax
je 0x4c9c11
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x40], r10
call fcn.004c7d70
mov rax, qword [rsp + 0xa8]
mov r10, qword [rsp + 0x40]
xor r8d, r8d
mov qword [rax + 0x118], r10
mov eax, r8d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x48], r10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10, qword [rsp + 0x48]
mov dword [rsp + 0x40], eax
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x40]
jmp 0x4c9bfd
Function at 0x4cd8c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [rsp + 0x98]
mov r14, qword [rsp + 0xa8]
mov r15, rcx
mov rbx, rdx
mov r13, r8
mov rsi, r9
cmp rdx, 2
jbe 0x4cd9e0
movzx eax, word [rcx]
cmp ax, 0x5c
je 0x4cdb10
cmp ax, 0x2f
je 0x4cda68
cmp word [rcx + 2], 0x3a
je 0x4cdb50
nop dword [rax + rax]
lea rcx, [rsi + rbp + 4]
add rcx, r14
add rcx, rbx
add rcx, rcx
call fcn.004b75d0
mov rdx, qword [rsp + 0xa0]
mov r8, r14
mov r12, rax
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
lea rdi, [r12 + r14*2]
test r14, r14
jne 0x4cda9f
mov rcx, rdi
mov r8, rbx
lea rdi, [rdi + rbx*2]
mov rdx, r15
call sub.msvcrt.dll_wcsncpy
test rbx, rbx
jne 0x4cdae0
mov r8, rsi
mov rdx, r13
lea rbx, [rdi + rsi*2]
mov rcx, rdi
call sub.msvcrt.dll_wcsncpy
test rbp, rbp
je 0x4cd9a8
test rsi, rsi
jne 0x4cda48
mov rdx, qword [rsp + 0x90]
mov rcx, rbx
mov r8, rbp
lea rbx, [rbx + rbp*2]
call sub.msvcrt.dll_wcsncpy
xor eax, eax
mov rcx, r12
mov word [rbx], ax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4cdad0
test al, 0x10
jne 0x4cdad0
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test rdx, rdx
je 0x4cd920
movzx eax, word [rcx]
cmp ax, 0x2f
je 0x4cda68
cmp ax, 0x5c
je 0x4cda68
cmp rdx, 2
jne 0x4cd920
cmp word [rcx + 2], 0x3a
jne 0x4cd920
cmp r14, 1
jbe 0x4cdb1b
mov rcx, qword [rsp + 0xa0]
mov r8d, 2
mov rdx, r15
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x4cdb1b
add r15, 4
sub rbx, 2
lea rdi, [r14 + r14]
jmp 0x4cda73
cmp word [rbx - 2], 0x2e
je 0x4cd991
mov edx, 0x2e
add rbx, 2
mov word [rbx - 2], dx
jmp 0x4cd991
mov edi, 4
mov r14d, 2
lea rcx, [rsi + rbp + 4]
add rcx, rbx
add rcx, r14
add rcx, rcx
call fcn.004b75d0
mov rdx, qword [rsp + 0xa0]
mov r8, r14
mov r12, rax
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
add rdi, r12
movzx edx, word [rdi - 2]
lea rcx, [0x0071c87e]
call sub.msvcrt.dll_wcsrchr
test rax, rax
jne 0x4cd956
mov r8d, 0x5c
add rdi, 2
mov word [rdi - 2], r8w
jmp 0x4cd956
mov rcx, r12
xor r12d, r12d
call fcn.004b75f0
jmp 0x4cd9c7
movzx edx, word [rdi - 2]
lea rcx, [0x0071c87e]
call sub.msvcrt.dll_wcsrchr
test rax, rax
jne 0x4cd971
mov ecx, 0x5c
add rdi, 2
mov word [rdi - 2], cx
jmp 0x4cd971
cmp word [rcx + 2], 0x5c
jne 0x4cda68
lea rcx, [rsi + rbp + 4]
add rcx, rbx
add rcx, rcx
call fcn.004b75d0
mov rdx, qword [rsp + 0xa0]
xor r8d, r8d
mov rdi, rax
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
mov r12, rdi
jmp 0x4cd956
movzx eax, word [r15 + 4]
cmp ax, 0x2f
je 0x4cdb1b
cmp ax, 0x5c
jne 0x4cda0d
jmp 0x4cdb1b
Function at 0x4cddb0
Capabilities:
Terminate process

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
mov r12, rcx
mov ebx, edx
cmp edx, 0x1c
ja 0x4cde90
cmp edx, 2
je 0x4cde0f
jg 0x4cde00
mov eax, 0xfffff02a
test edx, edx
jne 0x4cddf6
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4cde50
cmp dword [rsp + 0x2c], 0x103
mov eax, 0xfffff038
cmove eax, ebx
add rsp, 0x30
pop rbx
pop r12
pop r13
ret
cmp edx, 9
je 0x4cde0f
mov eax, 0xfffff02a
cmp edx, 0xf
jne 0x4cddf6
mov edx, 1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov r8d, eax
xor eax, eax
test r8d, r8d
jne 0x4cddf6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
cmp eax, 5
je 0x4cde60
mov ecx, r13d
call fcn.004bb150
add rsp, 0x30
pop rbx
pop r12
pop r13
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004bb150
jmp 0x4cddf6
lea rdx, [rsp + 0x2c]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4cde35
cmp dword [rsp + 0x2c], 0x103
mov eax, 0xfffff038
jne 0x4cddf6
jmp 0x4cde35
mov eax, 0xfffff019
jmp 0x4cddf6