joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140077678
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 [0x1400cb0e0]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rdx, str..pipe_
mov r8d, 9
call fcn.14008d510
test eax, eax
je 0x1400776c9
lea rcx, str.strncmp_pipename___.pipe___9___0
lea rdx, str..._windows_winnpc.c
mov r8d, 0x18
call fcn.140089884
lea rcx, [rdi + 9]
mov edx, 0x5c
call fcn.14007f540
test rax, rax
je 0x1400776f5
lea rcx, str.strchr_pipename__9_____NULL
lea rdx, str..._windows_winnpc.c
mov r8d, 0x19
call fcn.140089884
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 edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
mov rcx, rdi
call rsi
cmp rax, 0xffffffffffffffff
jne 0x14007776c
call r15
cmp eax, 0xe7
jne 0x1400777db
xor edx, edx
mov rcx, rdi
call r12
test eax, eax
jne 0x14007770a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007453e
lea rdx, str.Error_waiting_for_named_pipe__s:__s
jmp 0x1400777ef
mov rbx, rax
call fcn.140078790
test rax, rax
je 0x1400777ff
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 edx, 6
mov r8d, 1
mov rcx, rbx
call qword [0x1400cfe28]
test eax, eax
je 0x140077848
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007453e
lea rdx, str.Unable_to_get_named_pipe_security_information:__s
jmp 0x14007781c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007453e
lea rdx, str.Unable_to_open_named_pipe__s:__s
mov rcx, r14
mov r8, rdi
mov r9, rax
call fcn.14000ebc4
jmp 0x140077827
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007453e
lea rdx, str.Unable_to_get_user_SID:__s
mov rcx, r14
mov r8, rax
call fcn.14000ebc4
mov rsi, rax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14007de70
mov rax, rsi
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 0x14007787d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [rsp + 0x20], 1
xor r8d, r8d
mov rcx, rbx
mov rdx, rbx
mov r9, r14
call fcn.14007335c
jmp 0x140077827
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, str.Owner_of_named_pipe__s_is_not_us
mov rcx, r14
mov r8, rdi
jmp 0x140077822
Function at 0x1400779f9
Capabilities:
Create pipe

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

Function at 0x140077a96
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, [0x140077c18]
mov r13, qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, 1
jne 0x140077af4
mov rcx, qword [rsi + 0x18]
mov rdx, rbx
call r15
test eax, eax
jne 0x140077af6
call r12
test eax, eax
je 0x140077af6
mov ebp, eax
cmp eax, 0x217
je 0x140077af6
jmp 0x140077b81
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 0x140077b14
mov rcx, rbp
call r13
xor edx, edx
mov rcx, rsi
call fcn.1400779f9
test al, al
jne 0x140077acb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, ebp
call fcn.14007453e
lea rcx, str.Error_while_listening_to_named_pipe:__s
mov rdx, rax
call fcn.14005f835
mov rdi, rax
mov rcx, qword [rsi + 0x10]
call fcn.140075857
mov rcx, qword [rsi + 0x48]
mov rbx, qword [rcx]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rdi
mov edx, 1
xor r9d, r9d
mov r8, rax
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.140011913
cmp ebp, 0x3e5
jne 0x140077b2a
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140078147
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp byte [0x1400cfdf8], 0
jne 0x140078259
lea rcx, str.winspool.drv
call fcn.140074344
mov rsi, rax
lea rcx, str.spoolss.dll
call fcn.140074344
test rsi, rsi
je 0x140078218
lea rdx, str.EnumPrintersA
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call rdi
mov qword [0x1400cfdf0], rax
lea rdx, str.OpenPrinterA
mov rcx, rsi
call rdi
mov qword [0x1400cfdb8], rax
lea rdx, str.ClosePrinter
mov rcx, rsi
call rdi
mov qword [0x1400cfde0], rax
lea rdx, str.StartDocPrinterA
mov rcx, rsi
call rdi
mov qword [0x1400cfdc0], rax
lea rdx, str.EndDocPrinter
mov rcx, rsi
call rdi
mov qword [0x1400cfdd8], rax
lea rdx, str.StartPagePrinter
mov rcx, rsi
call rdi
mov qword [0x1400cfdc8], rax
lea rdx, str.EndPagePrinter
mov rcx, rsi
call rdi
mov qword [0x1400cfdd0], rax
lea rdx, str.WritePrinter
mov rcx, rsi
call rdi
jmp 0x14007824b
xor eax, eax
mov qword [0x1400cfdf0], rax
mov qword [0x1400cfdb8], rax
mov qword [0x1400cfde0], rax
mov qword [0x1400cfdc0], rax
mov qword [0x1400cfdd8], rax
mov qword [0x1400cfdc8], rax
mov qword [0x1400cfdd0], rax
mov qword [0x1400cfde8], rax
mov byte [0x1400cfdf8], 1
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1400785e8
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp byte [0x1400cfe00], 1
jne 0x140078600
mov al, byte [0x1400cfe01]
jmp 0x14007877a
mov byte [0x1400cfe00], 1
lea rcx, str.advapi32.dll
call fcn.140074344
mov qword [0x1400cfe08], rax
test rax, rax
je 0x140078772
lea rdx, str.GetSecurityInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cfe28], rax
test rax, rax
je 0x140078772
mov rcx, qword [0x1400cfe08]
test rcx, rcx
je 0x140078733
lea rdx, str.SetSecurityInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cfe30], rax
test rax, rax
je 0x140078772
mov rcx, qword [0x1400cfe08]
test rcx, rcx
je 0x140078740
lea rdx, str.OpenProcessToken
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cfe38], rax
test rax, rax
je 0x140078772
mov rcx, qword [0x1400cfe08]
test rcx, rcx
je 0x14007874d
lea rdx, str.GetTokenInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cfe40], rax
test rax, rax
je 0x140078772
mov rcx, qword [0x1400cfe08]
test rcx, rcx
je 0x14007875a
lea rdx, [0x1400b2a1d]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cfe48], rax
test rax, rax
je 0x140078772
mov rcx, qword [0x1400cfe08]
test rcx, rcx
je 0x140078767
lea rdx, [0x1400b2d78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cfe50], rax
test rax, rax
je 0x140078772
mov rcx, qword [0x1400cfe08]
test rcx, rcx
je 0x14007877f
lea rdx, str.SetEntriesInAclA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140078781
mov qword [0x1400cfe30], 0
jmp 0x140078772
mov qword [0x1400cfe38], 0
jmp 0x140078772
mov qword [0x1400cfe40], 0
jmp 0x140078772
mov qword [0x1400cfe48], 0
jmp 0x140078772
mov qword [0x1400cfe50], 0
xor eax, eax
mov byte [0x1400cfe01], al
add rsp, 0x28
ret
xor eax, eax
mov qword [0x1400cfe58], rax
test rax, rax
setne al
jmp 0x140078774
Function at 0x14007994c
Capabilities:
Set registry value

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

Function at 0x140079992
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400cb0e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], r8d
test rcx, rcx
je 0x1400799d3
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.14007de70
nop
add rsp, 0x48
ret

Function at 0x140079adb
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, qword [0x1400cb0e0]
xor rax, rsp
mov qword [rsp + 0x38], rax
test rcx, rcx
je 0x140079bb3
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 0x140079bb5
cmp dword [rsp + 0x34], 1
jne 0x140079bb5
mov r14d, dword [rsp + 0x30]
inc r14d
mov edx, 1
xor r8d, r8d
mov rcx, r14
call fcn.140011888
mov rsi, rax
mov rcx, qword [rbx]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140079bab
cmp dword [rsp + 0x34], 1
jne 0x140079bab
mov eax, dword [rsp + 0x30]
cmp eax, r14d
jb 0x140079ba3
lea rcx, str.size___allocsize
lea rdx, str..._windows_winstore.c
mov r8d, 0x92
call fcn.140089884
mov eax, dword [rsp + 0x30]
mov eax, eax
mov byte [rsi + rax], 0
jmp 0x140079bb5
mov rcx, rsi
call fcn.140011913
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007de70
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140079bd1
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov esi, r8d
mov rax, qword [0x1400cb0e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x3c], 4
test rcx, rcx
je 0x140079c34
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 0x140079c34
mov eax, dword [rsp + 0x3c]
xor eax, 4
mov ecx, dword [rsp + 0x44]
xor ecx, 4
or ecx, eax
jne 0x140079c34
mov esi, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14007de70
mov eax, esi
add rsp, 0x50
pop rsi
ret
Function at 0x140079d4d
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 [0x1400cb0e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r8, qword [r8]
call fcn.14007994c
lea rdx, str.IsBold
xor r8d, r8d
mov rcx, rbx
call fcn.14005f8e8
mov rdi, rax
movzx eax, byte [r14 + 8]
mov dword [rsp + 0x3c], eax
test rsi, rsi
je 0x140079dc0
mov rcx, qword [rsi]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rdi
call fcn.140011913
lea rdx, str.CharSet
xor r8d, r8d
mov rcx, rbx
call fcn.14005f8e8
mov rdi, rax
mov eax, dword [r14 + 0x10]
mov dword [rsp + 0x3c], eax
test rsi, rsi
je 0x140079e11
mov rcx, qword [rsi]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rdi
call fcn.140011913
lea rdx, [0x1400b06cf]
xor r8d, r8d
mov rcx, rbx
call fcn.14005f8e8
mov rdi, rax
mov eax, dword [r14 + 0xc]
mov dword [rsp + 0x3c], eax
test rsi, rsi
je 0x140079e62
mov rcx, qword [rsi]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rdi
call fcn.140011913
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007de70
nop
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140079ee8
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x1400cb0e0]
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 0x140079f59
call fcn.14005fbc6
mov rdi, rax
mov rcx, rsi
mov rdx, rax
call fcn.14007484c
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, rdi
call fcn.14005fc55
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.140073d59
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14007de70
nop
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x140079fe2
Capabilities:
Query or enumerate registry key

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x1400cb0e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0x105
mov ecx, 0x105
mov edx, 1
xor r8d, r8d
call fcn.140011888
mov rbx, rax
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov r9d, 0x105
mov r8, rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0xea
jne 0x14007a08f
mov r9d, 0x105
lea r15, [rsp + 0x38]
mov rdi, qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x14007a056
mov r9, qword [rsp + 0x38]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 1
mov r8d, 1
mov rcx, rbx
mov rdx, r15
call fcn.14001191d
mov rbx, rax
mov r9d, dword [rsp + 0x38]
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov r8, rax
call rdi
cmp eax, 0xea
je 0x14007a051
mov ebp, eax
test eax, eax
jne 0x14007a0a0
mov rcx, rbx
mov rdx, r14
call fcn.1400748e1
test ebp, ebp
sete dil
inc dword [rsi + 8]
mov rcx, rbx
call fcn.140011913
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007de70
mov eax, edi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14007a3fb
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 [0x1400cb0e0]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.14005fbc6
mov rsi, rax
lea rdx, str._s__d:
mov rcx, rax
mov r8, rbx
mov r9d, ebp
call fcn.14005fce7
mov rcx, rdi
mov rdx, rsi
call fcn.14007484c
lea rdx, str.SoftwareSimonTathamPuTTYSshHostKeys
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x14007a499
mov rcx, r14
call fcn.14008d450
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.14005fc55
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007de70
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x14007a4ba
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 [0x1400cb0e0]
xor rax, rsp
mov qword [rsp + 0x438], rax
mov ecx, 1
call fcn.14007a584
cmp rax, 0xffffffffffffffff
je 0x14007a564
mov rdi, rax
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
lea r9, [rsp + 0x2c]
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14007a55b
mov edx, dword [rsp + 0x2c]
test edx, edx
je 0x14007a55b
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 r8d, 0x400
mov rcx, rdi
mov rdx, rbx
mov r9, r14
call r15
test eax, eax
je 0x14007a55b
mov edx, dword [rsp + 0x2c]
test edx, edx
jne 0x14007a52f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x438]
xor rcx, rsp
call fcn.14007de70
nop
add rsp, 0x440
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14007a856
Capabilities:
Write file on windows

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

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

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

Disassembly:
mov rax, rcx
xor ecx, ecx
xor r8d, r8d
mov rdx, rax
jmp fcn.14007a8cb

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

Disassembly:
push rsi
sub rsp, 0x140
mov rax, qword [0x1400cb0e0]
xor rax, rsp
mov qword [rsp + 0x138], rax
xor ecx, ecx
call fcn.14007a584
call fcn.1400738a4
lea rdx, str.SoftwareSimonTathamPuTTY
lea r8, [rsp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14007ac83
mov rcx, qword [rsp + 0x28]
call fcn.14007ad34
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 0x14007acba
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.14007de70
nop
add rsp, 0x140
pop rsi
ret
mov rcx, qword [rsp + 0x28]
lea rdx, [0x1400b8008]
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 0x14007aca0
lea rdx, str.Software
lea r8, [rsp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14007aca0
mov rcx, qword [rsp + 0x28]
lea rdx, [0x1400b4231]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14007aca0

Function at 0x14007ad34
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 [0x1400cb0e0]
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 0x14007add7
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 0x14007adba
mov rcx, qword [rsp + 0x28]
call fcn.14007ad34
mov rcx, qword [rsp + 0x28]
call r15
mov rcx, rsi
mov rdx, rdi
call r13
xor edx, edx
mov r9d, 0x105
mov rcx, rsi
mov r8, rdi
call rbx
test eax, eax
je 0x14007ad98
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.14007de70
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14007adfb
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 0x14007ae5a
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
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
setne al
jmp 0x14007ae9a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14007ae91
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14007ae91
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007453e
lea rcx, str.Unable_to_delete__s:__s
mov rdx, rdi
mov r8, rax
call fcn.14006d221
mov qword [rsi], 0xffffffffffffffff
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x14007beb8
Capabilities:
Get common file path
Set current directory

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x138
mov ebx, r9d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1400cb0e0]
xor rax, rsp
mov qword [rsp + 0x130], rax
test r8b, r8b
je 0x14007bf00
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec eax
cmp eax, 0x103
setb bpl
jmp 0x14007bf02
xor ebp, ebp
mov dword [rdi], 0x88
xor eax, eax
test rsi, rsi
je 0x14007bf16
cmp byte [rsi], 0
cmovne rax, rsi
mov qword [rdi + 0x50], rax
mov rcx, rdi
test bl, bl
je 0x14007bf29
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x14007bf2f
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov edi, eax
test rsi, rsi
je 0x14007bf50
mov ecx, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec eax
cmp eax, 0x103
jb 0x14007bf50
mov byte [rsi], 0
test bpl, bpl
je 0x14007bf60
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test edi, edi
setne bl
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14007de70
mov eax, ebx
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
ret