joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003b90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
mov ecx, 2
call fcn.14006ef00
mov rcx, rdi
mov rdx, rax
call fcn.14007d578
mov ecx, 2
call fcn.14006ef00
lea rcx, [0x1400b59ec]
mov edx, 2
mov r8d, 1
mov r9, rax
call fcn.14007da68
mov ecx, 2
call fcn.14006ef00
mov rcx, rsi
mov rdx, rax
call fcn.14007d578
mov ecx, 2
call fcn.14006ef00
mov ecx, 0xa
mov rdx, rax
call fcn.14007d43c
mov ecx, 2
call fcn.14006ef00
mov rcx, rax
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14007cdf8

Function at 0x1400042e0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov ecx, 2
call fcn.14006ef00
lea rcx, str.You_are_loading_an_SSH_2_private_key_which_has_an_nold_version_of_the_file_format._This_means_your_key_nfile_is_not_fully_tamperproof._Future_versions_of_nPuTTY_may_stop_supporting_this_private_key_format__nso_we_recommend_you_convert_your_key_to_the_new_nformat._n_nOnce_the_key_is_loaded_into_PuTTYgen__you_can_perform_nthis_conversion_simply_by_saving_it_again._n
mov edx, 0x165
mov r8d, 1
mov r9, rax
add rsp, 0x28
jmp fcn.14007da68

Function at 0x140004310
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov ecx, 1
call fcn.14006ef00
lea rcx, str.These_are_the_fingerprints_of_the_PuTTY_PGP_Master_Keys._They_can_nbe_used_to_establish_a_trust_path_from_this_executable_to_another_none._See_the_manual_for_more_information._n_Note:_these_fingerprints_have_nothing_to_do_with_SSH___n_nPuTTY_Master_Key_as_of_2021__RSA__3072_bit_:_n__A872_D42F_1660_890F_0E05__223E_DD43_55EA_AC11_19DE_n_nPrevious_Master_Key__2018__RSA__4096_bit_:_n__24E1_B1C5_75EA_3C9F_F752__A922_76BC_7FE4_EBFD_2D9E_n
mov edx, 0x1aa
mov r8d, 1
mov r9, rax
add rsp, 0x28
jmp fcn.14007da68
Function at 0x1400067f0
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 [0x1400c5038]
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.14007fac0
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 0x140006890
mov rdi, rax
lea rbx, [rsp + 0x160]
mov rsi, qword [sym.imp.KERNEL32.dll_FindNextFileA]
nop word cs:[rax + rax]
nop dword [rax + rax]
mov rcx, rbx
mov edx, 0x140
call r14
mov rcx, rdi
mov rdx, rbx
call rsi
test eax, eax
jne 0x140006870
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
mov edx, 4
call r14
lea rcx, [rsp + 0x30]
mov edx, 0x20
call fcn.1400066a0
test al, al
je 0x1400068d7
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov edx, 0x20
call r14
mov edx, 0x20
mov rcx, rdi
call fcn.1400349b0
mov rcx, r14
call fcn.14001add0
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14006cf60
nop
add rsp, 0x2a8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140006900
Capabilities:
Get memory capacity

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rax, qword [0x1400c5038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x78], rax
lea rsi, [rsp + 0x78]
mov ecx, 9
mov rdx, rsi
mov r8d, 8
call fcn.14001a050
call qword [sym.imp.USER32.dll_GetCapture]
mov qword [rsp + 0x78], rax
mov ecx, 0xa
mov rdx, rsi
mov r8d, 8
call fcn.14001a050
call qword [sym.imp.USER32.dll_GetClipboardOwner]
mov qword [rsp + 0x78], rax
mov ecx, 0xb
mov rdx, rsi
mov r8d, 8
call fcn.14001a050
mov ecx, 0x1cbf
call qword [sym.imp.USER32.dll_GetQueueStatus]
mov dword [rsp + 0x74], eax
lea rdx, [rsp + 0x74]
mov ecx, 0xc
mov r8d, 4
call fcn.14001a050
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.14001a050
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.14001a050
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.14001a050
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.14001a050
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14006cf60
nop
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400070f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov eax, dword [rcx + 8]
test eax, eax
je 0x14000712a
cmp eax, 2
je 0x14000713a
cmp eax, 1
jne 0x1400071aa
mov rdx, qword [rdi]
mov r8, qword [rdi + 8]
add rsi, 0x10
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140018190
mov rcx, rsi
call fcn.140006b70
mov eax, dword [rsi + 8]
cmp eax, 2
jne 0x140007108
mov r9, qword [rsi]
test r9, r9
jne 0x14000715e
lea rcx, str.ctx__lgfp
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_logging.c
mov r8d, 0x2f
call fcn.14007b7e4
mov r9, qword [rsi]
mov rcx, qword [rdi]
mov r8, qword [rdi + 8]
mov edx, 1
call fcn.14007da68
cmp rax, qword [rdi + 8]
jae 0x1400071aa
mov rcx, qword [rsi]
test rcx, rcx
je 0x140007189
call fcn.14007cce4
mov qword [rsi], 0
mov dword [rsi + 8], 3
mov rcx, qword [rsi + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax]
lea rdx, str.Disabled_writing_session_log_due_to_error_while_writing
add rsp, 0x28
pop rdi
pop rsi
jmp rax
nop
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14000de90
Capabilities:
Get session user name

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov edx, 0x38
call fcn.140014ae0
cmp byte [rax], 0
je 0x14000deb4
mov rcx, rax
add rsp, 0x20
pop rsi
jmp fcn.140020100
mov rcx, rsi
mov edx, 0x39
call fcn.140014890
test al, al
je 0x14000decf
add rsp, 0x20
pop rsi
jmp fcn.1400357c0
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x140016f60
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp byte [0x1400c6760], 1
jne 0x140016f78
mov al, byte [0x1400c6761]
jmp 0x1400170fe
mov byte [0x1400c6760], 1
lea rcx, str.advapi32.dll
call fcn.140034960
mov qword [0x1400c6768], rax
test rax, rax
je 0x1400170f6
lea rdx, str.GetSecurityInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c6770], rax
test rax, rax
je 0x1400170f6
mov rcx, qword [0x1400c6768]
test rcx, rcx
je 0x1400170af
lea rdx, str.SetSecurityInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c6778], rax
test rax, rax
je 0x1400170f6
mov rcx, qword [0x1400c6768]
test rcx, rcx
je 0x1400170be
lea rdx, str.OpenProcessToken
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c6780], rax
test rax, rax
je 0x1400170f6
mov rcx, qword [0x1400c6768]
test rcx, rcx
je 0x1400170cd
lea rdx, str.GetTokenInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c6788], rax
test rax, rax
je 0x1400170f6
mov rcx, qword [0x1400c6768]
test rcx, rcx
je 0x1400170dc
lea rdx, [0x1400ad22b]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c6790], rax
test rax, rax
je 0x1400170f6
mov rcx, qword [0x1400c6768]
test rcx, rcx
je 0x1400170eb
lea rdx, [0x1400ad3d3]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c6798], rax
test rax, rax
je 0x1400170f6
mov rcx, qword [0x1400c6768]
test rcx, rcx
je 0x140017103
lea rdx, str.SetEntriesInAclA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140017105
mov qword [0x1400c6778], 0
xor eax, eax
jmp 0x1400170f8
mov qword [0x1400c6780], 0
xor eax, eax
jmp 0x1400170f8
mov qword [0x1400c6788], 0
xor eax, eax
jmp 0x1400170f8
mov qword [0x1400c6790], 0
xor eax, eax
jmp 0x1400170f8
mov qword [0x1400c6798], 0
xor eax, eax
mov byte [0x1400c6761], al
add rsp, 0x28
ret
xor eax, eax
mov qword [0x1400c67a0], rax
test rax, rax
setne al
jmp 0x1400170f8

Function at 0x140017aa0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, r8
mov rbx, rdx
mov edi, ecx
cmp qword [0x1400c67f8], 0
jne 0x140017aed
lea rcx, [0x140017d00]
call fcn.140018880
mov qword [0x1400c67f8], rax
lea rcx, [0x140017d60]
call fcn.140018880
mov qword [0x1400c6800], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1400c67f0], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1400c67f0], eax
test edi, edi
mov esi, 1
cmovne esi, edi
add esi, eax
mov ecx, 1
mov edx, 0x18
xor r8d, r8d
call fcn.140016170
mov rdi, rax
mov qword [rax], rbx
mov qword [rax + 8], r14
mov dword [rax + 0x10], esi
mov eax, dword [0x1400c67f0]
mov dword [rdi + 0x14], eax
mov rcx, qword [0x1400c67f8]
mov rdx, rdi
call fcn.140018960
cmp rdi, rax
je 0x140017b4b
mov rcx, rdi
call fcn.140016210
jmp 0x140017b5b
mov rdx, qword [rdi + 8]
mov rcx, qword [0x1400c6800]
call fcn.140018960
mov rcx, qword [0x1400c67f8]
xor edx, edx
call fcn.1400190b0
cmp rax, rdi
jne 0x140017b76
mov ecx, dword [rdi + 0x10]
call fcn.1400022e0
mov eax, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140017ba0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
cmp qword [0x1400c67f8], 0
jne 0x140017be6
lea rcx, [0x140017d00]
call fcn.140018880
mov qword [0x1400c67f8], rax
lea rcx, [0x140017d60]
call fcn.140018880
mov qword [0x1400c6800], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1400c67f0], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1400c67f0], eax
mov rcx, qword [0x1400c67f8]
xor ebx, ebx
xor edx, edx
call fcn.1400190b0
test rax, rax
je 0x140017c8c
mov rdi, rax
jmp 0x140017c3e
mov rcx, qword [0x1400c67f8]
xor edx, edx
call fcn.140019710
mov rcx, rdi
call fcn.140016210
mov rcx, qword [0x1400c67f8]
xor ebx, ebx
xor edx, edx
call fcn.1400190b0
mov rdi, rax
test rax, rax
je 0x140017c8c
mov rdx, qword [rdi + 8]
mov rcx, qword [0x1400c6800]
xor r8d, r8d
call fcn.140019620
test rax, rax
je 0x140017c10
mov ecx, dword [0x1400c67f0]
mov ebx, dword [rdi + 0x10]
mov edx, dword [rdi + 0x14]
add edx, 0xfffffff6
sub ecx, edx
mov eax, ebx
sub eax, edx
cmp ecx, eax
jbe 0x140017c88
mov rcx, qword [0x1400c67f8]
xor edx, edx
call fcn.140019710
mov edx, dword [rdi + 0x10]
mov rcx, qword [rdi + 8]
call qword [rdi]
jmp 0x140017c1e
mov dword [rsi], ebx
mov bl, 1
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14001a4c0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, qword [0x1400c5038]
xor rax, rsp
mov qword [rsp + 0x38], rax
test rcx, rcx
je 0x14001a599
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 0x14001a59b
cmp dword [rsp + 0x34], 1
jne 0x14001a59b
mov r14d, dword [rsp + 0x30]
add r14d, 1
mov edx, 1
mov rcx, r14
xor r8d, r8d
call fcn.140016170
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 0x14001a591
cmp dword [rsp + 0x34], 1
jne 0x14001a591
mov eax, dword [rsp + 0x30]
cmp eax, r14d
jb 0x14001a589
lea rcx, str.size___allocsize
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_windows_storage.c
mov r8d, 0x92
call fcn.14007b7e4
mov eax, dword [rsp + 0x30]
mov eax, eax
mov byte [rsi + rax], 0
jmp 0x14001a59b
mov rcx, rsi
call fcn.140016210
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14006cf60
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14001a5c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov esi, r8d
mov rax, qword [0x1400c5038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x3c], 4
test rcx, rcx
je 0x14001a621
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]
mov ecx, dword [rsp + 0x3c]
xor ecx, 4
mov edx, dword [rsp + 0x44]
xor edx, 4
or ecx, eax
or ecx, edx
jne 0x14001a621
mov esi, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14006cf60
mov eax, esi
add rsp, 0x50
pop rsi
ret

Function at 0x14001a640
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, rdx
mov rbx, rcx
mov rax, qword [0x1400c5038]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.14001a4c0
test rax, rax
je 0x14001a827
mov r14, rax
lea rdx, str.IsBold
mov rcx, rsi
xor r8d, r8d
call fcn.140035910
mov rdi, rax
mov dword [rsp + 0x44], 4
test rbx, rbx
je 0x14001a813
mov rcx, qword [rbx]
lea r15, [rsp + 0x44]
mov qword [rsp + 0x28], r15
lea r12, [rsp + 0x48]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x4c]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001a813
cmp dword [rsp + 0x44], 4
jne 0x14001a813
cmp dword [rsp + 0x4c], 4
jne 0x14001a813
mov ebp, dword [rsp + 0x48]
mov rcx, rdi
call fcn.140016210
cmp ebp, 0xffffffff
je 0x14001a81b
mov dword [rsp + 0x3c], ebp
lea rdx, str.CharSet
xor edi, edi
mov rcx, rsi
xor r8d, r8d
call fcn.140035910
mov rbp, rax
mov dword [rsp + 0x44], 4
mov rcx, qword [rbx]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x4c]
mov rdx, rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r12d, eax
mov r13d, dword [rsp + 0x44]
mov r15d, dword [rsp + 0x4c]
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x40], eax
mov rcx, rbp
call fcn.140016210
test r12d, r12d
jne 0x14001a81d
cmp r13d, 4
jne 0x14001a81d
cmp r15d, 4
jne 0x14001a81d
mov r13d, dword [rsp + 0x40]
cmp r13d, 0xffffffff
je 0x14001a81d
lea rdx, [0x1400ab9dd]
xor edi, edi
mov rcx, rsi
xor r8d, r8d
call fcn.140035910
mov rbp, rax
mov dword [rsp + 0x44], 4
mov rcx, qword [rbx]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
mov rdx, rbp
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov esi, dword [rsp + 0x44]
mov r12d, dword [rsp + 0x4c]
mov r15d, dword [rsp + 0x48]
mov rcx, rbp
call fcn.140016210
test ebx, ebx
jne 0x14001a81d
cmp esi, 4
jne 0x14001a81d
cmp r12d, 4
jne 0x14001a81d
cmp r15d, 0x80000000
je 0x14001a81d
cmp dword [rsp + 0x3c], 0
setne dl
mov rcx, r14
mov r8d, r15d
mov r9d, r13d
call fcn.140035ac0
mov rdi, rax
jmp 0x14001a81d
mov rcx, rdi
call fcn.140016210
xor edi, edi
mov rcx, r14
call fcn.140016210
jmp 0x14001a829
xor edi, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14006cf60
mov rax, rdi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14001ad00
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 [0x1400c5038]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.140016610
mov rsi, rax
lea rcx, [rax + 0x18]
lea rdx, str._s__d:
mov r8, rbx
mov r9d, ebp
call fcn.140015c70
mov rcx, rdi
mov rdx, rsi
call fcn.140036480
lea rdx, str.SoftwareSimonTathamPuTTYSshHostKeys
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x14001ada0
mov rcx, r14
call fcn.14007fac0
add eax, 1
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.140016710
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14006cf60
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x14001add0
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 [0x1400c5038]
xor rax, rsp
mov qword [rsp + 0x438], rax
mov ecx, 1
call fcn.14001aeb0
cmp rax, 0xffffffffffffffff
je 0x14001ae85
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 0x14001ae7c
mov edx, dword [rsp + 0x2c]
test edx, edx
je 0x14001ae7c
lea rbx, [rsp + 0x30]
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax]
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 0x14001ae7c
mov edx, dword [rsp + 0x2c]
test edx, edx
jne 0x14001ae50
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x438]
xor rcx, rsp
call fcn.14006cf60
nop
add rsp, 0x440
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14001b190
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov esi, edx
mov rdi, rcx
mov rax, qword [0x1400c5038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 2
call fcn.14001aeb0
cmp rax, 0xffffffffffffffff
je 0x14001b1e4
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.14006cf60
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x14001b200
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 0x14001b25f
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 0x14001b29f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14001b296
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14001b296
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140034f00
lea rcx, str.Unable_to_delete__s:__s
mov rdx, rdi
mov r8, rax
call fcn.140003960
mov qword [rsi], 0xffffffffffffffff
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x1400357c0
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x1400c5038]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [0x1400c68e0], 0
je 0x1400357ef
mov rsi, qword [0x1400c68d8]
test rsi, rsi
jne 0x140035839
jmp 0x14003589a
lea rcx, str.secur32.dll
call fcn.140034960
mov rsi, rax
lea rcx, str.sspicli.dll
call fcn.140034960
test rsi, rsi
je 0x140035824
lea rdx, str.GetUserNameExA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
jmp 0x140035826
xor esi, esi
mov qword [0x1400c68d8], rsi
mov byte [0x1400c68e0], 1
test rsi, rsi
je 0x14003589a
mov dword [rsp + 0x2c], 0
lea rdi, [rsp + 0x2c]
mov ecx, 8
xor edx, edx
mov r8, rdi
call rsi
mov ecx, dword [rsp + 0x2c]
mov edx, 1
xor r8d, r8d
call fcn.140016170
mov rsi, rax
mov ecx, 8
mov rdx, rax
mov r8, rdi
call qword [0x1400c68d8]
test al, al
je 0x140035892
mov rcx, rsi
mov edx, 0x40
call fcn.14006e9e0
test rax, rax
je 0x1400358f2
mov byte [rax], 0
jmp 0x1400358f2
mov rcx, rsi
call fcn.140016210
mov dword [rsp + 0x2c], 0
lea rdx, [rsp + 0x2c]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x1400358b9
mov ecx, dword [rsp + 0x2c]
jmp 0x1400358c6
mov dword [rsp + 0x2c], 0x100
mov ecx, 0x100
mov edx, 1
xor r8d, r8d
call fcn.140016170
mov rsi, rax
lea rdx, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x1400358f2
mov rcx, rsi
call fcn.140016210
xor esi, esi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14006cf60
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x140037530
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rcx]
cmp rax, qword [rdx]
je 0x140037561
lea rcx, str.x0__nw__x1__nw
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_crypto_mpint.c
mov r8d, 0x9e
call fcn.14007b7e4
and ebx, 1
neg rbx
mov qword [rsp + 0x28], rbx
cmp qword [rdi], 0
je 0x1400375b1
xor eax, eax
nop word cs:[rax + rax]
nop
mov rcx, qword [rdi + 8]
mov rdx, qword [rsi + 8]
mov rdx, qword [rdx + rax*8]
xor rdx, qword [rcx + rax*8]
mov rcx, qword [rsp + 0x28]
and rcx, rdx
mov rdx, qword [rdi + 8]
xor qword [rdx + rax*8], rcx
mov rdx, qword [rsi + 8]
xor qword [rdx + rax*8], rcx
add rax, 1
cmp rax, qword [rdi]
jb 0x140037580
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400406f0
Capabilities:
Create pipe
Create process on windows
Create reverse shell

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x130
movaps xmmword [rsp + 0x120], xmm6
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1400c5038]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov dword [rsp + 0xd0], 0x18
mov qword [rsp + 0xd8], 0
mov dword [rsp + 0xe0], 1
lea rcx, [rsp + 0x100]
lea rdx, [rsp + 0xf8]
lea r8, [rsp + 0xd0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x140040966
lea rcx, [rsp + 0x108]
lea rdx, [rsp + 0x110]
lea r8, [rsp + 0xd0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x14004091c
lea rcx, [rsp + 0xf0]
lea rdx, [rsp + 0xe8]
lea r8, [rsp + 0xd0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x140040937
mov rcx, qword [rsp + 0x110]
mov rbx, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov edx, 1
xor r8d, r8d
call rbx
mov rcx, qword [rsp + 0x100]
mov edx, 1
xor r8d, r8d
call rbx
mov rcx, qword [rsp + 0xf0]
test rcx, rcx
je 0x1400407fd
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [rsp + 0x68], 0x68
xorps xmm6, xmm6
movups xmmword [rsp + 0x70], xmm6
mov qword [rsp + 0x80], 0
mov dword [rsp + 0xa4], 0x100
mov word [rsp + 0xaa], 0
mov qword [rsp + 0xb0], 0
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xc8], rax
mov rcx, rdi
call fcn.140020100
mov rdi, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0x8000020
mov dword [rsp + 0x20], 1
xor ecx, ecx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, rdi
call fcn.140016210
mov rcx, qword [rsp + 0x50]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rdi
mov rcx, qword [rsp + 0x58]
call rdi
mov rcx, qword [rsp + 0x108]
call rdi
mov rcx, qword [rsp + 0xf8]
call rdi
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x1400408f3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9, qword [rsp + 0xf0]
mov r8, qword [rsp + 0x100]
mov rdx, qword [rsp + 0x110]
mov byte [rsp + 0x20], 0
mov rcx, rsi
call fcn.14005eed0
xor esi, esi
jmp 0x140040985
mov rcx, qword [rsp + 0x100]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rsp + 0xf8]
jmp 0x140040964
mov rcx, qword [rsp + 0x100]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rsp + 0xf8]
call rsi
mov rcx, qword [rsp + 0x110]
call rsi
mov rcx, qword [rsp + 0x108]
call rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140034f00
lea rcx, str.Unable_to_create_pipes_for_proxy_command:__s
mov rdx, rax
call fcn.140018810
mov rsi, rax
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.14006cf60
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x120]
add rsp, 0x130
pop rbx
pop rdi
pop rsi
ret