joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003c80
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x90
mov qword [rax - 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rdi, rcx
mov rcx, qword [rcx + 0xd8]
call fcn.140019e50
mov rbx, rax
mov esi, dword [rdi + 0xd8]
mov r8d, 4
lea rdx, [rsp + 0x48]
lea rcx, [0x1400aa8c8]
call fcn.14001c100
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.14001d050
nop
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.140002bf0
mov rbp, rax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140003db1
lea rdx, str.About_to_send_KILL
call fcn.140004b30
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140003db1
mov edx, 9
call fcn.140005580
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140003db1
lea rdx, str._event_to_pid
call fcn.140004b30
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140003db1
mov rdx, rbx
call fcn.1400058a0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140003db1
lea rdx, str.__m_pid
call fcn.140004b30
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140003db1
mov edx, esi
call fcn.140005580
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140003db1
lea rdx, str._cmd
call fcn.140004b30
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140003db1
mov rdx, rbp
call fcn.1400048f0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140003db1
lea rdx, [0x1400759dc]
call fcn.140004b30
nop
cmp qword [rsp + 0x40], 0x10
jb 0x140003dc3
mov rcx, qword [rsp + 0x28]
call fcn.14004cc48
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
lea rcx, [rsp + 0x68]
call fcn.14001d0f0
nop
lea rcx, [rsp + 0x48]
call fcn.14001bf90
test rbx, rbx
je 0x140003e06
mov edx, 0x89
mov rcx, qword [rdi + 0xd8]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000e960
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14000e976
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rbp
or rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x14000e980
cdq
sub eax, edx
sar eax, 1
mov ebp, eax
jne 0x14000e99f
xor eax, eax
mov rbp, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x38], rsi
mov rcx, rbp
mov qword [rsp + 0x40], rdi
mov rdi, rbp
call fcn.14004f218
mov rsi, rax
test rax, rax
je 0x14000ea9f
test ebp, ebp
je 0x14000ea3b
mov r9, rax
mov r10, rbp
nop word [rax + rax]
movzx edx, byte [rbx]
xor cl, cl
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x14000e9e1
lea ecx, [rdx - 0x30]
jmp 0x14000e9f7
lea eax, [rdx - 0x61]
cmp al, 5
ja 0x14000e9ed
lea ecx, [rdx - 0x57]
jmp 0x14000e9f7
lea eax, [rdx - 0x41]
cmp al, 5
ja 0x14000e9f7
lea ecx, [rdx - 0x37]
movzx r8d, byte [rbx + 1]
xor dl, dl
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x14000ea0c
lea edx, [r8 - 0x30]
jmp 0x14000ea26
lea eax, [r8 - 0x61]
cmp al, 5
ja 0x14000ea1a
lea edx, [r8 - 0x57]
jmp 0x14000ea26
lea eax, [r8 - 0x41]
cmp al, 5
ja 0x14000ea26
lea edx, [r8 - 0x37]
shl cl, 4
inc r9
add rbx, 2
or cl, dl
mov byte [r9 - 1], cl
dec r10
jne 0x14000e9d0
mov dl, 0x65
test ebp, ebp
je 0x14000ea63
mov rcx, rsi
nop word [rax + rax]
mov al, 0xb
lea rcx, [rcx + 1]
imul dl
xor byte [rcx - 1], al
movzx edx, al
dec rdi
jne 0x14000ea50
movsx eax, byte [rsi]
movzx ebx, al
lea eax, [rbp - 1]
cmp ebx, eax
cmova ebx, eax
lea ecx, [rbx + 1]
call fcn.14004f218
mov rdi, rax
test rax, rax
je 0x14000ea94
lea rdx, [rsi + 1]
mov r8d, ebx
mov rcx, rax
call fcn.14004cdd0
mov byte [rbx + rdi], 0
mov rcx, rsi
call fcn.14004dea4
mov rax, rdi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret

Function at 0x140012590
Capabilities:
Move file

Disassembly:
test rcx, rcx
je 0x140012682
push rdi
sub rsp, 0x20
mov qword [rsp + 0x30], rbx
or rbx, 0xffffffffffffffff
mov rdi, rcx
mov rcx, rbx
mov qword [rsp + 0x40], rsi
inc rcx
cmp byte [rdi + rcx], 0
jne 0x1400125b2
add rcx, 3
call fcn.14004f218
mov rsi, rax
test rax, rax
je 0x140012673
mov qword [rsp + 0x38], rbp
cmp byte [rdi + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x1400125d5
lea rcx, [rbx + 3]
call fcn.14004f218
mov rbp, rax
test rax, rax
jne 0x1400125f6
mov rcx, rsi
jmp 0x140012669
mov ebx, 1
nop dword [rax + rax]
cmp ebx, 1
jge 0x14001261b
lea r9d, [rbx + 1]
lea rdx, [0x1400a67e8]
mov r8, rdi
mov rcx, rbp
call fcn.14004dd00
mov r8, rdi
mov rcx, rsi
test ebx, ebx
je 0x140012643
lea rdx, [0x1400a67f0]
mov r9d, ebx
call fcn.14004dd00
cmp ebx, 1
jl 0x14001264f
mov rcx, rsi
call fcn.14006ba00
jmp 0x14001265a
lea rdx, [0x1400a67f8]
call fcn.14004dd00
mov rdx, rbp
mov rcx, rsi
call fcn.14004fa7c
dec ebx
jns 0x140012600
mov rcx, rsi
call fcn.14004dea4
mov rcx, rbp
call fcn.14004dea4
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
repz ret
Function at 0x1400146c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, r9
mov rsi, rdx
mov rbp, rcx
call fcn.140025210
mov ecx, 0x10
call fcn.14004cbdc
mov rbx, rax
test rax, rax
je 0x1400146fd
mov qword [rax], rbp
mov qword [rax + 8], rsi
jmp 0x1400146ff
xor ebx, ebx
mov edx, dword [rsp + 0x78]
lea r8, [0x1400148a0]
mov r9, rbx
mov eax, edx
neg eax
lea rax, [rsp + 0x30]
sbb ecx, ecx
mov qword [rsp + 0x28], rax
and ecx, 0x10000
mov dword [rsp + 0x20], ecx
xor ecx, ecx
call fcn.140051214
mov rcx, rax
test rax, rax
jne 0x14001475b
call fcn.14004de34
lea rdx, str._beginthreadex___failed:_errno_d_n
mov ecx, 1
mov r8d, dword [rax]
call fcn.140020620
mov rcx, rbx
call fcn.14004cc48
xor eax, eax
jmp 0x140014780
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x14001476d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140014770
mov qword [rax], rcx
test rdi, rdi
je 0x14001477b
mov eax, dword [rsp + 0x30]
mov dword [rdi], eax
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140018ee0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rbx, rcx
mov rsi, rdx
lea r8, str.PipeHandleWrite___called..._n
lea rcx, [0x1400aba90]
mov edx, 6
call fcn.14001c1a0
test rsi, rsi
jne 0x140018f3e
lea r8, str.PipeHandleWrite:_passed_null_buffer
lea edx, [rsi + 2]
lea rcx, [0x1400aba90]
call fcn.14001c1a0
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rdi, rdi
jne 0x140018f6c
lea r8, str.PipeHandleWrite:_passed_char_count_of_zero
lea edx, [rdi + 2]
lea rcx, [0x1400aba90]
call fcn.14001c1a0
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rbx, rbx
jne 0x140018f9a
lea r8, str.PipeHandleWrite:_passed_invalid_pipe_handle
lea edx, [rbx + 2]
lea rcx, [0x1400aba90]
call fcn.14001c1a0
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x48]
mov r8d, edi
mov rdx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140018ff0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.PipeHandleWrite:_Failed_to_write_to_pipe:__d_n
lea rcx, [0x1400aba90]
mov r9d, eax
mov edx, 2
call fcn.14001c1a0
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea r8, str.PipeHandleWrite:_Flushing_write_pipe_n
lea rcx, [0x1400aba90]
mov edx, 6
call fcn.14001c1a0
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov r9d, dword [rsp + 0x48]
lea r8, str.PipeHandleWrite:_Wrote_to_pipe__d_bytes_n
lea rcx, [0x1400aba90]
mov edx, 6
call fcn.14001c1a0
mov eax, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140019050
Capabilities:
Read file on windows
Read pipe

Disassembly:
xor r9d, r9d
jmp 0x140019430
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rax - 0x58], 0xfffffffffffffffe
movzx r14d, r9b
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rax + 0x20], ebx
mov dword [rax + 8], ebx
test rdx, rdx
jne 0x140019475
lea r8, str.PipeHandleRead_:_NULL_buffer_passed_in
lea edx, [rbp + 2]
lea rcx, [0x1400aba90]
call fcn.14001c1a0
test rsi, rsi
jne 0x140019490
lea r8, str.PipeHandleRead_:_buffer_char_count_not_ve
lea edx, [rsi + 2]
lea rcx, [0x1400aba90]
call fcn.14001c1a0
test rdi, rdi
jne 0x1400194ab
lea r8, str.PipeHandleRead_:_pipe_handle_invalid
lea edx, [rdi + 2]
lea rcx, [0x1400aba90]
call fcn.14001c1a0
lea r8, str.PipeHandleRead_called__..._n
mov edx, 6
lea rcx, [0x1400aba90]
call fcn.14001c1a0
test r14b, r14b
je 0x140019597
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x14001956f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x6d
jne 0x140019534
lea r8d, [rax - 0x69]
lea rdx, [rsp + 0x38]
lea rcx, [0x1400aba90]
call fcn.14001c100
nop
mov ebx, 1
mov dword [rsp + 0xa8], ebx
mov rcx, rax
call fcn.14001c160
test rax, rax
jne 0x140019534
xor dil, dil
jmp 0x140019537
mov dil, 1
test bl, 1
je 0x140019546
lea rcx, [rsp + 0x38]
call fcn.14001bf90
test dil, dil
je 0x14001963c
lea r8, [0x1400787b0]
mov r9d, esi
mov edx, 2
lea rcx, [0x1400aba90]
call fcn.14001c1a0
jmp 0x14001963c
cmp dword [rsp + 0x98], ebx
jne 0x140019597
lea r8, str.PipeHandleRead:_no_bytes_on_pipe___returning
mov edx, 6
lea rcx, [0x1400aba90]
call fcn.14001c1a0
xor eax, eax
jmp 0x14001963f
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x90]
mov r8d, esi
mov rdx, rbp
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001961b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x6d
jne 0x1400195f8
lea r8d, [rax - 0x69]
lea rdx, [rsp + 0x38]
lea rcx, [0x1400aba90]
call fcn.14001c100
nop
mov ebx, 2
mov dword [rsp + 0xa8], ebx
mov rcx, rax
call fcn.14001c160
test rax, rax
jne 0x1400195f8
xor dil, dil
jmp 0x1400195fb
mov dil, 1
test bl, 2
je 0x14001960a
lea rcx, [rsp + 0x38]
call fcn.14001bf90
test dil, dil
je 0x14001963c
lea r8, str.Failed_to_read_from_pipe:__d_n
jmp 0x140019556
mov eax, dword [rsp + 0x90]
test eax, eax
jne 0x14001963f
lea r8, str.ReadFile____EOF_n
lea edx, [rax + 4]
lea rcx, [0x1400aba90]
call fcn.14001c1a0
or eax, 0xffffffff
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140019130
Capabilities:
Create pipe

Disassembly:
push rdi
sub rsp, 0x40
mov rdi, rdx
test rdx, rdx
jne 0x14001915d
lea r8, str.InitializePipeForReadingFrom_:_passed_invalid_handle
lea edx, [rdi + 2]
lea rcx, [0x1400aba90]
call fcn.14001c1a0
or eax, 0xffffffff
add rsp, 0x40
pop rdi
ret
mov r8, rcx
lea rcx, [rsp + 0x58]
add rdx, 0x18
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_CreatePipe]
cmp eax, 1
je 0x1400191a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.InitializePipeForReadingFrom_:_unable_to_create_pipe_child_stdout_read_to_child_stdout_write_:_return__d
lea rcx, [0x1400aba90]
mov r9d, eax
mov edx, 2
call fcn.14001c1a0
or eax, 0xffffffff
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsp + 0x58]
mov rcx, rax
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
mov r9, rdi
mov r8, rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rbx, qword [rsp + 0x50]
cmp eax, 1
je 0x140019212
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.InitializePipeForReadingFrom_:_unable_to_duplicate_handle_:_return__d
lea rcx, [0x1400aba90]
mov r9d, eax
mov edx, 2
call fcn.14001c1a0
or eax, 0xffffffff
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x40
pop rdi
ret

Function at 0x140019230
Capabilities:
Create pipe

Disassembly:
push rdi
sub rsp, 0x40
mov rdi, rdx
mov r8, rcx
test rdx, rdx
jne 0x140019260
lea r8, str.InitializePipeForWritingTo:_Passed_invalid_pipe_handler
lea edx, [rdi + 2]
lea rcx, [0x1400aba90]
call fcn.14001c1a0
or eax, 0xffffffff
add rsp, 0x40
pop rdi
ret
lea rcx, [rdx + 0x10]
lea rdx, [rsp + 0x58]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreatePipe]
cmp eax, 1
je 0x1400192a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.InitializePipeForWritingTo:_CreatePipe_failed_child_stdin_read_to_child_stdin_write:_return__d
lea rcx, [0x1400aba90]
mov r9d, eax
mov edx, 2
call fcn.14001c1a0
or eax, 0xffffffff
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsp + 0x58]
mov rcx, rax
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r9, [rdi + 8]
mov r8, rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rbx, qword [rsp + 0x50]
cmp eax, 1
je 0x140019310
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.InitializePipeForWritingTo:_DuplicateHandle_failed:__d
lea rcx, [0x1400aba90]
mov r9d, eax
mov edx, 2
call fcn.14001c1a0
or eax, 0xffffffff
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x40
pop rdi
ret
Function at 0x140019430
Capabilities:
Read file on windows
Read pipe

Disassembly:
xor r9d, r9d
jmp 0x140019430
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rax - 0x58], 0xfffffffffffffffe
movzx r14d, r9b
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rax + 0x20], ebx
mov dword [rax + 8], ebx
test rdx, rdx
jne 0x140019475
lea r8, str.PipeHandleRead_:_NULL_buffer_passed_in
lea edx, [rbp + 2]
lea rcx, [0x1400aba90]
call fcn.14001c1a0
test rsi, rsi
jne 0x140019490
lea r8, str.PipeHandleRead_:_buffer_char_count_not_ve
lea edx, [rsi + 2]
lea rcx, [0x1400aba90]
call fcn.14001c1a0
test rdi, rdi
jne 0x1400194ab
lea r8, str.PipeHandleRead_:_pipe_handle_invalid
lea edx, [rdi + 2]
lea rcx, [0x1400aba90]
call fcn.14001c1a0
lea r8, str.PipeHandleRead_called__..._n
mov edx, 6
lea rcx, [0x1400aba90]
call fcn.14001c1a0
test r14b, r14b
je 0x140019597
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x14001956f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x6d
jne 0x140019534
lea r8d, [rax - 0x69]
lea rdx, [rsp + 0x38]
lea rcx, [0x1400aba90]
call fcn.14001c100
nop
mov ebx, 1
mov dword [rsp + 0xa8], ebx
mov rcx, rax
call fcn.14001c160
test rax, rax
jne 0x140019534
xor dil, dil
jmp 0x140019537
mov dil, 1
test bl, 1
je 0x140019546
lea rcx, [rsp + 0x38]
call fcn.14001bf90
test dil, dil
je 0x14001963c
lea r8, [0x1400787b0]
mov r9d, esi
mov edx, 2
lea rcx, [0x1400aba90]
call fcn.14001c1a0
jmp 0x14001963c
cmp dword [rsp + 0x98], ebx
jne 0x140019597
lea r8, str.PipeHandleRead:_no_bytes_on_pipe___returning
mov edx, 6
lea rcx, [0x1400aba90]
call fcn.14001c1a0
xor eax, eax
jmp 0x14001963f
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x90]
mov r8d, esi
mov rdx, rbp
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001961b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x6d
jne 0x1400195f8
lea r8d, [rax - 0x69]
lea rdx, [rsp + 0x38]
lea rcx, [0x1400aba90]
call fcn.14001c100
nop
mov ebx, 2
mov dword [rsp + 0xa8], ebx
mov rcx, rax
call fcn.14001c160
test rax, rax
jne 0x1400195f8
xor dil, dil
jmp 0x1400195fb
mov dil, 1
test bl, 2
je 0x14001960a
lea rcx, [rsp + 0x38]
call fcn.14001bf90
test dil, dil
je 0x14001963c
lea r8, str.Failed_to_read_from_pipe:__d_n
jmp 0x140019556
mov eax, dword [rsp + 0x90]
test eax, eax
jne 0x14001963f
lea r8, str.ReadFile____EOF_n
lea edx, [rax + 4]
lea rcx, [0x1400aba90]
call fcn.14001c1a0
or eax, 0xffffffff
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001b690
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0xa0
cmp dword [0x1400abb5c], 1
movsx r8d, cl
mov r9d, edx
lea rcx, [rsp + 0x20]
jne 0x14001b6d2
lea rdx, str.GlobalASE__c_05d
call fcn.14004dd00
lea r8, [rsp + 0x20]
lea rdx, str.Sema_namespace__s_n
mov ecx, 6
call fcn.140020620
jmp 0x14001b6de
lea rdx, str.ASE__c_05d
call fcn.14004dd00
call fcn.14003d1b0
xor edx, edx
lea r9, [rsp + 0x20]
lea r8d, [rdx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rbx, rbx
jne 0x14001b73a
cmp dword [0x1400abb5c], 1
jne 0x14001b72c
cmp eax, 5
jne 0x14001b72c
lea rdx, str.Access_Denied_for_semaphore_creation._Try_running_as_Administrator.
lea ecx, [rbx + 1]
call fcn.140020620
lea ecx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, str.CreateSemaphore_failed_error_code_d_n
mov edx, eax
call fcn.14004f4b0
mov rax, rbx
add rsp, 0xa0
pop rbx
ret

Function at 0x14001b750
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xb0
cmp dword [0x1400abb5c], 1
mov rbx, r8
mov r8d, ecx
lea rcx, [rsp + 0x30]
mov rdi, rdx
jne 0x14001b798
lea rdx, str.GlobalASE_M_05d
call fcn.14004dd00
lea r8, [rsp + 0x30]
lea rdx, str.Shm_namespace__s_n
mov ecx, 6
call fcn.140020620
jmp 0x14001b7a4
lea rdx, str.ASE_M_05d
call fcn.14004dd00
call fcn.14003d1b0
xor r9d, r9d
or rcx, 0xffffffffffffffff
mov rdx, rax
lea rax, [rsp + 0x30]
lea r8d, [r9 + 4]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rdi], 0
jne 0x14001b81a
cmp dword [0x1400abb5c], 1
jne 0x14001b807
cmp eax, 5
jne 0x14001b807
lea rdx, str.Access_Denied_for_shared_memory_creation._Try_running_as_Administrator.
lea ecx, [rax - 4]
call fcn.140020620
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret
test rbx, rbx
je 0x14001b82f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
mov byte [rbx], al
mov rcx, qword [rdi]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
mov qword [rsp + 0x20], 0x20
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret
Function at 0x140020170
Capabilities:
Query environment variable

Disassembly:
test rcx, rcx
je 0x1400203f1
mov r11, rsp
push rdi
sub rsp, 0xd30
movzx eax, byte [0x1400ac427]
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov rdi, rcx
mov qword [r11 - 0x10], r14
lea rcx, [r11 - 0xc17]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x120], al
mov qword [r11 - 0x18], r15
call fcn.14004e2c0
lea rcx, str.EOSLOGDIR
xor ebp, ebp
xor r15d, r15d
call fcn.14004ee64
or rbx, 0xffffffffffffffff
mov rsi, rax
test rax, rax
jne 0x14002026b
movzx eax, byte [0x1400ac45c]
lea rcx, [rsp + 0x921]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x920], al
call fcn.14004e2c0
lea rdx, [rsp + 0x920]
lea rcx, str.logdir
mov r8d, 0x400
call fcn.140023120
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x920]
mov r8d, 0x400
call fcn.140023250
lea rcx, [rsp + 0x120]
mov rax, rbx
inc rax
cmp byte [rcx + rax], bpl
jne 0x140020241
test rax, rax
je 0x140020259
lea rsi, [rsp + 0x120]
jmp 0x14002026b
lea rcx, [0x1400a7424]
call fcn.14003c370
mov r15, rax
mov rsi, rax
cmp byte [rdi], 0x2e
mov rcx, rdi
jne 0x140020277
lea rcx, [rdi + 2]
mov edx, 0x2e
call fcn.14004f5f0
xor r14d, r14d
mov ecx, 1
test rax, rax
cmove r14d, ecx
cmp byte [rdi], 0x2f
je 0x1400202a0
test rsi, rsi
je 0x1400202a0
cmp byte [rsi], bpl
cmovne ebp, ecx
test ebp, ebp
mov rbp, qword [rsp + 0xd48]
mov byte [rsp + 0x520], 0
je 0x140020301
lea rdx, [0x1400a7444]
lea rcx, [rsp + 0x20]
mov r8, rsi
call fcn.14004dd00
lea rcx, [rsp + 0x520]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400202d3
lea r8, [rsp + 0x20]
xor edx, edx
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
lea rdx, [rdx + 1]
mov byte [rcx + rdx - 1], al
test al, al
jne 0x1400202f0
mov rsi, qword [rsp + 0xd50]
lea rcx, [rsp + 0x520]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140020314
xor edx, edx
movzx eax, byte [rdi + rdx]
lea rdx, [rdx + 1]
mov byte [rcx + rdx - 1], al
test al, al
jne 0x140020320
test r14d, r14d
mov r14, qword [rsp + 0xd28]
je 0x140020381
lea rcx, [rsp + 0x520]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140020350
lea r8, str..log
xor edx, edx
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
lea rdx, [rdx + 1]
mov byte [rcx + rdx - 1], al
test al, al
jne 0x140020370
lea rcx, [rsp + 0x520]
mov dword [0x1400ac43c], 0
call fcn.14006ad04
mov qword [0x1400ac428], rax
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400203a0
add rbx, rax
mov qword [0x1400ac430], rbx
cmp rbx, rax
jbe 0x1400203cc
dec rbx
cmp byte [rbx], 0x2f
je 0x1400203cc
mov qword [0x1400ac430], rbx
cmp rbx, rax
ja 0x1400203b8
call fcn.140020c80
mov rcx, r15
call fcn.14004dea4
mov r15, qword [rsp + 0xd20]
mov rbx, qword [rsp + 0xd40]
add rsp, 0xd30
pop rdi
repz ret
Function at 0x140021040
Capabilities:
Move file

Disassembly:
test rcx, rcx
je 0x140021140
push rdi
sub rsp, 0x20
mov qword [rsp + 0x30], rbx
or rbx, 0xffffffffffffffff
mov rdi, rcx
mov rcx, rbx
mov qword [rsp + 0x40], rsi
inc rcx
cmp byte [rdi + rcx], 0
jne 0x140021062
add rcx, 0xa
call fcn.14004f218
mov rsi, rax
test rax, rax
je 0x140021131
mov qword [rsp + 0x38], rbp
cmp byte [rdi + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x140021085
lea rcx, [rbx + 0xa]
call fcn.14004f218
mov rbp, rax
test rax, rax
jne 0x1400210a9
mov rcx, rsi
jmp 0x140021127
mov eax, dword [0x1400a7368]
mov ebx, eax
test eax, eax
js 0x14002111c
cmp ebx, eax
jge 0x1400210cf
lea r9d, [rbx + 1]
lea rdx, [0x1400a73d8]
mov r8, rdi
mov rcx, rbp
call fcn.14004dd00
mov r8, rdi
mov rcx, rsi
test ebx, ebx
je 0x1400210ea
lea rdx, str._s._d
mov r9d, ebx
call fcn.14004dd00
jmp 0x1400210f6
lea rdx, [0x1400a7384]
call fcn.14004dd00
cmp ebx, dword [0x1400a7368]
mov rcx, rsi
jge 0x14002110b
mov rdx, rbp
call fcn.14004fa7c
jmp 0x140021110
call fcn.14006ba00
dec ebx
js 0x14002111c
mov eax, dword [0x1400a7368]
jmp 0x1400210b5
mov rcx, rsi
call fcn.14004dea4
mov rcx, rbp
call fcn.14004dea4
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
repz ret

Function at 0x140022920
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1c8
cmp dword [0x1400a7ac4], 1
jne 0x140022974
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14002295f
cmp byte [rsp + 0x20], 2
je 0x14002296a
lea rdx, str.Failed_to_initialize_sockets_n
xor ecx, ecx
call fcn.140020620
call qword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
add rsp, 0x1c8
ret
mov dword [0x1400a7ac4], 0
call fcn.14001a950
xor eax, eax
add rsp, 0x1c8
ret

Function at 0x14002c9b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rdi, rcx
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov ecx, 0x104
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x14002c9eb
lea rdx, [0x140081a6c]
lea rcx, [rsp + 0x30]
call fcn.14004dd00
lea rcx, [rsp + 0x30]
or rax, 0xffffffffffffffff
cmp byte [rcx + rax + 1], bl
lea rax, [rax + 1]
jne 0x14002c9f4
cmp byte [rsp + rax + 0x2f], 0x5c
je 0x14002ca0c
mov word [rsp + rax + 0x30], 0x5c
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], rbx
mov byte [rdi], bl
cmp byte [rsp + 0x30], bl
je 0x14002ca39
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14002ca30
lea rdx, [rsp + 0x30]
mov r8, rbx
mov rcx, rdi
call fcn.140002390
mov rbx, qword [rsp + 0x150]
mov rax, rdi
add rsp, 0x140
pop rdi
ret