joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000904c
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
xor r9d, r9d
mov dword [rsp], 0x3020100
mov r10b, r9b
mov dword [rsp + 4], 0x7060504
mov r8d, r9d
mov dword [rsp + 8], 0xb0a0908
mov r11, rdx
mov dword [rsp + 0xc], 0xf0e0d0c
mov dword [rsp + 0x10], 0x13121110
mov ebx, 0x100
mov dword [rsp + 0x14], 0x17161514
mov dword [rsp + 0x18], 0x1b1a1918
mov dword [rsp + 0x1c], 0x1f1e1d1c
mov dword [rsp + 0x20], 0x23222120
mov dword [rsp + 0x24], 0x27262524
mov dword [rsp + 0x28], 0x2b2a2928
mov dword [rbp - 0x7d], 0x2f2e2d2c
mov dword [rbp - 0x79], 0x33323130
mov dword [rbp - 0x75], 0x37363534
mov dword [rbp - 0x71], 0x3b3a3938
mov dword [rbp - 0x6d], 0x3f3e3d3c
mov dword [rbp - 0x69], 0x43424140
mov dword [rbp - 0x65], 0x47464544
mov dword [rbp - 0x61], 0x4b4a4948
mov dword [rbp - 0x5d], 0x4f4e4d4c
mov dword [rbp - 0x59], 0x53525150
mov dword [rbp - 0x55], 0x57565554
mov dword [rbp - 0x51], 0x5b5a5958
mov dword [rbp - 0x4d], 0x5f5e5d5c
mov dword [rbp - 0x49], 0x63626160
mov dword [rbp - 0x45], 0x67666564
mov dword [rbp - 0x41], 0x6b6a6968
mov dword [rbp - 0x3d], 0x6f6e6d6c
mov dword [rbp - 0x39], 0x73727170
mov dword [rbp - 0x35], 0x77767574
mov dword [rbp - 0x31], 0x7b7a7978
mov dword [rbp - 0x2d], 0x7f7e7d7c
mov dword [rbp - 0x29], 0x83828180
mov dword [rbp - 0x25], 0x87868584
mov dword [rbp - 0x21], 0x8b8a8988
mov dword [rbp - 0x1d], 0x8f8e8d8c
mov dword [rbp - 0x19], 0x93929190
mov dword [rbp - 0x15], 0x97969594
mov dword [rbp - 0x11], 0x9b9a9998
mov dword [rbp - 0xd], 0x9f9e9d9c
mov dword [rbp - 9], 0xa3a2a1a0
mov dword [rbp - 5], 0xa7a6a5a4
mov dword [rbp - 1], 0xabaaa9a8
mov dword [rbp + 3], 0xafaeadac
mov dword [rbp + 7], 0xb3b2b1b0
mov dword [rbp + 0xb], 0xb7b6b5b4
mov dword [rbp + 0xf], 0xbbbab9b8
mov dword [rbp + 0x13], 0xbfbebdbc
mov dword [rbp + 0x17], 0xc3c2c1c0
mov dword [rbp + 0x1b], 0xc7c6c5c4
mov dword [rbp + 0x1f], 0xcbcac9c8
mov dword [rbp + 0x23], 0xcfcecdcc
mov dword [rbp + 0x27], 0xd3d2d1d0
mov dword [rbp + 0x2b], 0xd7d6d5d4
mov dword [rbp + 0x2f], 0xdbdad9d8
mov dword [rbp + 0x33], 0xdfdedddc
mov dword [rbp + 0x37], 0xe3e2e1e0
mov dword [rbp + 0x3b], 0xe7e6e5e4
mov dword [rbp + 0x3f], 0xebeae9e8
mov dword [rbp + 0x43], 0xefeeedec
mov dword [rbp + 0x47], 0xf3f2f1f0
mov dword [rbp + 0x4b], 0xf7f6f5f4
mov dword [rbp + 0x4f], 0xfbfaf9f8
mov dword [rbp + 0x53], 0xfffefdfc
mov dl, byte [rsp + r8]
lea rcx, [0x1800701d0]
mov al, dl
add al, byte [r8 + rcx]
add r10b, al
movzx ecx, r10b
mov al, byte [rsp + rcx]
mov byte [rsp + r8], al
inc r8
mov byte [rsp + rcx], dl
sub rbx, 1
jne 0x180009239
mov r10b, r9b
mov ebx, 0x646d3
inc r9b
movzx r8d, r9b
mov dl, byte [rsp + r8]
add r10b, dl
movzx ecx, r10b
mov al, byte [rsp + rcx]
mov byte [rsp + r8], al
mov byte [rsp + rcx], dl
add dl, byte [rsp + r8]
movzx eax, dl
mov cl, byte [rsp + rax]
xor byte [r11], cl
inc r11
sub rbx, 1
jne 0x18000926c
mov rbx, qword [rsp + 0x110]
add rsp, 0x100
pop rbp
ret
Function at 0x140001910
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x140107bd0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14000196a
mov r8, qword [0x140107b40]
lea edx, [rax + 8]
mov rcx, qword [0x140107bb8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140107bd0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.1400012f0
mov rdx, rbx
lea rcx, [0x1400018e8]
call fcn.140001a8c
mov rax, rbx
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140107bd0], eax
add rsp, 0x28
jmp fcn.140001910

Function at 0x140001a8c
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 [0x140107bd8], 0
lea rbx, [0x140107be8]
mov r14, rdx
mov r15, rcx
jne 0x140001ad9
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x140107bdc], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x140107bd8], 1
mov ecx, dword [0x140107bdc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x140001bae
mov rcx, qword [0x140107bb8]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140001bd9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140107be0]
test rax, rax
je 0x140001b29
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140107be0], 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, [0x140001bf4]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x140107bdc]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140107bb8]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140001bd9
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 0x14000254c
Capabilities:
Parse pe header

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

Function at 0x140006eb4
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 0x140006f23
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006f23
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006f23
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006f23
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006f23
cmp dword [rcx + 0x84], 0xe
jbe 0x140006f23
cmp dword [rcx + 0xf8], 0
je 0x140006f23
mov ecx, ebx
call fcn.140007028
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.140006ce8
nop
cmp dword [rbp + 0x20], 0
je 0x140006f71
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140006f7c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140006eb4

Function at 0x140007114
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006eb4
Function at 0x140012b7c
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.140008f58
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 0x140012c1d
cmp ebx, dword [rsp + 0x30]
je 0x140012c16
test esi, esi
je 0x140012c16
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140012bf1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140012bfe
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140012bdb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140012c02
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140012c1f
mov eax, 1
jmp 0x140012c1f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140013eb4
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 0x140013ee4
xor eax, eax
jmp 0x140013fa7
mov rbp, rbx
cmp word [rax], si
je 0x140013f09
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140013ef0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140013eec
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.1400141ac
movsxd r14, eax
test eax, eax
jne 0x140013f47
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140013edd
mov rcx, r14
call fcn.1400099dc
mov rdi, rax
test rax, rax
jne 0x140013f60
xor ecx, ecx
call fcn.140007d0c
jmp 0x140013f3c
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.1400141ac
test eax, eax
jne 0x140013f91
mov rcx, rdi
call fcn.140007d0c
jmp 0x140013f9b
xor ecx, ecx
call fcn.140007d0c
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 0x140013fc4
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 0x14001404b
mov rsi, rbx
cmp word [rax], bp
je 0x14001400a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140013ff4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140013ff0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400099dc
mov rdi, rax
test rax, rax
je 0x140014038
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140022290
mov rbp, rdi
xor ecx, ecx
call fcn.140007d0c
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 0x14001c1e8
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.14000cf00
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001c272
cmp byte [rbp - 0x21], r15b
je 0x14001c26d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001c2a8
call fcn.14000ac7c
test eax, eax
jne 0x14001c294
cmp byte [rbp - 0x21], r15b
je 0x14001c28c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001c2a8
cmp byte [rbp - 0x21], r15b
je 0x14001c2a5
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.14000dfa0
test eax, eax
jne 0x14001c348
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000cf00
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001c2e7
cmp byte [rbp - 0x21], r15b
je 0x14001c31c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001c31c
call fcn.14000ac7c
test eax, eax
jne 0x14001c308
cmp byte [rbp - 0x21], r15b
je 0x14001c301
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001c31c
cmp byte [rbp - 0x21], r15b
je 0x14001c319
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.14000dfa0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001c348
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001c34b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001c359
mov rcx, rdi
call fcn.140007d0c
cmp byte [rbp + 0x3f], r15b
je 0x14001c368
mov rcx, qword [rbp + 0x27]
call fcn.140007d0c
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 0x14001e900
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, [0x140108a60]
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 0x14001e957
cmp word [rdx], r13w
jne 0x14001e957
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001e95c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001ea81
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001eaa2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001e995
mov rdx, r9
mov word [rbx], cx
jmp 0x14001e9bc
cmp r9, r8
jae 0x14001e9cc
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 0x14001e976
jmp 0x14001ea81
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 0x14001ea76
cmp dword [rsp + 0x80], esi
je 0x14001ea76
lea r8, [0x140108a60]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001ea4e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001ea1e
mov word [rbx], r13w
jmp 0x14001ea7e
mov ecx, reloc.WS2_32.dll_listen
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 0x14001ea2b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001ea7e
cmp word [rsp + 0x70], r13w
jne 0x14001ea5b
cmp rbx, r14
je 0x14001ea18
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001fe9c
cmp word [rsp + 0x70], r13w
je 0x14001ea81
mov ecx, reloc.WS2_32.dll_listen
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, [0x140108a60]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001ea7b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001ea81
Function at 0x140030be8
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, [0x1400d0790]
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 0x140030c99
lea rdx, [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x140030c99
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x68], eax
jne 0x140030c99
mov rcx, qword [0x14010e740]
lea rdx, [rsi - 1]
call fcn.14003e06c
mov rbx, rax
lea ebp, [r12 - 8]
cmp dword [rax + 0x20], 0
jle 0x140030c99
mov rcx, qword [rax + 8]
xor edx, edx
movsxd rax, dword [rax + 0x20]
add rcx, 4
cmp word [rcx - 2], r12w
jne 0x140030c89
mov r8d, 0xfa01
cmp word [rcx], r8w
je 0x140030c97
inc rdx
add rcx, 6
cmp rdx, rax
jge 0x140030c99
jmp 0x140030c76
xor ebp, ebp
mov sil, pe_nt_image_headers64
test rdi, rdi
je 0x140030d69
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x140030d69
mov ecx, setsockopt
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140030d69
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140030d69
mov ecx, setsockopt
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140030d69
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 0x140030d69
lea r8d, [rbp + 5]
lea rdx, str.RichE
lea rcx, [rsp + 0x20]
call fcn.140013a24
test eax, eax
je 0x140030d39
lea r8d, [rbp + 4]
lea rdx, str.RICHE
lea rcx, [rsp + 0x20]
call fcn.140013a24
test eax, eax
jne 0x140030d54
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x140030dd0
lea rdx, str.Scintilla
lea rcx, [rsp + 0x20]
call fcn.140019354
test eax, eax
je 0x140030dd0
test r14, r14
je 0x140030dab
mov ecx, setsockopt
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140030d9e
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140030d9e
mov ecx, setsockopt
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x140030dab
mov edx, 1
mov rcx, r14
call fcn.140030dec
test rdi, rdi
je 0x140030dc5
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x140030dd0
test rbx, rbx
je 0x140030dd0
mov rax, qword [rbx + 0x10]
jmp 0x140030dd2
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 0x14003cd64
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14010ede0], eax
add rsp, 0x28
ret
Function at 0x14003ce60
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x14003cd7c]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.14003e19c
xor r8d, r8d
mov qword [0x140109410], rax
xor edx, edx
mov ecx, ebx
call fcn.14003de04
xor ebx, ebx
mov qword [0x14010ee20], rax
cmp word [0x140109408], bx
jne 0x14003cf83
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x14003cec8
movzx eax, di
jmp 0x14003ceca
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x140109408], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140109418], rax
test rax, rax
je 0x14003cf83
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140109418]
lea rdx, str.freeaddrinfo
mov qword [0x1401093e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140109418]
lea rdx, str.getnameinfo
mov qword [0x1401093f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140109418]
lea rdx, str.WSAStringToAddressA
mov qword [0x1401093f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1401093e8], rbx
mov qword [0x140109400], rax
je 0x14003cf83
cmp qword [0x1401093f0], rbx
je 0x14003cf83
cmp qword [0x1401093f8], rbx
je 0x14003cf83
mov ecx, dword [0x14010940c]
test rax, rax
cmovne ecx, edi
mov dword [0x14010940c], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x14003dd6c
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 [0x140109438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14003dded
mov r8, qword [0x140109430]
lea edx, [rax + 8]
mov rcx, qword [0x140107bb8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140109438]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x140109428]
jmp 0x14003ddd9
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x14003ddd6
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14003ddc4
mov rdx, rdi
lea rcx, [0x14003dcd0]
call fcn.140001a8c
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14003de04
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 0x14003de2e
mov eax, 8
sub eax, ecx
add edi, eax
mov rbx, qword [0x140109430]
test rbx, rbx
jne 0x14003de74
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x140107bb8]
lea edx, [rbx + 8]
movsxd rdi, edi
mov r8, rdi
mov dword [0x140109438], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140109438]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x140109430]
jmp 0x14003de77
movsxd rdi, edi
mov ecx, dword [0x140109438]
lea rax, [rdi + rbx]
mov qword [0x140109430], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x140109430]
mov edx, 8
mov rcx, qword [0x140107bb8]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x140109438]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x14003dec6
test rbp, rbp
je 0x14003deed
mov edx, 0x28
lea rcx, [0x140109428]
call fcn.14003eabc
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x14003deed
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 0x14003f200
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1401041f0]
cmp ecx, 0xffffffff
jne 0x14003f216
call fcn.14003f2c0
jmp 0x14003f226
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14003f245
call fcn.14003f560
mov ecx, dword [0x1401041f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x14003f250]
add rsp, 0x28
jmp fcn.140001a8c
add rsp, 0x28
ret

Function at 0x14003f2c0
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 [0x14010eec0], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401041f0], eax
add rsp, 0x28
jmp fcn.14003f560

Function at 0x14003f340
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1401041f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rax, qword [rax + rcx*8 + 0x18]
mov qword [rdx + 0x10], rax
add rsp, 0x28
ret

Function at 0x14003f3e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1401041f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, qword [rax + 0x338]
mov rcx, qword [rax + 0x10]
mov qword [rax + rdx*8 + 0x18], rcx
inc qword [rax + 0x338]
add rsp, 0x28
ret