joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180113f54
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x50
mov rax, qword [0x180157688]
mov qword [rsp + 0x40], rax
lea ebx, [r9 - 0x10]
mov rbp, r8
mov rsi, rdx
test ebx, ebx
mov r12, rcx
js 0x180113fd1
lea edi, [rbx + 0x10]
shr rdi, 4
mov eax, edi
neg eax
shl eax, 4
add ebx, eax
lea rcx, [rsp + 0x20]
mov r8d, 0x10
mov rdx, rbp
call sub.msvcrt.dll_memcpy
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov r8, r12
call fcn.180112f00
lea rdx, [rsp + 0x30]
mov r8d, 0x10
mov rcx, rsi
call sub.msvcrt.dll_memcpy
add rbp, 0x10
add rsi, 0x10
dec rdi
jne 0x180113f8c
cmp ebx, 0xfffffff0
je 0x180114026
add ebx, 0x10
lea rcx, [rsp + 0x20]
mov rdx, rbp
movsxd rdi, ebx
mov r8, rdi
call sub.msvcrt.dll_memcpy
test ebx, ebx
jle 0x180114016
mov r9, qword [rsp + 0xa0]
lea rax, [rsp + 0x20]
lea rdx, [rsp + 0x20]
sub r9, rax
mov r10d, ebx
mov al, byte [r9 + rdx]
xor byte [rdx], al
inc rdx
dec r10
jne 0x180114008
lea rdx, [rsp + 0x20]
mov r8, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsp + 0x40]
call fcn.180124250
add rsp, 0x50
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180114968
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x180157688]
mov qword [rsp + 0x80], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0x67452301
mov dword [rsp + 0x2c], 0xefcdab89
mov dword [rsp + 0x30], 0x98badcfe
mov dword [rsp + 0x34], 0x10325476
call fcn.1801147c4
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.180114894
mov rcx, qword [rsp + 0x80]
call fcn.180124250
add rsp, 0x90
pop rbx
ret
Function at 0x180116840
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4e8
mov rax, qword [0x180157688]
mov qword [rsp + 0x4d8], rax
lea r9, [rsp + 0x268]
mov r8, qword [rsp + 0x4f0]
mov edx, 0x104
mov rcx, qword [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x1801168b4
mov r8d, 0x104
mov rdx, qword [rsp + 0x500]
mov rcx, qword [rsp + 0x4f0]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
jmp 0x1801169d1
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x4f0]
call fcn.1801166b0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x264]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x260]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x18011690f
xor eax, eax
jmp 0x1801169d1
mov eax, dword [rsp + 0x264]
and eax, 2
test eax, eax
jne 0x18011692b
mov rcx, qword [rsp + 0x4f0]
call qword [sym.imp.USER32.dll_CharUpperW]
mov eax, dword [rsp + 0x264]
and eax, 4
test eax, eax
jne 0x1801169cc
lea rdx, [rsp + 0x280]
mov rcx, qword [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x270], rax
cmp qword [rsp + 0x270], 0xffffffffffffffff
je 0x1801169cc
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x4f0]
call qword [sym.imp.msvcrt.dll_wcslen]
mov qword [rsp + 0x4d0], rax
mov rcx, qword [rsp + 0x268]
call qword [sym.imp.msvcrt.dll_wcslen]
mov rcx, qword [rsp + 0x4d0]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x4f8]
sub rcx, rax
mov rax, rcx
lea r8, [rsp + 0x2ac]
mov rdx, rax
mov rcx, qword [rsp + 0x268]
call fcn.180003250
mov eax, 1
mov rcx, qword [rsp + 0x4d8]
call fcn.180124250
add rsp, 0x4e8
ret
Function at 0x1801169f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x180157688]
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
and eax, 0x80000000
test eax, eax
je 0x180116a24
xor eax, eax
jmp 0x180116baf
mov eax, dword [rsp + 0x48]
and rax, 0xffff
movzx eax, ax
and rax, 0xff
movzx eax, al
cmp eax, 4
jle 0x180116a49
mov eax, 1
jmp 0x180116baf
lea rax, [rsp + 0x38]
lea rcx, str.Terminal_Server
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
lea rdx, str.SystemCurrentControlSetControlProductOptions
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x180116bab
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x5c], 0
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, [0x18013d5f8]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180116ba0
cmp dword [rsp + 0x5c], 0
je 0x180116ba0
mov eax, dword [rsp + 0x5c]
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x180116ba0
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.ProductSuite
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180116b95
cmp dword [rsp + 0x60], 7
jne 0x180116b95
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
movsx eax, byte [rax]
test eax, eax
je 0x180116b95
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x180116b74
mov dword [rsp + 0x58], 1
jmp 0x180116b95
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cdqe
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
jmp 0x180116b4a
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x78]
call fcn.180124250
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x180119d50
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
add rsp, 0x48
ret

Function at 0x180119db0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret

Function at 0x18011b160
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
cmp dword [0x180158e00], 0
jle 0x18011b201
lea rax, [0x180158e00]
lock inc dword [rax]
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x18013e1a0]
mov edx, 2
lea rcx, [rsp + 0x70]
call fcn.180117530
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
mov r8d, dword [0x180158e00]
lea rdx, str._tCMsgAdapter_CreateWorkThread___Worker_Thread_Object_reference_count__d_
mov rcx, qword [rsp + 0xc0]
call fcn.180118950
nop
lea rcx, [rsp + 0x70]
call fcn.1801175b0
jmp 0x18011b2eb
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rdx, qword [rsp + 0xf0]
mov ecx, dword [rsp + 0x60]
call fcn.180122930
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x18011b22c
jmp 0x18011b238
mov rax, qword [rsp + 0x38]
mov qword [0x180158df0], rax
mov rdx, qword [rsp + 0xf0]
mov ecx, 1
call fcn.180122930
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18011b259
jmp 0x18011b265
mov rax, qword [rsp + 0x30]
mov qword [0x180158df8], rax
cmp qword [rsp + 0x38], 0
je 0x18011b275
cmp qword [rsp + 0x30], 0
jne 0x18011b283
call fcn.18011b010
mov eax, 0x7a
jmp 0x18011b2ed
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x18013e248]
mov edx, 2
lea rcx, [rsp + 0x90]
call fcn.180117530
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
lea rdx, str._tCMsgAdapter_CreateWorkThread___Create_Log_Pending_thread
mov rcx, qword [rsp + 0xd0]
call fcn.180118950
nop
lea rcx, [rsp + 0x90]
call fcn.1801175b0
lea rax, [0x180158e00]
lock inc dword [rax]
xor eax, eax
add rsp, 0xe8
ret
Function at 0x180121f60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x38
ret

Function at 0x180121fb0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov ecx, 1
call fcn.18010f750
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x60]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x38], eax
cmp qword [rsp + 0x30], 0xffffffffffffffff
je 0x18012201b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
add rsp, 0x48
ret

Function at 0x180122030
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, 1
call fcn.18010f750
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [rsp + 0x28], eax
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x180122077
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x1801227a0
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
shl rax, 3
mov rcx, rax
call qword [sym.imp.msvcrt.dll_malloc]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x98], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x98], 0
jne 0x1801227f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18012286e
mov dword [rsp + 0x34], 0
jmp 0x180122805
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x34], eax
jae 0x18012286c
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
lea r8, [0x180122560]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov ecx, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x50]
mov rdx, qword [rdx + 0x98]
mov qword [rdx + rcx*8], rax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x98]
cmp qword [rcx + rax*8], 0
jne 0x18012286a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18012286e
jmp 0x1801227fb
xor eax, eax
add rsp, 0x48
ret
Function at 0x180122c20
Capabilities:
Get system information on windows

Disassembly:
mov word [rsp + 8], cx
sub rsp, 0x78
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
movzx eax, word [rsp + 0x80]
test eax, eax
jne 0x180122c56
xor eax, eax
jmp 0x180122d90
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, 0x110
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180122d87
mov r8d, 0x110
xor edx, edx
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_memset
movzx eax, word [rsp + 0x80]
cmp eax, 8
jg 0x180122caf
movzx eax, word [rsp + 0x80]
add eax, 8
mov word [rsp + 0x80], ax
movzx eax, word [rsp + 0x80]
mov ecx, dword [rsp + 0x24]
sub rcx, 0x20
mov r9d, eax
mov r8d, 8
mov edx, ecx
mov rcx, qword [rsp + 0x50]
call fcn.1801236f0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x180122d7a
mov eax, dword [rsp + 0x24]
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x180122d1d
mov rcx, qword [rsp + 0x50]
call fcn.180123c50
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
jmp 0x180122d90
mov rax, qword [rsp + 0x50]
add rax, 0x90
mov rcx, rax
call fcn.18010d590
mov rax, qword [rsp + 0x50]
add rax, 0xe8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0xd8], rcx
mov rax, qword [rsp + 0x50]
movzx ecx, word [rsp + 0x80]
mov word [rax + 0xd0], cx
mov rax, qword [rsp + 0x50]
mov dword [rax + 0xe0], 0
jmp 0x180122d85
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_free]
jmp 0x180122d8b
xor eax, eax
jmp 0x180122d90
mov rax, qword [rsp + 0x50]
add rsp, 0x78
ret
Function at 0x14000f070
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140231200]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x14000f0a4
xor eax, eax
jmp 0x14000f29a
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x14000f0d5
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.14000fdd0
jmp 0x14000f29a
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call fcn.140012a50
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x14000f183
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.14000f2b0
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call fcn.140012c10
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.140014350
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.140012b70
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x14000f28a
mov rcx, qword [rsp + 0x80]
call fcn.140012420
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x14000f238
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.140131d78
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x14000f233
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x14000f29a
jmp 0x14000f1af
cmp qword [rsp + 0x50], 0
jbe 0x14000f28a
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.140131d78
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140121790
add rsp, 0x78
ret
Function at 0x140023680
Capabilities:
Create service
Modify service
Start service

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rcx, qword [rsp + 0xa8]
call fcn.1400238f0
mov r8d, 2
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x1400236cc
cmp qword [rsp + 0x80], 0xffffffffffffffff
jne 0x1400236d3
xor eax, eax
jmp 0x1400238e8
mov r8d, 0x10
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x140023708
cmp qword [rsp + 0x78], 0xffffffffffffffff
jne 0x1400237a8
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0x10
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x140023793
cmp qword [rsp + 0x78], 0xffffffffffffffff
jne 0x1400237a8
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1400238e8
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x1400237c3
mov byte [rsp + 0x71], 1
jmp 0x1400237c8
mov byte [rsp + 0x71], 0
movzx eax, byte [rsp + 0x71]
mov byte [rsp + 0x70], al
movzx eax, byte [rsp + 0x70]
test eax, eax
jne 0x1400238ca
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, 0x12
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8d, 3
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x140023870
mov byte [rsp + 0x72], 1
jmp 0x140023875
mov byte [rsp + 0x72], 0
movzx eax, byte [rsp + 0x72]
mov byte [rsp + 0x74], al
movzx eax, byte [rsp + 0x74]
test eax, eax
je 0x1400238ca
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x1400238a2
mov byte [rsp + 0x73], 1
jmp 0x1400238a7
mov byte [rsp + 0x73], 0
movzx eax, byte [rsp + 0x73]
mov byte [rsp + 0x70], al
movzx eax, byte [rsp + 0x70]
test eax, eax
jne 0x1400238ca
mov rcx, qword [rsp + 0xa8]
call fcn.1400238f0
xor eax, eax
jmp 0x1400238e8
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
add rsp, 0x98
ret
Function at 0x1400238f0
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140231200]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r8d, 1
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x28], rax
mov r8d, 0x10022
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140121790
add rsp, 0x68
ret

Function at 0x1400264d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0x99
jne 0x1400264f4
lea rcx, str._NOT_SET_
call fcn.14009c1e0
jmp 0x14002650c
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax]
lea rcx, str.PRESS_Any_Key
mov rcx, qword [rcx + rax*8]
call fcn.14009c1e0
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0
jne 0x140026589
lea rax, [0x14017df50]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x28]
add rax, 0x298
mov qword [rsp + 0x38], rax
jmp 0x14002654c
mov rax, qword [rsp + 0x20]
add rax, 4
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x20], rax
je 0x140026589
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x80
test eax, eax
je 0x140026587
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx]
mov dword [rax], ecx
jmp 0x14002653e
add rsp, 0x48
ret
Function at 0x14004f550
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov eax, dword [rsp + 0x40]
not eax
mov dword [rsp], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
lea rax, [0x140182930]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x38]
dec rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x10], 0
je 0x14004f5de
mov eax, dword [rsp]
shr eax, 8
mov ecx, dword [rsp]
and ecx, 0xff
mov rdx, qword [rsp + 8]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x18]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov eax, dword [rsp + 4]
mov dword [rsp], eax
jmp 0x14004f582
mov eax, dword [rsp]
not eax
add rsp, 0x28
ret

Function at 0x14004f5f0
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov eax, dword [rsp + 0x40]
not eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
lea rax, [0x140182930]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x38], 0
je 0x14004f6f4
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x38]
dec rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x18], 0
je 0x14004f6ef
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov byte [rsp + 2], al
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
movzx eax, byte [rsp + 2]
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 0x23
jne 0x14004f6c4
cmp qword [rsp + 0x38], 2
jb 0x14004f6c4
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14004f6c4
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14004f6c4
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp + 1]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x14004f637
jmp 0x14004f786
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov byte [rsp + 3], al
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
movzx eax, byte [rsp + 3]
mov byte [rsp], al
movzx eax, byte [rsp]
test eax, eax
je 0x14004f786
movzx eax, byte [rsp]
cmp eax, 0x23
jne 0x14004f75c
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14004f75c
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14004f75c
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x14004f6f4
mov eax, dword [rsp + 4]
not eax
add rsp, 0x28
ret