joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140052adc
Capabilities:
Compare security identifiers

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rdx, str..pipe_
mov r8d, 9
call fcn.140069c00
test eax, eax
je 0x140052b2d
lea rcx, str.strncmp_pipename___.pipe___9___0
lea rdx, str..._windows_winnpc.c
mov r8d, 0x18
call fcn.140065764
lea rcx, [rdi + 9]
mov edx, 0x5c
call fcn.140058e50
test rax, rax
je 0x140052b59
lea rcx, str.strchr_pipename__9_____NULL
lea rdx, str..._windows_winnpc.c
mov r8d, 0x19
call fcn.140065764
mov rsi, qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12, qword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rsi
cmp rax, 0xffffffffffffffff
jne 0x140052bcd
call r15
cmp eax, 0xe7
jne 0x140052c38
mov rcx, rdi
xor edx, edx
call r12
test eax, eax
jne 0x140052b6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004fb2e
lea rcx, str.Error_waiting_for_named_pipe__s:__s
jmp 0x140052c4c
mov rbx, rax
call fcn.140053bd8
test rax, rax
je 0x140052c59
mov rsi, rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x48]
mov rcx, rbx
mov edx, 6
mov r8d, 1
call qword [0x1400acd90]
test eax, eax
je 0x140052ca6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004fb2e
lea rcx, str.Unable_to_get_named_pipe_security_information:__s
jmp 0x140052c76
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004fb2e
lea rcx, str.Unable_to_open_named_pipe__s:__s
mov rdx, rdi
mov r8, rax
call fcn.14004b68f
jmp 0x140052c7e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004fb2e
lea rcx, str.Unable_to_get_user_SID:__s
mov rdx, rax
call fcn.14004b68f
mov qword [r14], rax
mov rbx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140057710
mov rax, rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140052cc5
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140052c88
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, str.Owner_of_named_pipe__s_is_not_us
mov rdx, rdi
jmp 0x140052c79
Function at 0x140052ec1
Capabilities:
Create pipe

Disassembly:
push rsi
push rbx
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
movaps xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov dword [rax], 0x18
mov rcx, qword [rcx]
mov qword [rax + 8], rcx
xor ebx, ebx
mov dword [rax + 0x10], ebx
movzx edx, dl
shl edx, 0x13
or edx, 0x40000003
mov rcx, qword [rsi + 0x10]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
mov eax, 0x1000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r8d, 8
mov r9d, 0xff
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rsi + 0x18], rax
cmp rax, 0xffffffffffffffff
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140057710
mov eax, ebx
add rsp, 0x68
pop rbx
pop rsi
ret

Function at 0x140052f5e
Capabilities:
Connect pipe

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov edi, edx
mov rsi, rcx
lea rbx, [rcx + 0x20]
mov r15, qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov r12, qword [sym.imp.KERNEL32.dll_GetLastError]
lea r14, [0x1400530e2]
mov r13, qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, 1
jne 0x140052fbc
mov rcx, qword [rsi + 0x18]
mov rdx, rbx
call r15
test eax, eax
jne 0x140052fbe
call r12
test eax, eax
je 0x140052fbe
mov ebp, eax
cmp eax, 0x217
je 0x140052fbe
jmp 0x140053049
xor edi, edi
mov rbp, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
mov rdx, r14
mov r8, rbp
call qword [rax + 0x20]
test eax, eax
je 0x140052fdc
mov rcx, rbp
call r13
mov rcx, rsi
xor edx, edx
call fcn.140052ec1
test al, al
jne 0x140052f93
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, ebp
call fcn.14004fb2e
lea rcx, str.Error_while_listening_to_named_pipe:__s
mov rdx, rax
call fcn.14004b68f
mov rdi, rax
mov rcx, qword [rsi + 0x10]
call fcn.140050bc6
mov rcx, qword [rsi + 0x48]
mov rbx, qword [rcx]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rdi
mov edx, 1
mov r8, rax
xor r9d, r9d
call qword [rbx]
mov rcx, rdi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400088de
cmp ebp, 0x3e5
jne 0x140052ff2
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140053a30
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp byte [0x1400acd80], 1
jne 0x140053a48
mov al, byte [0x1400acd81]
jmp 0x140053bc2
mov byte [0x1400acd80], 1
lea rcx, str.advapi32.dll
call fcn.14004fa15
mov qword [0x1400acd88], rax
test rax, rax
je 0x140053bba
lea rdx, str.GetSecurityInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400acd90], rax
test rax, rax
je 0x140053bba
mov rcx, qword [0x1400acd88]
test rcx, rcx
je 0x140053b7b
lea rdx, str.SetSecurityInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400acd98], rax
test rax, rax
je 0x140053bba
mov rcx, qword [0x1400acd88]
test rcx, rcx
je 0x140053b88
lea rdx, str.OpenProcessToken
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400acda0], rax
test rax, rax
je 0x140053bba
mov rcx, qword [0x1400acd88]
test rcx, rcx
je 0x140053b95
lea rdx, str.GetTokenInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400acda8], rax
test rax, rax
je 0x140053bba
mov rcx, qword [0x1400acd88]
test rcx, rcx
je 0x140053ba2
lea rdx, [0x1400946e7]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400acdb0], rax
test rax, rax
je 0x140053bba
mov rcx, qword [0x1400acd88]
test rcx, rcx
je 0x140053baf
lea rdx, [0x140094a8c]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400acdb8], rax
test rax, rax
je 0x140053bba
mov rcx, qword [0x1400acd88]
test rcx, rcx
je 0x140053bc7
lea rdx, str.SetEntriesInAclA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140053bc9
mov qword [0x1400acd98], 0
jmp 0x140053bba
mov qword [0x1400acda0], 0
jmp 0x140053bba
mov qword [0x1400acda8], 0
jmp 0x140053bba
mov qword [0x1400acdb0], 0
jmp 0x140053bba
mov qword [0x1400acdb8], 0
xor eax, eax
mov byte [0x1400acd81], al
add rsp, 0x28
ret
xor eax, eax
mov qword [0x1400acdc0], rax
test rax, rax
setne al
jmp 0x140053bbc

Function at 0x1400543dc
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x1400543ff
xor esi, esi
jmp 0x140054465
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x38]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov ecx, 0x1300
xor edx, edx
mov r8d, eax
mov r9d, 0x400
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rsi, qword [rdi]
lea rdx, [0x14009f41b]
mov rcx, rsi
call fcn.1400692f0
lea rcx, [0x140093ba5]
mov edx, eax
mov r8, rsi
call fcn.14004b68f
mov rsi, rax
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140057710
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x14005447c
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, 0x100
mov edx, 1
xor r8d, r8d
call fcn.140008864
mov rsi, rax
mov ecx, 0x100
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
cmp eax, 0x101
jb 0x1400544c1
mov edx, edi
mov r8d, 1
mov rcx, rsi
call fcn.14000889d
mov rsi, rax
mov ecx, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x1400544d6
Capabilities:
Get file size

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r15, r9
mov r14, r8
mov rsi, rdx
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor edi, edi
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x1400545e7
mov rbx, rax
mov ecx, 1
mov edx, 8
xor r8d, r8d
call fcn.140008864
mov rdi, rax
mov qword [rax], rbx
test rsi, rsi
je 0x140054575
lea r12, [rsp + 0x48]
mov rcx, rbx
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [r12]
shl rcx, 0x20
mov eax, eax
or rax, rcx
mov qword [rsi], rax
mov rsi, qword [rsp + 0xb0]
mov rax, r14
or rax, r15
je 0x1400545dc
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x40]
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test r15, r15
je 0x1400545bb
movabs rax, 0xd6bf94d5e57a42bd
mul qword [rsp + 0x48]
shr rdx, 0x17
add edx, 0x49ef6f00
mov dword [r15], edx
test r14, r14
je 0x1400545dc
movabs rax, 0xd6bf94d5e57a42bd
mul qword [rsp + 0x40]
shr rdx, 0x17
add edx, 0x49ef6f00
mov dword [r14], edx
test rsi, rsi
je 0x1400545e7
mov dword [rsi], 0xffffffff
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140057710
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140054605
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rcx, qword [rcx]
mov qword [rsp + 0x20], 0
lea rsi, [rsp + 0x2c]
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
cmp eax, 1
sbb edi, edi
or edi, dword [rsi]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140057710
mov eax, edi
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x1400546ce
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rdx
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor edi, edi
mov edx, 0x40000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x14005475e
mov rbx, rax
mov ecx, 1
mov edx, 8
xor r8d, r8d
call fcn.140008864
mov rdi, rax
mov qword [rax], rbx
test rsi, rsi
je 0x14005475e
lea r14, [rsp + 0x3c]
mov rcx, rbx
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [r14]
shl rcx, 0x20
mov eax, eax
or rax, rcx
mov qword [rsi], rax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140057710
mov rax, rdi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140054778
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rcx, qword [rcx]
mov qword [rsp + 0x20], 0
lea rsi, [rsp + 0x2c]
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
cmp eax, 1
sbb edi, edi
or edi, dword [rsi]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140057710
mov eax, edi
add rsp, 0x38
pop rdi
pop rsi
ret

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
and ecx, 0x10
cmp ecx, 1
mov edx, 2
sbb edx, 0
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, edx
mov eax, ecx
add rsp, 0x28
ret

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

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rdi, rcx
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x160], rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, 1
cmp eax, 0xffffffff
jne 0x140054aa8
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
je 0x140054aa6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 2
jmp 0x140054aa8
xor esi, esi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140057710
mov eax, esi
add rsp, 0x168
pop rdi
pop rsi
ret

Function at 0x140054d29
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x140054e2b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp qword [0x1400ac608], 0
je 0x140054eae
lea rsi, [rsp + 0x40]
mov qword [rsi], 0xffffffffffffffff
mov dword [rsi + 8], 0
lea rcx, [0x140054e18]
lea rdx, [0x140054e03]
mov r8, rsi
call fcn.14004cb84
mov r14d, dword [rsi + 8]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140057710
mov eax, r14d
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
call fcn.14005428d
mov r14d, 0xffffffff
cmp rax, 0xffffffffffffffff
je 0x140054e87
mov rdi, rax
mov rcx, rax
call fcn.140052220
test al, al
je 0x140054ee3
mov edx, 2
mov rcx, rdi
call fcn.140051c3c
lea rbx, [rsp + 0x3c]
xor r15d, r15d
mov r12, qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r13, [rsp + 0x30]
lea rsi, [rsp + 0x40]
mov ecx, ebp
mov rdx, rbx
call fcn.140049f7b
test al, al
je 0x140054f51
call r12
mov ecx, dword [rsp + 0x3c]
mov edx, ecx
sub ecx, eax
sub eax, ebp
sub edx, ebp
cmp eax, edx
cmova ecx, r15d
movsxd rax, ecx
imul rcx, rax, 0x10624dd3
mov rdx, rcx
shr rdx, 0x3f
sar rcx, 0x26
add ecx, edx
mov dword [rsp + 0x30], ecx
imul ecx, ecx, 0x3e8
sub eax, ecx
imul eax, eax, 0x3e8
mov dword [rsp + 0x34], eax
mov rax, r13
jmp 0x140054f53
xor eax, eax
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x20], rax
mov ecx, 1
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [0x1400ac610]
test eax, eax
js 0x140054e87
jne 0x140054f8c
mov ebp, dword [rsp + 0x3c]
jmp 0x140054efc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 1
mov rcx, rdi
call fcn.140051c3c
xor r14d, r14d
jmp 0x140054e87
Function at 0x140054fa7
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ecx, 1
call fcn.1400593b4
mov rcx, rsi
mov rdx, rax
call fcn.140067830
mov ecx, 1
call fcn.1400593b4
mov rcx, rax
call fcn.1400670d0
call fcn.14005428d
mov rcx, qword [0x1400ac608]
cmp rax, 0xffffffffffffffff
jne 0x140055005
test bl, bl
jne 0x14005509b
test rcx, rcx
je 0x14005509b
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea r9, [rsp + 0x40]
mov qword [r9], rax
mov qword [r9 + 8], 0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x14005513d]
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14005510e
mov r14, rax
lea rdi, [0x140054e18]
lea rbx, [0x140054e03]
lea rsi, [rsp + 0x50]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0
mov rcx, rdi
mov rdx, rbx
mov r8, rsi
call fcn.14004cb84
cmp dword [rsp + 0x58], 0
js 0x1400550c3
je 0x140055070
jmp 0x1400550dc
xor ecx, ecx
call fcn.1400593b4
mov rsi, rax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140057710
mov rcx, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14004bc4e
lea rcx, str.ret___0
lea rdx, str..._windows_winsftp.c
mov r8d, 0x26e
call fcn.140065764
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call rsi
mov rcx, qword [rsp + 0x40]
call rsi
mov rsi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140057710
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 2
call fcn.1400593b4
lea rdx, str.Unable_to_create_command_input_thread_n
mov rcx, rax
call fcn.1400091a1
mov ecx, 1
call fcn.14004cec4
int3
Function at 0x1400555ef
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x38], rax
test rcx, rcx
je 0x1400556c7
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx]
lea r15, [rsp + 0x30]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0
xor esi, esi
lea r9, [rsp + 0x34]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400556c9
cmp dword [rsp + 0x34], 1
jne 0x1400556c9
mov r14d, dword [rsp + 0x30]
inc r14d
mov edx, 1
mov rcx, r14
xor r8d, r8d
call fcn.140008864
mov rsi, rax
mov rcx, qword [rbx]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400556bf
cmp dword [rsp + 0x34], 1
jne 0x1400556bf
mov eax, dword [rsp + 0x30]
cmp eax, r14d
jb 0x1400556b7
lea rcx, str.size___allocsize
lea rdx, str..._windows_winstore.c
mov r8d, 0x92
call fcn.140065764
mov eax, dword [rsp + 0x30]
mov eax, eax
mov byte [rsi + rax], 0
jmp 0x1400556c9
mov rcx, rsi
call fcn.1400088de
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140057710
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400556e5
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov esi, r8d
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x3c], 4
test rcx, rcx
je 0x140055748
mov rcx, qword [rcx]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140055748
mov eax, dword [rsp + 0x3c]
xor eax, 4
mov ecx, dword [rsp + 0x44]
xor ecx, 4
or ecx, eax
jne 0x140055748
mov esi, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140057710
mov eax, esi
add rsp, 0x50
pop rsi
ret
Function at 0x140055be7
Capabilities:
Set registry value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov r14, r9
mov rbx, r8
mov ebp, edx
mov rdi, rcx
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.14004ba9b
mov rsi, rax
lea rdx, str._s__d:
mov rcx, rax
mov r8, rbx
mov r9d, ebp
call fcn.14004bbaa
mov rcx, rdi
mov rdx, rsi
call fcn.14004fd65
lea rdx, str.SoftwareSimonTathamPuTTYSshHostKeys
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x140055c85
mov rcx, r14
call fcn.140069b40
inc eax
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.14004bb18
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140057710
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140055ca6
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x440
mov rsi, rcx
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x438], rax
mov ecx, 1
call fcn.140055d70
cmp rax, 0xffffffffffffffff
je 0x140055d50
mov rdi, rax
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
lea r9, [rsp + 0x2c]
mov rcx, rax
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140055d47
mov edx, dword [rsp + 0x2c]
test edx, edx
je 0x140055d47
lea rbx, [rsp + 0x30]
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call rsi
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x400
mov r9, r14
call r15
test eax, eax
je 0x140055d47
mov edx, dword [rsp + 0x2c]
test edx, edx
jne 0x140055d1b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x438]
xor rcx, rsp
call fcn.140057710
nop
add rsp, 0x440
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140056042
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov esi, edx
mov rdi, rcx
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 2
call fcn.140055d70
cmp rax, 0xffffffffffffffff
je 0x140056096
mov rbx, rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rcx, rax
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140057710
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400560ac
Capabilities:
Check if file exists
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, r8
mov rdi, rcx
test edx, edx
je 0x14005610b
xor eax, eax
xor ecx, ecx
cmp edx, 2
setne al
sete cl
lea r8d, [rax + rax*2]
mov eax, 0x40000000
mov edx, 0x80000000
cmove edx, eax
mov eax, ecx
shl eax, 7
xor ecx, 3
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x30], 0
mov rcx, rdi
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
setne al
jmp 0x14005614b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140056142
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140056142
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004fb2e
lea rcx, str.Unable_to_delete__s:__s
mov rdx, rdi
mov r8, rax
call fcn.1400040fd
mov qword [rsi], 0xffffffffffffffff
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x140062bc8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140062d00
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140062d67
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140062d67
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140062d67
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140062d67
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140062d67
cmp dword [rcx + 0x84], 0xe
jbe 0x140062d67
cmp dword [rcx + 0xf8], 0
je 0x140062d67
mov ecx, ebx
call fcn.140062c4c
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140062e94
cmp dword [rbp + 0x20], 0
je 0x140062db4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140062ca8
int3
Function at 0x140069b40
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x140069b5d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140069bb8
test al, 7
jne 0x140069b50
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140069b71
mov rdx, qword [rax - 8]
test dl, dl
je 0x140069be2
test dh, dh
je 0x140069bdc
shr rdx, 0x10
test dl, dl
je 0x140069bd6
test dh, dh
je 0x140069bd0
shr rdx, 0x10
test dl, dl
je 0x140069bca
test dh, dh
je 0x140069bc4
shr edx, 0x10
test dl, dl
je 0x140069bbe
test dh, dh
jne 0x140069b71
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret