joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bf205
Capabilities:
Print debug messages

Disassembly:
jmp 0x140226de0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140297058]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140226e06
jmp 0x140226e83
mov rcx, qword [rbp + 0x30]
call fcn.1400be599
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x140226e1f
jmp 0x140226e83
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x140226e3c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400bcf55
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400bd577
test eax, eax
jne 0x140226e83
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400be882
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400bf63d
Capabilities:
Set environment variable

Disassembly:
jmp 0x14021b710
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1400bf994
Capabilities:
Parse pe header

Disassembly:
jmp 0x140147230
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140147250
xor al, al
jmp 0x1401472d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140147263
xor al, al
jmp 0x1401472d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14014728d
xor al, al
jmp 0x1401472d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1401472a1
xor al, al
jmp 0x1401472d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1401472b3
xor al, al
jmp 0x1401472d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1401472cf
xor al, al
jmp 0x1401472d1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400c0227
Capabilities:
Terminate process

Disassembly:
jmp 0x140169a30
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140169a5e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400c0e2f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400c0eb1
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401f8750
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400c100f
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140168ad0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140168420
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140168b19
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402b4020]
jmp 0x140168b28
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400c111d
Capabilities:
Set environment variable

Disassembly:
jmp 0x1402335d0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400bdeeb
lea rcx, [rsp + 0x48]
call fcn.1400bdeeb
call fcn.1400bed05
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400bdbd5
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14023363f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400be436
lea rcx, [rsp + 0x78]
call fcn.1400be436
mov eax, dword [rsp + 0x24]
jmp 0x1402336d0
call fcn.1400bed05
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400bdbd5
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140233686
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400be436
lea rcx, [rsp + 0x78]
call fcn.1400be436
mov eax, dword [rsp + 0x2c]
jmp 0x1402336d0
lea rcx, [rsp + 0x48]
call fcn.1400bde0f
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400bde0f
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400be436
lea rcx, [rsp + 0x78]
call fcn.1400be436
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140208070
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400bcf55
sub rsp, rax
mov rax, qword [0x140297058]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14029bf90]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140208262
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1402081b6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1402081b6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14020819b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140208138
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140208222
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140208281
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14020825d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140208281
jmp 0x14020810e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400be882
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140208330
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400bcf55
sub rsp, rax
mov rax, qword [0x140297058]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14029bf90]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14020853d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140208489
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140208489
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140208469
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1402083f8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1402084fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14020855c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140208538
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14020855c
jmp 0x1402083ce
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400be882
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140006da0
Capabilities:
Read file via mapping

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x140129050]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp byte [rcx], 0x26
jne 0x140006e59
mov rsi, rdx
add rcx, 1
lea rdx, [0x140102dc9]
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.140041d90
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.1400b8cc0
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 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 0x1400223e0
Capabilities:
Hide graphical window

Disassembly:
push rsi
sub rsp, 0x30
mov rcx, qword [0x140129f18]
mov qword [rsp + 0x20], 0
lea r9, [fcn.140022430]
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 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 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 0x1400369a0
Capabilities:
Get session user name

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov edx, 0x3a
call fcn.140040eb0
cmp byte [rax], 0
je 0x1400369c4
mov rcx, rax
add rsp, 0x20
pop rsi
jmp fcn.140049d50
mov rcx, rsi
mov edx, 0x3b
call fcn.140040c60
test al, al
je 0x1400369df
add rsp, 0x20
pop rsi
jmp fcn.140078e30
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x140038a10
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.140040d20
cmp eax, 1
je 0x140038a7c
cmp eax, 2
je 0x140038a85
cmp eax, 3
jne 0x140038a8e
mov rcx, rbx
mov edx, ebp
call fcn.140040eb0
lea rcx, str.custom:
mov rdx, rax
xor r8d, r8d
call fcn.140041fd0
mov rbx, rax
mov rcx, rdi
mov rdx, rsi
mov r8, rax
call fcn.14003c650
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140042f50
lea r8, str.implicit
jmp 0x140038a95
lea r8, str.explicit
jmp 0x140038a95
lea r8, str.none
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14003c650