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

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
xor ebp, ebp
mov r13d, r9d
mov r15d, edx
mov r12d, ebp
cmp edx, 1
jl 0x14001375b
test rcx, rcx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov edi, ebp
mov qword [rsp + 0x20], r14
lea r14, [0x1401616e8]
mov rsi, r14
cmovne rsi, rcx
test r8, r8
cmovne r14, r8
movzx ecx, word [r14]
test cx, cx
je 0x1400136ea
cmp word [r14 + 2], di
je 0x1400136ea
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r14 + rax*2], di
jne 0x140013660
mov rbx, rsi
movsxd rbp, eax
mov r8, rbp
mov rdx, r14
mov rcx, rbx
call fcn.14003ed58
test eax, eax
je 0x14001368e
cmp word [rbx], r12w
je 0x14001368e
add rbx, 2
jmp 0x140013670
inc edi
cmp edi, r15d
je 0x1400136a4
cmp word [rbx], r12w
je 0x1400136ad
lea rbx, [rbx + rbp*2]
mov rsi, rbx
jmp 0x140013670
mov r12, rbx
sub r12, rsi
sar r12, 1
xor ebp, ebp
mov rcx, rbx
call fcn.14001a8a0
mov r14, qword [rsp + 0x20]
movsxd rbx, r12d
test eax, eax
je 0x140013720
mov ecx, r13d
call fcn.14003f020
lea r8, [rbx + rbx]
mov rdx, rsi
mov rcx, rax
call fcn.1400173a0
mov edx, r13d
mov ecx, r12d
call fcn.1400186c0
mov rdi, rax
jmp 0x14001373c
mov rbx, rsi
nop dword [rax]
movzx eax, word [rbx]
cmp ax, cx
je 0x140013703
test ax, ax
je 0x140013703
add rbx, 2
jmp 0x1400136f0
inc edi
cmp edi, r15d
je 0x140013715
test ax, ax
je 0x1400136af
lea rsi, [rbx + 2]
jmp 0x1400136ea
mov r12, rbx
sub r12, rsi
sar r12, 1
jmp 0x1400136af
mov edx, r13d
mov ecx, r12d
call fcn.1400186c0
mov r8, rbx
mov rdx, rsi
mov rcx, rax
mov rdi, rax
call fcn.14001866c
mov rsi, qword [rsp + 0x58]
mov word [rdi + rbx*2], bp
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
mov ecx, r13d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.1400196e0

Function at 0x140014218
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 [0x1401d5090]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140014299
mov r8, qword [0x1401d5088]
lea edx, [rax + 8]
mov rcx, qword [0x1401d3638]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1401d5090]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1401d5080]
jmp 0x140014285
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x140014282
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140014270
mov rdx, rdi
lea rcx, [0x1400143b4]
call fcn.14003f174
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400142b0
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
sub rsp, 0x20
mov edi, ecx
mov rbp, r8
mov rsi, rdx
and ecx, 7
je 0x1400142da
mov eax, 8
sub eax, ecx
add edi, eax
mov rbx, qword [0x1401d5088]
test rbx, rbx
jne 0x140014320
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x1401d3638]
lea edx, [rbx + 8]
movsxd rdi, edi
mov r8, rdi
mov dword [0x1401d5090], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1401d5090]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1401d5088]
jmp 0x140014323
movsxd rdi, edi
mov ecx, dword [0x1401d5090]
lea rax, [rdi + rbx]
mov qword [0x1401d5088], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x1401d5088]
mov edx, 8
mov rcx, qword [0x1401d3638]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x1401d5090]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x140014372
test rbp, rbp
je 0x140014399
mov edx, 0x28
lea rcx, [0x1401d5080]
call fcn.140017eec
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x140014399
lea rcx, [rdi + rbx]
call rsi
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140014430
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, rcx
movsxd rbx, edx
mov ecx, dword [0x1401d1238]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [0x1401d5098]
xor edx, edx
mov rsi, rax
mov rax, qword [r14]
mov r8d, dword [rsi + 0x10]
sub r8d, ebx
movsxd rdi, r8d
lea r9, [rdi + 0xa]
test rax, rax
jne 0x140014484
mov r8, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x14001448d
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [r14], rax
mov rcx, rax
mov rdx, qword [rsi]
shr rdi, 1
add rdx, rbx
mov r8d, edi
call fcn.14003ed20
mov rdi, qword [rsp + 0x40]
mov qword [rsi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

Function at 0x140014500
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1401d1238]
cmp ecx, 0xffffffff
jne 0x140014516
call fcn.140014700
jmp 0x140014526
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140014545
call fcn.14003f3b0
mov ecx, dword [0x1401d1238]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x1400144c0]
add rsp, 0x28
jmp fcn.14003f174
add rsp, 0x28
ret

Function at 0x140014700
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1401d5098], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401d1238], eax
add rsp, 0x28
jmp fcn.14003f3b0
Function at 0x140014760
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1401d1238]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rax, qword [rax]
add rsp, 0x28
ret

Function at 0x140014780
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1401d1238]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax + 0x10]
add rcx, qword [rax]
mov rax, rcx
add rsp, 0x28
ret

Function at 0x1400147a0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1401d1238]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400147e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1401d1238]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add qword [rax + 0x10], 2
add rsp, 0x28
ret

Function at 0x140014800
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x1401d1238]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rax + 0x10], rbx
mov rax, qword [rax]
add rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x14001802c
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 0x1400180a8
movsxd rdx, ecx
lea rcx, [0x140018130]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x1401d52c0]
test rbx, rbx
je 0x14001811b
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14001809e
cmp byte [rbx + 0x20], 0
je 0x14001809e
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 0x140018064
jmp 0x14001811b
mov rbx, qword [0x1401d52c0]
test rbx, rbx
je 0x14001811b
mov rsi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140018113
cmp byte [rbx + 0x21], 0
je 0x1400180d7
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140018103
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, [0x1401d52c0]
call fcn.140017f30
mov rbx, rsi
test rsi, rsi
jne 0x1400180b4
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400186c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rbp, ecx
mov esi, edx
mov ecx, dword [0x1401d1238]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp esi, 0xffffffff
jne 0x1400186f0
mov esi, dword [rax + 0x10]
mov eax, dword [rax + 0x10]
mov r8, qword [rbx + 8]
lea edx, [rax + rbp*2]
movsxd rax, edx
lea rcx, [r8 - 4]
cmp rax, rcx
jl 0x140018711
lea eax, [rdx + 0x4000]
movsxd r9, eax
jmp 0x140018723
mov eax, 0x100000
cmp r8, rax
jle 0x140018740
cmp edx, eax
cmovl edx, eax
mov r9d, edx
mov r8, qword [rbx]
xor edx, edx
mov qword [rbx + 8], r9
add r9, 0xa
mov rcx, qword [0x1401d5098]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbx], rax
mov rax, qword [rbx]
movsxd rdx, esi
mov rsi, qword [rsp + 0x40]
add rax, rdx
lea rcx, [rdx + rbp*2]
mov rbp, qword [rsp + 0x38]
mov qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140018770
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x1401d1238]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [rbx + rbx]
movsxd rdx, ecx
sub qword [rax + 0x10], rdx
add rsp, 0x20
pop rbx
ret
Function at 0x1400196e0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x1401d1238]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edx, edx
mov qword [rax + 0x10], rbx
mov rax, qword [rax]
mov word [rbx + rax], dx
add rsp, 0x20
pop rbx
ret

Function at 0x14001a8a0
Capabilities:
Get thread local storage value

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

Function at 0x14001a8e0
Capabilities:
Get thread local storage value

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

Function at 0x140022f80
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x50]
mov rdi, r9
cmp r8, rax
mov rsi, rdx
mov rbx, rcx
cmovb eax, r8d
test eax, eax
je 0x140023025
mov qword [rsp + 0x30], rbp
sub rsi, r9
mov ebp, eax
mov eax, dword [rbx + 8]
lea rdx, [rsp + 0x50]
or eax, 2
mov r8d, 1
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor cl, byte [rsi + rdi]
mov byte [rdi], cl
mov byte [rsp + 0x50], cl
mov ecx, dword [rbx]
not ecx
call fcn.140060d10
not eax
lea rdx, [rsp + 0x40]
mov dword [rbx], eax
mov r8d, 1
movzx eax, al
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr ecx, 0x18
mov byte [rsp + 0x40], cl
mov ecx, dword [rbx + 8]
not ecx
call fcn.140060d10
lea rdi, [rdi + 1]
not eax
mov dword [rbx + 8], eax
sub rbp, 1
jne 0x140022fb2
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140029e00
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, qword [rsp + 0x60]
mov rsi, r9
cmp r8, rbx
mov r14, rdx
mov rdi, rcx
cmovb ebx, r8d
test ebx, ebx
je 0x140029ec7
mov qword [rsp + 0x40], rbp
sub r14, r9
mov ebp, ebx
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r14 + rsi]
mov r8d, 1
mov eax, dword [rdi + 8]
or eax, 2
mov byte [rsp + 0x60], dl
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor cl, dl
lea rdx, [rsp + 0x60]
mov byte [rsi], cl
mov ecx, dword [rdi]
not ecx
call fcn.140060d10
not eax
lea rdx, [rsp + 0x50]
mov dword [rdi], eax
mov r8d, 1
movzx eax, al
add eax, dword [rdi + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rdi + 4], ecx
shr ecx, 0x18
mov byte [rsp + 0x50], cl
mov ecx, dword [rdi + 8]
not ecx
call fcn.140060d10
lea rsi, [rsi + 1]
not eax
mov dword [rdi + 8], eax
sub rbp, 1
jne 0x140029e40
mov rbp, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov rbx, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140029ee0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 0xf8]
mov rbp, rcx
call fcn.140075bf0
mov rsi, rax
test rax, rax
jne 0x140029f26
lea r8, str.Encryption_needs_passphrase
mov rcx, rbp
lea rdx, [rax - 1]
call fcn.140064610
lea eax, [rsi - 0x19]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov edx, ntohl
lea rcx, [rsp + 0x20]
call fcn.140074cf0
test eax, eax
je 0x140029f61
lea r8, str.Cant_generate_random_number_for_encryption
mov rdx, 0xffffffffffffffff
mov rcx, rbp
call fcn.140064610
mov eax, 0xffffffe2
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140029f70
mov dword [rdi + 0x50], 0x12345678
mov dword [rdi + 0x54], 0x23456789
mov dword [rdi + 0x58], 0x34567890
test rbx, rbx
je 0x140029ff0
mov ecx, dword [rdi + 0x50]
lea rdx, [rsp + 0x60]
movzx eax, byte [rsi]
not ecx
mov r8d, 1
mov byte [rsp + 0x60], al
call fcn.140060d10
not eax
lea rdx, [rsp + 0x68]
mov dword [rdi + 0x50], eax
mov r8d, 1
movzx eax, al
add eax, dword [rdi + 0x54]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rdi + 0x54], ecx
shr ecx, 0x18
mov byte [rsp + 0x68], cl
mov ecx, dword [rdi + 0x58]
not ecx
call fcn.140060d10
lea rsi, [rsi + 1]
not eax
mov dword [rdi + 0x58], eax
sub rbx, 1
jne 0x140029f93
movzx eax, byte [rdi + 0x5d]
xor ebx, ebx
mov byte [rsp + 0x2b], al
lea esi, [rbx + 0xc]
nop dword [rax]
movzx edx, byte [rsp + rbx + 0x20]
mov r8d, 1
mov eax, dword [rdi + 0x58]
or eax, 2
mov byte [rsp + 0x60], dl
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor cl, dl
lea rdx, [rsp + 0x60]
mov byte [rsp + rbx + 0x30], cl
mov ecx, dword [rdi + 0x50]
not ecx
call fcn.140060d10
not eax
lea rdx, [rsp + 0x68]
mov dword [rdi + 0x50], eax
mov r8d, 1
movzx eax, al
add eax, dword [rdi + 0x54]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rdi + 0x54], ecx
shr ecx, 0x18
mov byte [rsp + 0x68], cl
mov ecx, dword [rdi + 0x58]
not ecx
call fcn.140060d10
lea rbx, [rbx + 1]
not eax
mov dword [rdi + 0x58], eax
sub rsi, 1
jne 0x14002a000
lea r8d, [rsi + 0xc]
mov rcx, rbp
lea rdx, [rsp + 0x30]
call fcn.1400755b0
test eax, eax
jne 0x14002a098
add qword [rdi + 0xb0], 0xc
add qword [rdi + 0x18], 0xc
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400356a4
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.140084610
sub rsp, rax
mov rax, qword [0x1401d1690]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14005e39c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400356f3
mov rax, rbp
jmp 0x1400357fb
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 + 0x1d5ac0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140083dd8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1d5ac0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400357f7
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 0x1400357f7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140083dd8
test rax, rax
js 0x1400357f7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400357f7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400357e9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400357e9
cmp byte [rcx], 0xd
jne 0x1400357cf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400357de
cmp byte [rcx + 1], 0xa
jne 0x1400357de
inc rcx
jmp 0x1400357de
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1d1ee0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400357b1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400357fb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14005e960
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 0x1400364f0
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x24]
mov rbx, rcx
cmp eax, 0xca
jne 0x140036526
call fcn.140036ab0
cmp byte [rbx + 0x58], 0
je 0x14003651d
mov dword [rbx + 0x24], 0xcf
mov al, 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x24], 0xcb
jmp 0x140036531
cmp eax, 0xcb
jne 0x1400365b5
mov rax, qword [rbx + 0x240]
cmp byte [rax + 0x20], 0
je 0x14003659c
nop
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14003654e
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x240]
mov rcx, rbx
call qword [rax]
test eax, eax
je 0x140036594
cmp eax, 2
je 0x14003659c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140036540
dec eax
test eax, 0xfffffffd
jne 0x140036540
inc dword [rcx + 8]
mov rdx, qword [rbx + 0x10]
mov r8d, dword [rdx + 0xc]
cmp dword [rcx + 8], r8d
jl 0x140036540
mov ecx, dword [rbx + 0x190]
add ecx, r8d
mov dword [rdx + 0xc], ecx
jmp 0x140036540
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 0x1400366c0
cmp eax, 0xcc
je 0x1400365d7
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 0x1400366c0
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 0x1400366fc
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 0x140036780
nop
mov eax, dword [rsi]
cmp eax, dword [rbx + 0x78]
jae 0x140036758
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140036736
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 0x1400367ae
cmp eax, dword [rbx + 0x78]
jb 0x140036717
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 0x140036710
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 0x140036793
Function at 0x140039028
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 0x1400390d9
lea rdx, [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x1400390d9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x68], eax
jne 0x1400390d9
mov rcx, qword [0x1401d53a8]
lea rdx, [rsi - 1]
call fcn.1400188b0
mov rbx, rax
lea ebp, [r12 - 8]
cmp dword [rax + 0x20], 0
jle 0x1400390d9
mov rcx, qword [rax + 8]
xor edx, edx
movsxd rax, dword [rax + 0x20]
add rcx, 4
cmp word [rcx - 2], r12w
jne 0x1400390c9
mov r8d, 0xfa01
cmp word [rcx], r8w
je 0x1400390d7
inc rdx
add rcx, 6
cmp rdx, rax
jge 0x1400390d9
jmp 0x1400390b6
xor ebp, ebp
mov sil, 0x80
test rdi, rdi
je 0x1400391a9
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x1400391a9
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400391a9
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400391a9
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400391a9
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 0x1400391a9
lea r8d, [rbp + 5]
lea rdx, str.RichE
lea rcx, [rsp + 0x20]
call fcn.14003ed58
test eax, eax
je 0x140039179
lea r8d, [rbp + 4]
lea rdx, str.RICHE
lea rcx, [rsp + 0x20]
call fcn.14003ed58
test eax, eax
jne 0x140039194
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x140039210
lea rdx, str.Scintilla
lea rcx, [rsp + 0x20]
call fcn.140018a88
test eax, eax
je 0x140039210
test r14, r14
je 0x1400391eb
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400391de
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400391de
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x1400391eb
mov edx, 1
mov rcx, r14
call fcn.1400393a0
test rdi, rdi
je 0x140039205
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x140039210
test rbx, rbx
je 0x140039210
mov rax, qword [rbx + 0x10]
jmp 0x140039212
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