joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d7d1260
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f25e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d13e8
mov rax, qword [0x6d7f25e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d12ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d1335
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d1290
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d141d
mov rax, qword [0x6d7f25e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f25e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d1400
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d132e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d1390
add dword [0x6d7f25e4], 1
cmp edi, 8
jae 0x6d7d1363
test dil, 4
jne 0x6d7d13d4
test edi, edi
je 0x6d7d1358
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d13ef
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7d1358
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7d137c
jmp 0x6d7d1358
add rsi, qword [0x6d7f25e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7d132e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d1358
xor esi, esi
jmp 0x6d7d12b7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d1358
mov rax, qword [0x6d7f25e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d1b70
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f28c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f28a0]
test rbx, rbx
je 0x6d7d1bc4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d1bbb
test rsi, rsi
je 0x6d7d1bbb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d1ba0
lea rcx, [0x6d7f28c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d1e00
Capabilities:
Parse pe header

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

Function at 0x6d7d1e20
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 0x6d7d1e61
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 0x6d7d1e58
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d1e63
add rax, 0x28
cmp rax, r9
jne 0x6d7d1e44
xor eax, eax
ret

Function at 0x6d7d1f00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7ef1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d1f6d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d1f6d
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 0x6d7d1f6d
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 0x6d7d1f64
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d1f6f
add rax, 0x28
cmp rax, r9
jne 0x6d7d1f50
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d2070
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7ef1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d2090
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d2088
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 0x6d7d20ed
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 0x6d7d20e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d20f4
add rax, 0x28
cmp rax, r9
jne 0x6d7d20d0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d2110
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7ef1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d217e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d217e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d217e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d217e
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 0x6d7d2175
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d2185
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d2160
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d2198
jmp 0x6d7d217e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d21a6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d217e
test r9d, r9d
jg 0x6d7d2190
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d24e0
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 0x1400033b5
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
push rbp
push r15
mov rax, 0x14
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x1400033ce
sub rsp, 0x28
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14000e910
add rsp, 0x10
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.14000e910
add rsp, 0x10
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x38]
sub rsp, 0x10
call fcn.14000e910
add rsp, 0x10
lea rax, [rsp + 0x40]
lea rbp, [rsp + 0x40]
mov dword [rbp], 0x70
mov dword [rbp + 4], 0x140
mov dword [rbp + 0x30], 0
movabs rax, 0x14001308d
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x10], rax
mov rax, qword [rsp + 0x28]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x18], rax
mov rax, qword [rsp + 0x38]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x20], rax
mov rax, qword [rsp + 0x30]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x28], rax
lea rax, [rsp + 0x40]
mov rax, rax
push rax
pop rcx
call sub.SHELL32.DLL_ShellExecuteExA
mov qword [rsp + 0xb0], rax
push 0x19
pop rcx
call fcn.140007a98
lea rax, [rsp + 0xb8]
mov rax, rax
push rax
lea rbp, [rsp + 0x48]
push qword [rbp + 0x68]
pop rcx
pop rdx
call sub.KERNEL32.dll_GetExitCodeProcess
and rax, rax
je 0x1400034e2
mov r15, qword [rsp + 0xb8]
cmp r15, 0x103
je 0x1400034e2
jmp 0x1400034e4
jmp 0x1400034a4
mov rax, 1
jmp 0x1400034f0
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.14000e980
add rsp, 0x28
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.14000e980
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.14000e980
add rsp, 0x28
pop rax
add rsp, 0xc8
pop r15
pop rbp
ret
Function at 0x140003533
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.14000aa60
mov qword [rsp + 0x28], rax
push qword [0x140015020]
sub rsp, 8
push qword [0x140015020]
pop rcx
sub rsp, 0x20
call fcn.14000ac34
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.14000e780
push qword [rsp + 0x28]
push 0
movabs rax, 0x14001301e
push rax
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
pop r9
call sub.KERNEL32.dll_GetTempFileNameA
push qword [0x140015020]
sub rsp, 8
push qword [0x140015020]
push qword [rsp + 0x40]
pop rcx
pop rdx
sub rsp, 0x20
call fcn.14000a930
add rsp, 0x28
lea rcx, [0x140014a7c]
pop rdx
call fcn.14000e780
push qword [rsp + 0x28]
pop rcx
call fcn.14000aa80
push qword [0x140014a7c]
pop rcx
call fcn.14000ad00
push qword [0x140014a7c]
pop rcx
call fcn.14000ad08
push qword [0x140015020]
sub rsp, 8
push qword [0x140015020]
pop rcx
sub rsp, 0x20
call fcn.14000ab1c
add rsp, 0x28
lea rcx, [0x1400149bc]
pop rdx
call fcn.14000e780
push qword [rsp + 0x50]
pop rcx
call fcn.14000aaa0
mov rax, rax
push rax
xor r15, r15
cmp r15, qword [rsp]
jne 0x14000366e
mov rcx, qword [0x140014a7c]
push qword [0x140015020]
sub rsp, 0x20
call fcn.14000e8a0
add rsp, 0x20
lea rcx, [0x1400149bc]
pop rdx
sub rsp, 0x28
call fcn.14000e780
add rsp, 0x28
mov qword [rsp + 0x40], 2
jmp 0x140003684
mov r15, 1
cmp r15, qword [rsp]
jne 0x140003684
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.14000aaa0
mov qword [0x140014a14], rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
inc r15
mov rax, r15
push rax
pop rcx
call fcn.14000aaa0
mov qword [0x1400148ec], rax
mov rax, 1
jmp 0x1400036ca
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.14000e980
add rsp, 0x28
pop rax
add rsp, 0x40
pop r15
ret
Function at 0x140003d07
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
push r15
mov rax, 7
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x140003d1a
sub rsp, 0x28
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14000e910
add rsp, 0x10
push 0xa
push qword [rsp + 0x30]
push qword [rsp + 0x80]
pop rcx
pop rdx
pop r8
call sub.KERNEL32.dll_FindResourceA
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140003d98
push qword [rsp + 0x30]
push qword [rsp + 0x78]
pop rcx
pop rdx
call sub.KERNEL32.dll_LoadResource
mov qword [0x1400148f4], rax
push qword [rsp + 0x30]
push qword [rsp + 0x78]
pop rcx
pop rdx
call sub.KERNEL32.dll_SizeofResource
mov qword [0x14001491c], rax
push qword [0x14001491c]
pop rcx
call fcn.14000aa60
mov qword [rsp + 0x38], rax
push qword [0x14001491c]
push qword [0x1400148f4]
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
call sub.msvcrt.dll_memcpy
push qword [rsp + 0x38]
pop rax
mov qword [0x1400148f4], rax
push qword [rsp + 0x28]
movabs rcx, 0x14001306c
pop rdx
call fcn.14000e840
or rax, rax
je 0x140003e69
push qword [0x14001491c]
pop rcx
call fcn.14000aa60
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov r15, qword [0x14001491c]
dec r15
cmp r15, qword [rsp + 0x48]
jl 0x140003e5d
mov r15, qword [rsp + 0x38]
add r15, qword [rsp + 0x48]
mov rax, r15
push rax
pop rcx
call fcn.14000aaa0
mov qword [rsp + 0x50], rax
mov r15, qword [rsp + 0x50]
imul r15, r15, 0xffffffffffffffff
mov qword [rsp + 0x58], r15
push qword [rsp + 0x58]
mov r15, qword [rsp + 0x48]
add r15, qword [rsp + 0x50]
mov rax, r15
push rax
pop rcx
pop rdx
call fcn.14000aab0
inc qword [rsp + 0x48]
jno 0x140003e05
push qword [rsp + 0x40]
pop rax
mov qword [0x1400148f4], rax
mov rax, qword [rsp + 0x30]
jmp 0x140003e73
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.14000e980
add rsp, 0x28
pop rax
add rsp, 0x60
pop r15
ret
Function at 0x140005b9c
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140005c13
movsxd rdx, ecx
lea rcx, [0x140005af8]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x140014ad0]
test rbx, rbx
je 0x140005c86
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140005c09
cmp byte [rbx + 0x20], 0
je 0x140005c09
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 0x140005bcf
jmp 0x140005c86
mov rbx, qword [0x140014ad0]
test rbx, rbx
je 0x140005c86
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140005c7e
cmp byte [rbx + 0x21], 0
je 0x140005c42
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140005c6e
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, [0x140014ad0]
call fcn.14000e284
mov rbx, rdi
test rdi, rdi
jne 0x140005c1f
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140005d60
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 [0x140015050]
call fcn.14000da2c
xor ebx, ebx
or esi, 0xffffffff
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [rax]
test dl, dl
je 0x140005e26
mov rcx, qword [rsp + 0x30]
mov r10b, 0x20
lea r9d, [rbx + 1]
cmp dl, r10b
jne 0x140005db4
add rax, r9
cmp byte [rax], r10b
je 0x140005dac
mov dl, byte [rax]
mov r8d, r9d
cmp dl, 0x22
jne 0x140005dea
add rax, r9
mov rbx, rax
mov cl, byte [rax]
test cl, cl
je 0x140005de5
cmp cl, 0x22
je 0x140005dd8
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x140005dca
cmp byte [rax], 0
je 0x140005de5
mov rcx, rax
add rax, r9
jmp 0x140005e0c
mov rcx, rax
jmp 0x140005e0c
test dl, dl
je 0x140005e09
mov rbx, rax
cmp dl, r10b
je 0x140005dff
add rax, r9
mov dl, byte [rax]
test dl, dl
jne 0x140005df1
cmp byte [rax], 0
mov rcx, rax
je 0x140005e0c
jmp 0x140005de0
xor r8d, r8d
cmp dword [rbp], esi
jne 0x140005e16
test rdi, rdi
jne 0x140005e30
test r8d, r8d
je 0x140005e1e
add esi, r9d
mov dl, byte [rax]
xor ebx, ebx
test dl, dl
jne 0x140005da7
test rdi, rdi
jne 0x140005e42
movsxd rax, esi
jmp 0x140005e45
test rbx, rbx
je 0x140005e42
sub ecx, ebx
mov rax, rbx
mov dword [rdi], ecx
add dword [rbp], r9d
jmp 0x140005e45
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 0x140005f20
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140015050]
call fcn.14000da2c
xor ecx, ecx
add rsp, 0x28
jmp fcn.140005d60
Function at 0x140006014
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rcx, rcx
je 0x140006034
test rax, rax
lea rdx, [0x140011d1e]
cmovne rdx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add rsp, 0x28
ret

Function at 0x140007404
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 [0x140015190]
call fcn.14000d944
mov rsi, rax
test rax, rax
je 0x14000747d
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140007442
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14000747d
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.14000e9b0
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.14000eb50
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000796c
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 0x140007a81
mov eax, dword [rsp + 0x30]
dec eax
je 0x140007a5e
dec eax
jne 0x140007a81
lea rcx, [rsp + 0xc0]
xor edi, edi
mov dword [rsp + 0xc0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1400079d9
lea eax, [rdi + 1]
cmp byte [rsp + 0x15a], al
cmove edi, eax
mov eax, dword [rsp + 0x24]
sub eax, 3
je 0x140007a57
dec eax
je 0x140007a50
dec eax
je 0x140007a26
dec eax
jne 0x140007a81
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140007a1a
dec eax
je 0x140007a0e
dec eax
jne 0x140007a81
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x5f
jmp 0x140007a81
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x55
jmp 0x140007a81
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x4b
jmp 0x140007a81
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140007a49
dec eax
je 0x140007a42
dec eax
jne 0x140007a81
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x41
jmp 0x140007a81
mov ebx, 0x3c
jmp 0x140007a81
mov ebx, 0x32
jmp 0x140007a81
mov ebx, 0x14
jmp 0x140007a81
mov ebx, 5
jmp 0x140007a81
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140007a7c
cmp eax, 0xa
je 0x140007a75
cmp eax, 0x5a
jne 0x140007a81
lea ebx, [rax - 0x32]
jmp 0x140007a81
mov ebx, 0x1e
jmp 0x140007a81
mov ebx, 0xa
movsxd rax, ebx
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x140008dc0
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 0x140008e69
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x140008e69
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140008e69
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140008e69
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140008e69
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 0x140008e69
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.DLL_SendMessageA]
bt rax, 0xb
jae 0x140008f13
test rbx, rbx
je 0x140008ea8
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140008e9b
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140008e9b
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x140008ea8
mov edx, 1
mov rcx, rbx
call fcn.140008d6c
test rdi, rdi
je 0x140008ec2
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropA]
test rax, rax
jne 0x140008f13
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropA]
mov rdi, rax
test rax, rax
je 0x140008f13
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x140008f13
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x38], eax
jne 0x140008f13
mov rcx, qword [0x1400151b0]
lea rdx, [rdi - 1]
call fcn.14000d944
test rax, rax
je 0x140008f13
mov rax, qword [rax + 0x10]
jmp 0x140008f15
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000ab04
Capabilities:
Allocate thread local storage

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

Function at 0x14000ab1c
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.14000e9b0
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rbx, eax
test eax, eax
je 0x14000ab5b
cmp byte [rbx + rdi - 1], 0x5c
je 0x14000ab5b
mov byte [rbx + rdi], 0x5c
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.14000eb50
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 0x14000ab7c
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14000ab8f
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cdqe
jmp 0x14000ab91
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000ac34
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov ebx, 0x104
mov ecx, ebx
call fcn.14000e9b0
mov ecx, ebx
mov rdx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, str.Kernel32.DLL
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
je 0x14000aca6
lea rdx, [0x140011f08]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000ac9d
mov r8d, ebx
mov rdx, rsi
mov rcx, rsi
call rax
mov edi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub ebx, edi
mov ecx, ebx
call fcn.14000eb50
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd r11, edi
mov byte [r11 + rsi], 0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000accc
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000acf7
test dl, 2
je 0x14000acea
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x14000acf9
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14000accc

Function at 0x14000ad00
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000acf7
test dl, 2
je 0x14000acea
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x14000acf9
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14000accc

Function at 0x14000ad08
Capabilities:
Create directory

Disassembly:
sub rsp, 0x138
test rcx, rcx
je 0x14000ad7b
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_strncpy
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x124], 0
call sub.msvcrt.dll_strlen
lea rcx, [rsp + rax + 0x20]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x14000ad67
lea rdx, [rcx - 1]
mov al, byte [rdx]
cmp al, 0x20
je 0x14000ad5a
cmp al, 0x5c
je 0x14000ad5a
cmp al, 0x2f
jne 0x14000ad67
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x14000ad48
mov byte [rcx], 0
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cdqe
jmp 0x14000ad7d
xor eax, eax
add rsp, 0x138
ret

Function at 0x14000ae90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x14000aed6
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11d, dword [rbx + 0x10]
movsxd rax, dword [rsp + 0x40]
mov dword [rbx + 0x14], r11d
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret