joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402dc0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402dd0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402de0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402e21
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402e18
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402e23
add rax, 0x28
cmp rax, r9
jne 0x402e04
xor eax, eax
ret

Function at 0x402ec0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004053e0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402f2d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402f2d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402f2d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402f24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402f2f
add rax, 0x28
cmp rax, r9
jne 0x402f10
xor eax, eax
add rsp, 0x28
ret

Function at 0x403030
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004053e0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x403050
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403048
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4030ad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4030a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4030b4
add rax, 0x28
cmp rax, r9
jne 0x403090
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x4030d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004053e0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x40313e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40313e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x40313e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40313e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x403135
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x403145
add rcx, 0x28
cmp rcx, rax
jne 0x403120
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x403158
jmp 0x40313e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x403166
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x40313e
test r9d, r9d
jg 0x403150
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x4033c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140007ca0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
lea rdx, [rsp + 0x48]
call fcn.1400a6790
mov rdx, qword [str.l:_v_]
lea rcx, str._s_Command_Line_Error
mov rdi, rax
call fcn.1400a6690
mov rcx, qword [0x1400ef010]
mov r9d, 0x10
mov r8, rax
mov rdx, rdi
mov rbx, rax
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rdi
call fcn.1400a62e0
mov rcx, rbx
call fcn.1400a62e0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140009780
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
cmp byte [rcx], 0x26
mov rdi, rdx
jne 0x14000983c
inc rcx
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x80]
lea rdx, str._p:_u
call fcn.14000ae40
cmp eax, 2
jne 0x14000983c
mov eax, dword [rsp + 0x70]
xor r9d, r9d
mov rcx, qword [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
je 0x14000983c
mov ecx, dword [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rcx
mov rcx, rdi
mov qword [rsp + 0x50], rax
call fcn.1400a8020
test al, al
je 0x140009849
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov rbx, qword [rsp + 0x78]
xor al, al
add rsp, 0x60
pop rdi
ret
lea rcx, str.Serialised_configuration_data_was_invalid
call fcn.14000a3b0
int3

Function at 0x14000a140
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x138
mov rax, qword [0x14013b4f8]
xor rax, rsp
mov qword [rsp + 0x120], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x14000a193
test byte [rsp + 0x32], 0x80
jne 0x14000a179
test byte [rsp + 0xc5], 0x80
je 0x14000a193
mov al, 1
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400b0530
add rsp, 0x138
ret
xor al, al
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400b0530
add rsp, 0x138
ret

Function at 0x14000ac70
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14013b4f8]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx ecx, cx
lea r8, [rsp + 0x20]
mov r9d, 0x14
mov edx, 0x1004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x14013c7b4], eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b0530
add rsp, 0x48
ret
Function at 0x14000aea0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
movzx eax, byte [0x1400e1b22]
mov rcx, qword [0x14013c0a0]
mov byte [0x14013b552], al
call fcn.14000b630
mov r8, qword [str.P__v_]
lea rcx, str.P__v_
mov dl, 1
mov rbp, rax
call qword [r8 + 0xb0]
mov rcx, qword [0x14013c0a0]
mov edx, 8
call fcn.1400a8210
mov rcx, qword [0x14013c0a0]
mov edx, 7
movzx esi, al
call fcn.1400a8210
mov rcx, qword [0x14013c0a0]
mov edx, 1
movzx edi, al
call fcn.1400a8480
mov rcx, qword [0x14013c0a0]
xor edx, edx
mov ebx, eax
call fcn.1400a8630
mov r9, qword [0x14013c7c8]
lea rcx, [rsp + 0x60]
mov byte [rsp + 0x48], sil
lea r8, [0x14013b568]
mov byte [rsp + 0x40], dil
lea rdx, str.P__v_
mov qword [rsp + 0x38], rcx
mov rcx, rbp
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
mov rax, qword [0x14013c0a0]
mov qword [rsp + 0x20], rax
call qword [rbp]
mov rdi, rax
test rax, rax
je 0x14000b006
mov rdx, qword [str.l:_v_]
lea rcx, str._s_Error
call fcn.1400a6690
test byte [0x1400b36c0], 2
mov rsi, rax
je 0x14000afb0
mov rdx, rdi
lea rcx, str.Unable_to_open_terminal:_n_s
call fcn.1400a6690
jmp 0x14000afce
mov rcx, qword [0x14013c0a0]
call fcn.1400a9270
mov rdx, rax
lea rcx, str.Unable_to_open_connection_to_n_s_n_s
mov r8, rdi
call fcn.1400a6690
mov rcx, rdi
mov rbx, rax
call fcn.1400a62e0
mov r9d, 0x10
mov r8, rsi
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rsi
call fcn.1400a62e0
mov rcx, rbx
call fcn.1400a62e0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x14013c0a8]
call fcn.14001c6e0
mov rcx, qword [rsp + 0x60]
call fcn.1400a62e0
mov rdx, qword [0x14013b568]
mov rcx, qword [0x14013c0a8]
call fcn.14001bd50
mov r8, qword [0x14013b568]
lea r9, str.P__v_
mov rdx, qword [0x14013c0a8]
mov rcx, qword [0x14013c0a0]
call fcn.140024f00
mov qword [0x14013b560], rax
lea rbx, [0x14013c090]
xor edi, edi
nop word [rax + rax]
mov rcx, qword [rbx]
xor r8d, r8d
lea edx, [r8 + 0x40]
call qword [sym.imp.USER32.dll_DeleteMenu]
inc edi
lea rbx, [rbx + 8]
cmp edi, 2
jb 0x14000b070
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov byte [0x14013b553], 0
add rsp, 0x50
pop rdi
ret
Function at 0x14000b520
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
cmp ecx, 2
jne 0x14000b623
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x20
mov r14, rdx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
mov ecx, 0x2002
movsxd rsi, r8d
movzx ebp, r9b
lea rdx, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x14000b60e
mov rcx, rax
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
test rax, rax
je 0x14000b609
mov r8, rsi
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
mov byte [rsi + rdi], 0
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test bpl, bpl
jne 0x14000b5b6
mov rcx, qword [0x1400ef010]
xor r9d, r9d
mov edx, 0x8002
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [0x1400ef010]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14000b5e3
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rbx
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x14000b5ec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test bpl, bpl
jne 0x14000b609
mov rcx, qword [0x1400ef010]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.USER32.dll_SendMessageA]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000bc00
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x20
mov r8, qword [0x14013c930]
mov r10, rdx
mov rbx, rcx
test r8, r8
je 0x14000bc43
mov rax, qword [rdx]
mov rcx, r10
mov r9, qword [r8 + 0x10]
xor edx, edx
mov r8, qword [r8 + 8]
call qword [rax]
mov r8, rbx
lea rdx, [0x14000b6b0]
mov ecx, 0x3e8
add rsp, 0x20
pop rbx
jmp fcn.140031d30
add rsp, 0x20
pop rbx
ret

Function at 0x14000bcc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x28
cmp byte [0x14013c969], 0
jne 0x14000be1a
mov qword [rsp + 0x30], rbx
lea rcx, str.hhctrl.ocx
mov qword [rsp + 0x20], rdi
mov byte [0x14013c969], 1
call fcn.1400a4240
mov rdi, rax
test rax, rax
je 0x14000bdfe
lea rdx, str.HtmlHelpA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14013c950], rax
test rax, rax
je 0x14000be07
cmp byte [0x14013c94b], 0
jne 0x14000bd9a
cmp byte [0x14013c94a], 0
mov byte [0x14013c94b], 1
jne 0x14000bd53
mov edx, 0x7d0
mov byte [0x14013c94a], 1
mov r8d, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [0x14013c958], rax
jmp 0x14000bd5a
mov rax, qword [0x14013c958]
test rax, rax
je 0x14000bd9a
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x14013c94c], eax
test eax, eax
je 0x14000bd9a
mov rdx, qword [0x14013c958]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000bd9a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x14013c960], rax
jmp 0x14000bda1
mov rax, qword [0x14013c960]
test rax, rax
jne 0x14000be10
xor ebx, ebx
lea rdi, str.SoftwareSimonTathamPuTTY64CHMPath
nop
mov rdx, qword [rbx + rdi]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call fcn.1400a9f40
test rax, rax
jne 0x14000bde1
add rbx, 8
cmp rbx, 0x10
jb 0x14000bdb0
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
mov qword [0x14013c940], rax
mov byte [0x14013c948], 0
add rsp, 0x28
ret
xor ebx, ebx
mov qword [0x14013c950], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x14000be20
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
mov r11, rsp
push rbx
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x14013b4f8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r14, rdx
mov r15, rcx
mov rdx, qword [0x14013c940]
test rdx, rdx
jne 0x14000c01c
cmp qword [0x14013c960], rdx
je 0x14000c073
mov qword [r11 + 0x20], rsi
mov qword [r11 - 0x20], rdi
lea rdi, [rdx - 1]
mov qword [r11 - 0x28], r12
xor r12d, r12d
mov esi, r12d
cmp byte [0x14013c968], sil
jne 0x14000bfe1
lea rdx, [rsp + 0x50]
mov byte [0x14013c968], 1
mov ecx, 0x106
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x14000bfe1
mov qword [rsp + 0x1b0], rbp
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor r9d, r9d
lea rdx, [rsp + 0x50]
mov r8d, eax
lea rcx, str._sputty__lu__llu.chm
mov ebp, eax
mov ebx, r12d
call fcn.1400a6690
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 1
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000bf6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x14000bfd9
mov rcx, rsi
call fcn.1400a62e0
inc rbx
lea rdx, [rsp + 0x50]
mov r9, rbx
lea rcx, str._sputty__lu__llu.chm
mov r8d, ebp
call fcn.1400a6690
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, rax
mov dword [rsp + 0x20], 1
mov rsi, rax
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000bf07
mov eax, dword [0x14013c94c]
mov ebx, r12d
mov rbp, qword [0x14013c960]
test eax, eax
je 0x14000bfc8
nop dword [rax]
nop word [rax + rax]
sub eax, ebx
mov edx, ebx
add rdx, rbp
mov dword [rsp + 0x40], r12d
mov r8d, eax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000c04f
add ebx, dword [rsp + 0x40]
mov eax, dword [0x14013c94c]
cmp ebx, eax
jb 0x14000bf90
mov qword [0x14013c940], rsi
mov rsi, r12
mov byte [0x14013c948], 1
mov rbp, qword [rsp + 0x1b0]
mov rcx, rsi
call fcn.1400a62e0
mov r12, qword [rsp + 0x170]
mov rsi, qword [rsp + 0x1b8]
cmp rdi, 0xffffffffffffffff
je 0x14000c008
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [0x14013c940]
mov rdi, qword [rsp + 0x178]
test rdx, rdx
je 0x14000c073
test r14, r14
je 0x14000c05d
mov r8, r14
lea rcx, str._s::__s.html_main
call fcn.1400a6690
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, r15
mov rbx, rax
call qword [0x14013c950]
mov rcx, rbx
call fcn.1400a62e0
jmp 0x14000c06c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x14000bfd9
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [0x14013c950]
mov byte [0x14013c949], 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400b0530
add rsp, 0x180
pop r15
pop r14
pop rbx
ret
Function at 0x14000c090
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
cmp byte [0x14013c949], 0
je 0x14000c0ae
xor r9d, r9d
xor edx, edx
xor ecx, ecx
lea r8d, [r9 + 0x12]
call qword [0x14013c950]
mov rcx, qword [0x14013c940]
test rcx, rcx
je 0x14000c0ce
cmp byte [0x14013c948], 0
je 0x14000c0ce
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_DeleteFileA]
add rsp, 0x28
ret

Function at 0x14000c0e0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14013c940]
test rcx, rcx
je 0x14000c11e
cmp byte [0x14013c948], 0
je 0x14000c11e
xor r9d, r9d
xor edx, edx
xor ecx, ecx
lea r8d, [r9 + 0x12]
call qword [0x14013c950]
mov rcx, qword [0x14013c940]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [0x14013c940]
call fcn.1400a62e0
mov qword [0x14013c940], 0
mov byte [0x14013c948], 0
add rsp, 0x28
ret

Function at 0x14000dac0
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [0x14013ed20]
lea r9, [fcn.14000dab0]
xor r8d, r8d
mov qword [rsp + 0x20], 0
lea edx, [r8 + 0x6f]
call qword [sym.imp.USER32.dll_CreateDialogParamA]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetActiveWindow]
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_DestroyWindow]
Function at 0x140010d70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push r12
push r13
sub rsp, 0x30
mov r13, rcx
mov r12, rdx
mov rcx, rdx
call fcn.1400a32e0
mov esi, eax
sub esi, 1
js 0x140010ed6
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
nop dword [rax]
mov edx, esi
mov rcx, r12
call fcn.1400a3ef0
xor edi, edi
xor ebx, ebx
movsxd r15, dword [rax + 4]
test r15d, r15d
jle 0x140010ea3
mov rax, qword [rax + 0x18]
lea r9, [r13 + 0x8c]
movzx r14d, byte [r9 + 8]
nop dword [rax + rax]
mov r10, r9
mov r11, rax
cmp byte [rax + 8], r14b
jne 0x140010ea3
movzx ecx, byte [r9 + 9]
cmp byte [rax + 9], cl
jne 0x140010ea3
movzx ecx, byte [r9 + 0xa]
cmp byte [rax + 0xa], cl
jne 0x140010ea3
movzx ecx, byte [r9 + 0xb]
cmp byte [rax + 0xb], cl
jne 0x140010ea3
movzx ecx, byte [r9 + 0xc]
cmp byte [rax + 0xc], cl
jne 0x140010ea3
movzx ecx, byte [r9 + 0xd]
cmp byte [rax + 0xd], cl
jne 0x140010ea3
movzx ecx, byte [r9 + 0xe]
cmp byte [rax + 0xe], cl
jne 0x140010ea3
movzx ecx, byte [r9 + 0xf]
cmp byte [rax + 0xf], cl
jne 0x140010ea3
mov ecx, dword [r9]
cmp dword [rax], ecx
jne 0x140010ea3
mov ecx, dword [rax + 4]
xor ecx, dword [r9 + 4]
test ecx, 0xfffffff
jne 0x140010ea3
nop dword [rax + rax]
movsxd rcx, dword [r11 + 0x10]
movsxd r8, dword [r10 + 0x10]
test ecx, ecx
je 0x140010e8c
test r8d, r8d
je 0x140010ea3
lea rdx, [rcx + rcx*4]
lea r11, [r11 + rdx*4]
lea rdx, [r8 + r8*4]
mov ecx, dword [r10 + rdx*4]
lea r10, [r10 + rdx*4]
cmp dword [r11], ecx
je 0x140010e60
jmp 0x140010ea3
test r8d, r8d
jne 0x140010ea3
inc edi
inc rbx
add rax, 0x14
cmp rbx, r15
jl 0x140010de0
cmp edi, r15d
jne 0x140010eb1
sub esi, 1
jns 0x140010db0
mov r14, qword [rsp + 0x28]
mov eax, esi
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
add rsp, 0x30
pop r13
pop r12
pop rsi
ret
mov eax, esi
add rsp, 0x30
pop r13
pop r12
pop rsi
ret
Function at 0x14001b810
Capabilities:
Inspect section memory permissions

Disassembly:
sub rsp, 0x38
mov eax, dword [rcx + 0x178]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x30], rdi
xor edi, edi
test edx, edx
mov qword [rsp + 0x28], r14
mov ebp, edi
mov qword [rsp + 0x20], r15
cmovns ebp, edx
mov r14d, r9d
test r8d, r8d
cmovns edi, r8d
cmp r9d, eax
jl 0x14001b84f
lea r14d, [rax - 1]
mov edx, dword [rcx + 0x174]
mov eax, dword [rsp + 0x60]
cmp eax, edx
jl 0x14001b860
lea eax, [rdx - 1]
movsxd rbx, edi
movsxd r15, eax
cmp rbx, r15
jg 0x14001b950
mov qword [rsp + 0x50], rsi
movsxd rsi, ebp
nop word [rax + rax]
cmp edi, dword [rcx + 0x174]
jge 0x14001b94b
mov rax, qword [rcx + 0x28]
mov rdx, qword [rax + rbx*8]
test byte [rdx], 3
jne 0x14001b8e6
movsxd r11, r14d
mov r8d, ebp
mov r10, rsi
cmp rsi, r11
jg 0x14001b93d
lea r9, [rsi + rsi*4]
shl r9, 2
cmp r8d, dword [rcx + 0x178]
jge 0x14001b93d
mov rax, qword [rcx + 0x28]
inc r8d
inc r10
mov rdx, qword [rax + rbx*8]
mov rax, qword [rdx + 0x18]
or dword [rax + r9 + 4], 0x3ffff
add r9, 0x14
cmp r10, r11
jle 0x14001b8b3
jmp 0x14001b93d
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
movsxd r8, eax
mov eax, r14d
cdq
mov r10, r8
sub eax, edx
sar eax, 1
inc eax
movsxd r11, eax
cmp r8, r11
jg 0x14001b93d
lea r9, [r8 + r8*4]
shl r9, 2
nop dword [rax]
cmp r8d, dword [rcx + 0x178]
jge 0x14001b93d
mov rax, qword [rcx + 0x28]
inc r8d
inc r10
mov rdx, qword [rax + rbx*8]
mov rax, qword [rdx + 0x18]
or dword [rax + r9 + 4], 0x3ffff
add r9, 0x14
cmp r10, r11
jle 0x14001b910
inc edi
inc rbx
cmp rbx, r15
jle 0x14001b880
mov rsi, qword [rsp + 0x50]
cmp byte [rsp + 0x68], 0
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
je 0x14001b979
add rsp, 0x38
jmp fcn.14000f870
cmp byte [rcx + 0x10f1], 0
jne 0x14001b99c
mov byte [rcx + 0x10f1], 1
mov rdx, rcx
lea rcx, [0x14001d600]
add rsp, 0x38
jmp fcn.140031f90
add rsp, 0x38
ret
Function at 0x140024960
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 8]
mov rsi, rdx
mov rdi, rcx
test eax, eax
jne 0x14002497f
call fcn.140024520
mov eax, dword [rdi + 8]
cmp eax, 1
jne 0x14002499e
mov r8, qword [rsi + 8]
lea rcx, [rdi + 0x10]
mov rdx, qword [rsi]
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400aa8e0
cmp eax, 2
jne 0x140024a0a
mov r9, qword [rdi]
test r9, r9
jne 0x1400249c6
lea r8d, [rax + 0x2e]
lea rdx, str.C:Usersyangjun04Downloadsputty_srclogging.c
lea rcx, str.ctx__lgfp
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov r9, qword [rdi]
mov r8, qword [rsi + 8]
mov edx, 1
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, qword [rsi + 8]
jae 0x140024a0a
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400249f3
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi], 0
mov rcx, qword [rdi + 0x40]
lea rdx, str.Disabled_writing_session_log_due_to_error_while_writing
mov dword [rdi + 8], 3
mov rax, qword [rcx]
call qword [rax]
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140031300
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp byte [0x14013dad0], 0
jne 0x140031433
lea rcx, str.winspool.drv
mov qword [rsp + 0x20], rbx
call fcn.1400a4240
lea rcx, str.spoolss.dll
mov rbx, rax
call fcn.1400a4240
test rbx, rbx
je 0x1400313ed
lea rdx, str.EnumPrintersA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.OpenPrinterA
mov rcx, rbx
mov qword [0x14013da90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ClosePrinter
mov rcx, rbx
mov qword [0x14013da98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.StartDocPrinterA
mov rcx, rbx
mov qword [0x14013daa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.EndDocPrinter
mov rcx, rbx
mov qword [0x14013daa8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.StartPagePrinter
mov rcx, rbx
mov qword [0x14013dab0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.EndPagePrinter
mov rcx, rbx
mov qword [0x14013dab8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WritePrinter
mov rcx, rbx
mov qword [0x14013dac0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140031420
xor eax, eax
mov qword [0x14013da90], rax
mov qword [0x14013da98], rax
mov qword [0x14013daa0], rax
mov qword [0x14013daa8], rax
mov qword [0x14013dab0], rax
mov qword [0x14013dab8], rax
mov qword [0x14013dac0], rax
mov rbx, qword [rsp + 0x20]
mov qword [0x14013dac8], rax
mov byte [0x14013dad0], 1
add rsp, 0x28
ret