joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006da0
Capabilities:
Read file via mapping

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x14012a050]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp byte [rcx], 0x26
jne 0x140006e59
mov rsi, rdx
add rcx, 1
lea rdx, [0x140103c69]
lea r8, [rsp + 0x38]
lea r9, [rsp + 0x34]
call fcn.140006e80
cmp eax, 2
jne 0x140006e59
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x140006e50
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x58], 0
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x60], rdx
mov rcx, rsi
call fcn.1400423d0
test al, al
je 0x140006e71
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test rdi, rdi
setne sil
jmp 0x140006e5b
xor esi, esi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400ba340
mov eax, esi
add rsp, 0x78
pop rdi
pop rsi
ret
lea rcx, str.Serialised_configuration_data_was_invalid
call fcn.140006000
int3

Function at 0x140007060
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
cmp ecx, 2
jne 0x140007119
mov r14d, r9d
mov ebx, r8d
mov rdi, rdx
lea eax, [rbx + 1]
movsxd rdx, eax
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.DLL_GlobalAlloc]
test rax, rax
je 0x140007119
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GlobalLock]
test rax, rax
je 0x140007119
mov rbp, rax
movsxd rbx, ebx
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call fcn.1400bb5b0
mov byte [rbp + rbx], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
test r14b, r14b
jne 0x1400070e9
mov rcx, qword [0x14012a008]
mov r8d, 1
mov edx, 0x8002
xor r9d, r9d
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [0x14012a008]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140007124
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, 1
mov rdx, rsi
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
test r14b, r14b
je 0x140007132
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_GlobalFree]
test r14b, r14b
jne 0x140007119
mov rcx, qword [0x14012a008]
mov edx, 0x8002
xor r8d, r8d
xor r9d, r9d
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.USER32.dll_SendMessageA]

Function at 0x14000c6c0
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
sub rsp, 0x130
mov rax, qword [0x14012a050]
xor rax, rsp
mov qword [rsp + 0x128], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x14000c6fe
cmp byte [rsp + 0x32], 0
js 0x14000c702
mov sil, byte [rsp + 0xc5]
shr sil, 7
jmp 0x14000c705
xor esi, esi
jmp 0x14000c705
mov sil, 1
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.1400ba340
mov eax, esi
add rsp, 0x130
pop rsi
ret
Function at 0x14000d010
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rsi
sub rsp, 0x20
mov rax, qword [0x14012c350]
test rax, rax
je 0x14000d04f
mov rsi, rcx
mov r8, qword [rax + 8]
mov r9, qword [rax + 0x10]
mov rax, qword [rdx]
mov rcx, rdx
xor edx, edx
call qword [rax]
lea rdx, [0x14000d060]
mov ecx, 0x3e8
mov r8, rsi
add rsp, 0x20
pop rsi
jmp fcn.14002cb00
nop
add rsp, 0x20
pop rsi
ret

Function at 0x14000d100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
sub rsp, 0x20
cmp byte [0x14012c368], 0
je 0x14000d114
add rsp, 0x20
pop rsi
ret
mov byte [0x14012c368], 1
lea rcx, str.hhctrl.ocx
call fcn.1400462c0
mov rsi, rax
test rax, rax
je 0x14000d176
lea rdx, str.HtmlHelpA
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14012c370], rax
test rax, rax
je 0x14000d181
cmp byte [0x14012c391], 0
jne 0x14000d1f1
mov byte [0x14012c391], 1
cmp byte [0x14012c358], 1
jne 0x14000d190
mov rdx, qword [0x14012c360]
test rdx, rdx
jne 0x14000d1b9
jmp 0x14000d1f1
mov qword [0x14012c370], 0
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov byte [0x14012c358], 1
mov edx, 0x7d0
mov r8d, 0x7d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_FindResourceA]
mov rdx, rax
mov qword [0x14012c360], rax
test rdx, rdx
je 0x14000d1f1
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [0x14012c394], eax
test eax, eax
je 0x14000d1f1
mov rdx, qword [0x14012c360]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_LoadResource]
test rax, rax
je 0x14000d1f1
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LockResource]
mov qword [0x14012c388], rax
jmp 0x14000d1f8
mov rax, qword [0x14012c388]
test rax, rax
jne 0x14000d10e
lea rdx, str.SoftwareSimonTathamPuTTY64CHMPath
mov rcx, 0xffffffff80000002
xor r8d, r8d
call fcn.1400469b0
test rax, rax
jne 0x14000d23b
lea rdx, str.SoftwareSimonTathamPuTTYCHMPath
mov rcx, 0xffffffff80000002
xor r8d, r8d
call fcn.1400469b0
test rax, rax
je 0x14000d10e
mov qword [0x14012c378], rax
mov byte [0x14012c380], 0
jmp 0x14000d10e

Function at 0x14000d250
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14012c378]
test rcx, rcx
je 0x14000d292
cmp byte [0x14012c380], 1
jne 0x14000d294
xor ecx, ecx
xor edx, edx
mov r8d, 0x12
xor r9d, r9d
call qword [0x14012c370]
mov rcx, qword [0x14012c378]
call qword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov rcx, qword [0x14012c378]
jmp 0x14000d294
xor ecx, ecx
call fcn.140043590
mov qword [0x14012c378], 0
mov byte [0x14012c380], 0
add rsp, 0x28
ret
Function at 0x14000d2d0
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 [0x14012a050]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdx, qword [0x14012c378]
test rdx, rdx
jne 0x14000d3b9
cmp qword [0x14012c388], 0
je 0x14000d3b9
cmp byte [0x14012c398], 0
jne 0x14000d3a8
mov byte [0x14012c398], 1
lea rdx, [rsp + 0x50]
mov ecx, 0x106
call qword [sym.imp.KERNEL32.DLL_GetTempPathA]
test eax, eax
je 0x14000d3a8
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.140042890
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 0x14000d42c
mov rsi, rax
jmp 0x14000d4be
xor ebx, ebx
mov rcx, rbx
call fcn.140043590
mov rdx, qword [0x14012c378]
test rdx, rdx
je 0x14000d407
test r15, r15
je 0x14000d3f1
lea rcx, str._s::__s.html_main
mov r8, r15
call fcn.140042890
mov rsi, rax
mov rcx, r13
mov rdx, rax
xor r8d, r8d
xor r9d, r9d
call qword [0x14012c370]
mov rcx, rsi
call fcn.140043590
jmp 0x14000d400
mov rcx, r13
xor r8d, r8d
xor r9d, r9d
call qword [0x14012c370]
mov byte [0x14012c390], 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400ba340
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 0x14000d54f
mov rcx, rbx
call fcn.140043590
lea rcx, str._sputty__lu__llu.chm
mov rdx, r13
mov r8d, ebp
mov r9, rdi
call fcn.140042890
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 0x14000d450
mov rsi, rax
mov r13, qword [rsp + 0x40]
mov rbp, qword [0x14012c388]
lea r12, [rsp + 0x4c]
mov rdi, qword [sym.imp.KERNEL32.DLL_WriteFile]
nop word cs:[rax + rax]
nop dword [rax + rax]
mov r8d, dword [0x14012c394]
sub r8d, r14d
jbe 0x14000d51f
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 0x14000d4e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_DeleteFileA]
jmp 0x14000d52f
mov qword [0x14012c378], rbx
mov byte [0x14012c380], 1
xor ebx, ebx
mov rcx, rbx
call fcn.140043590
cmp rsi, 0xffffffffffffffff
je 0x14000d3b2
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x14000d3b2
mov r13, qword [rsp + 0x40]
jmp 0x14000d3aa
Function at 0x14000d560
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
cmp byte [0x14012c390], 1
jne 0x14000d580
xor ecx, ecx
xor edx, edx
mov r8d, 0x12
xor r9d, r9d
call qword [0x14012c370]
mov rcx, qword [0x14012c378]
test rcx, rcx
je 0x14000d5a0
cmp byte [0x14012c380], 1
jne 0x14000d5a0
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.DLL_DeleteFileA]
nop
add rsp, 0x28
ret
Function at 0x14002cb00
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 [0x14012d520], 0
jne 0x14002cb4d
lea rcx, [0x14002cd60]
call fcn.140044a20
mov qword [0x14012d520], rax
lea rcx, [0x14002cdc0]
call fcn.140044a20
mov qword [0x14012d528], rax
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x14012d518], eax
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x14012d518], eax
test edi, edi
mov esi, 1
cmovne esi, edi
add esi, eax
mov ecx, 1
mov edx, 0x18
xor r8d, r8d
call fcn.1400434f0
mov rdi, rax
mov qword [rax], rbx
mov qword [rax + 8], r14
mov dword [rax + 0x10], esi
mov eax, dword [0x14012d518]
mov dword [rdi + 0x14], eax
mov rcx, qword [0x14012d520]
mov rdx, rdi
call fcn.140044b00
cmp rdi, rax
je 0x14002cbab
mov rcx, rdi
call fcn.140043590
jmp 0x14002cbbb
mov rdx, qword [rdi + 8]
mov rcx, qword [0x14012d528]
call fcn.140044b00
mov rcx, qword [0x14012d520]
xor edx, edx
call fcn.140045270
cmp rax, rdi
jne 0x14002cbd6
mov ecx, dword [rdi + 0x10]
call fcn.140007000
mov eax, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
cmp qword [0x14012d520], 0
jne 0x14002cc46
lea rcx, [0x14002cd60]
call fcn.140044a20
mov qword [0x14012d520], rax
lea rcx, [0x14002cdc0]
call fcn.140044a20
mov qword [0x14012d528], rax
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x14012d518], eax
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x14012d518], eax
mov rcx, qword [0x14012d520]
xor ebx, ebx
xor edx, edx
call fcn.140045270
test rax, rax
je 0x14002ccec
mov rdi, rax
jmp 0x14002cc9e
mov rcx, qword [0x14012d520]
xor edx, edx
call fcn.1400458d0
mov rcx, rdi
call fcn.140043590
mov rcx, qword [0x14012d520]
xor ebx, ebx
xor edx, edx
call fcn.140045270
mov rdi, rax
test rax, rax
je 0x14002ccec
mov rdx, qword [rdi + 8]
mov rcx, qword [0x14012d528]
xor r8d, r8d
call fcn.1400457e0
test rax, rax
je 0x14002cc70
mov ecx, dword [0x14012d518]
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 0x14002cce8
mov rcx, qword [0x14012d520]
xor edx, edx
call fcn.1400458d0
mov edx, dword [rdi + 0x10]
mov rcx, qword [rdi + 8]
call qword [rdi]
jmp 0x14002cc7e
mov dword [rsi], ebx
mov bl, 1
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x140030520
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 [0x14012a050]
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.1400cffd0
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 0x1400305c0
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 0x1400305a0
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.1400303d0
test al, al
je 0x140030607
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov edx, 0x20
call r14
mov edx, 0x20
mov rcx, rdi
call fcn.140078e50
mov rcx, r14
call fcn.14003d990
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1400ba340
nop
add rsp, 0x2a8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140030630
Capabilities:
Get memory capacity

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rax, qword [0x14012a050]
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.140030100
call qword [sym.imp.USER32.dll_GetCapture]
mov qword [rsp + 0x78], rax
mov ecx, 0xa
mov rdx, rsi
mov r8d, 8
call fcn.140030100
call qword [sym.imp.USER32.dll_GetClipboardOwner]
mov qword [rsp + 0x78], rax
mov ecx, 0xb
mov rdx, rsi
mov r8d, 8
call fcn.140030100
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.140030100
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.140030100
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.140030100
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.140030100
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.140030100
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400ba340
nop
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14003d920
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.140046460
test rax, rax
je 0x14003d978
mov rdi, rax
call fcn.140043bc0
mov rbx, rax
mov rcx, rsi
mov rdx, rax
call fcn.14007a5e0
mov rdx, qword [rbx]
mov rcx, rdi
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rbx
call fcn.140043cc0
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003d990
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 [0x14012a050]
xor rax, rsp
mov qword [rsp + 0x438], rax
mov ecx, 1
call fcn.14003da70
cmp rax, 0xffffffffffffffff
je 0x14003da45
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 0x14003da3c
mov edx, dword [rsp + 0x2c]
test edx, edx
je 0x14003da3c
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 0x14003da3c
mov edx, dword [rsp + 0x2c]
test edx, edx
jne 0x14003da10
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, qword [rsp + 0x438]
xor rcx, rsp
call fcn.1400ba340
nop
add rsp, 0x440
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14003da70
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 [0x14012a050]
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.140046460
test rax, rax
je 0x14003daf7
mov rbx, rax
lea rdx, str.RandSeedFile
mov rcx, rax
call fcn.140046750
mov rsi, rax
mov rcx, rbx
call sub.ADVAPI32.dll_RegCloseKey
test rsi, rsi
je 0x14003daf7
lea r8, [rsp + 0x28]
mov rcx, rsi
mov edx, ebp
call fcn.14003e210
mov ebx, eax
mov rcx, rsi
call fcn.140043590
test bl, bl
jne 0x14003dce9
cmp byte [0x14012d5d8], 0
je 0x14003db11
mov rsi, qword [0x14012d5e8]
test rsi, rsi
jne 0x14003db57
jmp 0x14003dc09
lea rcx, str.shell32.dll
call fcn.1400462c0
mov qword [0x14012d5e0], rax
test rax, rax
je 0x14003db3e
lea rdx, str.SHGetFolderPathA
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rsi, rax
jmp 0x14003db40
xor esi, esi
mov qword [0x14012d5e8], rsi
mov byte [0x14012d5d8], 1
test rsi, rsi
je 0x14003dc09
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 0x14003dbb2
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x140]
xor r8d, r8d
call fcn.140042610
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.14003e210
mov ebx, eax
mov rcx, rsi
call fcn.140043590
test bl, bl
jne 0x14003dce9
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x1a
xor r8d, r8d
xor r9d, r9d
call qword [0x14012d5e8]
test eax, eax
js 0x14003dc09
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x140]
xor r8d, r8d
call fcn.140042610
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.14003e210
mov ebx, eax
mov rcx, rsi
call fcn.140043590
test bl, bl
jne 0x14003dce9
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 0x14003dc49
mov byte [rsp + 0x140], 0
cmp esi, 0x103
ja 0x14003dc98
cmp eax, 0x103
ja 0x14003dc98
test eax, eax
je 0x14003dc98
lea r8, str.PUTTY.RND
lea rcx, [rsp + 0x140]
lea rdx, [rsp + 0x30]
xor r9d, r9d
call fcn.140042610
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.14003e210
mov ebx, eax
mov rcx, rsi
call fcn.140043590
test bl, bl
jne 0x14003dce9
lea rcx, [rsp + 0x140]
mov edx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
cmp eax, 0x104
jae 0x14003dcf0
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x140]
xor r8d, r8d
call fcn.140042610
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.14003e210
mov ebx, eax
mov rcx, rsi
call fcn.140043590
test bl, bl
je 0x14003dcf0
mov rsi, qword [rsp + 0x28]
jmp 0x14003dcf7
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400ba340
mov rax, rsi
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x14003dd20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov esi, edx
mov rdi, rcx
mov rax, qword [0x14012a050]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 2
call fcn.14003da70
cmp rax, 0xffffffffffffffff
je 0x14003dd74
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.1400ba340
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003e090
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x28
xor ecx, ecx
call fcn.14003da70
call fcn.14002aa80
mov qword [rsp + 0x20], 0
lea r9, str.SoftwareSimonTathamPuTTY
xor ecx, ecx
mov dl, 1
mov r8, 0xffffffff80000001
call fcn.140046460
test rax, rax
je 0x14003e0da
mov rsi, rax
mov rcx, rax
call fcn.14003e190
mov rcx, rsi
call sub.ADVAPI32.dll_RegCloseKey
mov qword [rsp + 0x20], 0
lea r9, str.SoftwareSimonTatham
xor ecx, ecx
mov dl, 1
mov r8, 0xffffffff80000001
call fcn.140046460
test rax, rax
je 0x14003e17e
mov rsi, rax
lea rdx, [0x14010dad3]
mov rcx, rax
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rsi
xor edx, edx
call fcn.1400465c0
mov rdi, rax
mov rcx, rsi
call sub.ADVAPI32.dll_RegCloseKey
test rdi, rdi
je 0x14003e139
mov rcx, rdi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140043590
mov qword [rsp + 0x20], 0
lea r9, str.Software
xor ecx, ecx
mov dl, 1
mov r8, 0xffffffff80000001
call fcn.140046460
test rax, rax
je 0x14003e17e
mov rsi, rax
lea rdx, [0x140108da8]
mov rcx, rax
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp sub.ADVAPI32.dll_RegCloseKey
nop
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x14003e190
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
xor edx, edx
call fcn.1400465c0
test rax, rax
je 0x14003e207
mov rdi, rax
jmp 0x14003e1d5
mov rcx, rsi
mov rdx, rdi
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rdi
call fcn.140043590
mov rcx, rsi
xor edx, edx
call fcn.1400465c0
mov rdi, rax
test rax, rax
je 0x14003e207
mov qword [rsp + 0x20], 0
xor ecx, ecx
mov dl, 1
mov r8, rsi
mov r9, rdi
call fcn.140046460
test rax, rax
je 0x14003e1b0
mov rbx, rax
mov rcx, rax
call fcn.14003e190
mov rcx, rbx
call sub.ADVAPI32.dll_RegCloseKey
jmp 0x14003e1b0
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003e210
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 0x14003e26f
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 0x14003e2af
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x14003e2a6
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x14003e2a6
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140047ad0
lea rcx, str.Unable_to_delete__s:__s
mov rdx, rdi
mov r8, rax
call fcn.1400071e0
mov qword [rsi], 0xffffffffffffffff
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x140046dd0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp byte [0x14012ddb0], 1
jne 0x140046de8
mov al, byte [0x14012ddb1]
jmp 0x140046f6e
mov byte [0x14012ddb0], 1
lea rcx, str.advapi32.dll
call fcn.1400462c0
mov qword [0x14012ddb8], rax
test rax, rax
je 0x140046f66
lea rdx, str.GetSecurityInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14012ddc0], rax
test rax, rax
je 0x140046f66
mov rcx, qword [0x14012ddb8]
test rcx, rcx
je 0x140046f1f
lea rdx, str.SetSecurityInfo
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14012ddc8], rax
test rax, rax
je 0x140046f66
mov rcx, qword [0x14012ddb8]
test rcx, rcx
je 0x140046f2e
lea rdx, str.OpenProcessToken
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14012ddd0], rax
test rax, rax
je 0x140046f66
mov rcx, qword [0x14012ddb8]
test rcx, rcx
je 0x140046f3d
lea rdx, str.GetTokenInformation
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14012ddd8], rax
test rax, rax
je 0x140046f66
mov rcx, qword [0x14012ddb8]
test rcx, rcx
je 0x140046f4c
lea rdx, [0x140107046]
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14012dde0], rax
test rax, rax
je 0x140046f66
mov rcx, qword [0x14012ddb8]
test rcx, rcx
je 0x140046f5b
lea rdx, [0x140107376]
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14012dde8], rax
test rax, rax
je 0x140046f66
mov rcx, qword [0x14012ddb8]
test rcx, rcx
je 0x140046f73
lea rdx, str.SetEntriesInAclA
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
jmp 0x140046f75
mov qword [0x14012ddc8], 0
xor eax, eax
jmp 0x140046f68
mov qword [0x14012ddd0], 0
xor eax, eax
jmp 0x140046f68
mov qword [0x14012ddd8], 0
xor eax, eax
jmp 0x140046f68
mov qword [0x14012dde0], 0
xor eax, eax
jmp 0x140046f68
mov qword [0x14012dde8], 0
xor eax, eax
mov byte [0x14012ddb1], al
add rsp, 0x28
ret
xor eax, eax
mov qword [0x14012ddf0], rax
test rax, rax
setne al
jmp 0x140046f68