joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d740
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
mov r15, rdx
mov r13, rcx
mov rax, qword [0x14012c040]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdx, qword [0x14012cfc0]
test rdx, rdx
jne 0x14000d829
cmp qword [0x14012cfd0], 0
je 0x14000d829
cmp byte [0x14012cfe0], 0
jne 0x14000d818
mov byte [0x14012cfe0], 1
lea rdx, [rsp + 0x50]
mov ecx, 0x106
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x14000d818
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
lea rcx, str._sputty__lu__llu.chm
xor r14d, r14d
lea rdx, [rsp + 0x50]
mov r8d, eax
xor r9d, r9d
call fcn.14003ea20
mov rbx, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
mov rcx, rax
mov edx, 0x40000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x14000d89c
mov rsi, rax
jmp 0x14000d92e
xor ebx, ebx
mov rcx, rbx
call fcn.14003f720
mov rdx, qword [0x14012cfc0]
test rdx, rdx
je 0x14000d877
test r15, r15
je 0x14000d861
lea rcx, str._s::__s.html_main
mov r8, r15
call fcn.14003ea20
mov rsi, rax
mov rcx, r13
mov rdx, rax
xor r8d, r8d
xor r9d, r9d
call qword [0x14012cfb8]
mov rcx, rsi
call fcn.14003f720
jmp 0x14000d870
mov rcx, r13
xor r8d, r8d
xor r9d, r9d
call qword [0x14012cfb8]
mov byte [0x14012cfd8], 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400b9230
nop
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x40], r13
mov edi, 1
lea r13, [rsp + 0x50]
mov r12, qword [sym.imp.KERNEL32.dll_CreateFileA]
nop word cs:[rax + rax]
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x14000d9bf
mov rcx, rbx
call fcn.14003f720
lea rcx, str._sputty__lu__llu.chm
mov rdx, r13
mov r8d, ebp
mov r9, rdi
call fcn.14003ea20
mov rbx, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
mov rcx, rax
mov edx, 0x40000000
mov r8d, 1
xor r9d, r9d
call r12
add rdi, 1
cmp rax, 0xffffffffffffffff
je 0x14000d8c0
mov rsi, rax
mov r13, qword [rsp + 0x40]
mov rbp, qword [0x14012cfd0]
lea r12, [rsp + 0x4c]
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFile]
nop word cs:[rax + rax]
nop dword [rax + rax]
mov r8d, dword [0x14012cfdc]
sub r8d, r14d
jbe 0x14000d98f
mov dword [rsp + 0x4c], 0
mov edx, r14d
add rdx, rbp
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov r9, r12
call rdi
add r14d, dword [rsp + 0x4c]
test eax, eax
jne 0x14000d950
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x14000d99f
mov qword [0x14012cfc0], rbx
mov byte [0x14012cfc8], 1
xor ebx, ebx
mov rcx, rbx
call fcn.14003f720
cmp rsi, 0xffffffffffffffff
je 0x14000d822
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000d822
mov r13, qword [rsp + 0x40]
jmp 0x14000d81a
Function at 0x14000d9d0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
cmp byte [0x14012cfd8], 1
jne 0x14000d9f0
xor ecx, ecx
xor edx, edx
mov r8d, 0x12
xor r9d, r9d
call qword [0x14012cfb8]
mov rcx, qword [0x14012cfc0]
test rcx, rcx
je 0x14000da10
cmp byte [0x14012cfc8], 1
jne 0x14000da10
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
add rsp, 0x28
ret
Function at 0x140012820
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x18
mov rax, rcx
xor edi, edi
test edx, edx
cmovs edx, edi
mov cl, byte [rsp + 0x88]
mov byte [rsp + 7], cl
test r8d, r8d
cmovns edi, r8d
mov ecx, dword [rsp + 0x80]
mov ebp, dword [rax + 0x178]
lea r8d, [rbp - 1]
cmp ebp, r9d
cmovg r8d, r9d
movsxd rbx, dword [rax + 0x174]
lea r11d, [rbx - 1]
cmp ebx, ecx
cmovg r11d, ecx
cmp edi, r11d
jg 0x140012999
mov r9d, edx
shr r9d, 1
mov r13d, r8d
shr r13d, 0x1f
add r13d, r8d
sar r13d, 1
add r13d, 1
cmp r9d, r13d
mov esi, r13d
cmovg esi, r9d
mov edi, edi
cmp rdi, rbx
jge 0x140012999
mov ebx, edx
mov r15, rbx
shr r15, 1
add esi, r15d
sub esi, r9d
add esi, 1
lea r10d, [r8 + 1]
add r11d, 1
lea rcx, [r15 + r15*4]
lea r12, [rcx*4 + 4]
mov qword [rsp + 0x10], rbx
lea rcx, [rbx + rbx*4]
lea rcx, [rcx*4 + 4]
mov qword [rsp + 8], rcx
nop word cs:[rax + rax]
nop
mov rcx, qword [rax + 0x28]
mov rcx, qword [rcx + rdi*8]
test byte [rcx], 3
je 0x140012940
cmp r9d, r13d
jg 0x140012980
mov rbp, r12
mov rcx, r15
nop dword [rax + rax]
movsxd rbx, dword [rax + 0x178]
cmp rcx, rbx
jge 0x140012980
mov rbx, qword [rax + 0x28]
mov rbx, qword [rbx + rdi*8]
mov rbx, qword [rbx + 0x18]
or dword [rbx + rbp], 0x3ffff
add rcx, 1
add rbp, 0x14
cmp rsi, rcx
jne 0x140012910
jmp 0x140012980
cmp edx, r8d
jg 0x140012980
mov rbp, qword [rsp + 8]
mov r14, qword [rsp + 0x10]
nop
movsxd rcx, dword [rax + 0x178]
cmp r14, rcx
jge 0x140012980
mov rcx, qword [rax + 0x28]
mov rcx, qword [rcx + rdi*8]
mov rcx, qword [rcx + 0x18]
or dword [rcx + rbp], 0x3ffff
add r14, 1
add rbp, 0x14
cmp r10, r14
jne 0x140012950
nop dword [rax]
add rdi, 1
cmp rdi, r11
je 0x140012999
movsxd rcx, dword [rax + 0x174]
cmp rdi, rcx
jl 0x1400128f0
cmp byte [rsp + 7], 0
je 0x1400129b8
mov rcx, rax
add rsp, 0x18
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.14000dee0
cmp byte [rax + 0x10f9], 0
je 0x1400129d2
add rsp, 0x18
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov byte [rax + 0x10f9], 1
lea rcx, [0x14001afb0]
mov rdx, rax
add rsp, 0x18
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.14002bf80
Function at 0x140021fc0
Capabilities:
Hide graphical window

Disassembly:
push rsi
sub rsp, 0x30
mov rcx, qword [0x14012cef8]
mov qword [rsp + 0x20], 0
lea r9, [fcn.14000da20]
mov edx, 0x6f
xor r8d, r8d
call qword [sym.imp.USER32.dll_CreateDialogParamA]
mov rsi, rax
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetActiveWindow]
mov rcx, rsi
add rsp, 0x30
pop rsi
jmp qword [sym.imp.USER32.dll_DestroyWindow]

Function at 0x140022c60
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0x28
mov r8, rcx
mov rcx, qword [0x14012cff8]
test rcx, rcx
jne 0x140022cb1
mov rcx, qword [0x14012cef8]
mov qword [rsp + 0x20], 0
lea r9, [0x140022cc0]
mov edx, 0x6e
call qword [sym.imp.USER32.dll_CreateDialogParamA]
mov qword [0x14012cff8], rax
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14012cff8]
add rsp, 0x28
jmp qword [sym.imp.USER32.dll_SetActiveWindow]
Function at 0x14002aac0
Capabilities:
Hide graphical window

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1e0
mov rax, qword [0x14012c040]
xor rax, rsp
mov qword [rsp + 0x1d8], rax
cmp byte [0x14012e0f0], 0
je 0x14002ace9
mov edi, r8d
mov ebx, edx
mov r14, rcx
cmp qword [0x14012e0f8], 0
jne 0x14002abea
cmp word [0x14012e100], 0
jne 0x14002ab79
mov dword [rsp + 0x80], 3
lea rax, [0x14002ad10]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 0
mov rax, qword [0x14012cef8]
mov qword [rsp + 0x98], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
lea rax, str.SizeTipClass
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_RegisterClassA]
mov word [0x14012e100], ax
mov rsi, qword [sym.imp.USER32.dll_GetSysColor]
mov ecx, 0x18
call rsi
mov dword [0x14012e104], eax
mov ecx, 0x17
call rsi
mov dword [0x14012e108], eax
lea rcx, [rsp + 0x84]
mov r8d, 0x154
xor edx, edx
call fcn.1400bab50
mov dword [rsp + 0x80], 0x158
lea r8, [rsp + 0x80]
mov ecx, 0x29
mov edx, 0x158
xor r9d, r9d
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
lea rcx, [rsp + 0x15c]
call qword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov qword [0x14012e110], rax
lea rdx, str._dx_d
lea rcx, [rsp + 0x80]
mov r8d, ebx
mov r9d, edi
call fcn.140001000
mov rcx, qword [0x14012e0f8]
test rcx, rcx
je 0x14002ac23
lea rdx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x14002ace9
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rbx, rax
lea r15, [rsp + 0x80]
mov rcx, r15
call fcn.1400cefa0
lea r9, [rsp + 0x78]
mov rcx, rbx
mov rdx, r15
mov r8d, eax
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteDC]
lea rdx, [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x6c]
cmp eax, 0x11
mov edx, 0x10
cmovl eax, edx
mov ebx, dword [rsp + 0x78]
mov esi, dword [rsp + 0x7c]
sub ecx, esi
cmp ecx, 0x11
cmovl ecx, edx
mov rdi, qword [0x14012cef8]
movzx edx, word [0x14012e100]
mov qword [rsp + 0x50], rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x58], 0
mov ecx, 0x88
mov r8, r15
mov r9d, 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x14012e0f8], rax
mov rcx, rax
mov edx, 4
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rsp + 0x1d8]
xor rcx, rsp
call fcn.1400b9230
nop
add rsp, 0x1e0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14002c150
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 [0x14012e160], 0
jne 0x14002c19d
lea rcx, [0x14002c3b0]
call fcn.140040bc0
mov qword [0x14012e160], rax
lea rcx, [0x14002c410]
call fcn.140040bc0
mov qword [0x14012e168], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14012e158], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14012e158], eax
test edi, edi
mov esi, 1
cmovne esi, edi
add esi, eax
mov ecx, 1
mov edx, 0x18
xor r8d, r8d
call fcn.14003f680
mov rdi, rax
mov qword [rax], rbx
mov qword [rax + 8], r14
mov dword [rax + 0x10], esi
mov eax, dword [0x14012e158]
mov dword [rdi + 0x14], eax
mov rcx, qword [0x14012e160]
mov rdx, rdi
call fcn.140040ca0
cmp rdi, rax
je 0x14002c1fb
mov rcx, rdi
call fcn.14003f720
jmp 0x14002c20b
mov rdx, qword [rdi + 8]
mov rcx, qword [0x14012e168]
call fcn.140040ca0
mov rcx, qword [0x14012e160]
xor edx, edx
call fcn.140041410
cmp rax, rdi
jne 0x14002c226
mov ecx, dword [rdi + 0x10]
call fcn.140042aa0
mov eax, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
cmp qword [0x14012e160], 0
jne 0x14002c296
lea rcx, [0x14002c3b0]
call fcn.140040bc0
mov qword [0x14012e160], rax
lea rcx, [0x14002c410]
call fcn.140040bc0
mov qword [0x14012e168], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14012e158], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14012e158], eax
mov rcx, qword [0x14012e160]
xor ebx, ebx
xor edx, edx
call fcn.140041410
test rax, rax
je 0x14002c33c
mov rdi, rax
jmp 0x14002c2ee
mov rcx, qword [0x14012e160]
xor edx, edx
call fcn.140041a70
mov rcx, rdi
call fcn.14003f720
mov rcx, qword [0x14012e160]
xor ebx, ebx
xor edx, edx
call fcn.140041410
mov rdi, rax
test rax, rax
je 0x14002c33c
mov rdx, qword [rdi + 8]
mov rcx, qword [0x14012e168]
xor r8d, r8d
call fcn.140041980
test rax, rax
je 0x14002c2c0
mov ecx, dword [0x14012e158]
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 0x14002c338
mov rcx, qword [0x14012e160]
xor edx, edx
call fcn.140041a70
mov edx, dword [rdi + 0x10]
mov rcx, qword [rdi + 8]
call qword [rdi]
jmp 0x14002c2ce
mov dword [rsi], ebx
mov bl, 1
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x14002fb90
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 [0x14012c040]
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.1400cefa0
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 0x14002fc30
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 0x14002fc10
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.14002fa40
test al, al
je 0x14002fc77
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov edx, 0x20
call r14
mov edx, 0x20
mov rcx, rdi
call fcn.140076910
mov rcx, r14
call fcn.140039700
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1400b9230
nop
add rsp, 0x2a8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14002fca0
Capabilities:
Get memory capacity

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rax, qword [0x14012c040]
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.14002f770
call qword [sym.imp.USER32.dll_GetCapture]
mov qword [rsp + 0x78], rax
mov ecx, 0xa
mov rdx, rsi
mov r8d, 8
call fcn.14002f770
call qword [sym.imp.USER32.dll_GetClipboardOwner]
mov qword [rsp + 0x78], rax
mov ecx, 0xb
mov rdx, rsi
mov r8d, 8
call fcn.14002f770
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.14002f770
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.14002f770
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.14002f770
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.14002f770
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.14002f770
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400b9230
nop
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400367f0
Capabilities:
Get session user name

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov edx, 0x3f
xor r8d, r8d
call fcn.14003d450
cmp byte [rax], 0
je 0x140036817
mov rcx, rax
add rsp, 0x20
pop rsi
jmp fcn.140046a00
mov rcx, rsi
mov edx, 0x40
call fcn.14003d140
test al, al
je 0x140036832
add rsp, 0x20
pop rsi
jmp fcn.140077f30
xor eax, eax
add rsp, 0x20
pop rsi
ret

Function at 0x1400372c0
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov ebp, dword [rsp + 0x70]
mov rcx, r8
mov edx, r9d
call fcn.14003d200
cmp eax, 1
je 0x14003732c
cmp eax, 2
je 0x140037335
cmp eax, 3
jne 0x14003733e
mov rcx, rbx
mov edx, ebp
call fcn.14003d390
lea rcx, str.custom:
mov rdx, rax
xor r8d, r8d
call fcn.14003e7a0
mov rbx, rax
mov rcx, rdi
mov rdx, rsi
mov r8, rax
call fcn.140038980
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14003f720
lea r8, str.implicit
jmp 0x140037345
lea r8, str.explicit
jmp 0x140037345
lea r8, str.none
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140038980

Function at 0x140038980
Capabilities:
Set registry value

Disassembly:
test rcx, rcx
je 0x14003898d
mov rcx, qword [rcx]
jmp fcn.1400430c0
ret

Function at 0x140038990
Capabilities:
Set registry value

Disassembly:
test rcx, rcx
je 0x14003899d
mov rcx, qword [rcx]
jmp fcn.140042f70
ret

Function at 0x140038a50
Capabilities:
Query or enumerate registry value

Disassembly:
test rcx, rcx
je 0x140038a5d
mov rcx, qword [rcx]
jmp fcn.140042fd0
xor eax, eax
ret

Function at 0x140038d30
Capabilities:
Set registry value

Disassembly:
test rcx, rcx
je 0x140038d41
mov r8, qword [r8 + 8]
mov rcx, qword [rcx]
jmp fcn.1400430c0
ret

Function at 0x140038d80
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14012c040]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp dword [0x14012ea90], 6
jb 0x14002a732
jne 0x14002a6e7
cmp dword [0x14012ea94], 0
je 0x14002a732
call fcn.140039d80
test eax, eax
je 0x14002a745
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400ee3e0]
lea r9, [0x1400ee3d0]
xor edx, edx
mov r8d, 1
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x14002a732
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400b9230
nop
add rsp, 0x38
ret
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400b9230
nop
add rsp, 0x38
jmp 0x14002a270
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x20], 0
lea r9, str.SoftwareSimonTathamPuTTYSessions
xor ecx, ecx
mov dl, 1
mov r8, 0xffffffff80000001
call fcn.140042ce0
test rax, rax
je 0x140038def
mov rdi, rax
call fcn.14003fd50
mov rbx, rax
mov rcx, rsi
mov rdx, rax
call fcn.140078270
mov rdx, qword [rbx]
mov rcx, rdi
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rbx
call fcn.14003fe50
mov rcx, rdi
call sub.ADVAPI32.dll_RegCloseKey
mov rcx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp 0x14002a6c0
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140039690
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x20], 0
lea r9, str.SoftwareSimonTathamPuTTYSshHostCAs
xor ecx, ecx
mov dl, 1
mov r8, 0xffffffff80000001
call fcn.140042ce0
test rax, rax
je 0x1400396e8
mov rdi, rax
call fcn.14003fd50
mov rbx, rax
mov rcx, rsi
mov rdx, rax
call fcn.140078270
mov rdx, qword [rbx]
mov rcx, rdi
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rbx
call fcn.14003fe50
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x140039700
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 [0x14012c040]
xor rax, rsp
mov qword [rsp + 0x438], rax
mov ecx, 1
call fcn.1400397e0
cmp rax, 0xffffffffffffffff
je 0x1400397b5
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 0x1400397ac
mov edx, dword [rsp + 0x2c]
test edx, edx
je 0x1400397ac
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 0x1400397ac
mov edx, dword [rsp + 0x2c]
test edx, edx
jne 0x140039780
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x438]
xor rcx, rsp
call fcn.1400b9230
nop
add rsp, 0x440
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400397e0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov ebp, ecx
mov rax, qword [0x14012c040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x20], 0
lea r9, str.SoftwareSimonTathamPuTTY
xor ecx, ecx
xor edx, edx
mov r8, 0xffffffff80000001
call fcn.140042ce0
test rax, rax
je 0x140039867
mov rbx, rax
lea rdx, str.RandSeedFile
mov rcx, rax
call fcn.140042fd0
mov rsi, rax
mov rcx, rbx
call sub.ADVAPI32.dll_RegCloseKey
test rsi, rsi
je 0x140039867
lea r8, [rsp + 0x28]
mov rcx, rsi
mov edx, ebp
call fcn.140039f80
mov ebx, eax
mov rcx, rsi
call fcn.14003f720
test bl, bl
jne 0x140039a59
cmp byte [0x14012e218], 0
je 0x140039881
mov rsi, qword [0x14012e228]
test rsi, rsi
jne 0x1400398c7
jmp 0x140039979
lea rcx, str.shell32.dll
call fcn.140042b00
mov qword [0x14012e220], rax
test rax, rax
je 0x1400398ae
lea rdx, str.SHGetFolderPathA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
jmp 0x1400398b0
xor esi, esi
mov qword [0x14012e228], rsi
mov byte [0x14012e218], 1
test rsi, rsi
je 0x140039979
lea rdi, [rsp + 0x140]
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x1c
xor r8d, r8d
xor r9d, r9d
call rsi
test eax, eax
js 0x140039922
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x140]
xor r8d, r8d
call fcn.14003e7a0
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.140039f80
mov ebx, eax
mov rcx, rsi
call fcn.14003f720
test bl, bl
jne 0x140039a59
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x1a
xor r8d, r8d
xor r9d, r9d
call qword [0x14012e228]
test eax, eax
js 0x140039979
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x140]
xor r8d, r8d
call fcn.14003e7a0
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.140039f80
mov ebx, eax
mov rcx, rsi
call fcn.14003f720
test bl, bl
jne 0x140039a59
lea rcx, str.HOMEDRIVE
mov rdi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea rdx, [rsp + 0x140]
mov r8d, 0x104
call rdi
mov esi, eax
lea rcx, str.HOMEPATH
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call rdi
test esi, esi
jne 0x1400399b9
mov byte [rsp + 0x140], 0
cmp esi, 0x103
ja 0x140039a08
cmp eax, 0x103
ja 0x140039a08
test eax, eax
je 0x140039a08
lea r8, str.PUTTY.RND
lea rcx, [rsp + 0x140]
lea rdx, [rsp + 0x30]
xor r9d, r9d
call fcn.14003e7a0
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.140039f80
mov ebx, eax
mov rcx, rsi
call fcn.14003f720
test bl, bl
jne 0x140039a59
lea rcx, [rsp + 0x140]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, 0x104
jae 0x140039a60
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x140]
xor r8d, r8d
call fcn.14003e7a0
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.140039f80
mov ebx, eax
mov rcx, rsi
call fcn.14003f720
test bl, bl
je 0x140039a60
mov rsi, qword [rsp + 0x28]
jmp 0x140039a67
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400b9230
mov rax, rsi
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
ret