joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007d48c
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.1400944b0
test eax, eax
je 0x14007d4dd
lea rcx, str.strncmp_pipename___.pipe___9___0
lea rdx, str..._windows_winnpc.c
mov r8d, 0x18
call fcn.140090118
lea rcx, [rdi + 9]
mov edx, 0x5c
call fcn.140085920
test rax, rax
je 0x14007d509
lea rcx, str.strchr_pipename__9_____NULL
lea rdx, str..._windows_winnpc.c
mov r8d, 0x19
call fcn.140090118
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 0x14007d57d
call r15
cmp eax, 0xe7
jne 0x14007d5e8
mov rcx, rdi
xor edx, edx
call r12
test eax, eax
jne 0x14007d51e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007a2ac
lea rcx, str.Error_waiting_for_named_pipe__s:__s
jmp 0x14007d5fc
mov rbx, rax
call fcn.14007e984
test rax, rax
je 0x14007d609
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 [0x1400dbfe8]
test eax, eax
je 0x14007d656
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007a2ac
lea rcx, str.Unable_to_get_named_pipe_security_information:__s
jmp 0x14007d626
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007a2ac
lea rcx, str.Unable_to_open_named_pipe__s:__s
mov rdx, rdi
mov r8, rax
call fcn.14006496f
jmp 0x14007d62e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007a2ac
lea rcx, str.Unable_to_get_user_SID:__s
mov rdx, rax
call fcn.14006496f
mov qword [r14], rax
mov rbx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400841b0
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 0x14007d675
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14007d638
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 0x14007d629
Function at 0x14007d85d
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.1400841b0
mov eax, ebx
add rsp, 0x68
pop rbx
pop rsi
ret

Function at 0x14007d8fa
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, [0x14007da7e]
mov r13, qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, 1
jne 0x14007d958
mov rcx, qword [rsi + 0x18]
mov rdx, rbx
call r15
test eax, eax
jne 0x14007d95a
call r12
test eax, eax
je 0x14007d95a
mov ebp, eax
cmp eax, 0x217
je 0x14007d95a
jmp 0x14007d9e5
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 0x14007d978
mov rcx, rbp
call r13
mov rcx, rsi
xor edx, edx
call fcn.14007d85d
test al, al
jne 0x14007d92f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, ebp
call fcn.14007a2ac
lea rcx, str.Error_while_listening_to_named_pipe:__s
mov rdx, rax
call fcn.14006496f
mov rdi, rax
mov rcx, qword [rsi + 0x10]
call fcn.14007b592
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.140012312
cmp ebp, 0x3e5
jne 0x14007d98e
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14007e33e
Capabilities:
Link many functions at runtime

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

Disassembly:
sub rsp, 0x28
cmp byte [0x1400dbfd8], 1
jne 0x14007e7f4
mov al, byte [0x1400dbfd9]
jmp 0x14007e96e
mov byte [0x1400dbfd8], 1
lea rcx, str.advapi32.dll
call fcn.14007a0b2
mov qword [0x1400dbfe0], rax
test rax, rax
je 0x14007e966
lea rdx, str.GetSecurityInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400dbfe8], rax
test rax, rax
je 0x14007e966
mov rcx, qword [0x1400dbfe0]
test rcx, rcx
je 0x14007e927
lea rdx, str.SetSecurityInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400dbff0], rax
test rax, rax
je 0x14007e966
mov rcx, qword [0x1400dbfe0]
test rcx, rcx
je 0x14007e934
lea rdx, str.OpenProcessToken
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400dbff8], rax
test rax, rax
je 0x14007e966
mov rcx, qword [0x1400dbfe0]
test rcx, rcx
je 0x14007e941
lea rdx, str.GetTokenInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400dc000], rax
test rax, rax
je 0x14007e966
mov rcx, qword [0x1400dbfe0]
test rcx, rcx
je 0x14007e94e
lea rdx, [0x1400be7cb]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400dc008], rax
test rax, rax
je 0x14007e966
mov rcx, qword [0x1400dbfe0]
test rcx, rcx
je 0x14007e95b
lea rdx, [0x1400beb17]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400dc010], rax
test rax, rax
je 0x14007e966
mov rcx, qword [0x1400dbfe0]
test rcx, rcx
je 0x14007e973
lea rdx, str.SetEntriesInAclA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x14007e975
mov qword [0x1400dbff0], 0
jmp 0x14007e966
mov qword [0x1400dbff8], 0
jmp 0x14007e966
mov qword [0x1400dc000], 0
jmp 0x14007e966
mov qword [0x1400dc008], 0
jmp 0x14007e966
mov qword [0x1400dc010], 0
xor eax, eax
mov byte [0x1400dbfd9], al
add rsp, 0x28
ret
xor eax, eax
mov qword [0x1400dc018], rax
test rax, rax
setne al
jmp 0x14007e968
Function at 0x14007fb02
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
test rcx, rcx
je 0x14007fb3f
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.1400943f0
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 0x14007fb48
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 0x14007fb89
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.1400841b0
nop
add rsp, 0x48
ret

Function at 0x14007fc91
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 0x14007fd69
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 0x14007fd6b
cmp dword [rsp + 0x34], 1
jne 0x14007fd6b
mov r14d, dword [rsp + 0x30]
inc r14d
mov edx, 1
mov rcx, r14
xor r8d, r8d
call fcn.140012298
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 0x14007fd61
cmp dword [rsp + 0x34], 1
jne 0x14007fd61
mov eax, dword [rsp + 0x30]
cmp eax, r14d
jb 0x14007fd59
lea rcx, str.size___allocsize
lea rdx, str..._windows_winstore.c
mov r8d, 0x92
call fcn.140090118
mov eax, dword [rsp + 0x30]
mov eax, eax
mov byte [rsi + rax], 0
jmp 0x14007fd6b
mov rcx, rsi
call fcn.140012312
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400841b0
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14007fd87
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 0x14007fdea
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 0x14007fdea
mov eax, dword [rsp + 0x3c]
xor eax, 4
mov ecx, dword [rsp + 0x44]
xor ecx, 4
or ecx, eax
jne 0x14007fdea
mov esi, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400841b0
mov eax, esi
add rsp, 0x50
pop rsi
ret
Function at 0x14007ff09
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.14007fb02
lea rdx, str.IsBold
mov rcx, rbx
xor r8d, r8d
call fcn.140064a12
mov rdi, rax
movzx eax, byte [r14 + 8]
mov dword [rsp + 0x3c], eax
test rsi, rsi
je 0x14007ff7c
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.140012312
lea rdx, str.CharSet
mov rcx, rbx
xor r8d, r8d
call fcn.140064a12
mov rdi, rax
mov eax, dword [r14 + 0x10]
mov dword [rsp + 0x3c], eax
test rsi, rsi
je 0x14007ffcd
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.140012312
lea rdx, [0x1400bc36b]
mov rcx, rbx
xor r8d, r8d
call fcn.140064a12
mov rdi, rax
mov eax, dword [r14 + 0xc]
mov dword [rsp + 0x3c], eax
test rsi, rsi
je 0x14008001e
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.140012312
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400841b0
nop
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400800a4
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 0x140080115
call fcn.140064d7b
mov rdi, rax
mov rcx, rsi
mov rdx, rax
call fcn.14007a5ad
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, rdi
call fcn.140064df8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.140079ac0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400841b0
nop
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x14008019e
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.140012298
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 0x140080250
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.14001231c
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 0x140080250
mov rdi, qword [rsp + 0x30]
jmp 0x14008020c
mov ebp, eax
test eax, eax
jne 0x140080261
mov rcx, rbx
mov rdx, r14
call fcn.14007a641
test ebp, ebp
sete dil
inc dword [rsi + 8]
mov rcx, rbx
call fcn.140012312
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400841b0
mov eax, edi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400805ae
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.140064d7b
mov rsi, rax
lea rdx, str._s__d:
mov rcx, rax
mov r8, rbx
mov r9d, ebp
call fcn.140064e8a
mov rcx, rdi
mov rdx, rsi
call fcn.14007a5ad
lea rdx, str.SoftwareSimonTathamPuTTYSshHostKeys
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x14008064c
mov rcx, r14
call fcn.1400943f0
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.140064df8
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400841b0
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x14008066d
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.140080737
cmp rax, 0xffffffffffffffff
je 0x140080717
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 0x14008070e
mov edx, dword [rsp + 0x2c]
test edx, edx
je 0x14008070e
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 0x14008070e
mov edx, dword [rsp + 0x2c]
test edx, edx
jne 0x1400806e2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x438]
xor rcx, rsp
call fcn.1400841b0
nop
add rsp, 0x440
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140080a09
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.140080737
cmp rax, 0xffffffffffffffff
je 0x140080a5d
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.1400841b0
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

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

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

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

Function at 0x140080dd4
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.140080737
call fcn.140079604
lea rdx, str.SoftwareSimonTathamPuTTY
lea r8, [rsp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140080e2c
mov rcx, qword [rsp + 0x28]
call fcn.140080edd
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 0x140080e63
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1400841b0
nop
add rsp, 0x140
pop rsi
ret
mov rcx, qword [rsp + 0x28]
lea rdx, [0x1400c3fe9]
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 0x140080e49
lea rdx, str.Software
lea r8, [rsp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140080e49
mov rcx, qword [rsp + 0x28]
lea rdx, [0x1400c004b]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140080e49

Function at 0x140080edd
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 0x140080f80
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 0x140080f63
mov rcx, qword [rsp + 0x28]
call fcn.140080edd
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 0x140080f41
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1400841b0
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140080fa4
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 0x140081003
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 0x140081043
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14008103a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14008103a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007a2ac
lea rcx, str.Unable_to_delete__s:__s
mov rdx, rdi
mov r8, rax
call fcn.140072a19
mov qword [rsi], 0xffffffffffffffff
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x140082200
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 [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x130], rax
test r8b, r8b
je 0x140082248
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec eax
cmp eax, 0x103
setb bpl
jmp 0x14008224a
xor ebp, ebp
mov dword [rdi], 0x88
xor eax, eax
test rsi, rsi
je 0x14008225e
cmp byte [rsi], 0
cmovne rax, rsi
mov qword [rdi + 0x50], rax
mov rcx, rdi
test bl, bl
je 0x140082271
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x140082277
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov edi, eax
test rsi, rsi
je 0x140082298
mov ecx, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec eax
cmp eax, 0x103
jb 0x140082298
mov byte [rsi], 0
test bpl, bpl
je 0x1400822a8
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.1400841b0
mov eax, ebx
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x14008e858
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14008e990
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 0x14008e9f7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008e9f7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14008e9f7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14008e9f7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008e9f7
cmp dword [rcx + 0x84], 0xe
jbe 0x14008e9f7
cmp dword [rcx + 0xf8], 0
je 0x14008e9f7
mov ecx, ebx
call fcn.14008e8dc
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.14008eb24
cmp dword [rbp + 0x20], 0
je 0x14008ea44
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14008e938
int3

Function at 0x1400943f0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x14009440d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140094468
test al, 7
jne 0x140094400
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 0x140094421
mov rdx, qword [rax - 8]
test dl, dl
je 0x140094492
test dh, dh
je 0x14009448c
shr rdx, 0x10
test dl, dl
je 0x140094486
test dh, dh
je 0x140094480
shr rdx, 0x10
test dl, dl
je 0x14009447a
test dh, dh
je 0x140094474
shr edx, 0x10
test dl, dl
je 0x14009446e
test dh, dh
jne 0x140094421
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