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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x38]
imul rbx, rax, 0x38
mov r8d, 0x40
add rbx, qword [0x1800494f0]
mov rdx, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [rdx - 5]
cmove rdi, rdx
lea rsi, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180038d2c
mov eax, 0xa
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180038d48
mov rax, qword [rbx]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rbx + 0x20], 6
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180038d90
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x1800494fc]
xor edi, edi
mov ebx, edi
test eax, eax
je 0x180038ea0
mov rcx, qword [0x1800494f0]
add rcx, 0x20
test byte [rcx], 2
je 0x180038dd3
inc ebx
add rcx, 0x38
cmp ebx, eax
jb 0x180038db7
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180038ea0
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 1
call fcn.180038b30
mov edx, dword [0x1800494fc]
cmp ebx, edx
jae 0x180038e2d
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1800494f0]
test byte [rcx + rax + 0x20], 2
jne 0x180038e27
mov ecx, ebx
call fcn.180038cc0
mov edi, eax
test eax, eax
jne 0x180038e2d
mov edx, dword [0x1800494fc]
inc ebx
cmp ebx, edx
jb 0x180038e00
cmp qword [rsp + 0x20], 0
je 0x180038ea0
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180038e8c
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
nop
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180038e78
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180038e50
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180049388]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x18003a870
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp ebx, 1
jne 0x18003aa1b
mov qword [rsp + 0x40], rdi
xor edi, edi
xor eax, eax
lock cmpxchg dword [0x180049380], ebx
je 0x18003a8c1
nop word [rax + rax]
cmp rdi, 0x20
jae 0x18003a8aa
xor ecx, ecx
jmp 0x18003a8ac
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rdi
xor eax, eax
lock cmpxchg dword [0x180049380], ebx
jne 0x18003a8a0
cmp qword [0x180049388], 0
mov rdi, qword [rsp + 0x40]
jne 0x18003a8e4
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x180049388], rax
xor eax, eax
xchg dword [0x180049380], eax
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x180043248]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x180043258]
lea rdx, str.CONIN_
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x180043248]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18003a99e
lea rdx, str.ClipCursor
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18003a99e
lea r8, [0x180049480]
mov rcx, rax
lea rdx, [0x18003a810]
call fcn.180038eb0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18003a9db
lea rdx, [0x180043290]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18003a9db
lea r8, [0x180049400]
mov rcx, rax
lea rdx, [0x18003a830]
call fcn.180038eb0
xor ecx, ecx
call fcn.180039180
lea rcx, str.FnInit_n
call fcn.180004040
xor r9d, r9d
mov qword [rsp + 0x28], 0
lea r8, [0x18003a680]
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x1400012dc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140003638], rbx
je 0x140001328
cmp rax, rbx
jne 0x14000131b
mov ebx, 1
mov esi, ebx
jmp 0x14000132d
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140001300
mov ebx, 1
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x140001343
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400013a8
mov eax, dword [0x140003640]
test eax, eax
jne 0x1400013a2
mov dword [0x140003640], ebx
lea r15, [0x1400022c0]
lea rdi, [0x1400022a8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140001394
test eax, eax
jne 0x140001398
cmp qword [rdi], 0
je 0x140001389
mov rax, qword [rdi]
mov rcx, qword [0x140002288]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000136a
test eax, eax
je 0x1400013a8
mov eax, 0xff
jmp 0x140001484
mov dword [0x140003044], ebx
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x1400013cf
lea rdx, [0x1400022a0]
lea rcx, [0x140002290]
call sub.msvcrt.dll__initterm
mov dword [0x140003640], 2
test esi, esi
jne 0x1400013dc
xor eax, eax
xchg qword [0x140003638], rax
cmp qword [0x140003648], 0
je 0x140001410
lea rcx, [0x140003648]
call fcn.140001650
test eax, eax
je 0x140001410
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140003648]
mov r9, qword [0x140002288]
call r9
mov r8, qword [0x140003058]
mov rdx, qword [0x140003050]
mov ecx, dword [0x140003048]
call fcn.14000119c
mov dword [0x140003040], eax
cmp dword [0x140003060], 0
jne 0x140001440
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140003044], 0
jne 0x140001455
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003040]
jmp 0x140001484
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140119000
add rsp, 0x28
jmp 0x1400012dc

Function at 0x140001550
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000159c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001594
cmp dword [rcx + 0x3c], edx
jl 0x140001594
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001594
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000159c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400033b5
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.14000b140
mov qword [rsp + 0x28], rax
push qword [0x140015120]
sub rsp, 8
push qword [0x140015120]
pop rcx
sub rsp, 0x20
call fcn.14000b314
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.14000ee60
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 [0x140015120]
sub rsp, 8
push qword [0x140015120]
push qword [rsp + 0x40]
pop rcx
pop rdx
sub rsp, 0x20
call fcn.14000b010
add rsp, 0x28
lea rcx, [0x140014b70]
pop rdx
call fcn.14000ee60
push qword [rsp + 0x28]
pop rcx
call fcn.14000b160
push qword [0x140014b70]
pop rcx
call fcn.14000b3e0
push qword [0x140014b70]
pop rcx
call fcn.14000b3e8
push qword [0x140015120]
sub rsp, 8
push qword [0x140015120]
pop rcx
sub rsp, 0x20
call fcn.14000b1fc
add rsp, 0x28
lea rcx, [0x140014aa8]
pop rdx
call fcn.14000ee60
push qword [rsp + 0x50]
pop rcx
call fcn.14000b180
mov rax, rax
push rax
xor r15, r15
cmp r15, qword [rsp]
jne 0x1400034f0
mov rcx, qword [0x140014b70]
push qword [0x140015120]
sub rsp, 0x20
call fcn.14000ef80
add rsp, 0x20
lea rcx, [0x140014aa8]
pop rdx
sub rsp, 0x28
call fcn.14000ee60
add rsp, 0x28
mov qword [rsp + 0x40], 2
jmp 0x140003506
mov r15, 1
cmp r15, qword [rsp]
jne 0x140003506
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.14000b180
mov qword [0x140014b08], rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
inc r15
mov rax, r15
push rax
pop rcx
call fcn.14000b180
mov qword [0x1400149d0], rax
mov rax, 1
jmp 0x14000354c
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.14000f060
add rsp, 0x28
pop rax
add rsp, 0x40
pop r15
ret
Function at 0x140003b89
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 0x140003b9c
sub rsp, 0x28
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14000eff0
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 0x140003c1a
push qword [rsp + 0x30]
push qword [rsp + 0x78]
pop rcx
pop rdx
call sub.KERNEL32.dll_LoadResource
mov qword [0x1400149d8], rax
push qword [rsp + 0x30]
push qword [rsp + 0x78]
pop rcx
pop rdx
call sub.KERNEL32.dll_SizeofResource
mov qword [0x140014a00], rax
push qword [0x140014a00]
pop rcx
call fcn.14000b140
mov qword [rsp + 0x38], rax
push qword [0x140014a00]
push qword [0x1400149d8]
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
call sub.msvcrt.dll_memcpy
push qword [rsp + 0x38]
pop rax
mov qword [0x1400149d8], rax
push qword [rsp + 0x28]
movabs rcx, 0x14001306c
pop rdx
call fcn.14000ef20
or rax, rax
je 0x140003ceb
push qword [0x140014a00]
pop rcx
call fcn.14000b140
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov r15, qword [0x140014a00]
dec r15
cmp r15, qword [rsp + 0x48]
jl 0x140003cdf
mov r15, qword [rsp + 0x38]
add r15, qword [rsp + 0x48]
mov rax, r15
push rax
pop rcx
call fcn.14000b180
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.14000b190
inc qword [rsp + 0x48]
jno 0x140003c87
push qword [rsp + 0x40]
pop rax
mov qword [0x1400149d8], rax
mov rax, qword [rsp + 0x30]
jmp 0x140003cf5
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.14000f060
add rsp, 0x28
pop rax
add rsp, 0x60
pop r15
ret
Function at 0x140005b8c
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140005c03
movsxd rdx, ecx
lea rcx, [0x140005ae8]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x140014bc8]
test rbx, rbx
je 0x140005c76
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140005bf9
cmp byte [rbx + 0x20], 0
je 0x140005bf9
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 0x140005bbf
jmp 0x140005c76
mov rbx, qword [0x140014bc8]
test rbx, rbx
je 0x140005c76
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140005c6e
cmp byte [rbx + 0x21], 0
je 0x140005c32
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140005c5e
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, [0x140014bc8]
call fcn.14000e964
mov rbx, rdi
test rdi, rdi
jne 0x140005c0f
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140005d50
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 [0x140015150]
call fcn.14000e10c
xor ebx, ebx
or esi, 0xffffffff
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [rax]
test dl, dl
je 0x140005e16
mov rcx, qword [rsp + 0x30]
mov r10b, 0x20
lea r9d, [rbx + 1]
cmp dl, r10b
jne 0x140005da4
add rax, r9
cmp byte [rax], r10b
je 0x140005d9c
mov dl, byte [rax]
mov r8d, r9d
cmp dl, 0x22
jne 0x140005dda
add rax, r9
mov rbx, rax
mov cl, byte [rax]
test cl, cl
je 0x140005dd5
cmp cl, 0x22
je 0x140005dc8
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x140005dba
cmp byte [rax], 0
je 0x140005dd5
mov rcx, rax
add rax, r9
jmp 0x140005dfc
mov rcx, rax
jmp 0x140005dfc
test dl, dl
je 0x140005df9
mov rbx, rax
cmp dl, r10b
je 0x140005def
add rax, r9
mov dl, byte [rax]
test dl, dl
jne 0x140005de1
cmp byte [rax], 0
mov rcx, rax
je 0x140005dfc
jmp 0x140005dd0
xor r8d, r8d
cmp dword [rbp], esi
jne 0x140005e06
test rdi, rdi
jne 0x140005e20
test r8d, r8d
je 0x140005e0e
add esi, r9d
mov dl, byte [rax]
xor ebx, ebx
test dl, dl
jne 0x140005d97
test rdi, rdi
jne 0x140005e32
movsxd rax, esi
jmp 0x140005e35
test rbx, rbx
je 0x140005e32
sub ecx, ebx
mov rax, rbx
mov dword [rdi], ecx
add dword [rbp], r9d
jmp 0x140005e35
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 0x140005f10
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140015150]
call fcn.14000e10c
xor ecx, ecx
add rsp, 0x28
jmp fcn.140005d50
Function at 0x140007ae4
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 [0x140015290]
call fcn.14000e024
mov rsi, rax
test rax, rax
je 0x140007b5d
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140007b22
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x140007b5d
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.14000f090
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.14000f230
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000804c
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 0x140008161
mov eax, dword [rsp + 0x30]
dec eax
je 0x14000813e
dec eax
jne 0x140008161
lea rcx, [rsp + 0xc0]
xor edi, edi
mov dword [rsp + 0xc0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1400080b9
lea eax, [rdi + 1]
cmp byte [rsp + 0x15a], al
cmove edi, eax
mov eax, dword [rsp + 0x24]
sub eax, 3
je 0x140008137
dec eax
je 0x140008130
dec eax
je 0x140008106
dec eax
jne 0x140008161
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x1400080fa
dec eax
je 0x1400080ee
dec eax
jne 0x140008161
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x5f
jmp 0x140008161
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x55
jmp 0x140008161
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x4b
jmp 0x140008161
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140008129
dec eax
je 0x140008122
dec eax
jne 0x140008161
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x41
jmp 0x140008161
mov ebx, 0x3c
jmp 0x140008161
mov ebx, 0x32
jmp 0x140008161
mov ebx, 0x14
jmp 0x140008161
mov ebx, 5
jmp 0x140008161
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000815c
cmp eax, 0xa
je 0x140008155
cmp eax, 0x5a
jne 0x140008161
lea ebx, [rax - 0x32]
jmp 0x140008161
mov ebx, 0x1e
jmp 0x140008161
mov ebx, 0xa
movsxd rax, ebx
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x1400094a0
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 0x140009549
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x140009549
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140009549
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140009549
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140009549
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 0x140009549
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.DLL_SendMessageA]
bt rax, 0xb
jae 0x1400095f3
test rbx, rbx
je 0x140009588
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000957b
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000957b
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x140009588
mov edx, 1
mov rcx, rbx
call fcn.14000944c
test rdi, rdi
je 0x1400095a2
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropA]
test rax, rax
jne 0x1400095f3
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropA]
mov rdi, rax
test rax, rax
je 0x1400095f3
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x1400095f3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x38], eax
jne 0x1400095f3
mov rcx, qword [0x1400152b0]
lea rdx, [rdi - 1]
call fcn.14000e024
test rax, rax
je 0x1400095f3
mov rax, qword [rax + 0x10]
jmp 0x1400095f5
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b1e4
Capabilities:
Allocate thread local storage

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

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

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14000b26f
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cdqe
jmp 0x14000b271
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000b314
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.14000f090
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 0x14000b386
lea rdx, [0x140011f68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000b37d
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.14000f230
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 0x14000b3ac
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000b3d7
test dl, 2
je 0x14000b3ca
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 0x14000b3d9
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14000b3ac

Function at 0x14000b3e0
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000b3d7
test dl, 2
je 0x14000b3ca
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 0x14000b3d9
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14000b3ac

Function at 0x14000b3e8
Capabilities:
Create directory

Disassembly:
sub rsp, 0x138
test rcx, rcx
je 0x14000b45b
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 0x14000b447
lea rdx, [rcx - 1]
mov al, byte [rdx]
cmp al, 0x20
je 0x14000b43a
cmp al, 0x5c
je 0x14000b43a
cmp al, 0x2f
jne 0x14000b447
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x14000b428
mov byte [rcx], 0
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cdqe
jmp 0x14000b45d
xor eax, eax
add rsp, 0x138
ret

Function at 0x14000b570
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 0x14000b5b6
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