joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007cfc0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2a8
mov r14, rcx
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
lea rdi, [rsp + 0x50]
mov rcx, rdi
mov edx, 0x107
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov rcx, rdi
call fcn.140094270
mov word [rsp + rax + 0x50], 0x2a5c
mov byte [rsp + rax + 0x52], 0
lea rdx, [rsp + 0x160]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
je 0x14007d051
mov rdi, rax
lea rbx, [rsp + 0x160]
mov rsi, qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov rcx, rbx
mov edx, 0x140
call r14
mov rcx, rdi
mov rdx, rbx
call rsi
test eax, eax
jne 0x14007d031
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [rsp + 0x2c]
mov dword [rcx], eax
mov edx, 4
call r14
lea rcx, [rsp + 0x30]
mov edx, 0x20
call fcn.14007ce7c
test al, al
je 0x14007d096
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov edx, 0x20
call r14
mov edx, 0x20
mov rcx, rdi
call fcn.14007a610
mov rcx, r14
call fcn.140080505
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140084030
nop
add rsp, 0x2a8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14007d0bc
Capabilities:
Get memory capacity

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rsi, [rsp + 0x78]
mov qword [rsi], rax
mov ecx, 9
mov rdx, rsi
mov r8d, 8
call fcn.14004a3bc
call qword [sym.imp.USER32.dll_GetCapture]
mov qword [rsi], rax
mov ecx, 0xa
mov rdx, rsi
mov r8d, 8
call fcn.14004a3bc
call qword [sym.imp.USER32.dll_GetClipboardOwner]
mov qword [rsi], rax
mov ecx, 0xb
mov rdx, rsi
mov r8d, 8
call fcn.14004a3bc
mov ecx, 0x1cbf
call qword [sym.imp.USER32.dll_GetQueueStatus]
lea rdx, [rsp + 0x74]
mov dword [rdx], eax
mov ecx, 0xc
mov r8d, 4
call fcn.14004a3bc
lea rsi, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, 0xd
mov rdx, rsi
mov r8d, 8
call fcn.14004a3bc
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, 6
mov rdx, rsi
mov r8d, 0x38
call fcn.14004a3bc
lea rsi, [rsp + 0x98]
lea r14, [rsp + 0x90]
lea rdi, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0x20], rsi
lea rbx, [rsp + 0x80]
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_GetThreadTimes]
mov ecx, 0xe
mov rdx, rbx
mov r8d, 0x20
call fcn.14004a3bc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], rsi
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov ecx, 0xf
mov rdx, rbx
mov r8d, 0x20
call fcn.14004a3bc
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140084030
nop
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14007d2fc
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 [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rdx, str..pipe_
mov r8d, 9
call fcn.140094330
test eax, eax
je 0x14007d34d
lea rcx, str.strncmp_pipename___.pipe___9___0
lea rdx, str..._windows_winnpc.c
mov r8d, 0x18
call fcn.14008ff98
lea rcx, [rdi + 9]
mov edx, 0x5c
call fcn.1400857a0
test rax, rax
je 0x14007d379
lea rcx, str.strchr_pipename__9_____NULL
lea rdx, str..._windows_winnpc.c
mov r8d, 0x19
call fcn.14008ff98
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 0x14007d3ed
call r15
cmp eax, 0xe7
jne 0x14007d458
mov rcx, rdi
xor edx, edx
call r12
test eax, eax
jne 0x14007d38e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007a0fc
lea rcx, str.Error_waiting_for_named_pipe__s:__s
jmp 0x14007d46c
mov rbx, rax
call fcn.14007e818
test rax, rax
je 0x14007d479
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 [0x1400dbff8]
test eax, eax
je 0x14007d4c6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007a0fc
lea rcx, str.Unable_to_get_named_pipe_security_information:__s
jmp 0x14007d496
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007a0fc
lea rcx, str.Unable_to_open_named_pipe__s:__s
mov rdx, rdi
mov r8, rax
call fcn.1400646e3
jmp 0x14007d49e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007a0fc
lea rcx, str.Unable_to_get_user_SID:__s
mov rdx, rax
call fcn.1400646e3
mov qword [r14], rax
mov rbx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140084030
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 0x14007d4e5
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14007d4a8
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 0x14007d499
Function at 0x14007d6e1
Capabilities:
Create pipe

Disassembly:
push rsi
push rbx
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x1400d80e0]
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.140084030
mov eax, ebx
add rsp, 0x68
pop rbx
pop rsi
ret

Function at 0x14007d77e
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, [0x14007d902]
mov r13, qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, 1
jne 0x14007d7dc
mov rcx, qword [rsi + 0x18]
mov rdx, rbx
call r15
test eax, eax
jne 0x14007d7de
call r12
test eax, eax
je 0x14007d7de
mov ebp, eax
cmp eax, 0x217
je 0x14007d7de
jmp 0x14007d869
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 0x14007d7fc
mov rcx, rbp
call r13
mov rcx, rsi
xor edx, edx
call fcn.14007d6e1
test al, al
jne 0x14007d7b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, ebp
call fcn.14007a0fc
lea rcx, str.Error_while_listening_to_named_pipe:__s
mov rdx, rax
call fcn.1400646e3
mov rdi, rax
mov rcx, qword [rsi + 0x10]
call fcn.14007b3da
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.140012402
cmp ebp, 0x3e5
jne 0x14007d812
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14007e1d2
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp byte [0x1400dbfe0], 0
jne 0x14007e2e4
lea rcx, str.winspool.drv
call fcn.140079f02
mov rsi, rax
lea rcx, str.spoolss.dll
call fcn.140079f02
test rsi, rsi
je 0x14007e2a3
lea rdx, str.EnumPrintersA
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call rdi
mov qword [0x1400dbfd8], rax
lea rdx, str.OpenPrinterA
mov rcx, rsi
call rdi
mov qword [0x1400dbfa0], rax
lea rdx, str.ClosePrinter
mov rcx, rsi
call rdi
mov qword [0x1400dbfc8], rax
lea rdx, str.StartDocPrinterA
mov rcx, rsi
call rdi
mov qword [0x1400dbfa8], rax
lea rdx, str.EndDocPrinter
mov rcx, rsi
call rdi
mov qword [0x1400dbfc0], rax
lea rdx, str.StartPagePrinter
mov rcx, rsi
call rdi
mov qword [0x1400dbfb0], rax
lea rdx, str.EndPagePrinter
mov rcx, rsi
call rdi
mov qword [0x1400dbfb8], rax
lea rdx, str.WritePrinter
mov rcx, rsi
call rdi
jmp 0x14007e2d6
xor eax, eax
mov qword [0x1400dbfd8], rax
mov qword [0x1400dbfa0], rax
mov qword [0x1400dbfc8], rax
mov qword [0x1400dbfa8], rax
mov qword [0x1400dbfc0], rax
mov qword [0x1400dbfb0], rax
mov qword [0x1400dbfb8], rax
mov qword [0x1400dbfd0], rax
mov byte [0x1400dbfe0], 1
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14007e670
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp byte [0x1400dbfe8], 1
jne 0x14007e688
mov al, byte [0x1400dbfe9]
jmp 0x14007e802
mov byte [0x1400dbfe8], 1
lea rcx, str.advapi32.dll
call fcn.140079f02
mov qword [0x1400dbff0], rax
test rax, rax
je 0x14007e7fa
lea rdx, str.GetSecurityInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400dbff8], rax
test rax, rax
je 0x14007e7fa
mov rcx, qword [0x1400dbff0]
test rcx, rcx
je 0x14007e7bb
lea rdx, str.SetSecurityInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400dc000], rax
test rax, rax
je 0x14007e7fa
mov rcx, qword [0x1400dbff0]
test rcx, rcx
je 0x14007e7c8
lea rdx, str.OpenProcessToken
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400dc008], rax
test rax, rax
je 0x14007e7fa
mov rcx, qword [0x1400dbff0]
test rcx, rcx
je 0x14007e7d5
lea rdx, str.GetTokenInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400dc010], rax
test rax, rax
je 0x14007e7fa
mov rcx, qword [0x1400dbff0]
test rcx, rcx
je 0x14007e7e2
lea rdx, [0x1400be81b]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400dc018], rax
test rax, rax
je 0x14007e7fa
mov rcx, qword [0x1400dbff0]
test rcx, rcx
je 0x14007e7ef
lea rdx, [0x1400beb67]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400dc020], rax
test rax, rax
je 0x14007e7fa
mov rcx, qword [0x1400dbff0]
test rcx, rcx
je 0x14007e807
lea rdx, str.SetEntriesInAclA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x14007e809
mov qword [0x1400dc000], 0
jmp 0x14007e7fa
mov qword [0x1400dc008], 0
jmp 0x14007e7fa
mov qword [0x1400dc010], 0
jmp 0x14007e7fa
mov qword [0x1400dc018], 0
jmp 0x14007e7fa
mov qword [0x1400dc020], 0
xor eax, eax
mov byte [0x1400dbfe9], al
add rsp, 0x28
ret
xor eax, eax
mov qword [0x1400dc028], rax
test rax, rax
setne al
jmp 0x14007e7fc
Function at 0x14007f996
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
test rcx, rcx
je 0x14007f9d3
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.140094270
inc eax
mov rcx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov rdx, rsi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x14007f9dc
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], r8d
test rcx, rcx
je 0x14007fa1d
mov rcx, qword [rcx]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140084030
nop
add rsp, 0x48
ret

Function at 0x14007fb25
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x38], rax
test rcx, rcx
je 0x14007fbfd
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 0x14007fbff
cmp dword [rsp + 0x34], 1
jne 0x14007fbff
mov r14d, dword [rsp + 0x30]
inc r14d
mov edx, 1
mov rcx, r14
xor r8d, r8d
call fcn.140012388
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 0x14007fbf5
cmp dword [rsp + 0x34], 1
jne 0x14007fbf5
mov eax, dword [rsp + 0x30]
cmp eax, r14d
jb 0x14007fbed
lea rcx, str.size___allocsize
lea rdx, str..._windows_winstore.c
mov r8d, 0x92
call fcn.14008ff98
mov eax, dword [rsp + 0x30]
mov eax, eax
mov byte [rsi + rax], 0
jmp 0x14007fbff
mov rcx, rsi
call fcn.140012402
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140084030
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14007fc1b
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov esi, r8d
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x3c], 4
test rcx, rcx
je 0x14007fc7e
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 0x14007fc7e
mov eax, dword [rsp + 0x3c]
xor eax, 4
mov ecx, dword [rsp + 0x44]
xor ecx, 4
or ecx, eax
jne 0x14007fc7e
mov esi, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140084030
mov eax, esi
add rsp, 0x50
pop rsi
ret
Function at 0x14007fd9d
Capabilities:
Set registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r8, qword [r8]
call fcn.14007f996
lea rdx, str.IsBold
mov rcx, rbx
xor r8d, r8d
call fcn.140064786
mov rdi, rax
movzx eax, byte [r14 + 8]
mov dword [rsp + 0x3c], eax
test rsi, rsi
je 0x14007fe10
mov rcx, qword [rsi]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
mov rdx, rdi
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rdi
call fcn.140012402
lea rdx, str.CharSet
mov rcx, rbx
xor r8d, r8d
call fcn.140064786
mov rdi, rax
mov eax, dword [r14 + 0x10]
mov dword [rsp + 0x3c], eax
test rsi, rsi
je 0x14007fe61
mov rcx, qword [rsi]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
mov rdx, rdi
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rdi
call fcn.140012402
lea rdx, [0x1400bc3bb]
mov rcx, rbx
xor r8d, r8d
call fcn.140064786
mov rdi, rax
mov eax, dword [r14 + 0xc]
mov dword [rsp + 0x3c], eax
test rsi, rsi
je 0x14007feb2
mov rcx, qword [rsi]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
mov rdx, rdi
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rdi
call fcn.140012402
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140084030
nop
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14007ff38
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rdx, str.SoftwareSimonTathamPuTTYSessions
lea r8, [rsp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14007ffa9
call fcn.140064aef
mov rdi, rax
mov rcx, rsi
mov rdx, rax
call fcn.14007a3ea
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, rdi
call fcn.140064b6c
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.140079910
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140084030
nop
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x140080032
Capabilities:
Query or enumerate registry key

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x105
mov edi, 0x105
mov ecx, 0x105
mov edx, 1
xor r8d, r8d
call fcn.140012388
mov rbx, rax
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov r8, rax
mov r9d, 0x105
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0xea
jne 0x1400800e4
lea r15, [rsp + 0x30]
mov r12, qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 1
mov r8d, 1
mov rcx, rbx
mov rdx, r15
mov r9, rdi
call fcn.14001240c
mov rbx, rax
mov r9d, dword [rsp + 0x30]
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov r8, rax
call r12
cmp eax, 0xea
jne 0x1400800e4
mov rdi, qword [rsp + 0x30]
jmp 0x1400800a0
mov ebp, eax
test eax, eax
jne 0x1400800f5
mov rcx, rbx
mov rdx, r14
call fcn.14007a47e
test ebp, ebp
sete dil
inc dword [rsi + 8]
mov rcx, rbx
call fcn.140012402
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140084030
mov eax, edi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140080446
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 [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.140064aef
mov rsi, rax
lea rdx, str._s__d:
mov rcx, rax
mov r8, rbx
mov r9d, ebp
call fcn.140064bfe
mov rcx, rdi
mov rdx, rsi
call fcn.14007a3ea
lea rdx, str.SoftwareSimonTathamPuTTYSshHostKeys
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1400804e4
mov rcx, r14
call fcn.140094270
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.140064b6c
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140084030
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140080505
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 [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x438], rax
mov ecx, 1
call fcn.1400805cf
cmp rax, 0xffffffffffffffff
je 0x1400805af
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 0x1400805a6
mov edx, dword [rsp + 0x2c]
test edx, edx
je 0x1400805a6
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 0x1400805a6
mov edx, dword [rsp + 0x2c]
test edx, edx
jne 0x14008057a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x438]
xor rcx, rsp
call fcn.140084030
nop
add rsp, 0x440
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400808a1
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov esi, edx
mov rdi, rcx
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 2
call fcn.1400805cf
cmp rax, 0xffffffffffffffff
je 0x1400808f5
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.140084030
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x14008090b
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov rdx, rcx
xor r8d, r8d
jmp fcn.140080916
Function at 0x140080bf2
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov rdx, rcx
xor ecx, ecx
xor r8d, r8d
jmp fcn.140080916

Function at 0x140080c65
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rsi
sub rsp, 0x140
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x138], rax
xor ecx, ecx
call fcn.1400805cf
call fcn.140079454
lea rdx, str.SoftwareSimonTathamPuTTY
lea r8, [rsp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140080cbd
mov rcx, qword [rsp + 0x28]
call fcn.140080d6e
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.SoftwareSimonTatham
lea r8, [rsp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x140080cf4
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140084030
nop
add rsp, 0x140
pop rsi
ret
mov rcx, qword [rsp + 0x28]
lea rdx, [0x1400c4074]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x30]
xor edx, edx
mov r9d, 0x105
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x140080cda
lea rdx, str.Software
lea r8, [rsp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140080cda
mov rcx, qword [rsp + 0x28]
lea rdx, [0x1400c009b]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140080cda

Function at 0x140080d6e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rsi, rcx
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x138], rax
lea r8, [rsp + 0x30]
xor edx, edx
mov r9d, 0x105
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x140080e11
lea rdi, [rsp + 0x30]
lea r14, [rsp + 0x28]
mov r12, qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov r15, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r13, qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbx, qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov rcx, rsi
mov rdx, rdi
mov r8, r14
call r12
test eax, eax
jne 0x140080df4
mov rcx, qword [rsp + 0x28]
call fcn.140080d6e
mov rcx, qword [rsp + 0x28]
call r15
mov rcx, rsi
mov rdx, rdi
call r13
mov rcx, rsi
xor edx, edx
mov r8, rdi
mov r9d, 0x105
call rbx
test eax, eax
je 0x140080dd2
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140084030
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret