joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005b3d7
Capabilities:
Check if file exists

Disassembly:
jmp 0x14007e4d0
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x1b0
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x2c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x140159080]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x1401b1131]
call fcn.14005c363
lea rax, [rbp + 8]
lea rcx, str._pipediscord_ipc_0
mov rdi, rax
mov rsi, rcx
mov ecx, 0x2e
rep movsb byte [rdi], byte [rsi]
mov qword [rbp + 0x58], 0x15
mov eax, 2
imul rax, rax, 0x15
mov ecx, 0x30
mov word [rbp + rax + 8], cx
mov rax, qword [rbp + 0x190]
mov qword [rbp + 0x78], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rbp + 0x78]
mov qword [rcx + 8], rax
mov rax, qword [rbp + 0x78]
cmp qword [rax + 8], 0xffffffffffffffff
je 0x14007e5a4
mov rax, qword [rbp + 0x78]
mov byte [rax], 1
mov al, 1
jmp 0x14007e623
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x94], eax
cmp dword [rbp + 0x94], 2
jne 0x14007e5f2
mov eax, 2
imul rax, rax, 0x15
movzx eax, word [rbp + rax + 8]
cmp eax, 0x39
jge 0x14007e5f0
mov eax, 2
imul rax, rax, 0x15
movzx eax, word [rbp + rax + 8]
inc ax
mov ecx, 2
imul rcx, rcx, 0x15
mov word [rbp + rcx + 8], ax
jmp 0x14007e558
jmp 0x14007e61a
cmp dword [rbp + 0x94], 0xe7
jne 0x14007e61a
mov edx, 0x2710
lea rcx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x14007e615
xor al, al
jmp 0x14007e623
jmp 0x14007e558
xor al, al
jmp 0x14007e623
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14011a320]
call fcn.14005b9c7
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.14005a892
lea rsp, [rbp + 0x170]
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005bd14
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400feed0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1401b1950]
call fcn.14005c363
mov rax, qword [rbp + 0x120]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400fef0c
xor eax, eax
jmp 0x1400fef39
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0x4550
je 0x1400fef35
xor eax, eax
jmp 0x1400fef39
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14005c291
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400b0ec0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x140159080]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x1401b14f7]
call fcn.14005c363
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x1400b0f26
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400b0f2d
mov al, 1
jmp 0x1400b109d
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.140059eab
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.140059eab
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.14005b7ba
movzx eax, al
test eax, eax
je 0x1400b0f90
xor al, al
jmp 0x1400b109d
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x1400b1003
cmp dword [rbp + 0x160], 1
je 0x1400b100e
cmp dword [rbp + 0x160], 3
je 0x1400b108c
jmp 0x1400b109b
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x1400b105e
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x1400b105e
xor al, al
jmp 0x1400b109d
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400b1079
mov dword [rbp + 0x154], 1
jmp 0x1400b1083
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x1400b109d
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400b109d
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140124120]
call fcn.14005b9c7
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.14005a892
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x14005c52f
Capabilities:
Print debug messages

Disassembly:
jmp 0x14010e008
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.14005b5e4
and qword [rdi + 0x50], 0
lea rax, [0x140000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x140142720]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.14005a7f2
test eax, eax
jne 0x14010e09f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14010e09f
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14010e098
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x14019e160], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x14005c78c
Capabilities:
Create thread

Disassembly:
jmp 0x1400843a0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x140159080]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1401b1291]
call fcn.14005c363
mov edx, 8
lea rcx, [rbp + 8]
call fcn.14005c2fa
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.14005b558
nop
lea rax, [0x140059726]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.14005a167
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x14008447a
lea rcx, [rbp + 8]
call fcn.14005b1f2
jmp 0x140084493
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.140059c17
nop
lea rcx, [rbp + 8]
call fcn.14005b945
lea rcx, [rbp - 0x30]
lea rdx, [0x14011c010]
call fcn.14005b9c7
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.14005a892
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x140081760
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
mov rax, qword [0x140159080]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x1401b11bd]
call fcn.14005c363
mov rax, qword [rbp + 0x140]
mov qword [rbp + 8], rax
mov qword [rbp + 0x28], 0
cmp qword [rbp + 0x148], 0
je 0x140081848
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rbp + 0x148]
movzx eax, word [rcx + rax]
test eax, eax
je 0x140081848
mov qword [rsp + 0x40], 0
lea rax, [rbp + 0x28]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x140081840
mov eax, dword [rbp + 0x44]
jmp 0x14008189d
mov rax, qword [rbp + 0x28]
mov qword [rbp + 8], rax
mov eax, dword [rbp + 0x168]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x160]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x158]
xor r8d, r8d
mov rdx, qword [rbp + 0x150]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rbp + 0x44], eax
cmp qword [rbp + 0x28], 0
je 0x14008189a
mov rax, qword [rbp + 0x140]
cmp qword [rbp + 0x28], rax
je 0x14008189a
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rbp + 0x44]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x14011ace0]
call fcn.14005b9c7
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.14005a892
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x1400023d0
Capabilities:
Parse pe header

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

Function at 0x140006a70
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000686c
Function at 0x140009b24
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 0x140009b54
xor eax, eax
jmp 0x140009c17
mov rbp, rbx
cmp word [rax], si
je 0x140009b79
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140009b60
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140009b5c
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.140009a44
movsxd r14, eax
test eax, eax
jne 0x140009bb7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140009b4d
mov rcx, r14
call fcn.14000a5b8
mov rdi, rax
test rax, rax
jne 0x140009bd0
xor ecx, ecx
call fcn.14000807c
jmp 0x140009bac
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.140009a44
test eax, eax
jne 0x140009c01
mov rcx, rdi
call fcn.14000807c
jmp 0x140009c0b
xor ecx, ecx
call fcn.14000807c
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 0x14000f380
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000f3a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000f3a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400025b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14004a180]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14004a160]
test rbx, rbx
je 0x14000260c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002603
test rsi, rsi
je 0x140002603
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400025e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002940
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006d40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002960
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002968
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002960
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400029bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400029b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002960
add rax, 0x28
cmp rax, r9
jne 0x1400029a0
xor eax, eax
ret

Function at 0x1400029c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006d40]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400029df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400029e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400029df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002a80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006d40]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002a9f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002aa8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400054a8
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
call qword [sym.imp.USER32.DLL_GetFocus]
mov rbx, rax
test rax, rax
je 0x140005574
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x140005574
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140005574
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140005574
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140005574
lea rdx, [rsp + 0x20]
mov r8d, 0x10
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetClassNameW]
lea rdx, str.RichE
lea rcx, [rsp + 0x20]
mov r8d, 5
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x140005555
lea rdx, str.RICHE
lea rcx, [rsp + 0x20]
mov r8d, 4
call sub.msvcrt.dll_wcsncmp
test eax, eax
jne 0x140005574
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rbx
call qword [sym.imp.USER32.DLL_SendMessageW]
bt rax, 0xb
jae 0x14000561e
test rdi, rdi
je 0x1400055b3
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x1400055a6
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x1400055a6
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x1400055b3
mov edx, 1
mov rcx, rdi
call fcn.14000562c
test rbx, rbx
je 0x1400055cd
lea rdx, str.PB_Hotkey
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropW]
test rax, rax
jne 0x14000561e
lea rdx, str.PB_WindowID
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropW]
mov rbx, rax
test rax, rax
je 0x14000561e
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x14000561e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x58], eax
jne 0x14000561e
mov rcx, qword [0x14001ece0]
lea rdx, [rbx - 1]
call fcn.14000d674
test rax, rax
je 0x14000561e
mov rax, qword [rax + 0x10]
jmp 0x140005620
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140006be0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rdx, ecx
mov rcx, qword [0x14001edb0]
xor edi, edi
call fcn.14000d674
mov rbx, rax
test rax, rax
je 0x140006c4a
xor ecx, ecx
call qword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
je 0x140006c4a
mov rcx, qword [rbx]
xor edx, edx
call fcn.140006c9c
mov rbx, rax
test rax, rax
je 0x140006c44
call qword [sym.imp.USER32.DLL_EmptyClipboard]
lea ecx, [rdi + 8]
mov rdx, rbx
call qword [sym.imp.USER32.DLL_SetClipboardData]
mov rdi, rax
test rax, rax
jne 0x140006c44
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
call qword [sym.imp.USER32.DLL_CloseClipboard]
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400070fc
Capabilities:
Allocate thread local storage

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

Function at 0x140007148
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x1400071bd
call qword [rcx + 0xb0]
mov edx, dword [rbx + 0xf4]
mov dword [rbx + 0x108], edx
mov edx, dword [rbx + 0xf8]
mov rdi, rax
mov dword [rbx + 0x10c], edx
test rax, rax
jne 0x1400071bd
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140007195
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x14001e738]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x14001edc0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x14001edd0], 0
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140007200
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x14001edd0]
test rbx, rbx
je 0x140007259
mov rcx, rbx
call qword [rbx + 0xb8]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140007231
mov edx, 1
mov rcx, rbx
call rax
mov rcx, qword [0x14001e738]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x14001edc0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x14001edd0], 0
add rsp, 0x20
pop rbx
ret
Function at 0x14000eac0
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x14001e738]
mov edx, 8
mov r8d, 0x250
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14001edc0]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x14001edd0], rdi
and dword [rdi + 0x11c], 0
or eax, 0xffffffff
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 0x118], 0xffffff
mov dword [rdi + 0xe8], 2
mov dword [rdi + 0xec], 0x3f
mov dword [rdi + 0x120], eax
mov dword [rdi + 0x124], eax
call fcn.140012044
mov rbx, qword [rsp + 0x30]
lea rax, [0x14000f978]
mov qword [rdi + 0xb0], rax
lea rax, [0x14000f9dc]
mov qword [rdi + 0xb8], rax
lea rax, [fcn.14000f41c]
mov qword [rdi + 0x20], rax
lea rax, [0x14000f2cc]
mov qword [rdi + 0x60], rax
lea rax, [0x14000fa80]
mov qword [rdi + 0xc8], rax
lea rax, [0x14000fa28]
mov qword [rdi + 0xc0], rax
lea rax, [0x14000ef58]
mov qword [rdi + 0x68], rax
lea rax, [0x14000eefc]
mov qword [rdi + 0x48], rax
lea rax, [0x14000ef28]
mov qword [rdi + 0x50], rax
lea rax, [0x14000edac]
mov qword [rdi + 0x58], rax
lea rax, [0x14000f770]
mov qword [rdi + 0x88], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x14001666c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov r10d, dword [rsp + 0x68]
movsxd rsi, dword [rcx + 0x160]
mov ebx, r8d
mov r12, rdx
mov r11, rcx
test r10d, r10d
je 0x140016733
mov eax, dword [rsp + 0x50]
mov ecx, ebx
mov ebp, ebx
shl eax, 2
imul ecx, dword [rsp + 0x58]
movsxd r13, eax
mov eax, esi
imul eax, r9d
mov r9d, dword [rsp + 0x48]
neg ebp
movsxd rdi, eax
mov qword [rsp + 0x28], rdi
mov eax, dword [r11 + 0x158]
movsxd r8, ecx
add r8, r13
add r8, r12
imul eax, r9d
movsxd rdx, eax
add rdx, qword [r11 + 0x150]
add rdx, rdi
cmp dword [rsp + 0x60], 0
jle 0x140016718
mov edi, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
lea r8, [r8 + 4]
xor byte [rdx], al
add rdx, rsi
dec rdi
jne 0x1400166f4
mov rdi, qword [rsp + 0x28]
dec r10d
inc r9d
cmp dword [r11 + 0x174], 0
jne 0x14001672c
add ecx, ebp
jmp 0x14001672e
add ecx, ebx
test r10d, r10d
jne 0x1400166c8
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1400174d4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov r11d, dword [rsp + 0x68]
movsxd rsi, dword [rcx + 0x160]
mov edi, r8d
mov r12, rdx
mov rbx, rcx
test r11d, r11d
je 0x14001759d
mov eax, dword [rsp + 0x50]
mov ecx, r8d
mov ebp, r8d
lea r10d, [rax + rax*2]
mov eax, esi
imul ecx, dword [rsp + 0x58]
movsxd r13, r10d
imul eax, r9d
mov r9d, dword [rsp + 0x48]
movsxd r10, eax
mov qword [rsp + 0x28], r10
neg ebp
mov eax, dword [rbx + 0x158]
movsxd r8, ecx
add r8, r13
add r8, r12
imul eax, r9d
movsxd rdx, eax
add rdx, qword [rbx + 0x150]
add rdx, r10
cmp dword [rsp + 0x60], 0
jle 0x140017583
mov r10d, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
lea r8, [r8 + 3]
xor byte [rdx], al
add rdx, rsi
dec r10
jne 0x14001755f
mov r10, qword [rsp + 0x28]
dec r11d
inc r9d
cmp dword [rbx + 0x174], 0
jne 0x140017596
add ecx, ebp
jmp 0x140017598
add ecx, edi
test r11d, r11d
jne 0x140017533
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret