joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c860
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c818
test byte [rbx + 0x40], 0xc
jne 0x14001c7cf
mov eax, dword [0x1407cd658]
test eax, eax
jne 0x14001c7e0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001a720
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c803
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c803
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c82c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001aa10
call fcn.14001b550
test rax, rax
mov rbx, rax
jne 0x14001c7bf
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001c84a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001aa10
call fcn.14001c6c0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c8d0
call fcn.14001d9b0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001c908
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c960
test esi, esi
je 0x14001c8e6
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c940
mov edx, edi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c950
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x14001c8a5
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c8be
call fcn.14001b550
jmp 0x14001c8e6
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a1

Function at 0x14001c970
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c9e0
test esi, esi
je 0x14001c9c0
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c9f0
mov edx, esi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001b550
mov rbx, rax
jmp 0x14001c991
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c9aa
Function at 0x14000245c
Capabilities:
Allocate thread local storage

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

Function at 0x140002474
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400dc660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400024a0
movsxd rdx, dword [rax]
test edx, edx
jle 0x1400024a0
lea ecx, [rdx - 1]
mov dword [rax], ecx
mov rax, qword [rax + 8]
mov rax, qword [rax + rdx*8 - 8]
jmp 0x1400024a2
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400024a8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1400dc660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140002525
mov rcx, qword [0x1400dc5e8]
lea r8d, [rax + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor edx, edx
mov r8d, 0x200
mov rbx, rax
and dword [rax], 0
mov dword [rax + 4], 0x40
mov rcx, qword [0x1400dc5e8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400dc660]
mov rdx, rbx
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rdx, rbx
lea rcx, [0x140002428]
call fcn.140002670
mov eax, dword [rbx + 4]
lea rdi, [rbx + 8]
cmp dword [rbx], eax
jne 0x140002555
mov r8, qword [rdi]
sub eax, 0xffffff80
movsxd r9, eax
mov edx, 8
mov dword [rbx + 4], eax
mov rcx, qword [0x1400dc5e8]
shl r9, 3
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rdi], rax
movsxd rcx, dword [rbx]
mov rax, qword [rdi]
mov qword [rax + rcx*8], rsi
inc dword [rbx]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140002670
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x1400dc668], 0
lea rbx, [0x1400dc678]
mov r14, rdx
mov r15, rcx
jne 0x1400026bd
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1400dc66c], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1400dc668], 1
mov ecx, dword [0x1400dc66c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x140002792
mov rcx, qword [0x1400dc5e8]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x1400027bd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400dc670]
test rax, rax
je 0x14000270d
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1400dc670], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
lea r9, [rbp + 0x20]
and dword [rsp + 0x28], 0
mov rcx, rax
mov r8, rdi
mov dword [rsp + 0x20], 0x100000
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x1400027d8]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1400dc66c]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1400dc5e8]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x1400027bd
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x140003130
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000317a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000317a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000317a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000317a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000317a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000317c
xor al, al
add rsp, 0x28
ret
Function at 0x140007a98
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140007b07
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007b07
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007b07
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007b07
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007b07
cmp dword [rcx + 0x84], 0xe
jbe 0x140007b07
cmp dword [rcx + 0xf8], 0
je 0x140007b07
mov ecx, ebx
call fcn.140007c0c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400078cc
nop
cmp dword [rbp + 0x20], 0
je 0x140007b55
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140007b60
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140007a98

Function at 0x140007cf8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007a98
Function at 0x14001388c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140009b3c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14001392d
cmp ebx, dword [rsp + 0x30]
je 0x140013926
test esi, esi
je 0x140013926
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140013901
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001390e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400138eb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140013912
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001392f
mov eax, 1
jmp 0x14001392f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140014bc4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140014bf4
xor eax, eax
jmp 0x140014cb7
mov rbp, rbx
cmp word [rax], si
je 0x140014c19
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140014c00
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140014bfc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140014ebc
movsxd r14, eax
test eax, eax
jne 0x140014c57
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140014bed
mov rcx, r14
call fcn.14000a5c0
mov rdi, rax
test rax, rax
jne 0x140014c70
xor ecx, ecx
call fcn.1400088f0
jmp 0x140014c4c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140014ebc
test eax, eax
jne 0x140014ca1
mov rcx, rdi
call fcn.1400088f0
jmp 0x140014cab
xor ecx, ecx
call fcn.1400088f0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140014cd4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140014d5b
mov rsi, rbx
cmp word [rax], bp
je 0x140014d1a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140014d04
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140014d00
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000a5c0
mov rdi, rax
test rax, rax
je 0x140014d48
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140022fa0
mov rbp, rdi
xor ecx, ecx
call fcn.1400088f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001cef8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000dae4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001cf82
cmp byte [rbp - 0x21], r15b
je 0x14001cf7d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001cfb8
call fcn.14000b860
test eax, eax
jne 0x14001cfa4
cmp byte [rbp - 0x21], r15b
je 0x14001cf9c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001cfb8
cmp byte [rbp - 0x21], r15b
je 0x14001cfb5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000eb84
test eax, eax
jne 0x14001d058
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000dae4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001cff7
cmp byte [rbp - 0x21], r15b
je 0x14001d02c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001d02c
call fcn.14000b860
test eax, eax
jne 0x14001d018
cmp byte [rbp - 0x21], r15b
je 0x14001d011
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001d02c
cmp byte [rbp - 0x21], r15b
je 0x14001d029
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000eb84
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001d058
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001d05b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001d069
mov rcx, rdi
call fcn.1400088f0
cmp byte [rbp + 0x3f], r15b
je 0x14001d078
mov rcx, qword [rbp + 0x27]
call fcn.1400088f0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001f610
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400dd4f0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001f667
cmp word [rdx], r13w
jne 0x14001f667
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001f66c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001f791
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001f7b2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001f6a5
mov rdx, r9
mov word [rbx], cx
jmp 0x14001f6cc
cmp r9, r8
jae 0x14001f6dc
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001f686
jmp 0x14001f791
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001f786
cmp dword [rsp + 0x80], esi
je 0x14001f786
lea r8, [0x1400dd4f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001f75e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001f72e
mov word [rbx], r13w
jmp 0x14001f78e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001f73b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001f78e
cmp word [rsp + 0x70], r13w
jne 0x14001f76b
cmp rbx, r14
je 0x14001f728
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140020bac
cmp word [rsp + 0x70], r13w
je 0x14001f791
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400dd4f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001f78b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001f791
Function at 0x1400305c0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14003063c
movsxd rdx, ecx
lea rcx, [0x140030520]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x1400ddb70]
test rbx, rbx
je 0x1400306af
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140030632
cmp byte [rbx + 0x20], 0
je 0x140030632
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x1400305f8
jmp 0x1400306af
mov rbx, qword [0x1400ddb70]
test rbx, rbx
je 0x1400306af
mov rsi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400306a7
cmp byte [rbx + 0x21], 0
je 0x14003066b
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140030697
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
or rdx, 0xffffffffffffffff
and dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400ddb70]
call fcn.1400400b8
mov rbx, rsi
test rsi, rsi
jne 0x140030648
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140034778
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400d99c8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.USER32.dll_GetFocus]
lea rdx, str.PB_WindowID
mov rcx, r14
mov rdi, rax
xor ebp, ebp
call qword [sym.imp.USER32.dll_GetPropW]
lea r13d, [rbx + 9]
mov rsi, rax
test rax, rax
je 0x140034837
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x140034837
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x20], eax
jne 0x140034837
mov rcx, qword [0x1400deb80]
lea rdx, [rsi - 1]
call fcn.14003f688
mov rbx, rax
lea ebp, [r13 - 8]
cmp dword [rax + 0x20], 0
jle 0x140034837
mov rcx, qword [rax + 8]
xor edx, edx
movsxd rax, dword [rax + 0x20]
add rcx, 4
cmp word [rcx - 2], r13w
jne 0x140034827
mov r8d, 0xfa01
cmp word [rcx], r8w
je 0x140034835
inc rdx
add rcx, 6
cmp rdx, rax
jge 0x140034837
jmp 0x140034814
xor ebp, ebp
mov sil, pe_nt_image_headers64
test rdi, rdi
je 0x140034907
mov ecx, r13d
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x140034907
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140034907
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140034907
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140034907
mov r8d, 0x10
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
test ebp, ebp
jne 0x140034907
lea r8d, [rbp + 5]
lea rdx, str.RichE
lea rcx, [rsp + 0x28]
call fcn.140014734
test eax, eax
je 0x1400348d7
lea r8d, [rbp + 4]
lea rdx, str.RICHE
lea rcx, [rsp + 0x28]
call fcn.140014734
test eax, eax
jne 0x1400348f2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x14003496e
lea rdx, str.Scintilla
lea rcx, [rsp + 0x28]
call fcn.14001a064
test eax, eax
je 0x14003496e
test r14, r14
je 0x140034949
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14003493c
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14003493c
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x140034949
mov edx, 1
mov rcx, r14
call fcn.140034998
test rdi, rdi
je 0x140034963
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x14003496e
test rbx, rbx
je 0x14003496e
mov rax, qword [rbx + 0x10]
jmp 0x140034970
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140061ba0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rdi
ret
Function at 0x1400378c8
Capabilities:
Get file size
Read file on windows

Disassembly:
xor r8d, r8d
jmp 0x1400378d0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, rdx
xor ebx, ebx
mov r14, rcx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140037993
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x1400dc5e8]
xor edx, edx
mov r8d, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x14003798a
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140037978
cmp dword [rsp + 0x78], edi
jne 0x140037978
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call fcn.140039424
mov rbx, rax
mov rcx, qword [0x1400dc5e8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x14003df8c
Capabilities:
Allocate thread local storage

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

Function at 0x140062170
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140062198
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140062198
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret