joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d010
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rsi
sub rsp, 0x20
mov rax, qword [0x14012b350]
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.14002c540
nop
add rsp, 0x20
pop rsi
ret

Function at 0x14000d100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
sub rsp, 0x20
cmp byte [0x14012b368], 0
je 0x14000d114
add rsp, 0x20
pop rsi
ret
mov byte [0x14012b368], 1
lea rcx, str.hhctrl.ocx
call fcn.140045c80
mov rsi, rax
test rax, rax
je 0x14000d176
lea rdx, str.HtmlHelpA
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14012b370], rax
test rax, rax
je 0x14000d181
cmp byte [0x14012b391], 0
jne 0x14000d1f1
mov byte [0x14012b391], 1
cmp byte [0x14012b358], 1
jne 0x14000d190
mov rdx, qword [0x14012b360]
test rdx, rdx
jne 0x14000d1b9
jmp 0x14000d1f1
mov qword [0x14012b370], 0
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov byte [0x14012b358], 1
mov edx, 0x7d0
mov r8d, 0x7d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_FindResourceA]
mov rdx, rax
mov qword [0x14012b360], rax
test rdx, rdx
je 0x14000d1f1
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [0x14012b394], eax
test eax, eax
je 0x14000d1f1
mov rdx, qword [0x14012b360]
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 [0x14012b388], rax
jmp 0x14000d1f8
mov rax, qword [0x14012b388]
test rax, rax
jne 0x14000d10e
lea rdx, str.SoftwareSimonTathamPuTTY64CHMPath
mov rcx, 0xffffffff80000002
xor r8d, r8d
call fcn.140046360
test rax, rax
jne 0x14000d23b
lea rdx, str.SoftwareSimonTathamPuTTYCHMPath
mov rcx, 0xffffffff80000002
xor r8d, r8d
call fcn.140046360
test rax, rax
je 0x14000d10e
mov qword [0x14012b378], rax
mov byte [0x14012b380], 0
jmp 0x14000d10e

Function at 0x14000d250
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14012b378]
test rcx, rcx
je 0x14000d292
cmp byte [0x14012b380], 1
jne 0x14000d294
xor ecx, ecx
xor edx, edx
mov r8d, 0x12
xor r9d, r9d
call qword [0x14012b370]
mov rcx, qword [0x14012b378]
call qword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov rcx, qword [0x14012b378]
jmp 0x14000d294
xor ecx, ecx
call fcn.140042f50
mov qword [0x14012b378], 0
mov byte [0x14012b380], 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 [0x140129050]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdx, qword [0x14012b378]
test rdx, rdx
jne 0x14000d3b9
cmp qword [0x14012b388], 0
je 0x14000d3b9
cmp byte [0x14012b398], 0
jne 0x14000d3a8
mov byte [0x14012b398], 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.140042250
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.140042f50
mov rdx, qword [0x14012b378]
test rdx, rdx
je 0x14000d407
test r15, r15
je 0x14000d3f1
lea rcx, str._s::__s.html_main
mov r8, r15
call fcn.140042250
mov rsi, rax
mov rcx, r13
mov rdx, rax
xor r8d, r8d
xor r9d, r9d
call qword [0x14012b370]
mov rcx, rsi
call fcn.140042f50
jmp 0x14000d400
mov rcx, r13
xor r8d, r8d
xor r9d, r9d
call qword [0x14012b370]
mov byte [0x14012b390], 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400b8cc0
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.140042f50
lea rcx, str._sputty__lu__llu.chm
mov rdx, r13
mov r8d, ebp
mov r9, rdi
call fcn.140042250
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 [0x14012b388]
lea r12, [rsp + 0x4c]
mov rdi, qword [sym.imp.KERNEL32.DLL_WriteFile]
nop word cs:[rax + rax]
nop dword [rax + rax]
mov r8d, dword [0x14012b394]
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 [0x14012b378], rbx
mov byte [0x14012b380], 1
xor ebx, ebx
mov rcx, rbx
call fcn.140042f50
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 [0x14012b390], 1
jne 0x14000d580
xor ecx, ecx
xor edx, edx
mov r8d, 0x12
xor r9d, r9d
call qword [0x14012b370]
mov rcx, qword [0x14012b378]
test rcx, rcx
je 0x14000d5a0
cmp byte [0x14012b380], 1
jne 0x14000d5a0
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.DLL_DeleteFileA]
nop
add rsp, 0x28
ret
Function at 0x14002c540
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 [0x14012c520], 0
jne 0x14002c58d
lea rcx, [0x14002c7a0]
call fcn.1400443e0
mov qword [0x14012c520], rax
lea rcx, [0x14002c800]
call fcn.1400443e0
mov qword [0x14012c528], rax
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x14012c518], eax
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x14012c518], eax
test edi, edi
mov esi, 1
cmovne esi, edi
add esi, eax
mov ecx, 1
mov edx, 0x18
xor r8d, r8d
call fcn.140042eb0
mov rdi, rax
mov qword [rax], rbx
mov qword [rax + 8], r14
mov dword [rax + 0x10], esi
mov eax, dword [0x14012c518]
mov dword [rdi + 0x14], eax
mov rcx, qword [0x14012c520]
mov rdx, rdi
call fcn.1400444c0
cmp rdi, rax
je 0x14002c5eb
mov rcx, rdi
call fcn.140042f50
jmp 0x14002c5fb
mov rdx, qword [rdi + 8]
mov rcx, qword [0x14012c528]
call fcn.1400444c0
mov rcx, qword [0x14012c520]
xor edx, edx
call fcn.140044c30
cmp rax, rdi
jne 0x14002c616
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 0x14002c640
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
cmp qword [0x14012c520], 0
jne 0x14002c686
lea rcx, [0x14002c7a0]
call fcn.1400443e0
mov qword [0x14012c520], rax
lea rcx, [0x14002c800]
call fcn.1400443e0
mov qword [0x14012c528], rax
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x14012c518], eax
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x14012c518], eax
mov rcx, qword [0x14012c520]
xor ebx, ebx
xor edx, edx
call fcn.140044c30
test rax, rax
je 0x14002c72c
mov rdi, rax
jmp 0x14002c6de
mov rcx, qword [0x14012c520]
xor edx, edx
call fcn.140045290
mov rcx, rdi
call fcn.140042f50
mov rcx, qword [0x14012c520]
xor ebx, ebx
xor edx, edx
call fcn.140044c30
mov rdi, rax
test rax, rax
je 0x14002c72c
mov rdx, qword [rdi + 8]
mov rcx, qword [0x14012c528]
xor r8d, r8d
call fcn.1400451a0
test rax, rax
je 0x14002c6b0
mov ecx, dword [0x14012c518]
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 0x14002c728
mov rcx, qword [0x14012c520]
xor edx, edx
call fcn.140045290
mov edx, dword [rdi + 0x10]
mov rcx, qword [rdi + 8]
call qword [rdi]
jmp 0x14002c6be
mov dword [rsi], ebx
mov bl, 1
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x14002ff60
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 [0x140129050]
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.1400ce950
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 0x140030000
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 0x14002ffe0
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.14002fe10
test al, al
je 0x140030047
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov edx, 0x20
call r14
mov edx, 0x20
mov rcx, rdi
call fcn.1400778a0
mov rcx, r14
call fcn.14003d390
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1400b8cc0
nop
add rsp, 0x2a8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140030070
Capabilities:
Get memory capacity

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rax, qword [0x140129050]
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.14002fb40
call qword [sym.imp.USER32.dll_GetCapture]
mov qword [rsp + 0x78], rax
mov ecx, 0xa
mov rdx, rsi
mov r8d, 8
call fcn.14002fb40
call qword [sym.imp.USER32.dll_GetClipboardOwner]
mov qword [rsp + 0x78], rax
mov ecx, 0xb
mov rdx, rsi
mov r8d, 8
call fcn.14002fb40
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.14002fb40
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.14002fb40
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.14002fb40
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.14002fb40
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.14002fb40
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400b8cc0
nop
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14003d330
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
lea r8, str.SoftwareSimonTathamPuTTYSshHostCAs
xor ecx, ecx
mov rdx, 0xffffffff80000001
xor r9d, r9d
call fcn.140045e20
test rax, rax
je 0x14003d380
mov rdi, rax
call fcn.140043580
mov rbx, rax
mov rcx, rsi
mov rdx, rax
call fcn.140079030
mov rdx, qword [rbx]
mov rcx, rdi
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rbx
call fcn.140043680
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003d390
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 [0x140129050]
xor rax, rsp
mov qword [rsp + 0x438], rax
mov ecx, 1
call fcn.14003d470
cmp rax, 0xffffffffffffffff
je 0x14003d445
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 0x14003d43c
mov edx, dword [rsp + 0x2c]
test edx, edx
je 0x14003d43c
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 0x14003d43c
mov edx, dword [rsp + 0x2c]
test edx, edx
jne 0x14003d410
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, qword [rsp + 0x438]
xor rcx, rsp
call fcn.1400b8cc0
nop
add rsp, 0x440
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14003d470
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 [0x140129050]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea r8, str.SoftwareSimonTathamPuTTY
xor ecx, ecx
mov rdx, 0xffffffff80000001
xor r9d, r9d
call fcn.140045e20
test rax, rax
je 0x14003d4ef
mov rbx, rax
lea rdx, str.RandSeedFile
mov rcx, rax
call fcn.140046100
mov rsi, rax
mov rcx, rbx
call sub.ADVAPI32.dll_RegCloseKey
test rsi, rsi
je 0x14003d4ef
lea r8, [rsp + 0x28]
mov rcx, rsi
mov edx, ebp
call fcn.14003dbd0
mov ebx, eax
mov rcx, rsi
call fcn.140042f50
test bl, bl
jne 0x14003d6e1
cmp byte [0x14012c5d8], 0
je 0x14003d509
mov rsi, qword [0x14012c5e8]
test rsi, rsi
jne 0x14003d54f
jmp 0x14003d601
lea rcx, str.shell32.dll
call fcn.140045c80
mov qword [0x14012c5e0], rax
test rax, rax
je 0x14003d536
lea rdx, str.SHGetFolderPathA
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rsi, rax
jmp 0x14003d538
xor esi, esi
mov qword [0x14012c5e8], rsi
mov byte [0x14012c5d8], 1
test rsi, rsi
je 0x14003d601
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 0x14003d5aa
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x140]
xor r8d, r8d
call fcn.140041fd0
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.14003dbd0
mov ebx, eax
mov rcx, rsi
call fcn.140042f50
test bl, bl
jne 0x14003d6e1
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x1a
xor r8d, r8d
xor r9d, r9d
call qword [0x14012c5e8]
test eax, eax
js 0x14003d601
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x140]
xor r8d, r8d
call fcn.140041fd0
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.14003dbd0
mov ebx, eax
mov rcx, rsi
call fcn.140042f50
test bl, bl
jne 0x14003d6e1
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 0x14003d641
mov byte [rsp + 0x140], 0
cmp esi, 0x103
ja 0x14003d690
cmp eax, 0x103
ja 0x14003d690
test eax, eax
je 0x14003d690
lea r8, str.PUTTY.RND
lea rcx, [rsp + 0x140]
lea rdx, [rsp + 0x30]
xor r9d, r9d
call fcn.140041fd0
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.14003dbd0
mov ebx, eax
mov rcx, rsi
call fcn.140042f50
test bl, bl
jne 0x14003d6e1
lea rcx, [rsp + 0x140]
mov edx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
cmp eax, 0x104
jae 0x14003d6e8
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x140]
xor r8d, r8d
call fcn.140041fd0
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.14003dbd0
mov ebx, eax
mov rcx, rsi
call fcn.140042f50
test bl, bl
je 0x14003d6e8
mov rsi, qword [rsp + 0x28]
jmp 0x14003d6ef
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400b8cc0
mov rax, rsi
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x14003d710
Capabilities:
Write file on windows

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

Function at 0x14003da70
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x28
xor ecx, ecx
call fcn.14003d470
call fcn.14002a4c0
lea r8, str.SoftwareSimonTathamPuTTY
xor ecx, ecx
mov rdx, 0xffffffff80000001
xor r9d, r9d
call fcn.140045e20
test rax, rax
je 0x14003dab2
mov rsi, rax
mov rcx, rax
call fcn.14003db50
mov rcx, rsi
call sub.ADVAPI32.dll_RegCloseKey
lea r8, str.SoftwareSimonTatham
xor ecx, ecx
mov rdx, 0xffffffff80000001
xor r9d, r9d
call fcn.140045e20
test rax, rax
je 0x14003db46
mov rsi, rax
lea rdx, [0x14010cb25]
mov rcx, rax
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rsi
xor edx, edx
call fcn.140045f70
mov rdi, rax
mov rcx, rsi
call sub.ADVAPI32.dll_RegCloseKey
test rdi, rdi
je 0x14003db09
mov rcx, rdi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140042f50
lea r8, str.Software
xor ecx, ecx
mov rdx, 0xffffffff80000001
xor r9d, r9d
call fcn.140045e20
test rax, rax
je 0x14003db46
mov rsi, rax
lea rdx, [0x140107e6a]
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 0x14003db50
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor edx, edx
call fcn.140045f70
test rax, rax
je 0x14003dbbf
mov rdi, rax
jmp 0x14003db95
mov rcx, rsi
mov rdx, rdi
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rdi
call fcn.140042f50
mov rcx, rsi
xor edx, edx
call fcn.140045f70
mov rdi, rax
test rax, rax
je 0x14003dbbf
xor ecx, ecx
mov rdx, rsi
mov r8, rdi
xor r9d, r9d
call fcn.140045e20
test rax, rax
je 0x14003db70
mov rbx, rax
mov rcx, rax
call fcn.14003db50
mov rcx, rbx
call sub.ADVAPI32.dll_RegCloseKey
jmp 0x14003db70
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003dbd0
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 0x14003dc2f
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 0x14003dc6f
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x14003dc66
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x14003dc66
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140047480
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 0x140046780
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp byte [0x14012cdb0], 1
jne 0x140046798
mov al, byte [0x14012cdb1]
jmp 0x14004691e
mov byte [0x14012cdb0], 1
lea rcx, str.advapi32.dll
call fcn.140045c80
mov qword [0x14012cdb8], rax
test rax, rax
je 0x140046916
lea rdx, str.GetSecurityInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14012cdc0], rax
test rax, rax
je 0x140046916
mov rcx, qword [0x14012cdb8]
test rcx, rcx
je 0x1400468cf
lea rdx, str.SetSecurityInfo
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14012cdc8], rax
test rax, rax
je 0x140046916
mov rcx, qword [0x14012cdb8]
test rcx, rcx
je 0x1400468de
lea rdx, str.OpenProcessToken
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14012cdd0], rax
test rax, rax
je 0x140046916
mov rcx, qword [0x14012cdb8]
test rcx, rcx
je 0x1400468ed
lea rdx, str.GetTokenInformation
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14012cdd8], rax
test rax, rax
je 0x140046916
mov rcx, qword [0x14012cdb8]
test rcx, rcx
je 0x1400468fc
lea rdx, [0x140106142]
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14012cde0], rax
test rax, rax
je 0x140046916
mov rcx, qword [0x14012cdb8]
test rcx, rcx
je 0x14004690b
lea rdx, [0x140106472]
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14012cde8], rax
test rax, rax
je 0x140046916
mov rcx, qword [0x14012cdb8]
test rcx, rcx
je 0x140046923
lea rdx, str.SetEntriesInAclA
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
jmp 0x140046925
mov qword [0x14012cdc8], 0
xor eax, eax
jmp 0x140046918
mov qword [0x14012cdd0], 0
xor eax, eax
jmp 0x140046918
mov qword [0x14012cdd8], 0
xor eax, eax
jmp 0x140046918
mov qword [0x14012cde0], 0
xor eax, eax
jmp 0x140046918
mov qword [0x14012cde8], 0
xor eax, eax
mov byte [0x14012cdb1], al
add rsp, 0x28
ret
xor eax, eax
mov qword [0x14012cdf0], rax
test rax, rax
setne al
jmp 0x140046918
Function at 0x14004a610
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp byte [0x14012cec8], 0
jne 0x14004a73e
lea rcx, str.winspool.drv
call fcn.140045c80
mov rsi, rax
lea rcx, str.spoolss.dll
call fcn.140045c80
test rsi, rsi
je 0x14004a6e1
lea rdx, str.EnumPrintersA
mov rdi, qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rsi
call rdi
mov qword [0x14012cec0], rax
lea rdx, str.OpenPrinterA
mov rcx, rsi
call rdi
mov qword [0x14012ce88], rax
lea rdx, str.ClosePrinter
mov rcx, rsi
call rdi
mov qword [0x14012ceb0], rax
lea rdx, str.StartDocPrinterA
mov rcx, rsi
call rdi
mov qword [0x14012ce90], rax
lea rdx, str.EndDocPrinter
mov rcx, rsi
call rdi
mov qword [0x14012cea8], rax
lea rdx, str.StartPagePrinter
mov rcx, rsi
call rdi
mov qword [0x14012ce98], rax
lea rdx, str.EndPagePrinter
mov rcx, rsi
call rdi
mov qword [0x14012cea0], rax
lea rdx, str.WritePrinter
mov rcx, rsi
call rdi
jmp 0x14004a730
mov qword [0x14012cec0], 0
mov qword [0x14012ce88], 0
mov qword [0x14012ceb0], 0
mov qword [0x14012ce90], 0
mov qword [0x14012cea8], 0
mov qword [0x14012ce98], 0
mov qword [0x14012cea0], 0
xor eax, eax
mov qword [0x14012ceb8], rax
mov byte [0x14012cec8], 1
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1400561e0
Capabilities:
Get common file path
Set current directory

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x138
mov ebx, r9d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140129050]
xor rax, rsp
mov qword [rsp + 0x130], rax
test r8b, r8b
je 0x140056229
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
add eax, 0xffffffff
cmp eax, 0x103
setb bpl
jmp 0x14005622b
xor ebp, ebp
mov dword [rdi], 0x88
xor eax, eax
test rsi, rsi
je 0x14005623f
cmp byte [rsi], 0
cmovne rax, rsi
mov qword [rdi + 0x50], rax
mov rcx, rdi
test bl, bl
je 0x140056252
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x140056258
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov edi, eax
test rsi, rsi
je 0x14005627c
mov ecx, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
add eax, 0xfffffefc
cmp eax, 0xfffffefc
ja 0x14005627c
mov byte [rsi], 0
test bpl, bpl
je 0x14005628c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
test edi, edi
setne bl
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400b8cc0
mov eax, ebx
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
ret