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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x14015a138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax]
cmp rbx, rcx
jb 0x140023774
mov rdx, qword [rax + 0x10]
add rdx, rcx
cmp rbx, rdx
ja 0x140023774
sub ebx, ecx
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140023780
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x14015a138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec rbx
mov rax, qword [rax]
add rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14002bee8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14003d4e0
sub rsp, rax
mov rax, qword [0x14015a4a0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140049560
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002bf37
mov rax, rbp
jmp 0x14002c03f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x15eec0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14004bc30
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x15eec0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002c03b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002c03b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14004bc30
test rax, rax
js 0x14002c03b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002c03b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002c02d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002c02d
cmp byte [rcx], 0xd
jne 0x14002c013
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002c022
cmp byte [rcx + 1], 0xa
jne 0x14002c022
inc rcx
jmp 0x14002c022
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x15a4b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002bff5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002c03f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140049820
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140039bf0
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x24]
mov rbx, rcx
cmp eax, 0xca
jne 0x140039c26
call fcn.14003a1b0
cmp byte [rbx + 0x58], 0
je 0x140039c1d
mov dword [rbx + 0x24], 0xcf
mov al, 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x24], 0xcb
jmp 0x140039c31
cmp eax, 0xcb
jne 0x140039cb5
mov rax, qword [rbx + 0x240]
cmp byte [rax + 0x20], 0
je 0x140039c9c
nop
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140039c4e
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x240]
mov rcx, rbx
call qword [rax]
test eax, eax
je 0x140039c94
cmp eax, 2
je 0x140039c9c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140039c40
dec eax
test eax, 0xfffffffd
jne 0x140039c40
inc dword [rcx + 8]
mov rdx, qword [rbx + 0x10]
mov r8d, dword [rdx + 0xc]
cmp dword [rcx + 8], r8d
jl 0x140039c40
mov ecx, dword [rbx + 0x190]
add ecx, r8d
mov dword [rdx + 0xc], ecx
jmp 0x140039c40
xor al, al
add rsp, 0x20
pop rbx
ret
mov eax, dword [rbx + 0x9c]
mov rcx, rbx
mov dword [rbx + 0xa4], eax
add rsp, 0x20
pop rbx
jmp 0x140039dc0
cmp eax, 0xcc
je 0x140039cd7
mov rax, qword [rcx]
mov dword [rax + 0x28], reloc.WS2_32.dll_setsockopt
mov rcx, qword [rcx]
mov eax, dword [rbx + 0x24]
mov dword [rcx + 0x2c], eax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140039dc0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor ebp, ebp
lea rsi, [rcx + 0x98]
cmp dword [rcx + 0x24], 0xcc
mov rbx, rcx
je 0x140039dfc
mov rax, qword [rcx + 0x220]
call qword [rax]
mov dword [rsi], ebp
mov dword [rbx + 0x24], 0xcc
mov rax, qword [rbx + 0x220]
mov qword [rsp + 0x30], rdi
cmp byte [rax + 0x10], bpl
je 0x140039e80
nop
mov eax, dword [rsi]
cmp eax, dword [rbx + 0x78]
jae 0x140039e58
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140039e36
mov dword [rcx + 8], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rbx + 0x78]
mov dword [rcx + 0xc], eax
mov rcx, rbx
mov rax, qword [rbx + 0x10]
call qword [rax]
mov rax, qword [rbx + 0x228]
xor r9d, r9d
mov edi, dword [rsi]
mov r8, rsi
xor edx, edx
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, dword [rsi]
cmp eax, edi
je 0x140039eae
cmp eax, dword [rbx + 0x78]
jb 0x140039e17
mov rax, qword [rbx + 0x220]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rbx + 0x220]
mov rcx, rbx
call qword [rax]
mov dword [rsi], ebp
mov rax, qword [rbx + 0x220]
cmp byte [rax + 0x10], bpl
jne 0x140039e10
cmp byte [rbx + 0x59], bpl
mov al, 1
setne bpl
add ebp, 0xcd
mov dword [rbx + 0x24], ebp
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
xor al, al
jmp 0x140039e93
Function at 0x14003ace0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov rdi, r8
mov r15, rdx
mov r14, rcx
cmp dword [rcx + 0x1c], ebp
jne 0x14003ad17
call fcn.1400057d0
mov dword [r14 + 0x1c], 1
mov dword [r14 + 0x14], ebp
movsxd r12, dword [r14 + 0x14]
mov eax, dword [r14 + 0x18]
mov rbx, r12
sub eax, r12d
movsxd rdx, eax
add rdx, qword [r14 + 8]
cmp r12, rdi
jl 0x14003ad90
mov rax, rdi
sub rax, 1
je 0x14003ad81
sub rax, 1
je 0x14003ad6e
cmp rax, 2
je 0x14003ad5d
mov r8, rdi
mov rcx, r15
call fcn.140019020
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14003ae0a
mov eax, dword [rdx]
mov dword [r15], eax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14003ae0a
movzx eax, word [rdx]
mov word [r15], ax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14003ae0a
movzx eax, byte [rdx]
mov byte [r15], al
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14003ae0a
mov r8, rbx
mov rcx, r15
call fcn.140019020
movsxd r8, dword [r14 + 0x10]
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
add r15, rbx
sub rdi, rbx
mov qword [rsp + 0x20], rbp
cmp rdi, r8
jl 0x14003add0
mov r8d, edi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x60]
add eax, r12d
mov dword [r14 + 0x14], ebp
jmp 0x14003ae08
mov rdx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x60]
mov rcx, r15
mov rdx, qword [r14 + 8]
cmp rdi, rax
mov rbx, rax
mov dword [r14 + 0x14], eax
cmovle rbx, rdi
mov dword [r14 + 0x18], eax
mov r8, rbx
call fcn.140019020
sub dword [r14 + 0x14], ebx
lea eax, [rbx + r12]
cdqe
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14003ae30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, r8
mov r12d, edx
mov r14, rcx
mov r15d, 0x1000
mov rcx, qword [0x14015b0c8]
mov r8d, r15d
xor edx, edx
mov r13, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14003b00b
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
mov qword [rsp + 0x78], rdi
cmp rsi, 0xffffffffffffffff
je 0x14003ae97
test rsi, rsi
je 0x14003af60
dec rsi
cmp qword [r14 + 8], 0
lea rdi, [r14 + 8]
lea rdx, [rsp + 0x30]
je 0x14003aebb
mov r8d, 1
mov rcx, r14
call fcn.14003ace0
mov dword [rsp + 0x34], eax
jmp 0x14003aedc
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx r8d, byte [rsp + 0x30]
cmp eax, 1
jne 0x14003af64
test r8b, r8b
je 0x14003aef8
mov byte [rbx], r8b
inc rbx
movzx r8d, byte [rsp + 0x30]
mov rdx, rbx
lea eax, [r15 - 1]
sub rdx, rbp
movsxd rcx, eax
cmp rdx, rcx
jle 0x14003af3a
mov rcx, qword [0x14015b0c8]
add r15d, 0x1000
movsxd r9, r15d
mov r8, rbp
mov edx, 8
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
mov rbp, rax
movsxd rbx, ebx
add rbx, rax
test r8b, r8b
je 0x14003af64
test r12d, r12d
jne 0x14003ae85
cmp r8b, 0xd
je 0x14003af6d
cmp r8b, 0xa
jne 0x14003ae85
dec rbx
jmp 0x14003aff1
lea rdi, [r14 + 8]
test r12d, r12d
jne 0x14003aff1
cmp r8b, 0xa
jne 0x14003af78
dec rbx
jmp 0x14003aff1
cmp r8b, 0xd
jne 0x14003aff1
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rdi], 0
je 0x14003afa0
mov r8d, 1
mov rcx, r14
call fcn.14003ace0
mov dword [rsp + 0x34], eax
jmp 0x14003afbd
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x14003aff1
cmp qword [rdi], 0
je 0x14003afd0
inc dword [r14 + 0x14]
jmp 0x14003aff1
mov rcx, qword [r14]
lea r8, [rsp + 0x3c]
mov r9d, 1
mov qword [rsp + 0x38], 0xffffffffffffffff
lea edx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdi, qword [rsp + 0x78]
mov rax, rbx
sub rax, rbp
mov qword [r13], rax
mov rax, rbp
mov byte [rbx], 0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x14003b030
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbp, r8
mov r12d, edx
mov r14, rcx
xor edx, edx
mov rcx, qword [0x14015b0c8]
mov r8d, 0x1000
xor edi, edi
mov r13d, 0x800
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x14003b228
movzx edx, word [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
mov qword [rsp + 0x78], rsi
nop dword [rax + rax]
cmp rbp, 0xffffffffffffffff
je 0x14003b0a2
test rbp, rbp
je 0x14003b168
dec rbp
cmp qword [r14 + 8], 0
lea rsi, [r14 + 8]
lea rdx, [rsp + 0x30]
je 0x14003b0c6
mov r8d, 2
mov rcx, r14
call fcn.14003ace0
mov dword [rsp + 0x34], eax
jmp 0x14003b0e3
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
mov r8d, 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx edx, word [rsp + 0x30]
cmp eax, 2
jne 0x14003b16c
test dx, dx
je 0x14003b0fe
mov word [rbx], dx
add rbx, 2
movzx edx, word [rsp + 0x30]
mov rdi, rbx
lea eax, [r13 - 1]
sub rdi, r15
movsxd rcx, eax
sar rdi, 1
cmp rdi, rcx
jle 0x14003b144
mov rcx, qword [0x14015b0c8]
add r13d, 0x800
movsxd r9, r13d
mov r8, r15
add r9, r9
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx edx, word [rsp + 0x30]
mov r15, rax
movsxd rax, edi
lea rbx, [r15 + rax*2]
test dx, dx
je 0x14003b16c
mov edi, 0
test r12d, r12d
jne 0x14003b090
cmp dx, 0xd
je 0x14003b171
cmp dx, 0xa
je 0x14003b177
jmp 0x14003b090
lea rsi, [r14 + 8]
test r12d, r12d
jne 0x14003b17b
cmp dx, 0xa
jne 0x14003b1a6
sub rbx, 2
xor edi, edi
mov rcx, qword [rsp + 0x88]
mov rax, rbx
mov rsi, qword [rsp + 0x78]
sub rax, r15
sar rax, 1
mov qword [rcx], rax
mov rax, r15
mov word [rbx], di
mov rbx, qword [rsp + 0x70]
jmp 0x14003b22b
cmp dx, 0xd
jne 0x14003b17b
sub rbx, 2
lea rdx, [rsp + 0x30]
cmp qword [rsi], 0
je 0x14003b1d1
mov r8d, 2
mov rcx, r14
call fcn.14003ace0
mov dword [rsp + 0x34], eax
xor edi, edi
jmp 0x14003b1ea
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r8d, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [rsp + 0x30], 0xa
je 0x14003b17d
cmp qword [rsi], 0
je 0x14003b202
add dword [r14 + 0x14], 2
jmp 0x14003b17d
mov rcx, qword [r14]
lea r8, [rsp + 0x3c]
mov r9d, 1
mov qword [rsp + 0x38], 0xfffffffffffffffe
lea edx, [r9 - 3]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x14003b17d
mov rax, rdi
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14003b250
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rdi, r8
mov r15d, edx
mov rsi, rcx
mov r14d, 0x1000
mov rcx, qword [0x14015b0c8]
mov r8d, r14d
xor edx, edx
mov r12, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14003b3ea
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x60], rbx
mov rbx, rax
cmp rdi, 0xffffffffffffffff
je 0x14003b2b9
test rdi, rdi
je 0x14003b347
dec rdi
mov rdx, rbx
mov rcx, rsi
call fcn.14006f760
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x14003b2d1
xor r8b, r8b
jmp 0x14003b2d5
movzx r8d, byte [rbx]
cdqe
add rbx, rax
mov byte [rsp + 0x30], r8b
mov rdx, rbx
lea eax, [r14 - 5]
sub rdx, rbp
movsxd rcx, eax
cmp rdx, rcx
jle 0x14003b321
mov rcx, qword [0x14015b0c8]
add r14d, 0x1000
movsxd r9, r14d
mov r8, rbp
mov edx, 8
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
mov rbp, rax
movsxd rbx, ebx
add rbx, rax
test r8b, r8b
je 0x14003b347
test r15d, r15d
jne 0x14003b2a7
cmp r8b, 0xd
je 0x14003b350
cmp r8b, 0xa
jne 0x14003b2a7
dec rbx
jmp 0x14003b3d5
test r15d, r15d
jne 0x14003b3d5
cmp r8b, 0xa
jne 0x14003b35b
dec rbx
jmp 0x14003b3d5
cmp r8b, 0xd
jne 0x14003b3d5
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rsi + 8], 0
je 0x14003b384
mov r8d, 1
mov rcx, rsi
call fcn.14003ace0
mov dword [rsp + 0x34], eax
jmp 0x14003b3a1
mov rcx, qword [rsi]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x14003b3d5
cmp qword [rsi + 8], 0
je 0x14003b3b4
inc dword [rsi + 0x14]
jmp 0x14003b3d5
mov rcx, qword [rsi]
lea r8, [rsp + 0x3c]
mov r9d, 1
mov qword [rsp + 0x38], 0xffffffffffffffff
lea edx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, rbx
sub rax, rbp
mov qword [r12], rax
mov rax, rbp
mov byte [rbx], 0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x14003b410
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x38
xor ebp, ebp
movsxd rbx, r8d
mov r14, rdx
mov rsi, rcx
mov dword [rsp + 0x60], ebp
cmp dword [rcx + 0x24], ebp
jne 0x14003b50a
cmp dword [rcx + 0x1c], 1
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x30], r15
jne 0x14003b46b
mov eax, dword [rcx + 0x14]
lea r9d, [rbp + 1]
mov rcx, qword [rcx]
lea r8, [rsp + 0x7c]
neg eax
cdqe
mov edx, eax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rsi + 0x10]
mov dword [rsi + 0x14], eax
mov dword [rsi + 0x1c], ebp
mov ecx, dword [rsi + 0x14]
cmp ecx, ebx
jle 0x14003b4cc
mov eax, dword [rsi + 0x10]
mov edx, ebx
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rsi + 8]
sub edx, 1
je 0x14003b4c4
sub edx, 1
je 0x14003b4bb
cmp edx, 2
je 0x14003b4b4
mov r8, rbx
mov rdx, r14
call fcn.140019020
sub dword [rsi + 0x14], ebx
mov rax, rbx
mov rdi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [r14]
mov dword [rcx], eax
jmp 0x14003b49a
movzx eax, word [r14]
mov word [rcx], ax
jmp 0x14003b49a
movzx eax, byte [r14]
mov byte [rcx], al
jmp 0x14003b49a
mov rcx, rsi
call fcn.1400057d0
mov eax, dword [rsi + 0x10]
mov rdx, r14
cmp ebx, eax
jl 0x14003b4fb
mov rcx, qword [rsi]
lea r9, [rsp + 0x60]
mov r8d, ebx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x60]
jmp 0x14003b4a0
sub eax, dword [rsi + 0x14]
mov r8, rbx
movsxd rcx, eax
add rcx, qword [rsi + 8]
jmp 0x14003b495
movsxd rax, ebp
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret

Function at 0x14003cc50
Capabilities:
Get common file path
Get file system object information

Disassembly:
push rbx
sub rsp, 0x500
mov ebx, ecx
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
bts ebx, 0xe
lea r8, [rsp + 0x240]
mov r9d, 0x2b8
mov dword [rsp + 0x20], ebx
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add rsp, 0x500
pop rbx
ret
Function at 0x14003cc98
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x30
cmp dword [0x14015e330], 0
jne 0x14003cda2
mov esi, 1
lea rcx, [0x14015e880]
mov dword [0x14015e330], esi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rcx, qword [0x14015b0c8]
lea edx, [rsi + 7]
mov r8d, 0x640
mov dword [0x14015e334], 0x1f4
mov dword [0x14015e338], r8d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movsxd r8, dword [0x14015e334]
lea edx, [rsi + 7]
mov rcx, qword [0x14015b0c8]
add r8, r8
mov qword [0x14015e810], rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [0x14015e33c], 0
lea rcx, [0x14015e820]
mov qword [0x14015e808], rax
mov dword [0x14015e548], esi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
xor r8d, r8d
mov edx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov qword [0x14015e848], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
cmp qword [0x14015e848], 0
mov qword [0x14015e850], rax
je 0x14003cd9c
test rax, rax
je 0x14003cd9c
and dword [0x14015e54c], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x14003d250]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14015e818], rax
jmp 0x14003cda2
mov dword [0x14015e54c], esi
add rsp, 0x30
pop rsi
ret
Function at 0x14003d0f0
Capabilities:
Terminate thread

Disassembly:
test rcx, rcx
je 0x14003d1b5
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
test rax, rax
je 0x14003d1ab
cmp dword [0x14015e54c], 1
je 0x14003d1ab
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x1f]
call qword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14003d1ab
lea rcx, [0x14015e820]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x14015e850]
mov qword [0x14015e858], rbx
mov qword [0x14015e860], rdi
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x14015e848]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x14015e850]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14003d19e
mov rcx, qword [0x14015e818]
xor edx, edx
mov dword [0x14015e54c], 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x14015e820]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14003d1b8
Capabilities:
Terminate thread

Disassembly:
test rcx, rcx
je 0x14003d24c
push rbx
sub rsp, 0x20
cmp dword [0x14015e54c], 1
mov rbx, rcx
je 0x14003d247
lea rcx, [0x14015e820]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x14015e850]
and qword [0x14015e860], 0
mov qword [0x14015e858], rbx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x14015e848]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x14015e850]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14003d23a
mov rcx, qword [0x14015e818]
xor edx, edx
mov dword [0x14015e54c], 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x14015e820]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rbx
ret
Function at 0x14003f28c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x40
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 r12d, [rbx + 9]
mov rsi, rax
test rax, rax
je 0x14003f33d
lea rdx, [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x14003f33d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x68], eax
jne 0x14003f33d
mov rcx, qword [0x14015e2f8]
lea rdx, [rsi - 1]
call fcn.140018e10
mov rbx, rax
lea ebp, [r12 - 8]
cmp dword [rax + 0x20], 0
jle 0x14003f33d
mov rcx, qword [rax + 8]
xor edx, edx
movsxd rax, dword [rax + 0x20]
add rcx, 4
cmp word [rcx - 2], r12w
jne 0x14003f32d
mov r8d, 0xfa01
cmp word [rcx], r8w
je 0x14003f33b
inc rdx
add rcx, 6
cmp rdx, rax
jge 0x14003f33d
jmp 0x14003f31a
xor ebp, ebp
mov sil, 0x80
test rdi, rdi
je 0x14003f40d
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x14003f40d
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14003f40d
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14003f40d
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14003f40d
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
test ebp, ebp
jne 0x14003f40d
lea r8d, [rbp + 5]
lea rdx, str.RichE
lea rcx, [rsp + 0x20]
call fcn.14003c0cc
test eax, eax
je 0x14003f3dd
lea r8d, [rbp + 4]
lea rdx, str.RICHE
lea rcx, [rsp + 0x20]
call fcn.14003c0cc
test eax, eax
jne 0x14003f3f8
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x14003f474
lea rdx, str.Scintilla
lea rcx, [rsp + 0x20]
call fcn.140019698
test eax, eax
je 0x14003f474
test r14, r14
je 0x14003f44f
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14003f442
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14003f442
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x14003f44f
mov edx, 1
mov rcx, r14
call fcn.14003f604
test rdi, rdi
je 0x14003f469
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x14003f474
test rbx, rbx
je 0x14003f474
mov rax, qword [rbx + 0x10]
jmp 0x14003f476
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r12
pop rdi
ret

Function at 0x140043250
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x14015a138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rbx, qword [rax]
mov rax, rbx
add rsp, 0x20
pop rbx
ret