joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401182c8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0x32
mov r8d, 0x32
lea rdx, [0x14024dfa8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1401182fe
lea rax, [0x14024dfa8]
jmp 0x140118300
xor eax, eax
add rsp, 0x38
ret

Function at 0x140138874
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x28]
xor r8d, r8d
mov edx, 0x8000
mov rcx, qword [rsp + 0x68]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov dword [rsp + 0x24], eax
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.14000b1bc
nop
cmp dword [rsp + 0x24], 0
jge 0x1401388ea
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.1400151f8
lea rdx, [0x14023fc48]
lea rcx, [rsp + 0x38]
call fcn.140183e58
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.140137e64
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x30]
call fcn.1401389e8
mov rax, qword [rsp + 0x60]
add rsp, 0x58
ret

Function at 0x140139754
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x28]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14013979c
cmp dword [rsp + 0x20], 5
je 0x14013978e
cmp dword [rsp + 0x20], 6
je 0x140139795
cmp dword [rsp + 0x20], 9
je 0x14013978a
jmp 0x1401397a3
xor eax, eax
jmp 0x1401397a8
mov eax, 1
jmp 0x1401397a8
mov eax, 2
jmp 0x1401397a8
mov eax, 3
jmp 0x1401397a8
mov eax, 4
add rsp, 0x68
ret

Function at 0x1401397b0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1402016b0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1401397f5
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
imul rax, qword [rsp + 0x38], 0x3e8
jmp 0x14013983b
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.MHz
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140139831
xor eax, eax
jmp 0x14013983b
imul eax, dword [rsp + 0x34], 0xf4240
mov eax, eax
add rsp, 0x58
ret
Function at 0x14013a584
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1402436d8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x140201828]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14013a5f3
mov rcx, qword [rsp + 0x70]
call fcn.140012ea4
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x70]
jmp 0x14013a677
mov dword [rsp + 0x34], reloc.WS2_32.dll_listen
mov eax, 1
imul rax, rax, 0
lea rax, [rsp + rax + 0x48]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14013a658
mov rcx, qword [rsp + 0x70]
call fcn.140012ea4
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x70]
jmp 0x14013a677
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call fcn.1400127e0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401825b0
add rsp, 0x68
ret

Function at 0x14013a690
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x1402436d8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14013a70b
mov rcx, qword [rsp + 0xc0]
call fcn.140012ea4
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xc0]
jmp 0x14013a79e
mov dword [rsp + 0x34], 0x41
mov eax, 1
imul rax, rax, 0
lea rax, [rsp + rax + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14013a779
mov rcx, qword [rsp + 0xc0]
call fcn.140012ea4
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xc0]
jmp 0x14013a79e
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0xc0]
call fcn.1400127e0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401825b0
add rsp, 0xb8
ret
Function at 0x14013d4a8
Capabilities:
Get common file path
Get file version info

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xc8
mov rax, qword [0x1402436d8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0x78]
call fcn.140012ea4
nop
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec eax
mov eax, eax
xor r8d, r8d
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.140028340
lea rcx, [rsp + 0x78]
call fcn.140026d90
inc rax
mov dword [rsp + 0x30], eax
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.1400173c4
mov qword [rsp + 0x48], rax
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdx, [0x140201888]
lea rcx, [rsp + 0x78]
call fcn.14003ae14
lea rcx, [rsp + 0x78]
call fcn.140025c7c
xor edx, edx
mov rcx, rax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.14013d680
lea rcx, [rsp + 0x38]
call fcn.140009d28
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x78]
call fcn.140025c7c
mov qword [rsp + 0x58], rax
mov r9, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call sub.VERSION.dll_GetFileVersionInfoA
lea rcx, [rsp + 0x38]
call fcn.140009d28
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x28]
lea rdx, [0x140201896]
mov rcx, rax
call sub.VERSION.dll_VerQueryValueA
mov dword [rsp + 0x60], 0
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x98]
lea rcx, [rsp + 0x60]
mov rdi, rax
mov rsi, rcx
mov ecx, shutdown
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x38]
call fcn.1400f5c54
nop
lea rcx, [rsp + 0x78]
call fcn.140015f78
lea rax, [rsp + 0x98]
mov rdi, qword [rsp + 0xe0]
mov rsi, rax
mov ecx, shutdown
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401825b0
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x14013d700
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb8
mov rax, qword [0x1402436d8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x40], 0x40
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x14013d76f
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
lea rax, [rsp + 0x80]
mov rdi, qword [rsp + 0xd0]
mov rsi, rax
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xd0]
jmp 0x14013d7b6
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x20]
mov rdi, qword [rsp + 0xd0]
mov rsi, rax
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401825b0
add rsp, 0xb8
pop rdi
pop rsi
ret
Function at 0x14013df78
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x1402436d8]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14013dfcc
xor eax, eax
jmp 0x14013e150
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x48], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14020191c]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14013e015
mov eax, dword [rsp + 0x34]
jmp 0x14013e150
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140201950]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14013e053
xor eax, eax
jmp 0x14013e150
mov eax, dword [rsp + 0x30]
xor r8d, r8d
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.140012ef4
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.1400173c4
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.BuildLabEx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14013e0cc
mov dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x78]
call fcn.140015f78
mov eax, dword [rsp + 0x4c]
jmp 0x14013e150
mov qword [rsp + 0x60], 0
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.1400173c4
lea r8, [rsp + 0x60]
lea rdx, [0x14020195c]
mov rcx, rax
call fcn.14019a45c
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x60]
lea rdx, [0x14020196c]
xor ecx, ecx
call fcn.14019a45c
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x14013e132
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.140195fc4
mov dword [rsp + 0x38], eax
jmp 0x14013e13a
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x78]
call fcn.140015f78
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401825b0
add rsp, 0xa8
ret
Function at 0x1401560c8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax + 0x110]
test eax, eax
jne 0x14015610d
lea rdx, str.Cant_write_to_an_unopened_stdin_pipe._Please_set_open_stdintrue_when_constructing_the_process.
lea rcx, [rsp + 0x48]
call fcn.14010fa50
lea rdx, [0x140240478]
lea rcx, [rsp + 0x48]
call fcn.140183e58
mov rax, qword [rsp + 0x70]
add rax, 0x118
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14001321c
mov rax, qword [rsp + 0x70]
add rax, 0x188
mov rcx, rax
call fcn.1400f6040
movzx eax, al
test eax, eax
je 0x1401561b4
mov rax, qword [rsp + 0x70]
add rax, 0x188
mov rcx, rax
call fcn.140009d28
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140156188
cmp dword [rsp + 0x38], 0
jne 0x14015619f
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
call fcn.140016064
mov al, byte [rsp + 0x30]
jmp 0x1401561c7
mov byte [rsp + 0x31], 1
lea rcx, [rsp + 0x40]
call fcn.140016064
mov al, byte [rsp + 0x31]
jmp 0x1401561c7
mov byte [rsp + 0x32], 0
lea rcx, [rsp + 0x40]
call fcn.140016064
mov al, byte [rsp + 0x32]
add rsp, 0x68
ret

Function at 0x140156278
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x1402436d8]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rax, qword [rsp + 0x2a0]
add rax, 0x20
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14001321c
mov rax, qword [rsp + 0x2a0]
cmp dword [rax], 0
jbe 0x1401563a1
mov rax, qword [rsp + 0x2a0]
movzx eax, byte [rax + 0x18]
test eax, eax
jne 0x1401563a1
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14015638a
mov r8d, 0x238
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140183b90
mov dword [rsp + 0x40], 0x238
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14015637f
mov rax, qword [rsp + 0x2a0]
mov eax, dword [rax]
cmp dword [rsp + 0x60], eax
jne 0x14015636c
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14015636c
mov edx, 2
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140156322
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 2
mov rax, qword [rsp + 0x2a0]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea rcx, [rsp + 0x30]
call fcn.140016064
nop
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1401825b0
add rsp, 0x298
ret
Function at 0x1401573f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rcx, qword [rax + 0x168]
call fcn.1401825fc
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.140006a64
nop
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov eax, dword [rax + 0x168]
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x40]
call fcn.140009d28
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
add rax, 0x178
mov rcx, rax
call fcn.140009d28
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1401574a2
cmp dword [rsp + 0x30], 0
jne 0x1401574a4
jmp 0x1401574e9
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
add rax, 0x70
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
call fcn.140009d28
mov qword [rsp + 0x68], rax
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.1401306cc
jmp 0x140157428
lea rcx, [rsp + 0x40]
call fcn.1400f5c54
add rsp, 0x88
ret

Function at 0x140157528
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rcx, qword [rax + 0x168]
call fcn.1401825fc
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.140006a64
nop
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov eax, dword [rax + 0x168]
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x40]
call fcn.140009d28
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
add rax, 0x180
mov rcx, rax
call fcn.140009d28
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1401575da
cmp dword [rsp + 0x30], 0
jne 0x1401575dc
jmp 0x140157623
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
add rax, 0xb0
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
call fcn.140009d28
mov qword [rsp + 0x68], rax
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.1401306cc
jmp 0x140157560
lea rcx, [rsp + 0x40]
call fcn.1400f5c54
add rsp, 0x88
ret
Function at 0x140158224
Capabilities:
Open clipboard

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov byte [rax], 0
mov dword [rsp + 0x20], 0
jmp 0x14015824e
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 5
jge 0x14015827b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14015826e
mov rax, qword [rsp + 0x50]
mov byte [rax], 1
jmp 0x14015827b
mov ecx, shutdown
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140158244
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
test eax, eax
jne 0x1401582a9
call fcn.140138de8
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1401582a9
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
xor ecx, ecx
call qword [rsp + 0x30]
mov rax, qword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x1401583c8
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov byte [rsp + 0x30], 0
call fcn.140138cd0
cmp qword [rsp + 0x78], rax
jne 0x14015850f
cmp qword [rsp + 0x88], 0
jbe 0x14015850a
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x88]
mov r8, qword [rsp + 0x80]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jle 0x14015850a
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
movsxd rax, dword [rsp + 0x34]
shl rax, 1
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14015a68c
nop
lea rcx, [rsp + 0x40]
call fcn.14015a70c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x88]
mov r8, qword [rsp + 0x80]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rcx, [rsp + 0x40]
call fcn.14015a70c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea rcx, [rsp + 0x40]
call fcn.14015a70c
mov rdx, rax
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x1401584df
mov byte [rsp + 0x31], 1
jmp 0x1401584e4
mov byte [rsp + 0x31], 0
mov al, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140158500
lea rcx, [rsp + 0x40]
call fcn.14015a6f4
nop
lea rcx, [rsp + 0x40]
call fcn.14015a6c4
jmp 0x1401585f2
mov rax, qword [rsp + 0x88]
add rax, 8
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14015a68c
nop
lea rcx, [rsp + 0x38]
call fcn.14015a70c
test rax, rax
je 0x1401585e8
lea rcx, [rsp + 0x38]
call fcn.14015a70c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1401585e8
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x88]
mov qword [rax], rcx
mov rax, qword [rsp + 0x48]
add rax, 8
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov rcx, rax
call fcn.1401834e0
lea rcx, [rsp + 0x38]
call fcn.14015a70c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea rcx, [rsp + 0x38]
call fcn.14015a70c
mov rdx, rax
mov ecx, dword [rsp + 0x78]
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x1401585c7
mov byte [rsp + 0x32], 1
jmp 0x1401585cc
mov byte [rsp + 0x32], 0
mov al, byte [rsp + 0x32]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1401585e8
lea rcx, [rsp + 0x38]
call fcn.14015a6f4
nop
lea rcx, [rsp + 0x38]
call fcn.14015a6c4
mov al, byte [rsp + 0x30]
add rsp, 0x68
ret
Function at 0x140158924
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x40], 0
call fcn.140138cd0
cmp qword [rsp + 0x98], rax
jne 0x140158a40
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x1401589df
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1401589dd
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x1401589dd
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x68]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cdqe
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x140158a3b
mov ecx, 1
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140158a3b
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140158a3b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140158a3b
mov rcx, qword [rsp + 0x70]
call fcn.140188d30
inc rax
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x140158b07
call fcn.140138cc4
cmp qword [rsp + 0x98], rax
je 0x140158b07
mov ecx, dword [rsp + 0x98]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140158b07
mov ecx, dword [rsp + 0x98]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140158b07
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x140158b07
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x40], rax
jbe 0x140158ae2
mov r8d, 0x194
lea rdx, [0x1402027f0]
lea rcx, str.len___total_size
call fcn.140189910
xor eax, eax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x40], rax
jbe 0x140158afc
mov rax, qword [rsp + 0x60]
sub rax, 8
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rax, qword [rsp + 0x40]
add rsp, 0x88
ret