joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007d47c
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call fcn.1400a08d0
test eax, eax
je 0x14007d499
call fcn.14009d10c
mov ecx, dword [rax]
call fcn.14007c05c
neg eax
jmp 0x14007d49b
xor eax, eax
add rsp, 0x28
ret

Function at 0x14007d5cc
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
xor r9d, r9d
mov rdi, rdx
mov dword [rax - 0x20], 0x1000080
lea r8d, [r9 + 7]
mov edx, 0xc0000000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14007d62e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.NaClHostDescTruncate:_CreateFile_failed__d_n
lea ecx, [rbx + 4]
mov r8d, eax
mov ebx, eax
call fcn.14007a9a0
mov ecx, ebx
call fcn.14007e000
neg eax
jmp 0x14007d69e
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x14007d658
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.NaClHostDescTruncate:_SetFilePointerEx_failed:_last_error__d._n
mov ecx, 0xfffffffd
jmp 0x14007d619
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14007d69c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.NaClHostDescTruncate:_could_not_truncate_file:_last_error__d._n
mov ecx, 0xfffffffd
mov r8d, eax
mov ebx, eax
call fcn.14007a9a0
cmp ebx, 0x4c8
jne 0x14007d623
lea rdx, str.NaClHostDescTruncate:_this_is_due_to_an_existing_mapping_of_the_same_file._n
mov ecx, 0xfffffffd
call fcn.14007a9a0
jmp 0x14007d623
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14007de00
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov ecx, 0xffffffff
mov rax, r9
cmp r9, rcx
jbe 0x14007de33
call fcn.14009d10c
lea rdx, str.NaClThreadCtor:__beginthreadex_failed__stack_request_out_of_range_n
mov r8d, dword [rax]
mov ecx, 0xfffffffd
call fcn.14007a9a0
xor eax, eax
jmp 0x14007de74
and qword [rsp + 0x28], 0
mov r9, r8
mov r8, rdx
mov edx, eax
xor ecx, ecx
mov dword [rsp + 0x20], 4
call fcn.1400a14a8
test rax, rax
jne 0x14007de63
call fcn.14009d10c
lea rdx, str.NaClThreadCtor:__beginthreadex_failed__errno__d_n
jmp 0x14007de22
mov rcx, rax
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x1400830c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
test r8, r8
je 0x140083124
mov r14d, 0xffffffff
mov eax, edi
mov r8d, r14d
mov r9, rdi
sub r9, rbx
sub eax, ebx
lea rdx, [rbx + rsi]
cmp r9, r14
lea r9, [rsp + 0x60]
mov rcx, rbp
cmovbe r8d, eax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140083139
mov eax, dword [rsp + 0x60]
add rbx, rax
cmp rbx, rdi
jb 0x1400830e8
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
or rax, 0xffffffffffffffff
test rbx, rbx
cmovne rax, rbx
jmp 0x140083126
Function at 0x140083540
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
test r8, r8
je 0x1400835a4
mov r14d, 0xffffffff
mov eax, edi
mov r8d, r14d
mov r9, rdi
sub r9, rbx
sub eax, ebx
lea rdx, [rbx + rsi]
cmp r9, r14
lea r9, [rsp + 0x60]
mov rcx, rbp
cmovbe r8d, eax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400835b9
mov eax, dword [rsp + 0x60]
add rbx, rax
cmp rbx, rdi
jb 0x140083568
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
or rax, 0xffffffffffffffff
test rbx, rbx
cmovne rax, rbx
jmp 0x1400835a6

Function at 0x1400835c8
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x1401f05f0]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0x60]
call fcn.140083058
test al, al
jne 0x1400835f7
or rax, 0xffffffffffffffff
jmp 0x14008365d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140083018
cmp qword [rax + 0x18], 8
jb 0x140083610
mov rax, qword [rax]
and qword [rsp + 0x38], 0
mov ecx, 0x1000
mov dword [rsp + 0x30], 0x3e8
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov edx, 0x80003
mov rcx, rax
mov r9d, 0xff
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp qword [rsp + 0x58], 8
mov rbx, rax
jb 0x14008365a
mov rcx, qword [rsp + 0x40]
call fcn.14006bd10
mov rax, rbx
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400991d0
add rsp, 0xa0
pop rbx
ret
Function at 0x1400836a0
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 8], rbp
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
mov rdi, rcx
mov rcx, rdx
mov esi, r8d
mov rbp, rdx
call fcn.140083eb4
test eax, eax
jne 0x1400836db
lea ecx, [rax + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x1400837e4
and dword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
test eax, eax
je 0x1400836d3
test byte [rsp + 0x40], 1
jne 0x140083721
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call fcn.140083148
jmp 0x1400837e4
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140083721
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
je 0x140083761
dec eax
jne 0x1400836d3
and dword [rsp + 0x78], eax
test sil, 1
jne 0x1400836d3
lea rdx, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
jmp 0x140083721
and dword [rsp + 0x78], 0
lea rdx, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov r9b, 1
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call fcn.140083148
mov rcx, rdi
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea rdx, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x78], 1
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
cmp r14d, 0xffffffff
jne 0x1400837e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1400837e1
test sil, 1
je 0x140083721
mov ecx, 0x218
jmp 0x1400836cd
mov eax, r14d
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x140083ab8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x1401f05f0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
cmp dword [rcx + 0x18], 8
mov rsi, r8
mov r15d, edx
mov r14, rcx
jbe 0x140083b06
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x140083cb9
call fcn.140083eb4
xor r12d, r12d
test eax, eax
je 0x140083af3
lea rdx, [rbp - 9]
mov rcx, rsi
call fcn.140083058
test al, al
je 0x140083afe
lea ebx, [r12 + 0xa]
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.140083018
cmp qword [rax + 0x18], 8
jb 0x140083b3e
mov rax, qword [rax]
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rax
mov dword [rsp + 0x28], 0x110000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp qword [rbp - 0x11], 8
mov rdi, rax
jb 0x140083b7a
mov rcx, qword [rbp - 0x29]
call fcn.14006bd10
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], r12
mov word [rbp - 0x29], r12w
cmp rdi, 0xffffffffffffffff
jne 0x140083c9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140083bd2
test r15b, 1
jne 0x140083bc8
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebx, ebx
cmp ebx, 0x3e8
jle 0x140083b27
mov ebx, 0x3e8
jmp 0x140083b27
mov ecx, 0x218
jmp 0x140083af8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140083afe
test rsi, rsi
je 0x140083af3
movsx ecx, byte [rsi]
call fcn.14009d33c
test eax, eax
je 0x140083af3
lea r9, str..pipegoogle_nacl_
lea r8, str._s_.s
lea rcx, [rbp - 9]
mov edx, gethostbyname
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x1c
call fcn.140099344
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x49]
call fcn.140083018
cmp qword [rax + 0x18], 8
jb 0x140083c3a
mov rax, qword [rax]
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rax
mov dword [rsp + 0x28], 0x110000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp qword [rbp - 0x31], 8
mov rdi, rax
jb 0x140083c76
mov rcx, qword [rbp - 0x49]
call fcn.14006bd10
mov qword [rbp - 0x31], 7
mov qword [rbp - 0x39], r12
mov word [rbp - 0x49], r12w
cmp rdi, 0xffffffffffffffff
jne 0x140083c9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140083afe
mov r8d, r15d
mov rdx, r14
mov rcx, rdi
call fcn.1400837fc
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400991d0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140083cec
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1401f05f0]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rdi, rcx
mov ebx, 1
lock xadd dword [0x14020d2e8], ebx
inc ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r9, str..pipechrome.nacl.
lea r8, str._s_u._lu
lea rcx, [rsp + 0x80]
mov edx, gethostbyname
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
call fcn.140099344
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.140083018
cmp qword [rax + 0x18], 8
jb 0x140083d67
mov rax, qword [rax]
and qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x3e8
mov r9d, 1
xor r8d, r8d
mov edx, 0x80003
mov rcx, rax
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp qword [rsp + 0x78], 8
mov qword [rdi], rax
jb 0x140083db1
mov rcx, qword [rsp + 0x60]
call fcn.14006bd10
cmp qword [rdi], 0xffffffffffffffff
jne 0x140083dd9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x140083dcf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140083e45
cmp qword [rdi], 0xffffffffffffffff
je 0x140083d0e
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.140083018
cmp qword [rax + 0x18], 8
jb 0x140083df5
mov rax, qword [rax]
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rax
mov dword [rsp + 0x28], 0x110000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp qword [rsp + 0x58], 8
mov qword [rdi + 8], rax
jb 0x140083e35
mov rcx, qword [rsp + 0x40]
call fcn.14006bd10
cmp qword [rdi + 8], 0xffffffffffffffff
mov rcx, qword [rdi]
jne 0x140083e4a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x140083e74
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140083e72
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x140083e72
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 8]
jmp 0x140083e3f
xor eax, eax
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400991d0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xc0
pop rdi
ret
Function at 0x140084a54
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
xor eax, eax
cmp dword [0x14020d300], eax
je 0x140084a6e
mov ecx, dword [0x140216f80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x28
ret

Function at 0x140085618
Capabilities:
Check os version
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x1401f05f0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov ebx, 0x114
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, ebx
call fcn.140099550
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ebx, ebx
test eax, eax
je 0x140085691
cmp dword [rsp + 0x54], 5
jb 0x140085691
jne 0x14008566b
cmp dword [rsp + 0x58], ebx
je 0x140085691
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x20]
mov ecx, 9
cmp cx, ax
je 0x14008568a
cmp bx, ax
jne 0x140085691
mov eax, 1
jmp 0x140085693
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400991d0
add rsp, 0x180
pop rbx
ret
Function at 0x140090344
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
lea rbx, [0x140001124]
lea rbp, [0x140001120]
sub rbx, rbp
call fcn.1400902d0
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140090396
lea rdx, str.NaClPatchWindowsExceptionDispatcherToFailFast:_VirtualProtect___failed_to_make_the_routine_writable_n
lea ecx, [rax - 4]
call fcn.14007a9a0
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.140098bd0
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400903cd
lea rdx, str.NaClPatchWindowsExceptionDispatcherToFailFast:_VirtualProtect___failed_to_restore_page_permissions_n
lea ecx, [rax - 4]
call fcn.14007a9a0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140098bb4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140098a1c

Function at 0x1400aebcc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400aebe2
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400aebe4
xor eax, eax
test eax, eax
je 0x1400aebf4
mov ecx, eax
call fcn.14009d0bc
or eax, 0xffffffff
jmp 0x1400aebf6
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400aeef4
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400aef0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400aef0e
xor eax, eax
test eax, eax
je 0x1400aef1e
mov ecx, eax
call fcn.14009d0bc
or eax, 0xffffffff
jmp 0x1400aef20
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400aef28
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400aef3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400aef40
xor eax, eax
test eax, eax
je 0x1400aef50
mov ecx, eax
call fcn.14009d0bc
or eax, 0xffffffff
jmp 0x1400aef52
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400ba454
Capabilities:
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
mov r9, r8
movsxd r10, edx
test rcx, rcx
je 0x1400ba4b7
cmp r8, 0x7fffffff
ja 0x1400ba4b7
cmp qword [rbx + 0x30], 0
jne 0x1400ba4b7
mov al, byte [rbx + 0x38]
mov r8, r10
mov qword [rsp + 0x20], r9
shr r8, 0x20
neg al
mov r9d, r10d
sbb edx, edx
and edx, 0xfffffffe
add edx, 6
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x30], rax
test rax, rax
je 0x1400ba4b7
mov rcx, rax
call fcn.1400ba420
mov qword [rbx + 0x28], rax
mov al, 1
jmp 0x1400ba4b9
xor al, al
add rsp, 0x30
pop rbx
ret
Function at 0x1400bd09c
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x38]
sub rsp, 0x130
mov ebx, dword [rcx + 0x38]
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp - 0x68], ebx
xor ebx, ebx
movups xmm0, xmmword [rdi + 0x28]
mov dword [rbp - 0x6c], eax
lea rax, [rdi + 0x5c]
mov qword [rsp + 0x30], rbx
movdqu xmmword [rbp - 0x48], xmm0
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x60], rax
lea rax, [rdi + 0x60]
lea r9, [rsp + 0x40]
mov qword [rbp - 0x58], rax
lea rax, [rdi + 0x68]
lea r8d, [rbx + 0x50]
mov qword [rbp - 0x50], rax
xor eax, eax
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov rcx, rsi
mov dword [rbp - 0x70], 1
mov dword [rsp + 0x20], 0x50
mov qword [rbp - 0x38], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x78], rbx
mov dword [rbp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x1400bd1f3
cmp dword [rsp + 0x40], 2
jne 0x1400bd1f3
cmp dword [rsp + 0x44], ebx
je 0x1400bd1f3
cmp qword [rsp + 0x78], rbx
je 0x1400bd1f3
cmp qword [rbp - 0x80], rbx
je 0x1400bd1f3
cmp qword [rbp - 0x78], rbx
je 0x1400bd1f3
xorps xmm0, xmm0
xor eax, eax
lea r9, [rbp + 0x40]
lea r8d, [rbx + 0x50]
lea rdx, [rbp - 0x20]
mov rcx, rsi
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmmword [rbp + 0x20], xmm0
mov qword [rbp - 0x1c], rbx
mov qword [rbp], rbx
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rbx
mov dword [rbp - 0x20], 3
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400bd1f3
mov rcx, qword [rsp + 0x78]
mov al, 1
mov qword [rdi + 0x40], rcx
mov rcx, qword [rbp - 0x80]
mov qword [rdi + 0x48], rcx
mov rcx, qword [rbp - 0x78]
mov qword [rdi + 0x50], rcx
mov ecx, dword [rsp + 0x44]
mov dword [rdi + 0x58], ecx
jmp 0x1400bd1f5
xor al, al
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x1400c1e28
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140216e90]
test rax, 0xfffffffffffffffe
jne 0x1400c1e7b
lea rcx, [0x140216e90]
call fcn.1400231dc
test al, al
je 0x1400c1e7b
and dword [0x140216e98], 0
lea rcx, [0x140216e98]
call fcn.14002c55c
lea r8, [0x140216e90]
lea rdx, [0x140216e98]
lea rcx, [0x140216e90]
xor r9d, r9d
call fcn.1400231c0
mov rax, qword [0x140216e90]
mov ecx, dword [rax]
call sub.KERNEL32.dll_TlsGetValue
add rsp, 0x28
ret
Function at 0x1400c2248
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
sub rsp, 0x20
mov r9, rcx
mov rbx, rdx
movabs r10, 0xcbf29ce484222325
xor ecx, ecx
movzx eax, byte [r8 + rcx + 0x10]
movabs rdx, 0x100000001b3
inc rcx
xor r10, rax
imul r10, rdx
cmp rcx, 4
jb 0x1400c2264
mov rcx, qword [r9 + 0x28]
mov rdx, r10
shr rdx, 0x20
xor rdx, r10
and rdx, rcx
cmp qword [r9 + 0x30], rdx
ja 0x1400c22a8
shr rcx, 1
or rax, 0xffffffffffffffff
sub rax, rcx
add rdx, rax
mov rcx, qword [r9 + 0x10]
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], r8
jne 0x1400c22d7
cmp qword [rcx + rdx*8], r8
jne 0x1400c22d1
mov rax, qword [r9]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x10]
mov rax, qword [r9]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400c22e4
mov rax, qword [r8 + 8]
jmp 0x1400c22ca
cmp qword [rcx + rdx*8], r8
jne 0x1400c22e9
mov rax, qword [r8]
mov qword [rcx + rdx*8], rax
mov r8, qword [rsp + 0x40]
mov rdx, rbx
mov rcx, r9
call fcn.1400c2300
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x141087058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1410871df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141087089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14108706f
add dl, dl
jne 0x141087096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410870f6
xor eax, eax
add dl, dl
jne 0x1410870a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410871ad
add dl, dl
jne 0x1410870b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410870c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410870d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410870dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1410870ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14108707e
mov eax, 1
add dl, dl
jne 0x141087106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141087113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410870fb
sub eax, ebx
mov ebx, 1
jne 0x14108714c
mov ecx, 1
add dl, dl
jne 0x14108712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14108713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141087123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14108707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141087168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141087175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14108715d
cmp eax, 0x7d00
jae 0x14108719b
cmp eax, 0x500
jb 0x141087196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14108707e
cmp eax, 0x7f
ja 0x14108719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14108707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1410871d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14108707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180007050
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180007072
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1800070ec
mov rdi, r14
mov rcx, rbx
call fcn.180004c90
test rax, rax
jle 0x1800070c4
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.180025120
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1800070dc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1800070e4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180007086
sub r14, rdi
jmp 0x1800071cf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180007103
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180007105
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180007137
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180025120
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1800071cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180007172
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1800071ad
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18001197c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1800071cc
cmp rbp, rax
ja 0x180007180
test rbp, rbp
je 0x1800071cc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18001197c
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret