joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004d977
Capabilities:
Hash data using sha1 via x86 extensions

Disassembly:
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
movdqa xmm9, xmmword [rcx]
movdqa xmm8, xmmword [rcx + 0x10]
movdqa xmm6, xmmword [0x1400ac760]
movdqu xmm5, xmmword [rdx]
movdqu xmm4, xmmword [rdx + 0x10]
movdqu xmm3, xmmword [rdx + 0x20]
movdqu xmm2, xmmword [rdx + 0x30]
pshufb xmm5, xmm6
movdqa xmm7, xmm8
paddd xmm7, xmm5
movdqa xmm1, xmm9
sha1rnds4 xmm1, xmm7, 0
pshufb xmm4, xmm6
movdqa xmm7, xmm9
sha1nexte xmm7, xmm4
movaps xmm0, xmm1
sha1rnds4 xmm0, xmm7, 0
sha1msg1 xmm5, xmm4
pshufb xmm3, xmm6
sha1nexte xmm1, xmm3
movaps xmm7, xmm0
sha1rnds4 xmm7, xmm1, 0
sha1msg1 xmm4, xmm3
pshufb xmm2, xmm6
sha1nexte xmm0, xmm2
pxor xmm5, xmm3
sha1msg2 xmm5, xmm2
movaps xmm1, xmm7
sha1rnds4 xmm1, xmm0, 0
sha1msg1 xmm3, xmm2
sha1nexte xmm7, xmm5
pxor xmm4, xmm2
sha1msg2 xmm4, xmm5
movaps xmm0, xmm1
sha1rnds4 xmm0, xmm7, 0
sha1msg1 xmm2, xmm5
xorps xmm3, xmm5
sha1nexte xmm1, xmm4
sha1msg2 xmm3, xmm4
movaps xmm6, xmm0
sha1rnds4 xmm6, xmm1, 1
sha1msg1 xmm5, xmm4
xorps xmm2, xmm4
sha1nexte xmm0, xmm3
sha1msg2 xmm2, xmm3
movaps xmm1, xmm6
sha1rnds4 xmm1, xmm0, 1
sha1msg1 xmm4, xmm3
xorps xmm5, xmm3
sha1nexte xmm6, xmm2
sha1msg2 xmm5, xmm2
movaps xmm0, xmm1
sha1rnds4 xmm0, xmm6, 1
sha1msg1 xmm3, xmm2
xorps xmm4, xmm2
sha1nexte xmm1, xmm5
sha1msg2 xmm4, xmm5
movaps xmm6, xmm0
sha1rnds4 xmm6, xmm1, 1
sha1msg1 xmm2, xmm5
xorps xmm3, xmm5
sha1nexte xmm0, xmm4
sha1msg2 xmm3, xmm4
movaps xmm1, xmm6
sha1rnds4 xmm1, xmm0, 1
sha1msg1 xmm5, xmm4
xorps xmm2, xmm4
sha1nexte xmm6, xmm3
sha1msg2 xmm2, xmm3
movaps xmm0, xmm1
sha1rnds4 xmm0, xmm6, 2
sha1msg1 xmm4, xmm3
xorps xmm5, xmm3
sha1nexte xmm1, xmm2
sha1msg2 xmm5, xmm2
movaps xmm6, xmm0
sha1rnds4 xmm6, xmm1, 2
sha1msg1 xmm3, xmm2
xorps xmm4, xmm2
sha1nexte xmm0, xmm5
sha1msg2 xmm4, xmm5
movaps xmm1, xmm6
sha1rnds4 xmm1, xmm0, 2
sha1msg1 xmm2, xmm5
xorps xmm3, xmm5
sha1nexte xmm6, xmm4
sha1msg2 xmm3, xmm4
movaps xmm0, xmm1
sha1rnds4 xmm0, xmm6, 2
sha1msg1 xmm5, xmm4
xorps xmm2, xmm4
sha1nexte xmm1, xmm3
sha1msg2 xmm2, xmm3
movaps xmm6, xmm0
sha1rnds4 xmm6, xmm1, 2
sha1msg1 xmm4, xmm3
xorps xmm5, xmm3
sha1nexte xmm0, xmm2
sha1msg2 xmm5, xmm2
movaps xmm1, xmm6
sha1rnds4 xmm1, xmm0, 3
sha1msg1 xmm3, xmm2
xorps xmm4, xmm2
sha1nexte xmm6, xmm5
sha1msg2 xmm4, xmm5
movaps xmm0, xmm1
sha1rnds4 xmm0, xmm6, 3
sha1msg1 xmm2, xmm5
xorps xmm3, xmm5
sha1nexte xmm1, xmm4
sha1msg2 xmm3, xmm4
movaps xmm5, xmm0
sha1rnds4 xmm5, xmm1, 3
xorps xmm2, xmm4
sha1nexte xmm0, xmm3
sha1msg2 xmm2, xmm3
movaps xmm1, xmm5
sha1rnds4 xmm1, xmm0, 3
sha1nexte xmm5, xmm2
movaps xmm0, xmm1
sha1rnds4 xmm0, xmm5, 3
paddd xmm0, xmm9
movdqa xmmword [rcx], xmm0
sha1nexte xmm1, xmm8
movaps xmmword [rcx + 0x10], xmm1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140059376
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x18
mov rax, rcx
xor edi, edi
test edx, edx
cmovs edx, edi
mov cl, byte [rsp + 0x88]
mov byte [rsp + 7], cl
test r8d, r8d
cmovns edi, r8d
mov ecx, dword [rsp + 0x80]
mov ebp, dword [rax + 0x178]
lea r8d, [rbp - 1]
cmp ebp, r9d
cmovg r8d, r9d
movsxd rbx, dword [rax + 0x174]
lea r11d, [rbx - 1]
cmp ebx, ecx
cmovg r11d, ecx
cmp edi, r11d
jg 0x1400594cf
mov r9d, edx
shr r9d, 1
mov r13d, r8d
shr r13d, 0x1f
add r13d, r8d
sar r13d, 1
inc r13d
cmp r9d, r13d
mov esi, r13d
cmovg esi, r9d
mov edi, edi
cmp rdi, rbx
jge 0x1400594cf
mov ebx, edx
mov r15, rbx
shr r15, 1
add esi, r15d
sub esi, r9d
inc esi
lea r10d, [r8 + 1]
inc r11d
lea rcx, [r15 + r15*4]
lea r12, [rcx*4 + 4]
mov qword [rsp + 0x10], rbx
lea rcx, [rbx + rbx*4]
lea rcx, [rcx*4 + 4]
mov qword [rsp + 8], rcx
mov rcx, qword [rax + 0x28]
mov rcx, qword [rcx + rdi*8]
test byte [rcx], 3
je 0x14005947d
cmp r9d, r13d
jg 0x1400594b7
mov rbp, r12
mov rcx, r15
movsxd rbx, dword [rax + 0x178]
cmp rcx, rbx
jge 0x1400594b7
mov rbx, qword [rax + 0x28]
mov rbx, qword [rbx + rdi*8]
mov rbx, qword [rbx + 0x18]
or dword [rbx + rbp], 0x3ffff
inc rcx
add rbp, 0x14
cmp rsi, rcx
jne 0x140059450
jmp 0x1400594b7
cmp edx, r8d
jg 0x1400594b7
mov rbp, qword [rsp + 8]
mov r14, qword [rsp + 0x10]
movsxd rcx, dword [rax + 0x178]
cmp r14, rcx
jge 0x1400594b7
mov rcx, qword [rax + 0x28]
mov rcx, qword [rcx + rdi*8]
mov rcx, qword [rcx + 0x18]
or dword [rcx + rbp], 0x3ffff
inc r14
add rbp, 0x14
cmp r10, r14
jne 0x14005948c
inc rdi
cmp rdi, r11
je 0x1400594cf
movsxd rcx, dword [rax + 0x174]
cmp rdi, rcx
jl 0x140059438
cmp byte [rsp + 7], 0
je 0x1400594ee
mov rcx, rax
add rsp, 0x18
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140055d6d
cmp byte [rax + 0x10e9], 0
je 0x140059508
add rsp, 0x18
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov byte [rax + 0x10e9], 1
lea rcx, [0x140060711]
mov rdx, rax
add rsp, 0x18
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400017aa
Function at 0x140064d19
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor eax, eax
movsx esi, byte [rcx + rax]
lea edi, [rsi - 0x41]
cmp dil, 0x19
ja 0x140064d43
add esi, 0xffffffbf
jmp 0x140064d88
lea edi, [rsi - 0x61]
cmp dil, 0x19
ja 0x140064d51
add esi, 0xffffffb9
jmp 0x140064d88
lea edi, [rsi - 0x30]
cmp dil, 9
ja 0x140064d5f
add esi, 4
jmp 0x140064d88
cmp sil, 0x2b
je 0x140064d7c
cmp sil, 0x3d
je 0x140064d83
cmp sil, 0x2f
jne 0x140064e11
mov esi, 0x3f
jmp 0x140064d88
mov esi, 0x3e
jmp 0x140064d88
mov esi, 0xffffffff
mov dword [rsp + rax*4 + 0x20], esi
inc rax
cmp rax, 4
jne 0x140064d31
mov esi, dword [rsp + 0x20]
xor edi, edi
cmp esi, 0xffffffff
je 0x140064e13
mov ecx, dword [rsp + 0x24]
cmp ecx, 0xffffffff
je 0x140064e13
mov r8d, dword [rsp + 0x28]
mov eax, dword [rsp + 0x2c]
cmp r8d, 0xffffffff
je 0x140064e00
mov edi, 2
shl esi, 0x12
shl ecx, 0xc
or esi, ecx
mov r9d, r8d
shl r9d, 6
shr esi, 0x10
mov byte [rdx], sil
cmp eax, 0xffffffff
jne 0x140064ddd
cmp r8d, 0xffffffff
je 0x140064deb
mov ebx, r9d
and ebx, 0xf00
or ebx, ecx
mov byte [rdx + 1], bh
cmp eax, 0xffffffff
je 0x140064e13
and eax, 0x3f
or eax, r9d
mov byte [rdx + 2], al
mov edi, 3
jmp 0x140064e13
cmp eax, 0xffffffff
jne 0x140064e13
mov edi, 1
mov eax, 0xffffffff
jmp 0x140064dbd
xor edi, edi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140084030
mov eax, edi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x140065163
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140065195
xor r10d, r10d
xor r9d, r9d
mov al, byte [rdx + r10]
xor al, byte [rcx + r10]
movzx eax, al
or r9d, eax
inc r10
cmp r8, r10
jne 0x14006516e
mov eax, 0x100
sub eax, r9d
cmp eax, 0xff
seta al
ret
mov al, 1
ret

Function at 0x14006b2d5
Capabilities:
Hide graphical window

Disassembly:
push rsi
sub rsp, 0x30
mov rcx, qword [0x1400d9a88]
mov qword [rsp + 0x20], 0
lea r9, [fcn.14000f6ff]
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 0x14006bf93
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0x28
mov r8, rcx
mov rcx, qword [0x1400d90c8]
test rcx, rcx
jne 0x14006bfe4
mov rcx, qword [0x1400d9a88]
mov qword [rsp + 0x20], 0
lea r9, [0x14006bfef]
mov edx, 0x6e
call qword [sym.imp.USER32.dll_CreateDialogParamA]
mov qword [0x1400d90c8], rax
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400d90c8]
add rsp, 0x28
jmp qword [sym.imp.USER32.dll_SetActiveWindow]
Function at 0x14006ce90
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
push rdi
sub rsp, 0xc8
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
cmp dword [0x1400d9a78], 0
je 0x14006cec7
xor esi, esi
cmp qword [0x1400d9a60], 0
setne sil
jmp 0x14006d037
lea rdi, [rsp + 0x2c]
xor esi, esi
mov r8d, 0x90
mov rcx, rdi
xor edx, edx
call fcn.1400855f0
mov dword [rdi - 4], 0x94
lea rdi, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [rdi + 0x10], 2
sete al
mov dword [0x1400d9a7c], eax
lea rcx, str.USER32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14006cffc
mov rdi, rax
lea rdx, [0x1400bd9bc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d9a40], rax
test rax, rax
je 0x14006cffc
lea rdx, str.MonitorFromWindow
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d9a48], rax
test rax, rax
je 0x14006cffc
lea rdx, str.MonitorFromRect
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d9a50], rax
test rax, rax
je 0x14006cffc
lea rdx, str.MonitorFromPoint
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d9a58], rax
test rax, rax
je 0x14006cffc
lea rdx, str.EnumDisplayMonitors
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d9a68], rax
test rax, rax
je 0x14006cffc
lea rdx, str.GetMonitorInfoA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d9a60], rax
test rax, rax
je 0x14006cffc
lea rdx, str.EnumDisplayDevicesA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d9a70], rax
test rax, rax
je 0x14006cffc
mov dword [0x1400d9a78], 1
mov esi, 1
jmp 0x14006d037
mov qword [0x1400d9a40], rsi
mov qword [0x1400d9a48], rsi
mov qword [0x1400d9a50], rsi
mov qword [0x1400d9a58], rsi
mov qword [0x1400d9a60], rsi
mov qword [0x1400d9a68], rsi
mov qword [0x1400d9a70], rsi
mov dword [0x1400d9a78], 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140084030
mov eax, esi
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x14007252b
Capabilities:
Get geographical location

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx ecx, cx
lea rsi, [rsp + 0x20]
mov edx, 0x1004
mov r8, rsi
mov r9d, 0x14
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov rcx, rsi
call fcn.140091450
mov dword [0x1400dae2c], eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140084030
nop
add rsp, 0x40
pop rsi
ret

Function at 0x14007263d
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
cmp ecx, 2
jne 0x140072701
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 0x140072701
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140072701
mov rbp, rax
movsxd rbx, ebx
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call fcn.140085190
mov byte [rbp + rbx], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test r14b, r14b
jne 0x1400726c6
mov rcx, qword [0x1400d80a8]
mov r8d, 1
mov edx, 0x8002
xor r9d, r9d
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [0x1400d80a8]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400726f3
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]
jmp 0x1400726fc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test r14b, r14b
je 0x14007270c
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [0x1400d80a8]
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 0x140076e4f
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
sub rsp, 0x130
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x128], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x140076e8d
cmp byte [rsp + 0x32], 0
js 0x140076e91
mov sil, byte [rsp + 0xc5]
shr sil, 7
jmp 0x140076e94
xor esi, esi
jmp 0x140076e94
mov sil, 1
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.140084030
mov eax, esi
add rsp, 0x130
pop rsi
ret
Function at 0x140077fc0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15d, r9d
mov rdi, r8
mov rbx, rdx
mov rbp, rcx
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, 1
mov edx, 0x1048
xor r8d, r8d
call fcn.140012388
mov rsi, rax
mov dword [rax], 0
lea r14, [rax + 8]
mov qword [rax + 8], rbp
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call rbp
mov qword [rsi + 0x10], rax
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call rbp
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x1040], rbx
mov byte [rsi + 0x22], 0
mov word [rsi + 0x20], 0
mov qword [rsi + 0x28], rdi
mov dword [rsi + 0x30], r15d
mov rcx, qword [0x1400daf08]
test rcx, rcx
jne 0x14007806c
lea rcx, [0x1400780c9]
call fcn.1400630f8
mov rcx, rax
mov qword [0x1400daf08], rax
mov rdx, rsi
call fcn.1400631c0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x1400780df]
xor ecx, ecx
xor edx, edx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400780a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsi + 0x23], 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140084030
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14007826c
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov r15d, r9d
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor r12d, r12d
mov ecx, 1
mov edx, 0x1048
xor r8d, r8d
call fcn.140012388
mov rsi, rax
mov dword [rax], 1
lea r14, [rax + 8]
mov qword [rax + 8], rbp
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call rbp
mov qword [rsi + 0x10], rax
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call rbp
mov qword [rsi + 0x18], rax
mov dword [rsi + 0x20], r12d
mov qword [rsi + 0x28], rbx
lea rcx, [rsi + 0x50]
call fcn.140064e2a
mov dword [rsi + 0x78], r12d
mov qword [rsi + 0x80], rdi
mov dword [rsi + 0x30], r15d
mov rcx, qword [0x1400daf08]
test rcx, rcx
jne 0x140078324
lea rcx, [0x1400780c9]
call fcn.1400630f8
mov rcx, rax
mov qword [0x1400daf08], rax
mov rdx, rsi
call fcn.1400631c0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x14007837f]
xor ecx, ecx
xor edx, edx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140078360
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140084030
mov rax, rsi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140078aba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp byte [0x1400daf20], 0
je 0x140078ad0
add rsp, 0x28
pop rdi
pop rsi
ret
mov byte [0x1400daf20], 1
lea rcx, str.hhctrl.ocx
call fcn.140079f02
mov rsi, rax
test rax, rax
je 0x140078b5f
lea rdx, str.HtmlHelpA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400daf28], rax
test rax, rax
je 0x140078b6a
cmp byte [0x1400daf49], 0
jne 0x140078b7a
mov byte [0x1400daf49], 1
call fcn.140078a74
test eax, eax
je 0x140078b7a
mov rdx, qword [0x1400daf18]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x1400daf4c], eax
test eax, eax
je 0x140078b7a
mov rdx, qword [0x1400daf18]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140078b7a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1400daf40], rax
jmp 0x140078b81
mov qword [0x1400daf28], 0
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x1400daf40]
test rax, rax
jne 0x140078ac9
mov sil, 1
lea rax, str.SoftwareSimonTathamPuTTY64CHMPath
lea rdi, str.SoftwareSimonTathamPuTTYCHMPath
mov rdx, qword [rax]
mov rcx, 0xffffffff80000002
xor r8d, r8d
call fcn.14007a4fa
test rax, rax
jne 0x140078bc3
test sil, 1
je 0x140078ac9
xor esi, esi
mov rax, rdi
jmp 0x140078b9b
mov qword [0x1400daf30], rax
mov byte [0x1400daf38], 0
jmp 0x140078ac9

Function at 0x140078bd6
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1400daf30]
test rcx, rcx
je 0x140078c18
cmp byte [0x1400daf38], 1
jne 0x140078c1a
xor ecx, ecx
xor edx, edx
mov r8d, 0x12
xor r9d, r9d
call qword [0x1400daf28]
mov rcx, qword [0x1400daf30]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [0x1400daf30]
jmp 0x140078c1a
xor ecx, ecx
call fcn.140012402
mov qword [0x1400daf30], 0
mov byte [0x1400daf38], 0
add rsp, 0x28
ret
Function at 0x140078c48
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 [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdx, qword [0x1400daf30]
test rdx, rdx
jne 0x140078d2a
cmp qword [0x1400daf40], 0
je 0x140078d2a
cmp byte [0x1400daf50], 0
jne 0x140078d19
mov byte [0x1400daf50], 1
lea rdx, [rsp + 0x50]
mov ecx, 0x106
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140078d19
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.1400646e3
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 0x140078d9d
mov rsi, rax
jmp 0x140078e24
xor ebx, ebx
mov rcx, rbx
call fcn.140012402
mov rdx, qword [0x1400daf30]
test rdx, rdx
je 0x140078d78
test r15, r15
je 0x140078d62
lea rcx, str._s::__s.html_main
mov r8, r15
call fcn.1400646e3
mov rsi, rax
mov rcx, r13
mov rdx, rax
xor r8d, r8d
xor r9d, r9d
call qword [0x1400daf28]
mov rcx, rsi
call fcn.140012402
jmp 0x140078d71
mov rcx, r13
xor r8d, r8d
xor r9d, r9d
call qword [0x1400daf28]
mov byte [0x1400daf48], 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140084030
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]
call r14
cmp eax, 0x50
jne 0x140078eba
mov rcx, rbx
call fcn.140012402
lea rcx, str._sputty__lu__llu.chm
mov rdx, r13
mov r8d, ebp
mov r9, rdi
call fcn.1400646e3
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
inc rdi
cmp rax, 0xffffffffffffffff
je 0x140078dba
mov rsi, rax
mov r13, qword [rsp + 0x40]
mov r8d, dword [0x1400daf4c]
test r8d, r8d
je 0x140078e7f
mov rbp, qword [0x1400daf40]
xor edi, edi
lea r14, [rsp + 0x4c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
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 0x140078e91
mov eax, dword [rsp + 0x4c]
add edi, eax
inc edi
mov r8d, dword [0x1400daf4c]
cmp r8d, edi
ja 0x140078e45
mov qword [0x1400daf30], rbx
mov byte [0x1400daf38], 1
xor ebx, ebx
jmp 0x140078e9a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, rbx
call fcn.140012402
cmp rsi, 0xffffffffffffffff
je 0x140078d23
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140078d23
mov r13, qword [rsp + 0x40]
jmp 0x140078d1b
Function at 0x140078ec4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
cmp byte [0x1400daf48], 1
jne 0x140078ee4
xor ecx, ecx
xor edx, edx
mov r8d, 0x12
xor r9d, r9d
call qword [0x1400daf28]
mov rcx, qword [0x1400daf30]
test rcx, rcx
je 0x140078f04
cmp byte [0x1400daf38], 1
jne 0x140078f04
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
add rsp, 0x28
ret

Function at 0x140079dc7
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [0x1400db788], 0
je 0x140079dee
mov rsi, qword [0x1400db780]
jmp 0x140079e33
lea rcx, str.secur32.dll
call fcn.140079f02
mov rsi, rax
lea rcx, str.sspicli.dll
call fcn.140079f02
test rsi, rsi
je 0x140079e23
lea rdx, str.GetUserNameExA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
jmp 0x140079e25
xor esi, esi
mov qword [0x1400db780], rsi
mov byte [0x1400db788], 1
test rsi, rsi
je 0x140079e95
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0
mov ecx, 8
xor edx, edx
mov r8, rdi
call rsi
mov ecx, dword [rdi]
mov edx, 1
xor r8d, r8d
call fcn.140012388
mov rsi, rax
mov ecx, 8
mov rdx, rax
mov r8, rdi
call qword [0x1400db780]
test al, al
je 0x140079e8d
mov rcx, rsi
mov edx, 0x40
call fcn.1400857a0
test rax, rax
je 0x140079eeb
mov byte [rax], 0
jmp 0x140079eeb
mov rcx, rsi
call fcn.140012402
lea rdx, [rsp + 0x2c]
mov dword [rdx], 0
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x140079eb2
mov ecx, dword [rsp + 0x2c]
jmp 0x140079ebf
mov dword [rsp + 0x2c], 0x100
mov ecx, 0x100
mov edx, 1
xor r8d, r8d
call fcn.140012388
mov rsi, rax
lea rdx, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x140079eeb
mov rcx, rsi
call fcn.140012402
xor esi, esi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140084030
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x140079f02
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [0x1400db7c0], 0
jne 0x140079f7f
mov edx, dword [0x1400db7c8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r9d, eax
cmp qword [0x1400db7c8], r9
ja 0x140079f7f
lea rdi, [0x1400db7c8]
mov rbx, qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov rcx, qword [0x1400db7c0]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 1
mov r8d, 1
mov rdx, rdi
call fcn.14001240c
mov qword [0x1400db7c0], rax
mov edx, dword [0x1400db7c8]
mov rcx, rax
call rbx
mov r9d, eax
cmp qword [0x1400db7c8], r9
jbe 0x140079f3e
mov rcx, qword [0x1400db7c0]
lea rdx, [0x1400c4057]
mov r8, rsi
xor r9d, r9d
call fcn.140064786
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
mov rcx, rsi
call fcn.140012402
mov rax, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x14007a4fa
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r14, r8
mov rsi, rdx
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rcx
test rdx, rdx
je 0x14007a542
lea r8, [rsp + 0x48]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x14007a53d
xor ebx, ebx
xor edi, edi
jmp 0x14007a5ed
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor edi, edi
lea r9, [rsp + 0x44]
mov rdx, r14
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14007a5db
cmp dword [rsp + 0x44], 1
mov ebx, 0
jne 0x14007a5dd
mov ecx, dword [rsp + 0x40]
inc ecx
xor edi, edi
mov edx, 1
xor r8d, r8d
call fcn.140012388
mov rbx, rax
mov eax, dword [rsp + 0x40]
lea rdx, [rsp + 0x3c]
mov dword [rdx], eax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
mov rdx, r14
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14007a5dd
cmp dword [rsp + 0x44], 1
jne 0x14007a5dd
mov eax, dword [rsp + 0x3c]
cmp eax, dword [rsp + 0x40]
jbe 0x14007a5d4
xor edi, edi
jmp 0x14007a5dd
mov byte [rbx + rax], 0
mov rdi, rbx
xor ebx, ebx
test rsi, rsi
je 0x14007a5ed
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.140012402
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140084030
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret