joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400dfc10
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
lea ecx, [rbx + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 2
test ax, ax
cmovs ebx, ecx
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400dfc3f
or ebx, 1
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400dfc52
or ebx, 4
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1400dff70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x6b0
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov rsi, rcx
lea rcx, [rsp + 0x240]
xor edi, edi
call fcn.140177280
lea rcx, [rsp + 0x360]
call fcn.140177280
lea rcx, [rsp + 0x480]
call fcn.140177280
lea rcx, [rsp + 0x20]
call fcn.140177280
mov eax, dword [rsp + 0x24]
mov ebx, edi
cmp eax, 0x104
jge 0x1400dffea
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.14017d5a0
mov eax, dword [rsp + 0x24]
cmp eax, 0xffffffff
ja 0x1400e0039
nop
mov rcx, qword [rsp + 0x28]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
mov edx, eax
je 0x1400e0039
mov eax, dword [rsp + 0x24]
cmp edx, eax
jbe 0x1400e0022
jle 0x1400e001b
lea rcx, [rsp + 0x20]
call fcn.14017d5a0
mov eax, dword [rsp + 0x24]
cmp eax, 0xffffffff
jbe 0x1400dfff0
jmp 0x1400e0039
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x360]
mov ebx, 1
call fcn.140178050
lea rcx, [rsp + 0x20]
call fcn.14017d580
test ebx, ebx
je 0x1400e0085
mov rdx, qword [rsp + 0x368]
lea rcx, [rsp + 0x240]
mov r8, rsi
call fcn.1401788b0
mov rdx, qword [rsp + 0x248]
lea rcx, [rsp + 0x480]
call fcn.14017e2f0
mov rcx, qword [rsp + 0x488]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
lea rcx, [rsp + 0x480]
call fcn.14017d580
lea rcx, [rsp + 0x360]
call fcn.14017d580
lea rcx, [rsp + 0x240]
call fcn.14017d580
mov rax, rdi
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.1401a8fb0
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400e05f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x370
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x360], rax
movzx r10d, byte [rdx]
mov rdi, rdx
mov rsi, rcx
test r10b, r10b
mov rbx, rcx
je 0x1400e074c
nop
nop
lea r9, str._systemroot_
mov r8, rdi
sub r9, rdi
nop
movzx eax, byte [r8]
cmp al, 0x80
jae 0x1400e0730
movzx ecx, al
mov rax, qword [0x14020f380]
movzx edx, byte [rcx + rax]
movsx eax, byte [r9 + r8]
cmp eax, edx
jne 0x1400e0730
add r8, 1
cmp byte [r9 + r8], 0
jne 0x1400e0640
lea rcx, [rsp + 0x20]
mov rdi, r8
call fcn.140177280
lea rcx, [rsp + 0x140]
call fcn.140177280
mov edx, dword [rsp + 0x144]
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1400e06da
mov edx, dword [rsp + 0x144]
cmp eax, edx
jl 0x1400e071c
jle 0x1400e06c8
lea rcx, [rsp + 0x140]
mov edx, eax
call fcn.14017d5a0
mov edx, dword [rsp + 0x144]
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1400e06a5
lea rcx, [rsp + 0x20]
call fcn.140178250
lea rcx, [rsp + 0x140]
call fcn.14017d580
test rsi, rsi
je 0x1400e0708
movsxd r8, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov rcx, rbx
call fcn.1401a8fe0
movsxd rax, dword [rsp + 0x20]
lea rcx, [rsp + 0x20]
add rbx, rax
call fcn.14017d580
jmp 0x1400e0740
mov rdx, qword [rsp + 0x148]
lea rcx, [rsp + 0x20]
call fcn.140178050
jmp 0x1400e06e4
test rsi, rsi
je 0x1400e0738
mov byte [rbx], r10b
add rdi, 1
add rbx, 1
mov r10b, byte [rdi]
test r10b, r10b
jne 0x1400e0630
test rsi, rsi
je 0x1400e0754
mov byte [rbx], 0
sub rbx, rsi
mov eax, ebx
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.1401a8fb0
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400e0780
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x590
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x580], rax
mov rdi, rcx
lea rcx, [rsp + 0x20]
mov rbx, rdx
call fcn.140177280
lea rcx, [rsp + 0x360]
call fcn.140177280
lea rcx, [rsp + 0x140]
call fcn.140177280
cmp byte [0x14020e200], 0
mov rdx, rbx
je 0x1400e07e1
lea rcx, [rsp + 0x20]
call fcn.140177fb0
jmp 0x1400e080c
xor ecx, ecx
call fcn.1400e05f0
mov dword [rsp + 0x20], eax
lea edx, [rax + 1]
cmp edx, dword [rsp + 0x24]
jle 0x1400e07ff
lea rcx, [rsp + 0x20]
call fcn.140177290
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
call fcn.1400e05f0
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x360]
call fcn.14017d850
mov r8d, dword [rsp + 0x144]
mov rdx, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x368]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400e087e
cmp eax, dword [rsp + 0x144]
jle 0x1400e08d0
lea rcx, [rsp + 0x140]
mov edx, eax
call fcn.14017d5a0
mov r8d, dword [rsp + 0x144]
mov rdx, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x368]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1400e0840
mov rdx, qword [rsp + 0x28]
mov rcx, rdi
call fcn.140177fb0
lea rcx, [rsp + 0x140]
call fcn.14017d580
lea rcx, [rsp + 0x360]
call fcn.14017d580
lea rcx, [rsp + 0x20]
call fcn.14017d580
mov rcx, qword [rsp + 0x580]
xor rcx, rsp
call fcn.1401a8fb0
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x590
pop rdi
ret
mov rdx, qword [rsp + 0x148]
mov rcx, rdi
call fcn.140178050
jmp 0x1400e088b
Function at 0x1400e16e0
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
call qword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x1400e170e
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetLastActivePopup]
lea rcx, str.GetLastActivePopup__p_n
mov rdx, rax
mov rbx, rax
call fcn.1400b3fb0
mov rcx, rbx
call qword [sym.imp.USER32.dll_OpenIcon]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x1400e179a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetForegroundWindow_failed__08x_n
mov edx, eax
call fcn.1400b3fb0
cmp byte [0x14020ddea], 0
je 0x1400e179a
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
mov esi, eax
je 0x1400e1790
mov r8d, 1
mov edx, eax
mov ecx, edi
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
xor r8d, r8d
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetActiveWindow]
test rax, rax
jne 0x1400e17bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetActiveWindow_failed__08x_n
mov edx, eax
call fcn.1400b3fb0
mov edx, 0xffffffec
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [rsp + 0x30], 3
movzx ecx, al
shr ecx, 3
and ecx, 1
neg ecx
mov rcx, rbx
sbb rdx, rdx
xor eax, eax
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x1400e181a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetForegroundWindow2_failed__08x_n
mov edx, eax
call fcn.1400b3fb0
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, rbx
add rsp, 0x40
pop rbx
jmp qword [sym.imp.USER32.dll_BringWindowToTop]

Function at 0x1400e1840
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
lea ecx, [rbx + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 4
test ax, ax
cmovs ebx, ecx
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400e186f
or ebx, 1
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400e1882
or ebx, 2
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400e1895
or ebx, 8
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400e18a8
or ebx, 8
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1400e2110
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x4b0
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rdi, rcx
lea rcx, [rsp + 0x60]
mov r12, r9
mov rbp, r8
mov rbx, rdx
xor esi, esi
call fcn.140177280
lea rcx, [rsp + 0x60]
mov rdx, rbx
call fcn.14017d850
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov rcx, rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
lea rcx, [rsp + 0x60]
mov ebx, 1
cmove esi, ebx
call fcn.14017d580
test esi, esi
je 0x1400e222b
lea rcx, [rsp + 0x60]
call fcn.140177280
lea rcx, [rsp + 0x280]
call fcn.140177280
lea rcx, [rsp + 0x60]
mov rdx, r12
call fcn.14017d850
test rbp, rbp
lea rcx, [rsp + 0x280]
je 0x1400e21e0
mov rdx, rbp
call fcn.14017d850
jmp 0x1400e21e5
call fcn.140177a90
mov eax, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x50]
lea eax, [rax + rax + 2]
mov r9d, ebx
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [rsp + 0x280]
call fcn.14017d580
lea rcx, [rsp + 0x60]
call fcn.14017d580
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.1401a8fb0
add rsp, 0x4b0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400e2250
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x298
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, rcx
lea rcx, [rsp + 0x60]
mov rbp, r8
mov rbx, rdx
mov dword [rsp + 0x50], r9d
xor esi, esi
call fcn.140177280
lea rcx, [rsp + 0x60]
mov rdx, rbx
call fcn.14017d850
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov rcx, rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov ecx, 1
cmove esi, ecx
lea rcx, [rsp + 0x60]
call fcn.14017d580
test esi, esi
je 0x1400e2339
lea rcx, [rsp + 0x60]
call fcn.140177280
test rbp, rbp
lea rcx, [rsp + 0x60]
je 0x1400e22ff
mov rdx, rbp
call fcn.14017d850
jmp 0x1400e2304
call fcn.140177a90
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [rsp + 0x60]
call fcn.14017d580
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1401a8fb0
add rsp, 0x298
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400e2360
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x490
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbp, rcx
lea rcx, [rsp + 0x260]
mov rbx, r8
mov r12, rdx
call fcn.140177280
lea rcx, [rsp + 0x260]
mov rdx, rbx
call fcn.14017d850
mov esi, 3
lea rdi, [0x1401d0218]
lea r13d, [rsi - 2]
nop
nop
mov ebx, dword [rdi]
lea rcx, [rsp + 0x40]
or ebx, 0x20006
call fcn.140177280
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.14017d850
mov rdx, qword [rsp + 0x48]
lea r11, [rsp + 0x30]
mov r9d, ebx
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
lea rcx, [rsp + 0x40]
cmove ebx, r13d
call fcn.14017d580
test ebx, ebx
je 0x1400e2431
mov rdx, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rdi, 4
sub rsi, r13
jne 0x1400e23c0
lea rcx, [rsp + 0x260]
call fcn.14017d580
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1401a8fb0
mov rbx, qword [rsp + 0x4d8]
add rsp, 0x490
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400e5070
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push r12
sub rsp, 0x30
xor esi, esi
cmp r8d, 0x40
mov ebx, r8d
mov r12, rdx
mov rbp, rcx
jb 0x1400e5229
mov rcx, rbx
mov qword [rsp + 0x50], rdi
call fcn.1400cf700
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov rdi, rax
call fcn.1400db610
test eax, eax
je 0x1400e51f8
lea r9, [rsp + 0x60]
mov r8d, ebx
mov rdx, rdi
mov rcx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e51c7
cmp dword [rsp + 0x60], ebx
jne 0x1400e5196
lea r10, [rdi + 3]
lea r9, str.ReFS
lea r8d, [rsi + 4]
mov rdx, r10
sub r9, r10
nop
nop
nop
movzx eax, byte [r9 + rdx]
movzx ecx, byte [rdx]
sub ecx, eax
jne 0x1400e5164
add rdx, 1
sub r8d, 1
jne 0x1400e5100
mov rdx, qword [rdi + 0x38]
mov qword [r12], rdx
movzx ecx, byte [rdi + 0x28]
movzx eax, byte [rdi + 0x29]
mov r9d, dword [rdi + 0x24]
mov r8d, dword [rdi + 0x20]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rcx, str.serial_number__I64x__sector_size__u__sectors_per_cluster__u__version__u._u_n
call fcn.1400b3fb0
mov rcx, rdi
mov esi, 1
call fcn.1400cf780
mov rdi, qword [rsp + 0x50]
mov eax, esi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rsi
pop rbp
ret
lea rcx, str.bad_ReFS_signature:__t_n
mov r8d, 4
mov rdx, r10
call fcn.1400b3fb0
mov rcx, rdi
call fcn.1400cf780
mov rdi, qword [rsp + 0x50]
mov eax, esi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.failed_to_read_all_refs_boot_record__u_n
mov edx, eax
call fcn.1400b3fb0
mov rcx, rdi
call fcn.1400cf780
mov rdi, qword [rsp + 0x50]
mov eax, esi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.failed_to_read_refs_boot_record__u_n
mov edx, eax
call fcn.1400b3fb0
mov rcx, rdi
call fcn.1400cf780
mov rdi, qword [rsp + 0x50]
mov eax, esi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.failed_to_set_file_pointer_to_refs_boot_record__u_n
mov edx, eax
call fcn.1400b3fb0
mov rcx, rdi
call fcn.1400cf780
mov rdi, qword [rsp + 0x50]
mov eax, esi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rsi
pop rbp
ret
lea rcx, str.bad_refs_sector_size__u_n
mov edx, ebx
call fcn.1400b3fb0
mov rbx, qword [rsp + 0x58]
mov eax, esi
add rsp, 0x30
pop r12
pop rsi
pop rbp
ret
Function at 0x1400e9840
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
add rcx, 0xa8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [rdi + 0x120]
lea rcx, [rdi + 0xa8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1400e9982
mov qword [rsp + 0x48], rbp
xor ebp, ebp
cmp dword [rbx + 0x10], ebp
je 0x1400e98f7
cmp dword [rdi + 0x70], ebp
je 0x1400e98ba
mov rcx, qword [rdi]
lea rdx, [rdi + 8]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov dword [rdi + 0x70], ebp
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1400e994f
mov ecx, dword [rsp + 0x40]
add qword [rbx + 8], rcx
sub dword [rbx + 0x10], ecx
jmp 0x1400e98f2
mov rcx, qword [rdi]
mov dword [rdi + 0x18], ebp
mov dword [rdi + 0x1c], ebp
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 8]
lea rax, [rdi + 8]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400e9992
mov edx, dword [rsp + 0x40]
add qword [rbx + 8], rdx
sub dword [rbx + 0x10], edx
cmp dword [rbx + 0x10], ebp
jne 0x1400e9888
lea rcx, [rdi + 0xa8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [rbx]
lea rcx, [rdi + 0xa8]
mov qword [rdi + 0x120], r11
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rbx
call fcn.1400cf780
lea rcx, [rdi + 0xa8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [rdi + 0x120]
lea rcx, [rdi + 0xa8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
jne 0x1400e9883
jmp 0x1400e997d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
je 0x1400e999f
mov rcx, qword [rdi + 0xa0]
xor r8d, r8d
lea edx, [r8 + 3]
call qword [rdi + 0x98]
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400e995c
mov dword [rdi + 0x70], 1
jmp 0x1400e997d
Function at 0x1400e99b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov rbx, rcx
xor esi, esi
mov qword [rsp + 0x48], rdi
cmp dword [rbx + 0x6c], esi
jne 0x1400e9aa7
cmp dword [rbx + 0x68], esi
je 0x1400e9a3e
mov rdx, qword [rbx + 0x50]
mov rcx, rbx
mov dword [rbx + 0x68], esi
call fcn.1400e8d20
test eax, eax
je 0x1400e99fb
mov rcx, qword [rbx + 0x50]
call fcn.1400cf780
mov qword [rbx + 0x50], rsi
mov qword [rbx + 0x58], rsi
jmp 0x1400e9aa7
lea rcx, [rbx + 0xa8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [rbx + 0x48], rsi
jne 0x1400e9b11
mov rax, qword [rbx + 0x50]
lea rcx, [rbx + 0xa8]
mov qword [rbx + 0x58], rsi
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x90]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1400e9aa7
cmp qword [rbx + 0x58], rsi
je 0x1400e9a98
mov eax, dword [rbx + 0x64]
cmp eax, 8
jb 0x1400e9b62
cmp eax, 0x800000
ja 0x1400e9b62
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1400e9a69
call fcn.1400cf780
mov ecx, dword [rbx + 0x64]
call fcn.1400cf700
mov ecx, dword [rbx + 0x64]
mov qword [rbx + 0x50], rax
mov dword [rax], ecx
mov rax, qword [rbx + 0x50]
add rax, 4
mov dword [rbx + 0x68], 1
mov qword [rbx + 0x58], rax
mov eax, dword [rbx + 0x64]
sub eax, 4
mov dword [rbx + 0x6c], eax
jmp 0x1400e9aa7
lea rax, [rbx + 0x64]
mov dword [rbx + 0x6c], 4
mov qword [rbx + 0x58], rax
cmp dword [rbx + 0x60], esi
je 0x1400e9ad8
mov rcx, qword [rbx]
lea rdx, [rbx + 0x28]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov dword [rbx + 0x60], esi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1400e9b31
mov ecx, dword [rsp + 0x40]
add qword [rbx + 0x58], rcx
sub dword [rbx + 0x6c], ecx
jmp 0x1400e99c4
mov r8d, dword [rbx + 0x6c]
mov rdx, qword [rbx + 0x58]
mov rcx, qword [rbx]
lea rax, [rbx + 0x28]
lea r9, [rsp + 0x40]
mov dword [rbx + 0x38], esi
mov qword [rsp + 0x20], rax
mov dword [rbx + 0x3c], esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e9b55
mov ecx, dword [rsp + 0x40]
add qword [rbx + 0x58], rcx
sub dword [rbx + 0x6c], ecx
jmp 0x1400e99c4
mov rcx, qword [rbx + 0x50]
call fcn.1400cf780
lea rcx, [rbx + 0xa8]
mov qword [rbx + 0x50], rsi
mov qword [rbx + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400e9b62
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x1400e9b62
mov dword [rbx + 0x60], 1
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400e9b3e
mov rcx, qword [rbx + 0xa0]
xor r8d, r8d
lea edx, [r8 + 3]
call qword [rbx + 0x98]
mov rcx, qword [rbx + 0x80]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x1400eb5c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x390
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x380], rax
xor r14d, r14d
mov esi, r8d
mov r12, rdx
mov rdi, r14
mov r13, rcx
call fcn.1400db310
test eax, eax
jne 0x1400eb826
lea rcx, [rsp + 0x160]
mov qword [rsp + 0x3b0], rbx
mov qword [rsp + 0x3b8], rbp
call fcn.140177280
mov rdx, qword [0x14020dff0]
cmp byte [rdx], dil
je 0x1400eb63d
lea rcx, [rsp + 0x160]
call fcn.14017d850
jmp 0x1400eb697
lea rcx, [rsp + 0x40]
call fcn.140177280
lea rdx, str..PIPEEverything_Service
lea rcx, [rsp + 0x40]
call fcn.140177fb0
call fcn.1400ce420
test rax, rax
je 0x1400eb67b
call fcn.1400ce420
lea rdx, str.___s_
lea rcx, [rsp + 0x40]
mov r8, rax
call fcn.140178bf0
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x160]
call fcn.14017d850
lea rcx, [rsp + 0x40]
call fcn.14017d580
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsp + 0x168]
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x40000000
mov ebp, eax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbx, rax
jne 0x1400eb754
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Open_pipe_failed__d_n
mov edx, eax
call fcn.1400b3fb0
call fcn.1400e8e50
test eax, eax
je 0x1400eb809
test esi, esi
je 0x1400eb809
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
cmp eax, 0xea60
ja 0x1400eb809
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x168]
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x1400eb6d6
mov ecx, 0x138
call fcn.1400cf700
xor edx, edx
mov r8d, 0x138
mov rcx, rax
mov rdi, rax
call fcn.1401a9330
lea rcx, [rdi + 0xa8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rdi + 0xd0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rdi + 0xf8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [rdi], rbx
call fcn.1400d8ac0
mov qword [rdi + 0x20], rax
call fcn.1400d8ac0
mov qword [rdi + 0x98], r13
mov qword [rdi + 0x40], rax
mov qword [rdi + 0xa0], r12
call fcn.1400d8ac0
mov qword [rdi + 0x80], rax
call fcn.1400d8ac0
mov qword [rdi + 0x88], rax
call fcn.1400d8ac0
lea rcx, [0x1400eaa20]
mov rdx, rdi
mov qword [rdi + 0x90], rax
call fcn.1400dfd80
mov rcx, rdi
mov qword [rdi + 0x78], rax
call fcn.1400eb470
test eax, eax
jne 0x1400eb809
mov rcx, rdi
call fcn.1400e9180
mov rdi, r14
lea rcx, [rsp + 0x160]
call fcn.14017d580
mov rbp, qword [rsp + 0x3b8]
mov rbx, qword [rsp + 0x3b0]
mov rax, rdi
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.1401a8fb0
lea r11, [rsp + 0x390]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret