joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034ea4
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140084ac0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rax, qword [rcx + 0x20]
call qword [rax]
mov edx, 0x38
mov rdi, rax
lea ecx, [rdx - 0x37]
call fcn.140039714
mov rbx, rax
and qword [rax], 0
mov qword [rax + 8], rdi
cmp dword [rdi], 1
jne 0x140034f76
xor eax, eax
mov byte [rbp - 0x30], 0
mov qword [rbp - 0x2f], rax
lea rsi, [rbp - 0x30]
mov qword [rbp - 0x27], rax
xor edi, edi
mov qword [rbp - 0x1f], rax
mov dword [rbp - 0x17], eax
mov word [rbp - 0x13], ax
mov byte [rbp - 0x11], al
call fcn.14001be54
mov byte [rsi], al
inc edi
inc rsi
cmp edi, 0x20
jb 0x140034f15
mov al, byte [rbp - 0x11]
lea rcx, [rbp - 0x30]
and byte [rbp - 0x30], 0xf8
and al, 0x3f
or al, 0x40
mov edx, 0x20
mov byte [rbp - 0x11], al
call fcn.14002b884
mov qword [rbx + 0x30], rax
xor ecx, ecx
movsxd rax, ecx
inc ecx
mov byte [rbp + rax - 0x30], 0
cmp ecx, 0x20
jb 0x140034f48
mov rdx, qword [rbx + 0x30]
test rdx, rdx
jne 0x140034f6c
mov rcx, rbx
call fcn.140039700
xor eax, eax
jmp 0x140034fcf
mov rcx, qword [rbx + 8]
add rcx, 0x38
jmp 0x140034f9a
mov rdx, qword [rdi + 0x38]
mov rcx, qword [str._C_b_]
call fcn.14002bbe4
mov qword [rbx + 0x30], rax
test rax, rax
je 0x140034f60
mov rcx, qword [rbx + 8]
mov rdx, rax
add rcx, 0x40
call fcn.140034460
mov rcx, rax
test rax, rax
jne 0x140034fb2
mov rcx, qword [rbx + 0x30]
call fcn.14002c000
jmp 0x140034f60
mov rax, qword [rax + 8]
mov qword [rbx + 0x10], rax
mov rax, qword [rcx + 0x10]
and qword [rbx + 0x20], 0
mov qword [rbx + 0x18], rax
call fcn.140039700
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400479e0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x140035258
Capabilities:
Get memory capacity

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x140084ac0]
xor rax, rsp
mov qword [rbp + 0x47], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, 8
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x29], rax
call fcn.14001bd44
call qword [sym.imp.USER32.dll_GetCapture]
mov edx, 8
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x29], rax
call fcn.14001bd44
call qword [sym.imp.USER32.dll_GetClipboardOwner]
mov edx, 8
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x29], rax
call fcn.14001bd44
mov ecx, 0x1cbf
call qword [sym.imp.USER32.dll_GetQueueStatus]
mov edx, 4
lea rcx, [rbp - 0x21]
mov dword [rbp - 0x21], eax
call fcn.14001bd44
lea rcx, [rbp - 0x19]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov edx, 8
lea rcx, [rbp - 0x19]
call fcn.14001bd44
lea rcx, [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, 0x38
lea rcx, [rbp - 0x11]
call fcn.14001bd44
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rbp + 0x37]
lea rax, [rbp + 0x3f]
lea r8, [rbp + 0x2f]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x27]
call qword [sym.imp.KERNEL32.dll_GetThreadTimes]
mov edx, 0x20
lea rcx, [rbp + 0x27]
call fcn.14001bd44
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r9, [rbp + 0x37]
lea rax, [rbp + 0x3f]
lea r8, [rbp + 0x2f]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x27]
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov edx, 0x20
lea rcx, [rbp + 0x27]
call fcn.14001bd44
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400479e0
add rsp, 0xb0
pop rbp
ret
Function at 0x140035560
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140085f08], 0
jne 0x140035697
mov ebx, 1
lea rcx, str.advapi32.dll
mov dword [0x140085f08], ebx
call fcn.140044618
mov qword [0x140085f10], rax
test rax, rax
je 0x140035693
lea rdx, str.GetSecurityInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140087b00], rax
test rax, rax
je 0x140035693
mov rcx, qword [0x140085f10]
test rcx, rcx
je 0x1400355dc
lea rdx, str.OpenProcessToken
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140085f10]
jmp 0x1400355de
xor eax, eax
mov qword [0x140087b20], rax
test rax, rax
je 0x140035693
test rcx, rcx
je 0x140035609
lea rdx, str.GetTokenInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140085f10]
jmp 0x14003560b
xor eax, eax
mov qword [0x140087b18], rax
test rax, rax
je 0x140035693
test rcx, rcx
je 0x140035632
lea rdx, [0x1400739b0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140085f10]
jmp 0x140035634
xor eax, eax
mov qword [0x140087b10], rax
test rax, rax
je 0x140035693
test rcx, rcx
je 0x14003565b
lea rdx, [0x1400739d0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140085f10]
jmp 0x14003565d
xor eax, eax
mov qword [0x140087b08], rax
test rax, rax
je 0x140035693
test rcx, rcx
je 0x14003567d
lea rdx, str.SetEntriesInAclA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x14003567f
xor eax, eax
mov qword [0x140087af8], rax
test rax, rax
je 0x140035693
mov dword [0x140085f0c], ebx
jmp 0x14003569d
xor ebx, ebx
jmp 0x14003568b
mov ebx, dword [0x140085f0c]
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140036a10
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov ebx, edx
mov rsi, rcx
mov edi, 0x18
lea rcx, [rsp + 0x40]
mov r8d, edi
xor edx, edx
call fcn.140048db0
mov rax, qword [rsi + 8]
mov r9d, 0xff
mov rcx, qword [rsi + 0x18]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov eax, 0x1000
mov dword [rsp + 0x40], edi
xor edi, edi
mov dword [rsp + 0x30], edi
neg ebx
mov dword [rsp + 0x28], eax
sbb edx, edx
mov dword [rsp + 0x50], edi
and edx, 0x80000
mov dword [rsp + 0x20], eax
add edx, 0x40000003
lea r8d, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rbx, qword [rsp + 0x70]
cmp rax, 0xffffffffffffffff
mov qword [rsi + 0x20], rax
mov rsi, qword [rsp + 0x78]
setne dil
mov eax, edi
add rsp, 0x60
pop rdi
ret

Function at 0x140036ac4
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, edx
mov rbp, rcx
test ebx, ebx
je 0x140036ae5
xor ebx, ebx
jmp 0x140036b15
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140036b15
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x3e5
je 0x140036b9a
test eax, eax
je 0x140036b15
cmp eax, 0x217
jne 0x140036b50
mov rcx, qword [rbp + 0x50]
lea rdx, [0x140036aa8]
mov rdi, qword [rbp + 0x20]
mov r8, rdi
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
je 0x140036b3a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, rbp
call fcn.140036a10
test eax, eax
jne 0x140036add
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, esi
call fcn.1400446e4
mov rdx, rax
lea rcx, str.Error_while_listening_to_named_pipe:__s
call fcn.140039150
mov rcx, qword [rbp + 0x50]
mov rdi, rax
mov rbx, qword [rcx]
mov rcx, qword [rbp + 0x18]
call fcn.140040b1c
mov rcx, qword [rbp + 0x50]
xor r9d, r9d
mov r8, rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
lea edx, [r9 + 1]
call qword [rbx]
mov rcx, rdi
call fcn.140039700
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140036cc4
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rdx
mov rbx, rcx
xor edi, edi
mov ebp, 0x40000000
jmp 0x140036d04
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140036d69
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x140036d53
mov rcx, rbx
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140036ce5
call fcn.140035414
mov rbp, rax
mov rcx, rsi
test rax, rax
jne 0x140036da9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Unable_to_get_user_SID
call fcn.140039150
jmp 0x140036d88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400446e4
lea rcx, str.Error_waiting_for_named_pipe__s:__s
jmp 0x140036d7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400446e4
lea rcx, str.Unable_to_open_named_pipe__s:__s
mov rdx, rbx
mov r8, rax
call fcn.140039150
mov rdx, r14
mov rcx, rax
mov rdi, rax
call fcn.140037208
mov rcx, rdi
mov rbx, rax
call fcn.140039700
mov rax, rbx
jmp 0x140036e9c
mov edx, 6
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x78]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea r8d, [rdx - 5]
mov qword [rsp + 0x20], rdi
call qword [0x140087b00]
test eax, eax
je 0x140036e25
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400446e4
mov rdx, rax
lea rcx, str.Unable_to_get_named_pipe_security_information:__s
call fcn.140039150
mov rdx, r14
mov rcx, rax
mov rbx, rax
call fcn.140037208
mov rcx, rbx
mov rdi, rax
call fcn.140039700
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call fcn.140039700
mov rax, rdi
jmp 0x140036e9c
mov rcx, qword [rsp + 0x78]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140036e75
mov rdx, rbx
lea rcx, str.Owner_of_named_pipe__s_is_not_us
call fcn.140039150
mov rdx, r14
mov rcx, rax
mov rbx, rax
call fcn.140037208
mov rcx, rbx
mov rdi, rax
call fcn.140039700
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140036e18
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call fcn.140039700
mov r9d, 1
mov r8, r14
mov rdx, rsi
mov rcx, rsi
call fcn.140037124
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400385d4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 8], 0
mov rsi, rdx
movsxd rbx, r8d
mov rdi, rcx
jne 0x1400385f7
call fcn.140038220
mov edx, 1
cmp dword [rdi + 8], edx
jne 0x140038612
lea rcx, [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call fcn.140038d5c
jmp 0x14003864a
cmp dword [rdi + 8], 2
jne 0x14003864a
mov r9, qword [rdi]
mov r8, rbx
mov rcx, rsi
call fcn.14005337c
cmp rax, rbx
jae 0x14003864a
mov rcx, rdi
call fcn.1400381dc
mov rcx, qword [rdi + 0x30]
lea rdx, str.Disabled_writing_session_log_due_to_error_while_writing
mov dword [rdi + 8], 3
call fcn.140003124
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140038bd0
Capabilities:
Encode data using base64

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140084ac0]
xor rax, rsp
mov qword [rsp + 0x10], rax
xor r8d, r8d
mov r10, rdx
mov r9d, r8d
or r11d, 0xffffffff
mov rdx, rcx
mov cl, byte [r9 + rdx]
lea eax, [rcx - 0x41]
cmp al, 0x19
ja 0x140038c06
movsx eax, cl
sub eax, 0x41
jmp 0x140038c48
lea eax, [rcx - 0x61]
cmp al, 0x19
ja 0x140038c15
movsx eax, cl
sub eax, 0x47
jmp 0x140038c48
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140038c24
movsx eax, cl
add eax, 4
jmp 0x140038c48
cmp cl, 0x2b
jne 0x140038c30
mov eax, 0x3e
jmp 0x140038c48
cmp cl, 0x2f
jne 0x140038c3c
mov eax, 0x3f
jmp 0x140038c48
cmp cl, 0x3d
jne 0x140038cc6
mov eax, r11d
mov dword [rsp + r9*4], eax
inc r9
cmp r9, 4
jl 0x140038bf3
mov edx, dword [rsp]
cmp edx, r11d
je 0x140038cc6
cmp dword [rsp + 4], r11d
je 0x140038cc6
mov ecx, dword [rsp + 8]
mov eax, dword [rsp + 0xc]
cmp ecx, r11d
jne 0x140038c7e
cmp eax, r11d
jne 0x140038cc6
mov r8d, 1
jmp 0x140038c89
cmp eax, r11d
setne r8b
add r8d, 2
shl edx, 6
and eax, 0x3f
or edx, dword [rsp + 4]
and ecx, 0x3f
shl edx, 6
or edx, ecx
shl edx, 6
or edx, eax
mov eax, edx
shr eax, 0x10
mov byte [r10], al
cmp r8d, 1
jbe 0x140038cb7
mov ecx, edx
shr ecx, 8
mov byte [r10 + 1], cl
cmp r8d, 2
jbe 0x140038cc1
mov byte [r10 + 2], dl
mov eax, r8d
jmp 0x140038cc8
xor eax, eax
mov rcx, qword [rsp + 0x10]
xor rcx, rsp
call fcn.1400479e0
add rsp, 0x28
ret

Function at 0x140039838
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
mov r9, rcx
test r8, r8
je 0x14003985d
sub rdx, rcx
movzx ecx, byte [rdx + r9]
movzx eax, byte [r9]
inc r9
xor ecx, eax
or r10d, ecx
sub r8, 1
jne 0x140039846
mov eax, 0x100
sub eax, r10d
shr eax, 8
ret

Function at 0x140039b00
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x20
mov edx, 0x32
mov rbx, rcx
call fcn.14003e760
cmp byte [rax], 0
je 0x140039b25
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.140039178
mov edx, 0x33
mov rcx, rbx
call fcn.14003e718
test eax, eax
je 0x140039b40
add rsp, 0x20
pop rbx
jmp fcn.140044508
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140039c2c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
mov rcx, rbx
mov edx, r8d
call fcn.1400443b4
mov r8d, eax
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14003f2b0
Function at 0x14003ec6c
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r14
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140084ac0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov ebx, ecx
mov r14d, 0x212
mov r8d, r14d
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.140048db0
lea r8, [rsp + 0x40]
mov dword [rsp + 0x38], r14d
lea rdx, str.SoftwareSimonTathamPuTTY
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14003ed3f
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.RandSeedFile
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14003ed09
cmp dword [rsp + 0x3c], 1
je 0x14003ed0e
mov byte [rsp + 0x50], 0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [rsp + 0x50], 0
je 0x14003ed3f
lea r8, [rsp + 0x30]
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14003f480
test eax, eax
je 0x14003ed3f
mov rax, qword [rsp + 0x30]
jmp 0x14003eec2
cmp dword [0x140085fc8], 0
jne 0x14003ed83
lea rcx, str.shell32.dll
call fcn.140044618
mov qword [0x140085fd0], rax
test rax, rax
je 0x14003ed70
lea rdx, str.SHGetFolderPathA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140085fd8], rax
mov dword [0x140085fc8], 1
jmp 0x14003ed8a
mov rax, qword [0x140085fd8]
test rax, rax
je 0x14003ee23
xor r9d, r9d
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x1c]
call rax
test eax, eax
js 0x14003edd9
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x50]
call fcn.14004d2b0
lea r8, [rsp + 0x30]
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14003f480
test eax, eax
jne 0x14003ed35
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [0x140085fd8]
test eax, eax
js 0x14003ee23
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x50]
call fcn.14004d2b0
lea r8, [rsp + 0x30]
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14003f480
test eax, eax
jne 0x14003ed35
mov r8d, r14d
lea rdx, [rsp + 0x50]
lea rcx, str.HOMEDRIVE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov r8d, r14d
lea rdx, [rsp + 0x50]
sub r8d, eax
lea rcx, str.HOMEPATH
cdqe
add rdx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x14003ee83
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x50]
call fcn.14004d2b0
lea r8, [rsp + 0x30]
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14003f480
test eax, eax
jne 0x14003ed35
mov edx, r14d
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x50]
call fcn.14004d2b0
lea r8, [rsp + 0x30]
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14003f480
or rcx, 0xffffffffffffffff
test eax, eax
cmovne rcx, qword [rsp + 0x30]
mov rax, rcx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400479e0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14003f0c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x140084ac0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rcx
mov ecx, 1
call fcn.14003ec6c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003f132
jmp 0x14003f106
mov edx, dword [rsp + 0x30]
test edx, edx
je 0x14003f129
lea rcx, [rsp + 0x40]
call rdi
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14003f0f7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400479e0
mov rbx, qword [rsp + 0x468]
add rsp, 0x450
pop rdi
ret

Function at 0x14003f2b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
mov dword [rsp + 0x50], 4
mov ebx, r8d
test rcx, rcx
je 0x14003f2fb
lea rax, [r11 + 8]
xor r8d, r8d
mov qword [r11 - 0x20], rax
lea r9, [r11 + 0x20]
lea rax, [r11 - 0x18]
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14003f2fb
cmp dword [rsp + 0x50], 4
jne 0x14003f2fb
cmp dword [rsp + 0x68], 4
mov eax, dword [rsp + 0x30]
je 0x14003f2fd
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x14003f304
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x14003f398
lea rax, [r11 + 0x18]
xor r8d, r8d
mov qword [r11 - 0x10], rax
lea r9, [r11 + 8]
and qword [r11 - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14003f398
cmp dword [rsp + 0x40], 1
jne 0x14003f398
mov ecx, dword [rsp + 0x50]
lea edx, [rax + 1]
inc ecx
call fcn.140039714
mov rbx, rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14003f390
cmp dword [rsp + 0x40], 1
jne 0x14003f390
mov eax, dword [rsp + 0x50]
mov byte [rax + rbx], 0
mov rax, rbx
jmp 0x14003f39a
mov rcx, rbx
call fcn.140039700
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14003f3ac
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov r14, r9
mov rdi, r8
mov esi, edx
mov rbp, rcx
call fcn.14004bdc0
mov rcx, rdi
mov rbx, rax
call fcn.14004bdc0
mov edx, 1
lea r10, [rax + 5]
add r10, rbx
lea rcx, [r10 + r10*2]
call fcn.140039714
mov r9, rdi
mov r8d, esi
mov rdx, rbp
mov rcx, rax
mov rbx, rax
call fcn.14003ef10
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
lea rdx, str.SoftwareSimonTathamPuTTYSshHostKeys
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x14003f45b
mov rcx, r14
call fcn.14004bdc0
mov rcx, qword [rsp + 0x30]
inc eax
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.140039700
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14003f480
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rsi, r8
mov r10d, edx
mov rdi, rcx
test edx, edx
jne 0x14003f4da
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14003f4d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14003f4d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400446e4
mov r8, rax
lea rcx, str.Unable_to_delete__s:__s
mov rdx, rdi
call fcn.1400024fc
or qword [rsi], 0xffffffffffffffff
xor eax, eax
jmp 0x14003f535
cmp r10d, 2
mov qword [rsp + 0x30], rbx
mov ecx, ebx
mov eax, 0x80
setne cl
mov r9d, ebx
cmove r9d, eax
add ecx, 2
lea eax, [rdx - 2]
mov dword [rsp + 0x28], r9d
neg eax
mov dword [rsp + 0x20], ecx
mov edx, 0x80000000
mov eax, 0x40000000
sbb r8d, r8d
mov rcx, rdi
and r8d, 3
cmp r10d, 2
cmove edx, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov qword [rsi], rax
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14003f814
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov edi, edx
mov ecx, 2
call fcn.14003ec6c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003f85e
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140042124
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov edx, 0x1050
mov ecx, 1
mov ebp, r9d
mov rsi, r8
call fcn.140039714
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov r14, rax
and dword [rax], 0
mov qword [rax + 8], rbx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [r14 + 0x10], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
and dword [r14 + 0x28], 0
and dword [r14 + 0x20], 0
and dword [r14 + 0x24], 0
mov qword [r14 + 0x18], rax
mov rax, qword [0x140086758]
mov qword [r14 + 0x1048], rdi
mov qword [r14 + 0x30], rsi
mov dword [r14 + 0x38], ebp
test rax, rax
jne 0x1400421c6
lea rcx, [0x140041e94]
call fcn.14003c6a8
mov qword [0x140086758], rax
mov rdx, r14
mov rcx, rax
call fcn.14003b858
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [r14 + 8]
and dword [rsp + 0x20], 0
lea r8, [0x14004221c]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x50]
mov rax, r14
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov dword [r14 + 0x2c], 1
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x14004239c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rsi, rdx
mov rbx, rcx
mov r15d, 1
mov edx, 0x1050
mov ecx, r15d
mov ebp, r9d
mov rdi, r8
call fcn.140039714
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov r14, rax
mov dword [rax], r15d
mov qword [rax + 8], rbx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [r14 + 0x10], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor ebx, ebx
mov qword [r14 + 0x30], rdi
lea rcx, [r14 + 0x58]
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rbx
mov qword [r14 + 0x20], rbx
call fcn.140038f6c
mov rax, qword [0x140086758]
mov dword [r14 + 0x70], ebx
mov qword [r14 + 0x78], rsi
mov dword [r14 + 0x38], ebp
test rax, rax
jne 0x140042447
lea rcx, [0x140041e94]
call fcn.14003c6a8
mov qword [0x140086758], rax
mov rdx, r14
mov rcx, rax
call fcn.14003b858
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [r14 + 8]
lea r8, [0x140042494]
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x50]
mov rax, r14
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret