joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1403ae540
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
mov r11, qword [rcx]
mov rsi, rdx
mov r10, qword [rcx + 8]
mov rbx, rcx
mov r9, qword [rcx + 0x10]
mov rdi, qword [rcx + 0x18]
mov rax, qword [rcx + 0x20]
shl r11, 0x38
cmp dword [rcx + 0x30], 0
je 0x1403ae7be
test r8, r8
je 0x1403ae7be
mov r14d, dword [rcx + 0x2c]
cmp r8, r14
jne 0x1403ae7be
mov ecx, dword [rcx + 0x28]
dec ecx
cmp ecx, 6
ja case.default.0x1403ae5ad
lea r8, [0x140000000]
mov edx, dword [r8 + rcx*4 + 0x3ae7d8]
add rdx, r8
jmp rdx
movzx ecx, byte [rbx + 0x3e]
shl rcx, 0x30
or r11, rcx
movzx ecx, byte [rbx + 0x3d]
shl rcx, 0x28
or r11, rcx
movzx ecx, byte [rbx + 0x3c]
shl rcx, 0x20
or r11, rcx
movzx ecx, byte [rbx + 0x3b]
shl rcx, 0x18
or r11, rcx
movzx ecx, byte [rbx + 0x3a]
shl rcx, 0x10
or r11, rcx
movzx ecx, byte [rbx + 0x39]
shl rcx, 8
or r11, rcx
movzx ecx, byte [rbx + 0x38]
or r11, rcx
xor rax, r11
cmp dword [rbx + 0x30], 0
jbe 0x1403ae656
mov r8d, dword [rbx + 0x30]
nop word [rax + rax]
add rdi, rax
add r10, r9
ror r9, 0x33
xor r9, r10
ror rax, 0x30
xor rax, rdi
ror r10, 0x20
add rdi, r9
add r10, rax
mov rdx, rdi
ror r9, 0x2f
mov rcx, rdi
shr rdx, 0x20
xor r9, rdi
ror rax, 0x2b
shl rcx, 0x20
mov rdi, rdx
or rdi, rcx
xor rax, r10
sub r8, 1
jne 0x1403ae610
xor r10, r11
mov ecx, 0xff
cmp r14d, 0x10
mov r8d, 0xee
cmovne r8d, ecx
mov ecx, dword [rbx + 0x34]
xor r8, rdi
test ecx, ecx
je 0x1403ae6c6
mov r11d, ecx
nop dword [rax]
add r8, rax
add r10, r9
ror r9, 0x33
xor r9, r10
ror rax, 0x30
xor rax, r8
ror r10, 0x20
add r8, r9
add r10, rax
mov rdx, r8
ror r9, 0x2f
mov rcx, r8
shr rdx, 0x20
xor r9, r8
ror rax, 0x2b
shl rcx, 0x20
mov r8, rdx
or r8, rcx
xor rax, r10
sub r11, 1
jne 0x1403ae680
mov rdx, rax
xor rdx, r8
xor rdx, r9
xor rdx, r10
mov ecx, edx
mov byte [rsi], dl
shr ecx, 8
mov byte [rsi + 1], cl
mov ecx, edx
shr ecx, 0x10
mov byte [rsi + 2], cl
mov ecx, edx
shr ecx, 0x18
shr rdx, 0x20
mov byte [rsi + 3], cl
mov ecx, edx
shr ecx, 8
mov byte [rsi + 5], cl
mov ecx, edx
mov byte [rsi + 4], dl
shr ecx, 0x10
shr edx, 0x18
mov byte [rsi + 6], cl
mov byte [rsi + 7], dl
cmp dword [rbx + 0x2c], 8
je 0x1403ae7b7
mov ecx, dword [rbx + 0x34]
xor r9, 0xdd
test ecx, ecx
je 0x1403ae776
mov r11d, ecx
nop dword [rax]
nop dword [rax + rax]
add r8, rax
add r10, r9
ror r9, 0x33
xor r9, r10
ror rax, 0x30
xor rax, r8
ror r10, 0x20
add r8, r9
add r10, rax
mov rdx, r8
ror r9, 0x2f
mov rcx, r8
shr rdx, 0x20
xor r9, r8
ror rax, 0x2b
shl rcx, 0x20
mov r8, rdx
or r8, rcx
xor rax, r10
sub r11, 1
jne 0x1403ae730
xor rax, r8
xor rax, r9
xor rax, r10
mov ecx, eax
mov byte [rsi + 8], al
shr ecx, 8
mov byte [rsi + 9], cl
mov ecx, eax
shr ecx, 0x10
mov byte [rsi + 0xa], cl
mov ecx, eax
shr ecx, 0x18
shr rax, 0x20
mov byte [rsi + 0xb], cl
mov ecx, eax
shr ecx, 8
mov byte [rsi + 0xd], cl
mov ecx, eax
shr ecx, 0x10
mov byte [rsi + 0xc], al
shr eax, 0x18
mov byte [rsi + 0xf], al
mov byte [rsi + 0xe], cl
mov eax, 1
jmp 0x1403ae7c0
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
ret
Function at 0x1403b7930
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x68
call fcn.14022aff0
sub rsp, rax
mov rax, qword [0x1404bf700]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [rcx + 0x3c]
mov rdi, r9
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test eax, eax
je 0x1403b7a63
movups xmm0, xmmword [rcx + 0x10]
mov r15, qword [rcx + 0x20]
lea rbx, [rcx + 0x10]
dec eax
mov dword [rsp + 0x28], 1
mov dword [rcx + 0x3c], eax
xor r9d, r9d
mov eax, dword [rbx + 8]
xor r8d, r8d
and al, 0x7f
mov dword [rsp + 0x30], edi
movups xmmword [rsp + 0x48], xmm0
and byte [rsp + 0x54], 0x7f
xor edx, edx
mov byte [rsp + 0x50], al
mov rcx, r15
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call fcn.140260d70
test eax, eax
je 0x1403b7a63
mov eax, dword [rsp + 0x30]
lea r8, [rsp + 0x30]
mov r9, r14
mov dword [rsp + 0x20], eax
mov rdx, rbp
mov rcx, r15
call fcn.140261a10
test eax, eax
je 0x1403b7a63
mov r9, rdi
lea rdx, [rsp + 0x38]
mov r8, rbp
mov rcx, rsi
call fcn.1403b8060
test eax, eax
je 0x1403b7a63
lea rax, [rbx + 0xf]
xor r8d, r8d
lea rcx, [rsp + 0x38]
cmp rcx, rax
ja 0x1403b7a39
lea rax, [rsp + 0x47]
cmp rax, rbx
jb 0x1403b7a39
lea rcx, [rsp + 0x38]
mov eax, r8d
sub rbx, rcx
nop
lea rdx, [rsp + 0x38]
add rdx, rax
inc rax
movzx ecx, byte [rbx + rdx]
xor byte [rdx], cl
cmp rax, 0x10
jl 0x1403b7a20
jmp 0x1403b7a4c
movdqu xmm1, xmmword [rsp + 0x38]
movdqu xmm0, xmmword [rbx]
xorps xmm1, xmm0
movdqu xmmword [rsp + 0x38], xmm1
mov rax, qword [rsp + 0x38]
or rax, qword [rsp + 0x40]
je 0x1403b7a7f
mov rdx, rdi
mov rcx, rbp
call fcn.140001240
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14022a640
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [rsi + 0x38], r8d
mov eax, edi
jmp 0x1403b7a65
Function at 0x1400017f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140002620
mov r8d, 0x1b
mov edx, 1
lea rcx, str.MhMwTORjmwNHxNTDQivYLQRYaj_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002620
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001860
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400080b4]
mov rbx, rcx
test esi, esi
jle 0x140001990
mov rax, qword [0x1400080b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400018ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001935
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001890
mov rcx, rbx
call fcn.1400022b0
mov rdi, rax
test rax, rax
je 0x1400019b2
mov rax, qword [0x1400080b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400023f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400080b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001997
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000192e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001940
add dword [0x1400080b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400080b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000192e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.yJfUiLzraIOPIEJZpGDBXMuorAaVgjkqWWIdSi
mov edx, eax
call fcn.1400017f0
nop dword [rax]
xor esi, esi
jmp 0x1400018b8
mov rax, qword [0x1400080b8]
mov edx, dword [rdi + 8]
lea rcx, str.lQOFHMCtjZywOgNTSYRXhCDvSmaWthfQZLNqyUNdKkljUWNK
mov r8, qword [rax + rbx + 0x18]
call fcn.1400017f0
mov rdx, rbx
lea rcx, str.rmajOBncSZvtbZdxkFkaEirvwOnwUhL
call fcn.1400017f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140008100]
test rbx, rbx
je 0x140001f7c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001f73
test rsi, rsi
je 0x140001f73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f58
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400022b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140005410]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000232d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002324
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022d0
add rax, 0x28
cmp rax, r9
jne 0x140002310
xor eax, eax
ret

Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005410]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000234f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002358
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000234f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400023f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005410]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000240f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002418
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002790
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push rdi
mov rdx, rcx
xor eax, eax
mov ecx, 0x19
sub rsp, 0xd0
lea r8, [rsp + 0x6c]
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], 0x68
mov rdi, r8
lea r8, [rsp + 0x50]
rep stosd dword [rdi], eax
mov rdi, r8
mov ecx, 6
rep stosd dword [rdi], eax
xor eax, eax
mov qword [rsp + 0x48], r8
xor r8d, r8d
mov qword [rsp + 0x40], r9
xor r9d, r9d
mov dword [rsp + 0x20], r8d
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, eax
xor eax, eax
test edx, edx
je 0x140002812
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x50]
add rsp, 0xd0
pop rdi
ret
Function at 0x140002e90
Capabilities:
Get hostname

Disassembly:
push rbp
mov rbp, rdx
push rdi
push rsi
mov rsi, r8
push rbx
mov rbx, rcx
mov ecx, 2
sub rsp, 0x148
lea rdi, [rsp + 0x3c]
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
mov rcx, rdi
call sub.msvcrt.dll_strlen
mov rcx, rbp
mov r8, rdi
mov edx, esi
mov r9, rax
call fcn.140002910
mov rcx, rbx
call fcn.140002790
test rax, rax
je 0x140002f0b
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call fcn.140002fb0
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
test rax, rax
mov rdx, rax
jne 0x140002f12
mov rcx, rbx
call rdi
mov eax, 1
jmp 0x140002f8f
mov r8, rbp
mov r9, rsi
mov rcx, rbx
mov qword [rsp + 0x28], rax
call fcn.140003060
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, qword [rsp + 0x28]
test eax, eax
je 0x140002f6a
mov r9d, 0x20
mov r8, rsi
mov rcx, rbx
mov qword [rsp + 0x28], rdx
call fcn.140002820
mov rdx, qword [rsp + 0x28]
test eax, eax
je 0x140002f6a
mov rcx, rbx
mov qword [rsp + 0x28], rdx
call fcn.140002cd0
mov rdx, qword [rsp + 0x28]
test eax, eax
jne 0x140002f7a
mov r9d, 0x8000
xor r8d, r8d
mov rcx, rbx
call rbp
jmp 0x140002f06
mov r9d, 0x8000
xor r8d, r8d
mov rcx, rbx
call rbp
mov rcx, rbx
call rdi
xor eax, eax
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140004bf0
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140076008]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r8, str.Please_wait_while_a_key_is_generated...
mov edx, 0x69
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, 0xffff0000
mov qword [rsp + 0x20], rax
mov rbx, qword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov rcx, rdi
mov edx, 0x6a
mov r8d, 0x401
xor r9d, r9d
call rbx
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov edx, 0x6a
mov r8d, 0x402
xor r9d, r9d
call rbx
mov ecx, 1
mov edx, 0x38
xor r8d, r8d
call fcn.140024930
mov rbx, rax
mov rcx, rdi
mov edx, 0x6a
call qword [sym.imp.USER32.dll_GetDlgItem]
mov qword [rbx], rax
mov qword [rbx + 8], rdi
mov eax, dword [rsi + 0x1c]
mov dword [rbx + 0x10], eax
mov eax, dword [rsi + 0x20]
mov dword [rbx + 0x14], eax
mov eax, dword [rsi + 0x28]
mov dword [rbx + 0x18], eax
mov rax, qword [rsi + 0x30]
mov qword [rbx + 0x20], rax
mov al, byte [rsi + 0x38]
mov byte [rbx + 0x28], al
lea rax, [rsi + 0x58]
mov qword [rbx + 0x30], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x140005580]
xor ecx, ecx
xor edx, edx
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140004ce9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsi], 1
jmp 0x140004d0e
lea rdx, str.Out_of_thread_resources
lea r8, str.Key_generation_error
mov rcx, rdi
mov r9d, 0x10
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rbx
call fcn.1400249d0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140037270
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x140005c60
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 [0x140076008]
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.140048530
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 0x140005d00
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 0x140005ce0
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.140005b10
test al, al
je 0x140005d47
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov edx, 0x20
call r14
mov edx, 0x20
mov rcx, rdi
call fcn.140024d50
mov rcx, r14
call fcn.140005f50
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140037270
nop
add rsp, 0x2a8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140005d70
Capabilities:
Get memory capacity

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rax, qword [0x140076008]
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.14000a460
call qword [sym.imp.USER32.dll_GetCapture]
mov qword [rsp + 0x78], rax
mov ecx, 0xa
mov rdx, rsi
mov r8d, 8
call fcn.14000a460
call qword [sym.imp.USER32.dll_GetClipboardOwner]
mov qword [rsp + 0x78], rax
mov ecx, 0xb
mov rdx, rsi
mov r8d, 8
call fcn.14000a460
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.14000a460
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.14000a460
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.14000a460
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.14000a460
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.14000a460
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140037270
nop
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140005f50
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 [0x140076008]
xor rax, rsp
mov qword [rsp + 0x438], rax
mov ecx, 1
call fcn.140006030
cmp rax, 0xffffffffffffffff
je 0x140006005
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 0x140005ffc
mov edx, dword [rsp + 0x2c]
test edx, edx
je 0x140005ffc
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 0x140005ffc
mov edx, dword [rsp + 0x2c]
test edx, edx
jne 0x140005fd0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x438]
xor rcx, rsp
call fcn.140037270
nop
add rsp, 0x440
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140006310
Capabilities:
Write file on windows

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

Function at 0x140006380
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 0x1400063df
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 0x14000641f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140006416
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140006416
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140027b50
lea rcx, str.Unable_to_delete__s:__s
mov rdx, rdi
mov r8, rax
call fcn.1400010e0
mov qword [rsi], 0xffffffffffffffff
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x140006480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
sub rsp, 0x20
cmp byte [0x140076d68], 0
je 0x140006494
add rsp, 0x20
pop rsi
ret
mov byte [0x140076d68], 1
lea rcx, str.hhctrl.ocx
call fcn.140026900
mov rsi, rax
test rax, rax
je 0x1400064f6
lea rdx, str.HtmlHelpA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140076d70], rax
test rax, rax
je 0x140006501
cmp byte [0x140076d91], 0
jne 0x140006571
mov byte [0x140076d91], 1
cmp byte [0x140076d58], 1
jne 0x140006510
mov rdx, qword [0x140076d60]
test rdx, rdx
jne 0x140006539
jmp 0x140006571
mov qword [0x140076d70], 0
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [0x140076d58], 1
mov edx, 0x7d0
mov r8d, 0x7d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
mov qword [0x140076d60], rax
test rdx, rdx
je 0x140006571
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x140076d94], eax
test eax, eax
je 0x140006571
mov rdx, qword [0x140076d60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140006571
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x140076d88], rax
jmp 0x140006578
mov rax, qword [0x140076d88]
test rax, rax
jne 0x14000648e
lea rdx, str.SoftwareSimonTathamPuTTY64CHMPath
mov rcx, 0xffffffff80000002
xor r8d, r8d
call fcn.140026bd0
test rax, rax
jne 0x1400065bb
lea rdx, str.SoftwareSimonTathamPuTTYCHMPath
mov rcx, 0xffffffff80000002
xor r8d, r8d
call fcn.140026bd0
test rax, rax
je 0x14000648e
mov qword [0x140076d78], rax
mov byte [0x140076d80], 0
jmp 0x14000648e

Function at 0x1400065d0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140076d78]
test rcx, rcx
je 0x140006612
cmp byte [0x140076d80], 1
jne 0x140006614
xor ecx, ecx
xor edx, edx
mov r8d, 0x12
xor r9d, r9d
call qword [0x140076d70]
mov rcx, qword [0x140076d78]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [0x140076d78]
jmp 0x140006614
xor ecx, ecx
call fcn.1400249d0
mov qword [0x140076d78], 0
mov byte [0x140076d80], 0
add rsp, 0x28
ret
Function at 0x140006650
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 [0x140076008]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdx, qword [0x140076d78]
test rdx, rdx
jne 0x140006732
cmp qword [0x140076d88], 0
je 0x140006732
cmp byte [0x140076d98], 0
jne 0x140006721
mov byte [0x140076d98], 1
lea rdx, [rsp + 0x50]
mov ecx, 0x106
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140006721
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.140024010
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 0x1400067a5
mov rsi, rax
jmp 0x14000683b
xor ebx, ebx
mov rcx, rbx
call fcn.1400249d0
mov rdx, qword [0x140076d78]
test rdx, rdx
je 0x140006780
test r15, r15
je 0x14000676a
lea rcx, str._s::__s.html_main
mov r8, r15
call fcn.140024010
mov rsi, rax
mov rcx, r13
mov rdx, rax
xor r8d, r8d
xor r9d, r9d
call qword [0x140076d70]
mov rcx, rsi
call fcn.1400249d0
jmp 0x140006779
mov rcx, r13
xor r8d, r8d
xor r9d, r9d
call qword [0x140076d70]
mov byte [0x140076d90], 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140037270
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 0x1400068d6
mov rcx, rbx
call fcn.1400249d0
lea rcx, str._sputty__lu__llu.chm
mov rdx, r13
mov r8d, ebp
mov r9, rdi
call fcn.140024010
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 0x1400067d0
mov rsi, rax
mov r13, qword [rsp + 0x40]
mov r8d, dword [0x140076d94]
test r8d, r8d
je 0x14000689b
mov rbp, qword [0x140076d88]
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 0x1400068ad
mov eax, dword [rsp + 0x4c]
add edi, eax
add edi, 1
mov r8d, dword [0x140076d94]
cmp r8d, edi
ja 0x140006860
mov qword [0x140076d78], rbx
mov byte [0x140076d80], 1
xor ebx, ebx
jmp 0x1400068b6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, rbx
call fcn.1400249d0
cmp rsi, 0xffffffffffffffff
je 0x14000672b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000672b
mov r13, qword [rsp + 0x40]
jmp 0x140006723