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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2b8
mov r14, rcx
mov rax, qword [0x14002e420]
mov qword [rsp + 0x2b0], rax
lea rdi, [rsp + 0x60]
mov edx, 0x107
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov rcx, rdi
call fcn.1400b93d0
mov byte [rsp + rax + 0x62], 0
mov word [rsp + rax + 0x60], 0x2a5c
lea rdx, [rsp + 0x170]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rdi, 0xffffffffffffffff
je 0x1400a24c2
lea rbx, [rsp + 0x170]
mov rsi, qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edx, 0x140
mov rcx, rbx
call r14
mov rcx, rdi
mov rdx, rbx
call rsi
test eax, eax
jne 0x1400a24a2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [rsp + 0x3c]
mov dword [rcx], eax
mov edx, 4
call r14
mov rcx, qword [0x14002c448]
test rcx, rcx
je 0x1400a24ef
mov rax, qword [0x14002c460]
jmp 0x1400a2581
lea rcx, str.advapi32.dll
call fcn.14009f5be
mov qword [0x14002c448], rax
test rax, rax
je 0x1400a2560
lea rdx, str.CryptAcquireContextA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14002c448]
mov qword [0x14002c450], rax
test rcx, rcx
je 0x1400a256b
lea rdx, str.CryptGenRandom
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14002c448]
mov qword [0x14002c458], rax
test rcx, rcx
je 0x1400a2576
lea rdx, str.CryptReleaseContext
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14002c448]
jmp 0x1400a257a
mov qword [0x14002c450], 0
mov qword [0x14002c458], 0
xor ecx, ecx
xor eax, eax
mov qword [0x14002c460], rax
test rcx, rcx
je 0x1400a25f4
mov rbx, qword [0x14002c450]
test rbx, rbx
je 0x1400a25f4
mov rcx, qword [0x14002c458]
test rcx, rcx
je 0x1400a25f4
test rax, rax
je 0x1400a25f4
mov dword [rsp + 0x20], 0xf0000000
lea rcx, [rsp + 0x30]
xor edx, edx
xor r8d, r8d
mov r9d, 1
call rbx
test eax, eax
je 0x1400a25f4
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov edx, 0x20
call qword [0x14002c458]
test eax, eax
je 0x1400a25e7
lea rcx, [rsp + 0x40]
mov edx, 0x20
call r14
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [0x14002c460]
mov rcx, r14
call fcn.1400a57a3
call fcn.1400a261c
mov rcx, qword [rsp + 0x2b0]
call fcn.1400a8e70
nop
add rsp, 0x2b8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400a26d1
Capabilities:
Get memory capacity

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rax, qword [0x14002e420]
mov qword [rsp + 0xa0], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rsi, [rsp + 0x78]
mov qword [rsi], rax
mov edx, 8
mov rcx, rsi
call fcn.1400752a0
call qword [sym.imp.USER32.dll_GetCapture]
mov qword [rsi], rax
mov edx, 8
mov rcx, rsi
call fcn.1400752a0
call qword [sym.imp.USER32.dll_GetClipboardOwner]
mov qword [rsi], rax
mov edx, 8
mov rcx, rsi
call fcn.1400752a0
mov ecx, 0x1cbf
call qword [sym.imp.USER32.dll_GetQueueStatus]
lea rcx, [rsp + 0x74]
mov dword [rcx], eax
mov edx, 4
call fcn.1400752a0
lea rsi, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetCursorPos]
mov edx, 8
mov rcx, rsi
call fcn.1400752a0
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, 0x38
mov rcx, rsi
call fcn.1400752a0
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 edx, 0x20
mov rcx, rbx
call fcn.1400752a0
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 edx, 0x20
mov rcx, rbx
call fcn.1400752a0
mov rcx, qword [rsp + 0xa0]
call fcn.1400a8e70
nop
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400a2880
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 [0x14002e420]
mov qword [rsp + 0x50], rax
lea rdx, str..pipe_
mov r8d, 9
call fcn.1400b9490
test eax, eax
je 0x1400a28ce
lea rcx, str.strncmp_pipename___.pipe___9___0
lea rdx, str..._windows_winnpc.c
mov r8d, 0x1e
call fcn.1400b5fb0
lea rcx, [rdi + 9]
mov edx, 0x5c
call fcn.1400aa540
test rax, rax
je 0x1400a28fa
lea rcx, str.strchr_pipename__9_____NULL
lea rdx, str..._windows_winnpc.c
mov r8d, 0x1f
call fcn.1400b5fb0
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
mov rbx, rax
cmp rbx, 0xffffffffffffffff
jne 0x1400a2974
call r15
cmp eax, 0xe7
jne 0x1400a2a01
xor edx, edx
mov rcx, rdi
call r12
test eax, eax
jne 0x1400a290f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14009f6e8
lea rcx, str.Error_waiting_for_named_pipe__s:__s
jmp 0x1400a2a15
call fcn.1400a39b3
mov rsi, rax
test rsi, rsi
je 0x1400a2a54
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 [0x14002c4d8]
test eax, eax
je 0x1400a2a6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14009f6e8
lea rcx, str.Unable_to_get_named_pipe_security_information:__s
mov rdx, rax
call fcn.14004714e
mov rdi, rax
mov rcx, rdi
mov rdx, r14
call fcn.140042ebc
mov rsi, rax
mov rcx, rdi
call fcn.140047430
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400a2a39
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14009f6e8
lea rcx, str.Unable_to_open_named_pipe__s:__s
mov rdx, rdi
mov r8, rax
call fcn.14004714e
mov rdi, rax
mov rcx, rdi
mov rdx, r14
call fcn.140042ebc
mov rsi, rax
mov rcx, rdi
call fcn.140047430
mov rcx, qword [rsp + 0x50]
call fcn.1400a8e70
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Unable_to_get_user_SID
call fcn.14004714e
jmp 0x1400a2a20
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1400a2aa6
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [rsp + 0x20], 1
xor r8d, r8d
mov rcx, rbx
mov rdx, rbx
mov r9, r14
call fcn.14009e610
mov rsi, rax
jmp 0x1400a2a39
lea rcx, str.Owner_of_named_pipe__s_is_not_us
mov rdx, rdi
call fcn.14004714e
mov rdi, rax
mov rcx, rdi
mov rdx, r14
call fcn.140042ebc
mov rsi, rax
mov rcx, rdi
call fcn.140047430
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400a2a39
Function at 0x1400a2cbc
Capabilities:
Create pipe

Disassembly:
push rsi
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x14002e420]
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
movaps xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov dword [rax], 0x18
mov rcx, qword [rsi + 8]
mov qword [rax + 8], rcx
xor r8d, r8d
mov dword [rax + 0x10], r8d
test edx, edx
mov ecx, 0x40080003
mov edx, 0x40000003
cmovne edx, ecx
mov rcx, qword [rsi + 0x18]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r8d
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 + 0x20], rax
xor esi, esi
cmp rax, 0xffffffffffffffff
setne sil
mov rcx, qword [rsp + 0x58]
call fcn.1400a8e70
mov eax, esi
add rsp, 0x60
pop rsi
ret

Function at 0x1400a2d5e
Capabilities:
Connect pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rcx
test edx, edx
jne 0x1400a2d80
lea rdx, [rsi + 0x28]
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x1400a2dbd
mov rdi, qword [rsi + 0x20]
mov rcx, qword [rsi + 0x50]
mov rax, qword [rcx]
lea rdx, [0x1400a2e3b]
mov r8, rdi
call qword [rax + 0x20]
test eax, eax
je 0x1400a2da5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, rsi
call fcn.1400a2cbc
test eax, eax
jne 0x1400a2d6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1400a2de3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x1400a2d80
cmp edi, 0x217
je 0x1400a2d80
cmp edi, 0x3e5
jne 0x1400a2de3
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, edi
call fcn.14009f6e8
lea rcx, str.Error_while_listening_to_named_pipe:__s
mov rdx, rax
call fcn.14004714e
mov rbx, rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 0x50]
mov rax, qword [rax]
mov r14, qword [rax]
call fcn.1400a09ca
mov rcx, qword [rsi + 0x50]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
mov edx, 1
xor r9d, r9d
mov r8, rax
call r14
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140047430
Function at 0x1400a3331
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov al, byte [0x14002c4a8]
test al, al
jne 0x1400a3444
lea rcx, str.winspool.drv
call fcn.14009f5be
mov rsi, rax
lea rcx, str.spoolss.dll
call fcn.14009f5be
test rsi, rsi
je 0x1400a3403
lea rdx, str.EnumPrintersA
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call rdi
mov qword [0x14002c4a0], rax
lea rdx, str.OpenPrinterA
mov rcx, rsi
call rdi
mov qword [0x14002c468], rax
lea rdx, str.ClosePrinter
mov rcx, rsi
call rdi
mov qword [0x14002c490], rax
lea rdx, str.StartDocPrinterA
mov rcx, rsi
call rdi
mov qword [0x14002c470], rax
lea rdx, str.EndDocPrinter
mov rcx, rsi
call rdi
mov qword [0x14002c488], rax
lea rdx, str.StartPagePrinter
mov rcx, rsi
call rdi
mov qword [0x14002c478], rax
lea rdx, str.EndPagePrinter
mov rcx, rsi
call rdi
mov qword [0x14002c480], rax
lea rdx, str.WritePrinter
mov rcx, rsi
call rdi
jmp 0x1400a3436
xor eax, eax
mov qword [0x14002c4a0], rax
mov qword [0x14002c468], rax
mov qword [0x14002c490], rax
mov qword [0x14002c470], rax
mov qword [0x14002c488], rax
mov qword [0x14002c478], rax
mov qword [0x14002c480], rax
mov qword [0x14002c498], rax
mov byte [0x14002c4a8], 1
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1400a3800
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
sub rsp, 0x20
cmp byte [0x14002c4b0], 1
jne 0x1400a3819
mov esi, dword [0x14002c4b4]
jmp 0x1400a39ab
mov byte [0x14002c4b0], 1
lea rcx, str.advapi32.dll
call fcn.14009f5be
mov qword [0x14002c4b8], rax
xor esi, esi
test rax, rax
je 0x1400a39a5
lea rdx, str.GetSecurityInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002c4d8], rax
test rax, rax
je 0x1400a39a5
mov rcx, qword [0x14002c4b8]
test rcx, rcx
je 0x1400a3952
lea rdx, str.SetSecurityInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002c4e0], rax
test rax, rax
je 0x1400a39a5
mov rcx, qword [0x14002c4b8]
test rcx, rcx
je 0x1400a395f
lea rdx, str.OpenProcessToken
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002c4e8], rax
test rax, rax
je 0x1400a39a5
mov rcx, qword [0x14002c4b8]
test rcx, rcx
je 0x1400a396c
lea rdx, str.GetTokenInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002c4f0], rax
test rax, rax
je 0x1400a39a5
mov rcx, qword [0x14002c4b8]
test rcx, rcx
je 0x1400a3979
lea rdx, str.InitializeSecurityDescriptor
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002c4f8], rax
test rax, rax
je 0x1400a39a5
mov rcx, qword [0x14002c4b8]
test rcx, rcx
je 0x1400a3986
lea rdx, str.SetSecurityDescriptorOwner
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002c500], rax
test rax, rax
je 0x1400a39a5
mov rcx, qword [0x14002c4b8]
test rcx, rcx
je 0x1400a3993
lea rdx, str.SetEntriesInAclA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x1400a3995
mov qword [0x14002c4e0], 0
jmp 0x1400a39a5
mov qword [0x14002c4e8], 0
jmp 0x1400a39a5
mov qword [0x14002c4f0], 0
jmp 0x1400a39a5
mov qword [0x14002c4f8], 0
jmp 0x1400a39a5
mov qword [0x14002c500], 0
jmp 0x1400a39a5
xor eax, eax
mov qword [0x14002c508], rax
xor esi, esi
test rax, rax
setne sil
mov dword [0x14002c4b4], esi
mov eax, esi
add rsp, 0x20
pop rsi
ret
Function at 0x1400a4c38
Capabilities:
Set registry value

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

Function at 0x1400a4c7e
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14002e420]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], r8d
test rcx, rcx
je 0x1400a4cb9
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]
call fcn.1400a8e70
nop
add rsp, 0x48
ret

Function at 0x1400a4d8f
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14002e420]
mov qword [rsp + 0x38], rax
test rbx, rbx
je 0x1400a4e64
lea r15, [rsp + 0x30]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0
xor esi, esi
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400a4e66
cmp dword [rsp + 0x34], 1
jne 0x1400a4e66
mov r14d, dword [rsp + 0x30]
inc r14d
mov edx, 1
mov rcx, r14
call fcn.14004723d
mov rsi, rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400a4e5c
cmp dword [rsp + 0x34], 1
jne 0x1400a4e5c
mov eax, dword [rsp + 0x30]
cmp eax, r14d
jb 0x1400a4e54
lea rcx, str.size___allocsize
lea rdx, str..._windows_winstore.c
mov r8d, 0xb0
call fcn.1400b5fb0
mov eax, dword [rsp + 0x30]
mov eax, eax
mov byte [rsi + rax], 0
jmp 0x1400a4e66
mov rcx, rsi
call fcn.140047430
xor esi, esi
mov rcx, qword [rsp + 0x38]
call fcn.1400a8e70
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400a4e7f
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov esi, r8d
mov rax, qword [0x14002e420]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x3c], 4
test rcx, rcx
je 0x1400a4edb
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 0x1400a4edb
mov eax, dword [rsp + 0x3c]
xor eax, 4
mov ecx, dword [rsp + 0x44]
xor ecx, 4
or ecx, eax
cmove esi, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.1400a8e70
mov eax, esi
add rsp, 0x50
pop rsi
ret
Function at 0x1400a4fee
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 [0x14002e420]
mov qword [rsp + 0x40], rax
mov r8, qword [r14]
call fcn.1400a4c38
lea rdx, str.IsBold
xor r8d, r8d
mov rcx, rbx
call fcn.1400474f8
mov rdi, rax
mov eax, dword [r14 + 8]
mov dword [rsp + 0x3c], eax
test rsi, rsi
je 0x1400a505d
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
mov rcx, rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rdi
call fcn.140047430
lea rdx, str.CharSet
xor r8d, r8d
mov rcx, rbx
call fcn.1400474f8
mov rdi, rax
test rsi, rsi
mov eax, dword [r14 + 0x10]
mov dword [rsp + 0x3c], eax
je 0x1400a50ae
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
mov rcx, rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rdi
call fcn.140047430
lea rdx, str.Height
xor r8d, r8d
mov rcx, rbx
call fcn.1400474f8
mov rdi, rax
test rsi, rsi
mov eax, dword [r14 + 0xc]
mov dword [rsp + 0x3c], eax
je 0x1400a50ff
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
mov rcx, rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rdi
call fcn.140047430
mov rcx, qword [rsp + 0x40]
call fcn.1400a8e70
nop
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400a5158
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x14002e420]
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 0x1400a51d8
mov rcx, rsi
call fcn.1400b93d0
lea rcx, [rax + rax*2 + 1]
mov edx, 1
call fcn.14004723d
mov rdi, rax
mov rcx, rsi
mov rdx, rdi
call fcn.1400a4bb8
mov rcx, qword [rsp + 0x28]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, rdi
call fcn.140047430
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.14009ef7d
mov rcx, qword [rsp + 0x30]
call fcn.1400a8e70
nop
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x1400a5255
Capabilities:
Query or enumerate registry key

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov edi, r8d
mov r14, rdx
mov rsi, rcx
lea eax, [rdi + rdi*2]
movsxd rbx, eax
mov edx, 1
mov rcx, rbx
call fcn.14004723d
mov r15, rax
mov edx, dword [rsi + 8]
lea eax, [rdx + 1]
mov dword [rsi + 8], eax
mov rcx, qword [rsi]
mov r8, r15
mov r9d, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x1400a52a8
mov rcx, r15
call fcn.140047430
xor r14d, r14d
jmp 0x1400a531e
mov r8b, 0x39
mov rdx, r15
mov rcx, r14
jmp 0x1400a5309
inc rdx
mov rsi, rdx
jmp 0x1400a52fd
lea rsi, [rdx + 1]
mov bl, byte [rdx + 1]
test bl, bl
je 0x1400a52fd
mov r9b, byte [rdx + 2]
test r9b, r9b
je 0x1400a52fd
cmp bl, r8b
mov al, 7
jg 0x1400a52d8
xor eax, eax
sub bl, al
cmp r9b, r8b
mov al, 0xf9
jg 0x1400a52e3
xor eax, eax
shl bl, 4
add bl, r9b
add bl, al
add bl, 0xd0
mov byte [rcx], bl
dec edi
je 0x1400a5316
add rdx, 3
mov rsi, rdx
jmp 0x1400a5303
mov byte [rcx], al
dec edi
je 0x1400a5316
inc rcx
mov rdx, rsi
mov al, byte [rdx]
cmp al, 0x25
je 0x1400a52bb
test al, al
jne 0x1400a52b3
mov byte [rcx], 0
mov rcx, r15
call fcn.140047430
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400a56dc
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 rsi, rcx
mov rax, qword [0x14002e420]
mov qword [rsp + 0x38], rax
call fcn.1400b93d0
mov rdi, rax
mov rcx, rbx
call fcn.1400b93d0
add rax, rdi
lea rcx, [rax + rax*2 + 0xf]
mov edx, 1
call fcn.14004723d
mov rdi, rax
mov rcx, rdi
mov rdx, rsi
mov r8d, ebp
mov r9, rbx
call fcn.1400a565f
lea rdx, str.SoftwareSimonTathamPuTTYSshHostKeys
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1400a5785
mov rcx, r14
call fcn.1400b93d0
inc eax
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov r9d, 1
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call fcn.140047430
mov rcx, qword [rsp + 0x38]
call fcn.1400a8e70
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x1400a57a3
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 [0x14002e420]
mov qword [rsp + 0x438], rax
mov ecx, 1
call fcn.1400a5867
mov rdi, rax
cmp rdi, 0xffffffffffffffff
je 0x1400a584a
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
lea r9, [rsp + 0x2c]
mov r8d, 0x400
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a5841
mov edx, dword [rsp + 0x2c]
test edx, edx
je 0x1400a5841
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 0x1400a5841
mov edx, dword [rsp + 0x2c]
test edx, edx
jne 0x1400a5815
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x438]
call fcn.1400a8e70
nop
add rsp, 0x440
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400a5b21
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov esi, edx
mov rdi, rcx
mov rax, qword [0x14002e420]
mov qword [rsp + 0x38], rax
mov ecx, 2
call fcn.1400a5867
mov rbx, rax
cmp rbx, 0xffffffffffffffff
je 0x1400a5b72
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rcx, rbx
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]
call fcn.1400a8e70
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
xor r8d, r8d
mov rdx, rcx
jmp fcn.1400a5b90
Function at 0x1400a5e61
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.1400a5b90

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

Disassembly:
push rsi
sub rsp, 0x140
mov rax, qword [0x14002e420]
mov qword [rsp + 0x138], rax
xor ecx, ecx
call fcn.1400a5867
call fcn.14009ead0
lea rdx, str.SoftwareSimonTathamPuTTY
lea r8, [rsp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1400a5f21
mov rcx, qword [rsp + 0x28]
call fcn.1400a5fcf
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 0x1400a5f55
mov rcx, qword [rsp + 0x138]
call fcn.1400a8e70
nop
add rsp, 0x140
pop rsi
ret
mov rcx, qword [rsp + 0x28]
lea rdx, [0x140002090]
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 0x1400a5f3e
lea rdx, str.Software
lea r8, [rsp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1400a5f3e
mov rcx, qword [rsp + 0x28]
lea rdx, str.SimonTatham
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400a5f3e

Function at 0x1400a5fcf
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 [0x14002e420]
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 0x1400a606f
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 0x1400a6052
mov rcx, qword [rsp + 0x28]
call fcn.1400a5fcf
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 0x1400a6030
mov rcx, qword [rsp + 0x138]
call fcn.1400a8e70
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret