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

Disassembly:
push rbx
sub rsp, 0x20
call fcn.10001a590
mov ebx, eax
test ebx, ebx
je 0x10001a5e9
cmp dword [0x1002f18e0], 0xffffffff
jne 0x10001a5c3
mov ecx, 0xe2
call fcn.10000fe70
mov ecx, ebx
call fcn.10001a570
test rax, rax
jne 0x10001a5db
mov ecx, 0xe2
call fcn.10000fe70
jmp 0x10001a5e9
mov ecx, dword [0x1002f18e0]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
lea rax, [0x280]
test rax, rax
je 0x10001a66f
cmp dword [0x1002f18e0], 0xffffffff
je 0x10001a66f
mov ecx, dword [0x1002f18e0]
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x10001a66f
mov rcx, rax
call sub.kernel32.dll_LocalFree
mov ecx, dword [0x1002f18e0]
xor edx, edx
call sub.kernel32.dll_TlsSetValue
add rsp, 0x28
ret

Function at 0x10001a6b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x1003372d8], 0
je 0x10001a6eb
mov ecx, dword [0x1002f18e0]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x10001a6fe
call fcn.10001a5a0
mov ecx, dword [0x1002f18e0]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x10001a6fe
mov rax, qword [0x1003372d0]
jmp 0x10001a6fe
mov rax, qword gs:[0x58]
mov ecx, dword [0x1002f18e0]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x100036ed0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x38
mov ebx, edx
xor esi, esi
call fcn.100011510
mov r13, rax
mov rcx, r13
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
cmp edi, 0xffffffff
je 0x100036fb0
mov eax, edi
test eax, 0x400
jne 0x100036f11
test edi, 0x10
setne sil
jmp 0x100036fb0
test bl, bl
je 0x100036f5e
mov rcx, r13
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x100036fb0
mov rcx, rax
call sub.kernel32.dll_CloseHandle
test edi, 0x10
setne sil
jmp 0x100036fb0
test edi, 0x10
je 0x100036f6b
mov sil, 1
jmp 0x100036fb0
mov rcx, r13
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x100036fad
mov rcx, rax
call sub.kernel32.dll_CloseHandle
xor esi, esi
jmp 0x100036fb0
mov sil, 1
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x1000399c0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push rbx
sub rsp, 0x30
movdqa xmmword [rsp + 0x20], xmm6
mov rbx, rdx
movapd xmm6, xmm2
mov rcx, rbx
mov edx, 0xa
xor r8, r8
call fcn.10000be30
movsd xmm0, qword [0x100039ac8]
ucomisd xmm0, xmm6
jbe 0x1000399f4
mov byte [rbx + 9], 0x80
movapd xmm0, xmm6
pand xmm0, xmmword [0x100039ad0]
call fcn.10000bb20
mov rcx, rax
xor r8, r8
jmp 0x100039aa7
mov r9, rcx
mov r10, r9
movabs rax, 0xa3d70a3d70a3d70b
imul r9
add rdx, r9
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rax, rdx
shl rax, 2
lea rax, [rax + rax*4]
lea rax, [rax + rax*4]
sub r10, rax
mov r9d, r10d
movsxd r10, r8d
mov edx, r9d
mov r11d, edx
mov eax, 0x66666667
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, eax
lea rax, [rax + rax*4]
sub r11d, eax
mov eax, 0x66666667
imul r9d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
shl eax, 4
add r11b, al
mov byte [rbx + r10], r11b
movabs rax, 0xa3d70a3d70a3d70b
imul rcx
add rdx, rcx
sar rdx, 6
mov rcx, rdx
shr rcx, 0x3f
add rcx, rdx
add r8d, 1
test rcx, rcx
jle 0x100039ab6
cmp r8d, 9
jl 0x100039a10
mov rax, rbx
movdqa xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rbx
ret
Function at 0x100041290
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.100041050
mov ebx, eax
mov rax, qword [0x100330088]
cmp byte [rax], 0
je 0x1000413bf
mov rcx, qword [0x10032f9a8]
call fcn.10000bd80
call fcn.1000094f0
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x100041250]
mov r8d, 1
movsxd r9, esi
call fcn.100014770
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x10004144c]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x100041402
mov rcx, qword [0x100337298]
call fcn.100015390
mov rcx, rax
mov rax, qword [0x10032f890]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW
xor ecx, ecx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x100041250]
call fcn.100014940
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x100043760
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x160
mov rbp, rsp
mov qword [rbp + 0x38], rbp
mov dword [rbp + 0x44], 0x114
lea rcx, [rbp + 0x44]
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x1000437a2
mov eax, dword [rbp + 0x54]
mov dword [0x1003377e8], eax
lea rcx, [0x1003377f0]
lea rdx, [rbp + 0x58]
mov r8d, 0x80
call fcn.1000115d0
lea rcx, [0x1003377f8]
call fcn.100010170
mov dword [0x100337800], 0
mov qword [rbp + 0x158], 0
cmp dword [0x100337584], 0xa
jl 0x100043966
mov rcx, 0xffffffff80000002
lea rdx, [0x10004399c]
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x158]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x100043966
nop
mov rcx, qword [rbp + 0x158]
lea rdx, [0x1000439f6]
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x10004388e
cmp dword [rbp + 0x40], 2
jle 0x10004388e
lea rcx, [0x1003377f8]
mov edx, dword [rbp + 0x40]
sub edx, 2
shr edx, 0x1f
mov eax, dword [rbp + 0x40]
sub eax, 2
add edx, eax
sar edx, 1
call fcn.100011760
mov rcx, qword [0x1003377f8]
call fcn.100011510
mov rcx, qword [rbp + 0x158]
lea rdx, [0x1000439f6]
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x100043916
mov rcx, qword [rbp + 0x158]
lea rdx, [0x100043a14]
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x100043916
cmp dword [rbp + 0x40], 2
jle 0x100043916
lea rcx, [0x1003377f8]
mov edx, dword [rbp + 0x40]
sub edx, 2
shr edx, 0x1f
mov eax, dword [rbp + 0x40]
sub eax, 2
add edx, eax
sar edx, 1
call fcn.100011760
mov rcx, qword [0x1003377f8]
call fcn.100011510
mov rcx, qword [rbp + 0x158]
lea rdx, [0x100043a14]
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW
mov dword [rbp + 0x40], 4
mov rcx, qword [rbp + 0x158]
lea rdx, [0x100043a28]
xor r8, r8
xor r9, r9
lea rax, [0x100337800]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x100043959
mov dword [0x100337800], 0
nop
mov rcx, qword [rbp + 0x158]
call sub.advapi32.dll_RegCloseKey
mov byte [0x1002f51d0], 1
lea rsp, [rbp + 0x160]
pop rbp
ret
Function at 0x100043b10
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x70], rcx
nop
mov dword [rbp + 0x54], 0xffffffff
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x70]
call fcn.100010890
lea rcx, [rbp + 0x48]
call fcn.100010b10
mov rcx, qword [rbp + 0x48]
call fcn.100011510
mov rcx, rax
lea rdx, [rbp + 0x40]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x100043bc1
mov ecx, dword [rbp + 0x44]
call fcn.1000091b0
mov qword [rbp + 0x58], rax
nop
mov rcx, qword [rbp + 0x48]
call fcn.100011510
mov rcx, rax
mov edx, dword [rbp + 0x40]
mov r8d, dword [rbp + 0x44]
mov r9, qword [rbp + 0x58]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x100043bb7
mov rcx, qword [rbp + 0x58]
lea rdx, [0x100043c18]
lea r8, [rbp + 0x38]
lea r9, [rbp + 0x34]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x100043bb7
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 8]
mov dword [rbp + 0x54], eax
nop
mov rcx, qword [rbp + 0x58]
call fcn.1000091e0
nop
lea rcx, [rbp + 0x48]
call fcn.100010170
mov eax, dword [rbp + 0x54]
lea rsp, [rbp + 0x60]
pop rbp
ret

Function at 0x100045020
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.1000109f0
mov r13d, eax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.1000192d0
mov esi, eax
cmp esi, 0x104
jbe 0x10004507b
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.1000091b0
mov rdi, rax
jmp 0x10004507f
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.1000192d0
mov rcx, rdi
call sub.user32.dll_CharUpperW
xor ebx, ebx
xor ecx, ecx
mov edx, esi
sub edx, 1
mov eax, ecx
cmp eax, edx
jg 0x1000450d5
sub edx, ecx
add edx, 1
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movsxd rcx, eax
movzx ecx, word [rdi + rcx*2]
xor ebx, ecx
add eax, 1
sub edx, 1
test edx, edx
jne 0x1000450b6
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x1000450e7
mov rcx, rdi
call fcn.1000091e0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret

Function at 0x100061a40
Capabilities:
Encode data using xor

Disassembly:
mov al, 0xb5
mov r8, rcx
xor edx, edx
mov ecx, edx
and ecx, 0x3f
mov r9, r8
shr r9, cl
and r9b, 0xff
xor al, r9b
add edx, 1
cmp edx, 8
jne 0x100061a47
nop
ret

Function at 0x100068670
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov eax, r8d
mov edx, edx
lea rdx, [rcx + rdx]
cmp rcx, rdx
jae 0x100068694
movzx r8, byte [rcx]
xor eax, r8d
imul eax, eax, 0x1000193
add rcx, 1
cmp rcx, rdx
jb 0x10006867e
nop
ret
Function at 0x100086c70
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x80], rcx
mov byte [rbp + 0x88], dl
cmp byte [rbp + 0x88], 0
je 0x100086cae
mov rcx, qword [rbp + 0x80]
movzx rdx, byte [rbp + 0x88]
call fcn.10000d730
mov qword [rbp + 0x80], rax
nop
mov rcx, qword [0x10007e550]
mov dl, 1
call fcn.1000b47e0
mov rcx, qword [rbp + 0x80]
mov qword [rcx + 8], rax
mov rcx, qword [0x100085528]
mov dl, 1
call fcn.1000b9950
mov rcx, qword [rbp + 0x80]
mov qword [rcx + 0x10], rax
mov rcx, qword [0x100085528]
mov dl, 1
call fcn.1000b9950
mov rcx, qword [rbp + 0x80]
mov qword [rcx + 0x18], rax
lea rcx, [rbp + 0x30]
call sub.kernel32.dll_GetSystemInfo
mov rax, qword [rbp + 0x80]
mov ecx, dword [rbp + 0x34]
mov dword [rax + 0x20], ecx
cmp byte [rbp + 0x88], 0
je 0x100086d6b
mov rcx, qword [rbp + 0x80]
call fcn.10000d770
mov qword [rbp + 0x80], rax
jmp 0x100086d6b
mov rax, qword [rbp + 0x80]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret

Function at 0x100118720
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov qword [rbp + 0x60], r8
movzx rax, byte [rbp + 0x70]
mov byte [rbp + 0x70], al
mov rcx, rsi
mov rdx, qword [rbp + 0x60]
mov r8, r9
call sub.kernel32.dll_FindResourceW
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x20], 0
jne 0x10011875f
mov rcx, rbp
call fcn.100118640
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_LoadResource
mov qword [rbx + 0x28], rax
cmp qword [rbx + 0x28], 0
jne 0x10011877e
mov rcx, rbp
call fcn.100118640
mov rcx, qword [rbx + 0x28]
call sub.kernel32.dll_LockResource
mov rdi, rax
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_SizeofResource
mov rcx, rbx
mov rdx, rdi
mov r8d, eax
call fcn.100117fc0
lea rsp, [rbp + 0x28]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x10012b350
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x28
movzx rax, byte [rcx + 0x19]
or al, dl
test al, al
je 0x10012b3a0
cmp byte [rcx + 0x1d], 0
jne 0x10012b3a0
cmp byte [rcx + 0x40], 0
jne 0x10012b3a0
mov byte [rcx + 0x1b], 0
mov byte [rcx + 0x19], 0
mov rcx, qword [rcx + 0x10]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x10012b3bd
mov rcx, qword [0x1000df598]
mov dl, 1
mov r8, qword [0x10032ff68]
call fcn.1000416f0
mov rcx, rax
call fcn.10000f2a0
jmp 0x10012b3bd
mov rcx, qword [0x1000df598]
mov dl, 1
mov r8, qword [0x10032ff68]
call fcn.1000416f0
mov rcx, rax
call fcn.10000f2a0
add rsp, 0x28
ret

Function at 0x10012c050
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x1b]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x1b], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.10012b1e0
jmp 0x10012c0ab
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x10012c0d0
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.10012b1e0
cmp esi, 1
jne 0x10012c0fa
mov byte [rbx + 0x1b], 0
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1001306a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov qword [rsp + 0x40], rcx
cmp qword [0x10033d6f8], 0
jne 0x100130741
xor ecx, ecx
mov edx, 0x1000
mov r8d, 0x1000
mov r9d, 0x40
call sub.kernel32.dll_VirtualAlloc
mov rbx, rax
mov rax, qword [0x10033d6f0]
mov qword [rbx], rax
lea rcx, [0x100309ca8]
lea rdx, [rbx + 8]
mov r8d, 8
call fcn.100009830
lea rax, [0x100130660]
mov qword [rbx + 0x10], rax
lea rsi, [rbx + 0x18]
mov byte [rsi], 0xe8
mov rcx, rsi
lea rdx, [rbx + 8]
call fcn.100130690
mov dword [rsi + 1], eax
mov rax, qword [0x10033d6f8]
mov qword [rsi + 5], rax
mov qword [0x10033d6f8], rsi
add rsi, 0x15
mov rax, rsi
sub rax, rbx
cmp rax, 0xfed
jl 0x100130704
mov qword [0x10033d6f0], rbx
mov rax, qword [0x10033d6f8]
mov rsi, qword [0x10033d6f8]
mov rcx, qword [rsi + 5]
mov qword [0x10033d6f8], rcx
mov rcx, qword [rsp + 0x40]
lea rdi, [rsi + 5]
mov rsi, rcx
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x100161770
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rbx
sub rsp, 0xa8
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xc8], rdx
nop
lea rcx, [rbp + 0x78]
mov rdx, qword [rbp + 0xc8]
call fcn.100010890
mov rcx, qword [rbp + 0x78]
call fcn.100160bf0
mov byte [rbp + 0x83], al
cmp byte [rbp + 0x83], 0
jne 0x1001617e3
lea rcx, [rbp + 0x78]
mov edx, 1
mov r8d, 1
call fcn.100011b20
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax + 8]
mov qword [rbp + 0x98], rax
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
call fcn.100162df0
mov qword [rbp + 0x90], rax
cmp qword [rbp + 0x90], 0
je 0x100161936
nop
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x90]
call fcn.100161180
mov rcx, qword [rbp + 0xc0]
lea rdx, [rbp + 0x54]
call fcn.100161aa0
test al, al
je 0x100161916
lea rcx, [rbp + 0x70]
xor edx, edx
mov r8d, dword [rbp + 0x58]
add r8d, 1
call fcn.100010470
mov eax, dword [rbp + 0x54]
sub eax, 1
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jl 0x100161915
mov eax, dword [rbp + 0x58]
add eax, 1
mov dword [rbp + 0x88], eax
mov rcx, qword [rbp + 0x70]
call fcn.100011510
mov rcx, qword [rbp + 0x90]
mov edx, dword [rbp + 0x84]
mov r8, rax
lea r9, [rbp + 0x88]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.advapi32.dll_RegEnumKeyExW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.1001610a0
test al, al
je 0x100161901
mov rcx, qword [rbp + 0x70]
call fcn.100011510
lea rcx, [rbp + 0x40]
mov rdx, rax
call fcn.1000115a0
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x40]
call fcn.100161770
sub dword [rbp + 0x84], 1
cmp dword [rbp + 0x84], 0xffffffff
jne 0x100161875
nop
nop
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x98]
call fcn.100161180
mov rcx, qword [rbp + 0x90]
call sub.advapi32.dll_RegCloseKey
cmp byte [0x10033d794], 0
je 0x100161995
mov rcx, qword [rbp + 0xc0]
movzx rdx, byte [rbp + 0x83]
call fcn.100161160
mov rbx, rax
mov rcx, qword [rbp + 0x78]
call fcn.100011510
mov rcx, rbx
mov rdx, rax
mov rax, qword [rbp + 0xc0]
mov r8d, dword [rax + 0x2c]
and r8d, 0x300
xor r9, r9
call sub.advapi32.dll_RegDeleteKeyExW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.1001610a0
mov byte [rbp + 0x8f], al
jmp 0x1001619d4
mov rcx, qword [rbp + 0xc0]
movzx rdx, byte [rbp + 0x83]
call fcn.100161160
mov rbx, rax
mov rcx, qword [rbp + 0x78]
call fcn.100011510
mov rcx, rbx
mov rdx, rax
call sub.advapi32.dll_RegDeleteKeyW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.1001610a0
mov byte [rbp + 0x8f], al
nop
lea rcx, [rbp + 0x40]
call fcn.100010170
lea rcx, [rbp + 0x70]
mov edx, 2
call fcn.100010250
movzx rax, byte [rbp + 0x8f]
lea rsp, [rbp + 0xa8]
pop rbx
pop rbp
ret

Function at 0x100161a70
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rdx
call fcn.100011510
mov rcx, qword [rbx + 8]
mov rdx, rax
call sub.advapi32.dll_RegDeleteValueW
mov rcx, rbx
mov edx, eax
call fcn.1001610a0
add rsp, 0x20
pop rbx
ret
Function at 0x100163580
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x98
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0xb8], rdx
mov qword [rbp + 0xc0], r8
nop
mov rax, qword [rbp + 0xb0]
mov rax, qword [rax + 0x50]
mov rax, qword [rax + 8]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rax + 0x50]
mov rdx, qword [rbp + 0xb8]
call fcn.100161180
nop
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rax + 0x50]
lea rdx, [rbp + 0x64]
call fcn.100161aa0
test al, al
je 0x100163700
mov rcx, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xc0]
xor r9, r9
call fcn.100163400
lea rcx, [rbp + 0x58]
xor edx, edx
mov r8d, dword [rbp + 0x70]
add r8d, 1
call fcn.100010470
xor eax, eax
mov ebx, dword [rbp + 0x6c]
sub ebx, 1
mov dword [rbp + 0x80], eax
cmp dword [rbp + 0x80], ebx
jg 0x1001636ff
sub ebx, eax
add ebx, 1
mov eax, dword [rbp + 0x70]
add eax, 1
mov dword [rbp + 0x84], eax
mov rcx, qword [rbp + 0x58]
call fcn.100011510
mov rcx, qword [rbp + 0xb8]
mov edx, dword [rbp + 0x80]
mov r8, rax
lea r9, [rbp + 0x84]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.advapi32.dll_RegEnumValueW
mov rcx, qword [rbp + 0xb0]
mov rcx, qword [rcx + 0x50]
mov edx, eax
call fcn.1001610a0
test al, al
je 0x1001636ed
mov rcx, qword [rbp + 0x58]
call fcn.100011510
lea rcx, [rbp + 0x40]
mov rdx, rax
call fcn.1000115a0
mov rcx, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xc0]
mov r9, qword [rbp + 0x40]
call fcn.100163400
add dword [rbp + 0x80], 1
sub ebx, 1
test ebx, ebx
jne 0x10016364f
nop
nop
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rax + 0x50]
mov rdx, qword [rbp + 0x88]
call fcn.100161180
nop
lea rcx, [rbp + 0x40]
call fcn.100010170
lea rcx, [rbp + 0x58]
call fcn.100010170
lea rsp, [rbp + 0x98]
pop rbx
pop rbp
ret
Function at 0x100173a40
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov r8, rcx
xor eax, eax
xor r9, r9
sub edx, 1
mov ecx, r9d
cmp ecx, edx
jg 0x100173a80
sub edx, r9d
add edx, 1
mov ecx, eax
and cx, 0xf800
movzx ecx, cx
shr ecx, 0xb
shl eax, 5
or cx, ax
mov eax, ecx
movzx cx, byte [r8]
xor ax, cx
add r8, 1
sub edx, 1
test edx, edx
jne 0x100173a58
nop
ret
Function at 0x1001e9750
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rdx
mov rcx, qword [rbp + 0x68]
call fcn.100010340
nop
xor ecx, ecx
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x1001e983e
nop
mov dword [rbp + 0x3c], 0
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x20], rax
test rax, rax
je 0x1001e979c
mov rax, qword [rbp + 0x20]
mov eax, dword [rax - 4]
mov dword [rbp + 0x3c], eax
mov ecx, 0x2002
mov edx, dword [rbp + 0x3c]
add edx, edx
add edx, 2
movsxd rdx, edx
call sub.kernel32.dll_GlobalAlloc
mov qword [rbp + 0x48], rax
nop
mov rcx, qword [rbp + 0x48]
call sub.kernel32.dll_GlobalLock
mov qword [rbp + 0x40], rax
nop
mov dword [rbp + 0x38], 0
mov rax, qword [rbp + 0x20]
test rax, rax
je 0x1001e97de
mov rax, qword [rbp + 0x20]
mov eax, dword [rax - 4]
mov dword [rbp + 0x38], eax
mov rcx, qword [rbp + 0x68]
call fcn.100011510
mov rcx, rax
mov rdx, qword [rbp + 0x40]
mov r8d, dword [rbp + 0x38]
add r8d, r8d
add r8d, 2
movsxd r8, r8d
call fcn.100009830
call sub.user32.dll_EmptyClipboard
mov ecx, 0xd
mov rdx, qword [rbp + 0x48]
call sub.user32.dll_SetClipboardData
nop
mov rcx, qword [rbp + 0x48]
call sub.kernel32.dll_GlobalUnlock
jmp 0x1001e9836
nop
call sub.user32.dll_CloseClipboard
jmp 0x1001e985b
mov rcx, qword [0x10002b188]
mov dl, 1
mov r8, qword [0x10032f728]
call fcn.1000416f0
mov rcx, rax
call fcn.10000f2a0
nop
lea rcx, [rbp + 0x68]
call fcn.100010170
lea rsp, [rbp + 0x50]
pop rbp
ret

Function at 0x1001f1950
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx rbx, word [0x1001f19a0]
mov ecx, 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x1001f1970
or bx, 1
mov ecx, 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x1001f1983
or bx, 4
mov ecx, 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x1001f1996
or bx, 2
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x10021e6d0
Capabilities:
Get graphical window text

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rsi, rdx
mov rcx, rsi
mov edx, 0xe
xor r8, r8
xor r9, r9
call sub.user32.dll_SendMessageW
mov rdi, rax
mov rcx, rbx
xor edx, edx
mov r8d, edi
call fcn.100010470
test edi, edi
je 0x10021e745
mov rcx, qword [rbx]
call fcn.100011510
mov rcx, rsi
mov edx, 0xd
mov r8d, edi
add r8d, 1
movsxd r8, r8d
mov r9, rax
call sub.user32.dll_SendMessageW
sub edi, eax
test edi, edi
jle 0x10021e745
xor eax, eax
mov rcx, qword [rbx]
test rcx, rcx
je 0x10021e739
mov eax, dword [rcx - 4]
mov rcx, rbx
mov edx, eax
sub edx, edi
call fcn.100011760
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x10025cfb0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx rbx, word [0x10025d014]
mov eax, ecx
test ax, 4
je 0x10025cfc9
or bx, 1
mov eax, ecx
test ax, 8
je 0x10025cfd5
or bx, 4
mov eax, ecx
test ax, 1
je 0x10025cfe1
or bx, 8
mov eax, ecx
test ax, 2
je 0x10025cfed
or bx, 0x10
test cx, 0x10
je 0x10025cff8
or bx, 0x20
mov ecx, 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x10025d00b
or bx, 2
mov eax, ebx
add rsp, 0x20
pop rbx
ret