joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140120560
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x1f8
mov rax, qword [0x140276680]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
call fcn.14010e8a0
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 5
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x1401207fb
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x30]
call fcn.140109660
mov rcx, rax
call fcn.140122590
mov qword [rsp + 0x48], rax
call fcn.14010e8a0
mov rdx, rax
lea rcx, [rsp + 0xe8]
call fcn.14000ca00
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x1c0]
call fcn.140007ca0
nop
lea rcx, [rsp + 0xe8]
call fcn.14000eb60
call fcn.14010e8a0
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x120]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x1c0]
mov rcx, qword [rsp + 0x58]
call fcn.14000c960
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.14003aae0
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x31]
call fcn.14010a500
mov rcx, rax
call fcn.140122bd0
mov r8, rax
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0x1a0]
call fcn.1400efd70
nop
call fcn.14010e8a0
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x140]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0x78]
call fcn.14000c960
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
call fcn.14003ab60
movzx eax, al
test eax, eax
je 0x140120780
call fcn.14010e8a0
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0x98]
call fcn.14000c960
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
call fcn.140150a80
mov byte [0x140299d04], 1
mov byte [0x140299d05], 1
mov byte [0x140299d06], 1
mov byte [0x140299d07], 1
mov byte [0x140299d08], 1
mov byte [0x140299d09], 1
jmp 0x1401207e0
call fcn.14010e8a0
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x180]
mov qword [rsp + 0xb8], rax
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0xb8]
call fcn.14000c960
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
call fcn.140151250
nop
lea rcx, [rsp + 0x1a0]
call fcn.14000eb60
nop
lea rcx, [rsp + 0x1c0]
call fcn.14000eb60
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1401d7940
add rsp, 0x1f8
ret
Function at 0x1401249f0
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x140276680]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
mov ecx, 5
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xc0000004
je 0x140124a3e
xor al, al
jmp 0x140124ae5
mov eax, dword [rsp + 0x38]
mov r8d, 4
mov edx, eax
xor ecx, ecx
call fcn.14011eeb0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140124a65
xor al, al
jmp 0x140124ae5
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x20]
mov ecx, 5
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jge 0x140124a97
mov rcx, qword [rsp + 0x20]
call fcn.14011edb0
xor al, al
jmp 0x140124ae5
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x20]
call qword [rsp + Ordinal_50]
movzx eax, al
test eax, eax
jne 0x140124ab8
jmp 0x140124ad9
mov rax, qword [rsp + 0x20]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0
jne 0x140124a97
mov rcx, qword [rsp + 0x20]
call fcn.14011edb0
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401d7940
add rsp, 0x58
ret

Function at 0x140126cf0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x470
mov rax, qword [0x140276680]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rax, qword [rsp + 0x480]
movzx eax, word [rax]
cmp eax, 2
jne 0x140126d4e
mov rax, qword [rsp + 0x480]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov rcx, qword [rsp + 0x498]
mov dword [rcx], eax
jmp 0x140126d86
mov rax, qword [rsp + 0x480]
movzx eax, word [rax]
cmp eax, 0x17
jne 0x140126d7f
mov rax, qword [rsp + 0x480]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov rcx, qword [rsp + 0x498]
mov dword [rcx], eax
jmp 0x140126d86
xor al, al
jmp 0x140126e10
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x401
rep stosb byte [rdi], al
lea rcx, [rsp + 0x50]
call fcn.14012ff00
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x50]
call fcn.140009530
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov edx, dword [rsp + 0x488]
mov rcx, qword [rsp + 0x480]
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x140126df4
xor al, al
jmp 0x140126e10
lea rcx, [rsp + 0x50]
call fcn.140009530
mov rdx, rax
mov rcx, qword [rsp + 0x490]
call fcn.14000f2d0
mov al, 1
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401d7940
add rsp, 0x470
pop rdi
ret
Function at 0x140126e60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x140276680]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140126eca
mov r9, qword [rsp + 0xe0]
mov r8, qword [rsp + 0xd8]
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140126cf0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401d7940
add rsp, 0xc8
ret
Function at 0x14012bc60
Capabilities:
Get common file path
Move file

Disassembly:
sub rsp, 0x398
mov rax, qword [0x140276680]
xor rax, rsp
mov qword [rsp + 0x380], rax
lea rdx, [0x140298e10]
lea rcx, [rsp + 0x108]
call fcn.140102600
nop
lea r9, [rsp + 0x100]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140212920]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
je 0x14012bcbd
lea rcx, [rsp + 0x108]
call fcn.140105ac0
jmp 0x14012bed3
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x150]
call fcn.1400e3430
nop
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rcx, [rsp + 0x110]
call fcn.140125d20
nop
lea rcx, [rsp + 0x20]
call fcn.140009530
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x110]
call fcn.1400ec2e0
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x110]
call fcn.1400ebf80
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0xe0]
call fcn.1400ee720
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
lea r8, [0x14020d744]
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0xc0]
call fcn.1400effb0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x78], rax
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0xa0]
call fcn.1400eff10
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
lea r8, [0x14020d7e0]
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x130]
call fcn.1400eff60
nop
lea rcx, [rsp + 0xa0]
call fcn.140029e90
nop
lea rcx, [rsp + 0xc0]
call fcn.140029e90
nop
lea rcx, [rsp + 0xe0]
call fcn.140029e90
mov r8d, 0x104
lea rdx, [rsp + 0x170]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14012be7e
lea rcx, [rsp + 0x130]
call fcn.140029e90
nop
lea rcx, [rsp + 0x110]
call fcn.14000eb60
nop
lea rcx, [rsp + 0x150]
call fcn.140029e90
nop
lea rcx, [rsp + 0x108]
call fcn.140105ac0
jmp 0x14012bed3
lea rcx, [rsp + 0x130]
call fcn.14006b6a0
mov rdx, rax
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
lea rcx, [rsp + 0x130]
call fcn.140029e90
nop
lea rcx, [rsp + 0x110]
call fcn.14000eb60
nop
lea rcx, [rsp + 0x150]
call fcn.140029e90
nop
lea rcx, [rsp + 0x108]
call fcn.140105ac0
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.1401d7940
add rsp, 0x398
ret
Function at 0x14012bef0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
xor eax, eax
mov word [rsp + 0x20], ax
jmp 0x14012bf37
movzx eax, word [rsp + 0x20]
inc ax
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x14012c052
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rsp + 0x20]
imul rcx, rcx, 0x28
add rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
lea rdx, str..text
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14012c04d
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x60]
add rdx, rcx
mov rcx, rdx
mov r8d, 0x40
mov edx, eax
call fcn.14012a520
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14012bfca
mov eax, 9
jmp 0x14012c057
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x68]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x28]
mov edx, dword [rdx + 0xc]
mov r8, qword [rsp + 0x60]
add r8, rdx
mov rdx, r8
mov qword [rsp + 0x40], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x40]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x60]
add rdx, rcx
mov rcx, rdx
mov r8d, dword [rsp + 0x24]
mov edx, eax
call fcn.14012a520
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14012c049
mov eax, 0xa
jmp 0x14012c057
xor eax, eax
jmp 0x14012c057
jmp 0x14012bf2a
mov eax, reloc.WS2_32.dll_inet_addr
add rsp, 0x58
ret

Function at 0x14012f680
Capabilities:
Set socket configuration

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [0x140276680]
xor rax, rsp
mov qword [rsp + 0x28], rax
movzx eax, byte [rsp + 0x48]
test eax, eax
je 0x14012f6af
mov dword [rsp + 0x20], 1
jmp 0x14012f6b7
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401d7940
add rsp, 0x38
ret

Function at 0x14012fee0
Capabilities:
Hash data using fnv

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
movsx eax, byte [rsp + 0x10]
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
ret
Function at 0x1401317a0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov rax, qword [0x140276680]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r8d, 0x104
xor edx, edx
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x190]
call fcn.140126ef0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 3
jne 0x1401317fc
mov eax, dword [rsp + 0x40]
jmp 0x14013197e
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x140131845
mov eax, 5
jmp 0x14013197e
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x1000002
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14013188e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 6
jmp 0x14013197e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1401318b0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 7
jmp 0x14013197e
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1401318fc
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 8
jmp 0x14013197e
call fcn.140130a00
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x190]
call fcn.14012bef0
mov dword [rsp + 0x40], eax
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtFlushInstructionCache
call fcn.14012c4b0
cmp dword [rsp + 0x40], 0
je 0x14013195b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
jmp 0x14013197e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1401d7940
add rsp, 0x188
ret
Function at 0x140139480
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140276680]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x28]
call fcn.140105050
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140104c40
lea rcx, [rsp + 0x30]
call fcn.140107df0
movzx eax, al
test eax, eax
je 0x140139517
lea rcx, [rsp + 0x30]
call fcn.140130050
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x24], 0
je 0x140139517
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140129830
mov rcx, rax
call fcn.1400fdb40
cmp eax, 0x2fa62ca8
jne 0x140139515
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14011ec90
jmp 0x14013952e
jmp 0x1401394cf
lea rcx, [rsp + 0x28]
call fcn.140129970
movzx eax, al
test eax, eax
jne 0x14013949d
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401d7940
add rsp, 0x58
ret
Function at 0x14014d4e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1f8
mov rax, qword [0x140276680]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov rcx, qword [rsp + 0x200]
call fcn.14006fb90
movzx eax, al
test eax, eax
jne 0x14014d524
mov rcx, qword [rsp + 0x200]
call fcn.140021870
test rax, rax
ja 0x14014d536
mov rcx, qword [rsp + 0x200]
call fcn.14000eb60
jmp 0x14014d79e
call fcn.1400100b0
add rax, 0x10
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 5
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14014d791
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x30]
call fcn.1401447c0
mov rcx, rax
call fcn.14014f890
mov qword [rsp + 0x48], rax
call fcn.1400100b0
add rax, 0x10
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.14000ca00
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x1c0]
call fcn.140007ca0
nop
lea rcx, [rsp + 0xe0]
call fcn.14000eb60
call fcn.1400100b0
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x140]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x1c0]
mov rcx, qword [rsp + 0x58]
call fcn.14000c960
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.14003aae0
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x31]
call fcn.140145450
mov rcx, rax
call fcn.14014f2d0
mov qword [rsp + 0x88], rax
mov r8, qword [rsp + 0x200]
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0x100]
call fcn.1400efc80
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x1a0]
call fcn.140007ca0
nop
lea rcx, [rsp + 0x100]
call fcn.14000eb60
call fcn.1400100b0
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0x98]
call fcn.14000c960
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
call fcn.14003ab60
movzx eax, al
test eax, eax
jne 0x14014d775
call fcn.1400100b0
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x180]
mov qword [rsp + 0xb8], rax
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0xb8]
call fcn.14000c960
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
call fcn.1400518f0
nop
lea rcx, [rsp + 0x1a0]
call fcn.14000eb60
nop
lea rcx, [rsp + 0x1c0]
call fcn.14000eb60
nop
mov rcx, qword [rsp + 0x200]
call fcn.14000eb60
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1401d7940
add rsp, 0x1f8
ret
Function at 0x140152000
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x140276680]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x68]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140152067
mov eax, 0xffffffff
jmp 0x14015206c
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401d7940
add rsp, 0x58
ret
Function at 0x140152f10
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x14029a450], 0
jne 0x140152f25
xor edx, edx
mov ecx, 0x10001
jmp fcn.140152100
jmp 0x140155260
push rbx
sub rsp, 0xa0
mov rax, qword [0x140276680]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1401552fa
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1401552c5
mov rbx, qword [0x14029a840]
test rbx, rbx
je 0x1401552db
mov rcx, rbx
call fcn.1401526b0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1401552b3
jmp 0x1401552db
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1401552a0
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1401553f7
lea rdx, str.GLFW
mov qword [rsp + 0xc0], rdi
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rdi, rax
test rax, rax
je 0x1401553ef
movdqa xmm0, xmmword [0x14022ba30]
xor ebx, ebx
movdqa xmm1, xmmword [0x14022ba40]
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
lea r15, [0x14029bf28]
movdqu xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
nop word [rax + rax]
movsxd rbp, dword [rsp + rbx*8 + 0x64]
mov ecx, dword [rsp + rbx*8 + 0x60]
movsx r14d, word [r15 + rbp*2]
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x1401553be
cmp byte [rbp + rdi + 0x88], 1
jne 0x1401553be
call fcn.140156840
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1401537d0
inc rbx
cmp rbx, 4
jl 0x140155380
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov r12, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [0x14029c8c8]
test rbx, rbx
je 0x14015547c
mov rcx, qword [rbx + 0x350]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
cmp dword [rbx + 0x388], eax
jne 0x14015543e
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x14015547c
mov rcx, qword [rbx + 0x350]
mov eax, r8d
cdq
mov dword [rsp + 0x60], r9d
sub eax, edx
mov dword [rbx + 0x388], r9d
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401d7940
add rsp, 0xa0
pop rbx
ret
Function at 0x140152f30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x14029a450], 0
mov r10d, r9d
mov r11d, r8d
jne 0x140152f4b
xor edx, edx
mov ecx, 0x10001
jmp fcn.140152100
mov r8d, dword [rsp + 0x28]
mov r9d, dword [rsp + 0x30]
test r8d, r8d
jle 0x140152fa0
test r9d, r9d
jle 0x140152fa0
mov eax, dword [rsp + 0x38]
cmp eax, 0xfffffffe
jg 0x140152f7c
mov r8d, eax
lea rdx, str.Invalid_refresh_rate__i
mov ecx, 0x10004
jmp fcn.140152100
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x28], r8d
mov dword [rcx + 0x2c], r8d
mov r8d, r11d
mov dword [rcx + 0x30], r9d
mov r9d, r10d
mov dword [rcx + 0x40], eax
jmp fcn.140155780
lea rdx, str.Invalid_window_size__ix_i
mov ecx, 0x10004
jmp fcn.140152100

Function at 0x140153b80
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub rsp, 0x28
cmp dword [0x14029a450], 0
jne 0x140153ba0
xor edx, edx
mov ecx, 0x10001
call fcn.140152100
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp 0x140154ed0
sub rsp, 0x28
mov rcx, qword [0x14029bb08]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140154efd
lea rdx, str.Win32:_Failed_to_open_clipboard
mov ecx, 0x10008
call fcn.140159310
xor eax, eax
add rsp, 0x28
ret
mov ecx, reloc.WS2_32.dll_listen
mov qword [rsp + 0x30], rbx
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
test rax, rax
jne 0x140154f38
lea rdx, str.Win32:_Failed_to_convert_clipboard_to_string
mov ecx, 0x10009
call fcn.140159310
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x28
ret
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
test rax, rax
jne 0x140154f76
lea rdx, str.Win32:_Failed_to_lock_global_handle
mov ecx, 0x10008
call fcn.140159310
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rdi, qword [rsp + 0x20]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
mov rcx, qword [0x14029bb20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call fcn.140159160
mov rcx, rbx
mov qword [0x14029bb20], rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, qword [0x14029bb20]
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret