joyce8/EMBER2024-capa huggingface dataset:
Function at 0x60c680
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x60c81b
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rsp + 0x80], rax
xor ecx, ecx
jmp 0x60c6a1
inc rcx
cmp rbx, rcx
jle 0x60c811
movzx edx, byte [rax + rcx]
cmp dl, 0x80
jb 0x60c69e
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x80], rax
call fcn.005210c0
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x48], rdi
mov rdx, qword [0x00938d00]
test rsi, rsi
mov r8, qword [rsp + 0x88]
cmovne rbx, r8
mov r8, qword [rsp + 0x80]
cmovne rax, r8
mov r8, rax
mov rax, rdx
mov r9, rbx
mov rbx, r8
mov rcx, r9
mov edi, 1
call fcn.006089c0
mov rdx, qword [rsp + 0x58]
test rdx, rdx
mov rdx, qword [rsp + 0x48]
mov esi, 0
cmovne rdx, rsi
mov r8, qword [rsp + 0x60]
mov r9d, 0
cmovne r8, r9
nop word [rax + rax]
test rcx, rcx
jne 0x60c805
test rdx, rdx
je 0x60c7fa
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x68], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
call fcn.00403de0
xorps xmm15, xmm15
mov r14, qword [0x009a6290]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x60c7c9
xor eax, eax
lea rbx, [0x0077a070]
mov ecx, 1
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x50]
lea r8, [0x006fa3e4]
mov r9d, 2
mov r10, qword [rsp + 0x60]
mov r11, qword [rsp + 0x48]
call fcn.0044faa0
jmp 0x60c7f0
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
lea rdi, [0x0077a398]
mov esi, 1
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x48]
call fcn.0044f9e0
xor ecx, ecx
xor edi, edi
add rsp, 0x70
pop rbp
ret
xor ecx, ecx
mov rdi, r9
add rsp, 0x70
pop rbp
ret
mov rax, r9
mov rbx, rsi
add rsp, 0x70
pop rbp
ret
xor ecx, ecx
xor edi, edi
add rsp, 0x70
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00465340
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0060c680
Function at 0x64ab20
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x64ac22
push rbp
mov rbp, rsp
sub rsp, 0x68
mov qword [rsp + 0x78], rax
mov rcx, qword [rax + 0x28]
mov rbx, qword [rax + 0x30]
nop
mov rax, rcx
call fcn.005a39e0
test rdi, rdi
jne 0x64ab73
mov rbx, qword [0x00950978]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rdx]
mov rdi, qword [rdx + 8]
lea rax, [0x006acf40]
call fcn.004124a0
mov rdi, qword [rax + 8]
mov rcx, qword [rax]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rcx
mov rax, qword [rsp + 0x78]
call fcn.0064aac0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
nop
call fcn.00403de0
xorps xmm15, xmm15
mov r14, qword [0x009a6290]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x64abf5
xor eax, eax
lea rbx, [0x0077a070]
mov ecx, 1
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x50]
lea r8, [0x006fa3e4]
mov r9d, 2
mov r10, qword [rsp + 0x58]
mov r11, qword [rsp + 0x48]
call fcn.0044faa0
jmp 0x64ac1c
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
lea rdi, [0x0077a398]
mov esi, 1
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x48]
call fcn.0044f9e0
add rsp, 0x68
pop rbp
ret
mov qword [rsp + 8], rax
call fcn.00465340
mov rax, qword [rsp + 8]
jmp fcn.0064ab20
Function at 0x14014fa08
Capabilities:
Encode data using xor

Disassembly:
jns 0x1401737b8
rdtsc
sub r8, 8
call fcn.140163ea8
test rax, rax
lea rsp, [rsp + 8]
je 0x14015718b
push r9
mov esi, 0x64abea3d
sal sil, 0xe3
lea r9, [0x140171ae0]
mov esi, 0x4aae2e1c
lea rsi, [rsi + rsi*2 + 0x3238f9b6]
movzx esi, byte [rbx]
push 0xffffffffbeaec59f
xor esi, edi
shl dword [rsp + 3], 0x1d
and esi, 0xff
mov esi, dword [r9 + rsi*4]
sal qword [rsp], 0xc2
shr edi, 8
xor edi, esi
inc rbx
push 0xa25ac34
xor edi, 0xdd041201
ror byte [rsp + 9], 0x61
dec rax
lea rsp, [rsp + 0x10]
jne 0x140157126
push 0xffffffff9aa6e305
push 0xffffffffe09bdf0e
mov r9, qword [rsp + 0x10]
lea rsp, [rsp + 0x18]
not edi
push 0xfffffffff7b2de0e
mov dword [r10], edi
lea rsp, [rsp + 8]
jmp fcn.140135b0d
add r10, 0xc
xor edi, edi
jmp 0x140157106

Function at 0x14016c526
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140149183
movzx ecx, byte [r11]
call fcn.14013f1fc
push 0x45a9e03f
adc rsi, 0xc
rol dword [rsp + 2], 0x41
xor ebp, ebp
test r8, r8
lea rsp, [rsp + 8]
je 0x140147df0
mov r10d, 0x4c13df2e
neg r10d
push r11
neg r10d
movzx r11d, r10w
lea r10, [0x14014caf8]
mov r11d, 0x9c3ce49d
not r11w
ror r11b, 0xa5
movzx r11d, byte [rbx]
xor r11d, ebp
push 0x5b0691a5
and r11d, 0xff
shr byte [rsp + 3], 0xc7
mov r11d, dword [r10 + r11*4]
shr ebp, 8
xor ebp, r11d
inc rbx
neg byte [rsp + 3]
xor ebp, 0xbd1a3b3d
dec r8
lea rsp, [rsp + 8]
jne 0x140147d90
mov r11d, 0x319b25bb
push r11
mov r11, qword [rsp + r11 - 0x319b25b3]
lea rsp, [rsp + 0x10]
jmp 0x14016bacf
not edx
jmp 0x1401674dc
mov qword [rbp + riz - 8], rax
mov qword [rbp + riz - 0x10], rsp
call fcn.140170137
call fcn.140136d0e
jmp 0x14014881b
xor eax, ecx
jmp 0x14017456f
jmp 0x140145929
call fcn.140136653
xor ecx, eax
and ecx, 0xff
mov ecx, dword [r8 + rcx*4]
shr eax, 8
jmp 0x140150b55
inc r11
xor eax, 0xf9bf4f99
dec rdx
lea rsp, [rsp + 0x10]
jne 0x140174d04
jmp 0x1401464da
mov ecx, 0xad0b3b06
dec rcx
jne 0x140147d4d
lea ecx, [rbx - 4]
mov eax, 0x54a1c708
add ax, ax
shl ecx, 3
sal edx, 3
sar rax, 0x7d
xor rax, rbp
add rax, rdx
jmp 0x14013fc1a
Function at 0x140cb42c0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140cb4447
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140cb42f1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cb42d7
add dl, dl
jne 0x140cb42fe
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cb435e
xor eax, eax
add dl, dl
jne 0x140cb430d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cb4415
add dl, dl
jne 0x140cb431e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cb432b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cb4338
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cb4345
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140cb4352
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140cb42e6
mov eax, 1
add dl, dl
jne 0x140cb436e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cb437b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cb4363
sub eax, ebx
mov ebx, 1
jne 0x140cb43b4
mov ecx, 1
add dl, dl
jne 0x140cb4396
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cb43a3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cb438b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cb42e6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140cb43d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cb43dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cb43c5
cmp eax, 0x7d00
jae 0x140cb4403
cmp eax, 0x500
jb 0x140cb43fe
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cb42e6
cmp eax, 0x7f
ja 0x140cb4406
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cb42e6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140cb443a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140cb42e6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002824
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x14000287e
mov r11b, 0x23
lea rbx, [0x140039d90]
movzx edi, byte [r10]
dec rdx
inc r10
cmp dil, r11b
jne 0x140002868
cmp rdx, 2
jb 0x140002868
cmp byte [r10], r11b
jne 0x140002868
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rdi
shr r9d, 8
xor r9d, dword [rbx + rcx*4]
test rdx, rdx
jne 0x140002846
jmp 0x1400028bf
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x1400028bf
mov r11b, 0x23
lea rbx, [0x140039d90]
cmp dl, r11b
jne 0x1400028a3
cmp byte [r10], r11b
jne 0x1400028a3
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rbx + rcx*4]
test dl, dl
jne 0x140002891
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x1400029f4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
test r8, r8
je 0x140002a14
and qword [r8], 0
lea rdx, [0x1400397f8]
call fcn.1400028d0
mov rbx, rax
test rax, rax
je 0x140002b05
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140002afc
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002afc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140002afc
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002afc
mov rbp, rdi
cmp rdi, 0xffffffffffffffff
je 0x140002afc
mov rax, qword [0x140083940]
test rax, rax
je 0x140002a99
inc dword [rax + 0x3b0]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140002afc
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x140002ae9
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140083940]
test rax, rax
je 0x140002ade
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002b05
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140002af7
mov qword [rsi], rbp
mov rax, rdi
jmp 0x140002b07
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400048a8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x28
movsxd rdx, dword [rcx + 0x108]
mov r9d, 4
mov rax, qword [rcx + 0x110]
mov r8d, dword [rax + rdx*4 - 4]
lea rdx, [rsp + 0x38]
not r8d
movzx eax, byte [rdx]
inc rdx
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x140039d90]
xor r8d, dword [rax + rcx*4]
sub r9, 1
jne 0x1400048d1
not r8d
mov ecx, r8d
call fcn.140004a08
mov eax, r8d
add rsp, 0x28
ret

Function at 0x14000e854
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140083040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [0x140083940]
mov r10d, 4
mov dword [rsp + 0x20], ecx
mov r9, qword [rax + 0x1b90]
movsxd rcx, dword [r9 + 0x108]
mov rax, qword [r9 + 0x110]
mov r8d, dword [rax + rcx*4 - 4]
lea rcx, [rsp + 0x20]
not r8d
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x140039d90]
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x14000e89a
not r8d
lea rdx, [rsp + 0x20]
lea rcx, [r9 + 0x108]
mov dword [rsp + 0x20], r8d
call fcn.14001c5f4
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140036dc0
add rsp, 0x38
ret

Function at 0x140013230
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, qword [0x140083940]
cmp byte [rbx + 0x3000], 0
je 0x1400132f1
cmp qword [rbx + 0x3008], 0
lea rbp, [rax + 0x10]
lea rdi, [rbx + 0x3010]
je 0x1400132e3
mov r9d, dword [rdi + 4]
test r9d, r9d
jns 0x14001329b
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001c934
mov rcx, qword [rsp + 0x40]
and dword [rdi], 0
mov rdx, rcx
mov rcx, rdi
mov r8, rbp
call fcn.140003130
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x3008]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x140083938]
movsxd r8, eax
mov rax, qword [rbx + 0x3018]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x1400132f1
mov rdx, rcx
mov r8, rbp
mov rcx, rdi
call fcn.140003130
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret

Function at 0x14001394c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x140083940]
mov rbx, rcx
and dword [rax + 0x2fbc], 0
test rcx, rcx
je 0x1400139b5
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.1400139c0
lea rdx, [0x1400397fc]
mov rcx, rbx
mov rdi, rax
call fcn.1400028d0
mov rbx, rax
test rax, rax
je 0x1400139b5
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140037a38
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140037a82
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140037a82
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140037a82
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140037a82
cmp dword [rcx + 0x84], 0xe
jbe 0x140037a82
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140037a84
xor al, al
add rsp, 0x28
ret
Function at 0x140006d10
Capabilities:
Read file via mapping

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x140102058]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp byte [rcx], 0x26
jne 0x140006dc9
mov rsi, rdx
add rcx, 1
lea rdx, [0x1400e178a]
lea r8, [rsp + 0x38]
lea r9, [rsp + 0x34]
call fcn.140006df0
cmp eax, 2
jne 0x140006dc9
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 0x140006dc0
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.140040600
test al, al
je 0x140006de1
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 0x140006dcb
xor esi, esi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400a5f20
mov eax, esi
add rsp, 0x78
pop rdi
pop rsi
ret
lea rcx, str.Serialised_configuration_data_was_invalid
call fcn.140005f70
int3

Function at 0x140006fd0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
cmp ecx, 2
jne 0x140007089
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 0x140007089
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140007089
mov rbp, rax
movsxd rbx, ebx
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call fcn.1400a70b0
mov byte [rbp + rbx], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test r14b, r14b
jne 0x140007059
mov rcx, qword [0x140102008]
mov r8d, 1
mov edx, 0x8002
xor r9d, r9d
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [0x140102008]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140007094
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 0x1400070a2
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 0x140007089
mov rcx, qword [0x140102008]
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 0x14000c750
Capabilities:
Log keystrokes via polling

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, qword [0x140104208]
test rax, rax
je 0x14000d0af
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, [0x14000d0c0]
mov ecx, 0x3e8
mov r8, rsi
add rsp, 0x20
pop rsi
jmp fcn.14002bd70
nop
add rsp, 0x20
pop rsi
ret

Function at 0x14000d130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
sub rsp, 0x20
cmp byte [0x140104220], 0
je 0x14000d144
add rsp, 0x20
pop rsi
ret
mov byte [0x140104220], 1
lea rcx, str.hhctrl.ocx
call fcn.140043cd0
mov rsi, rax
test rax, rax
je 0x14000d1a6
lea rdx, str.HtmlHelpA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140104228], rax
test rax, rax
je 0x14000d1b1
cmp byte [0x140104249], 0
jne 0x14000d221
mov byte [0x140104249], 1
cmp byte [0x140104210], 1
jne 0x14000d1c0
mov rdx, qword [0x140104218]
test rdx, rdx
jne 0x14000d1e9
jmp 0x14000d221
mov qword [0x140104228], 0
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [0x140104210], 1
mov edx, 0x7d0
mov r8d, 0x7d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
mov qword [0x140104218], rax
test rdx, rdx
je 0x14000d221
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x14010424c], eax
test eax, eax
je 0x14000d221
mov rdx, qword [0x140104218]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000d221
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x140104240], rax
jmp 0x14000d228
mov rax, qword [0x140104240]
test rax, rax
jne 0x14000d13e
lea rdx, str.SoftwareSimonTathamPuTTY64CHMPath
mov rcx, 0xffffffff80000002
xor r8d, r8d
call fcn.140043e70
test rax, rax
jne 0x14000d26b
lea rdx, str.SoftwareSimonTathamPuTTYCHMPath
mov rcx, 0xffffffff80000002
xor r8d, r8d
call fcn.140043e70
test rax, rax
je 0x14000d13e
mov qword [0x140104230], rax
mov byte [0x140104238], 0
jmp 0x14000d13e

Function at 0x14000d280
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140104230]
test rcx, rcx
je 0x14000d2c2
cmp byte [0x140104238], 1
jne 0x14000d2c4
xor ecx, ecx
xor edx, edx
mov r8d, 0x12
xor r9d, r9d
call qword [0x140104228]
mov rcx, qword [0x140104230]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [0x140104230]
jmp 0x14000d2c4
xor ecx, ecx
call fcn.140041750
mov qword [0x140104230], 0
mov byte [0x140104238], 0
add rsp, 0x28
ret
Function at 0x14000d300
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 [0x140102058]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdx, qword [0x140104230]
test rdx, rdx
jne 0x14000d3e2
cmp qword [0x140104240], 0
je 0x14000d3e2
cmp byte [0x140104250], 0
jne 0x14000d3d1
mov byte [0x140104250], 1
lea rdx, [rsp + 0x50]
mov ecx, 0x106
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x14000d3d1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
lea rcx, str._sputty__lu__llu.chm
lea rdx, [rsp + 0x50]
mov r8d, eax
xor r9d, r9d
call fcn.140040ac0
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 0x14000d455
mov rsi, rax
jmp 0x14000d4eb
xor ebx, ebx
mov rcx, rbx
call fcn.140041750
mov rdx, qword [0x140104230]
test rdx, rdx
je 0x14000d430
test r15, r15
je 0x14000d41a
lea rcx, str._s::__s.html_main
mov r8, r15
call fcn.140040ac0
mov rsi, rax
mov rcx, r13
mov rdx, rax
xor r8d, r8d
xor r9d, r9d
call qword [0x140104228]
mov rcx, rsi
call fcn.140041750
jmp 0x14000d429
mov rcx, r13
xor r8d, r8d
xor r9d, r9d
call qword [0x140104228]
mov byte [0x140104248], 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400a5f20
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
mov r14, qword [sym.imp.KERNEL32.dll_GetLastError]
lea r13, [rsp + 0x50]
mov r12, qword [sym.imp.KERNEL32.dll_CreateFileA]
nop word cs:[rax + rax]
nop dword [rax]
call r14
cmp eax, 0x50
jne 0x14000d586
mov rcx, rbx
call fcn.140041750
lea rcx, str._sputty__lu__llu.chm
mov rdx, r13
mov r8d, ebp
mov r9, rdi
call fcn.140040ac0
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 0x14000d480
mov rsi, rax
mov r13, qword [rsp + 0x40]
mov r8d, dword [0x14010424c]
test r8d, r8d
je 0x14000d54b
mov rbp, qword [0x140104240]
xor edi, edi
lea r14, [rsp + 0x4c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax]
sub r8d, edi
mov dword [rsp + 0x4c], 0
mov edx, edi
add rdx, rbp
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov r9, r14
call r12
test eax, eax
je 0x14000d55d
mov eax, dword [rsp + 0x4c]
add edi, eax
add edi, 1
mov r8d, dword [0x14010424c]
cmp r8d, edi
ja 0x14000d510
mov qword [0x140104230], rbx
mov byte [0x140104238], 1
xor ebx, ebx
jmp 0x14000d566
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, rbx
call fcn.140041750
cmp rsi, 0xffffffffffffffff
je 0x14000d3db
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000d3db
mov r13, qword [rsp + 0x40]
jmp 0x14000d3d3
Function at 0x14000d590
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
cmp byte [0x140104248], 1
jne 0x14000d5b0
xor ecx, ecx
xor edx, edx
mov r8d, 0x12
xor r9d, r9d
call qword [0x140104228]
mov rcx, qword [0x140104230]
test rcx, rcx
je 0x14000d5d0
cmp byte [0x140104238], 1
jne 0x14000d5d0
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
add rsp, 0x28
ret