joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016670
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x108
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x120]
or eax, 0x10
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + reloc.WLDAP32.dll_Ordinal_304]
mov dword [rsp + 0x80], eax
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.140161800
mov dword [rsp + 0x90], SQLExecDirectW
cmp qword [rsp + 0x150], 0
je 0x1400166eb
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x88], rax
jmp 0x140016703
mov edx, reloc.ODBC32.dll_SQLAllocHandle
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x1400168df
mov rcx, qword [rsp + 0x118]
call fcn.140145740
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x1400168df
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x140016763
cmp dword [rsp + 0x64], 1
je 0x1400167b8
cmp dword [rsp + 0x64], 2
je 0x140016818
jmp 0x140016886
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x60], eax
jmp 0x140016886
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x78]
xor edx, edx
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [rsp + 0x60], eax
jmp 0x140016886
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x80]
mov r8, qword [rsp + 0x148]
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x1400168bf
cmp dword [rsp + 0x158], 0
jne 0x1400168a2
cmp qword [rsp + 0x150], 0
jne 0x1400168bf
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x150], 0
jne 0x1400168d5
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x78]
call fcn.1401457c4
mov eax, dword [rsp + 0x60]
add rsp, 0x108
ret
Function at 0x140018cf0
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, 0x78
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140018d3e
cmp dword [rsp + 0x40], 1
je 0x140018db9
jmp 0x140018ef9
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xa0]
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x140018d93
mov dword [rsp + 0x44], 1
jmp 0x140018d9b
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140018db4
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140018ef9
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140018af0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140018ded
mov dword [rsp + 0x4c], 1
jmp 0x140018df5
mov dword [rsp + 0x4c], 0
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140018ef9
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
btr eax, 0x1f
mov dword [rsp + 0x34], eax
cmp qword [rsp + 0xa0], 0
je 0x140018e35
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx + 0x10]
mov dword [rax], ecx
cmp qword [rsp + 0xb0], 0
je 0x140018ef9
cmp qword [rsp + 0xa8], 0
je 0x140018eeb
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x34]
cmp dword [rax], ecx
jb 0x140018e6d
mov dword [rsp + 0x50], 1
jmp 0x140018e75
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140018eeb
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
and eax, 0x80000000
test eax, eax
je 0x140018ea5
mov rax, qword [rsp + 0x38]
add rax, 0xc
mov qword [rsp + 0x58], rax
jmp 0x140018ec8
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x38]
movsxd rcx, dword [rcx + 0xc]
mov rax, qword [rax + 0x10]
lea rax, [rax + rcx + 4]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x34]
mov r8d, eax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xa8]
call fcn.140161160
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x34]
mov dword [rax], ecx
mov eax, dword [rsp + 0x30]
add rsp, 0x78
ret
Function at 0x140018f10
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
sub rsp, 0x78
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140018f51
cmp dword [rsp + 0x40], 1
je 0x140018fca
jmp 0x1400190e5
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa0]
mov r8d, dword [rsp + 0x98]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x140018fa4
mov dword [rsp + 0x44], 1
jmp 0x140018fac
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140018fc5
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400190e5
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140018af0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400190e5
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
and eax, 0x80000000
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
btr eax, 0x1f
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0xb0]
cmp dword [rsp + 0x50], eax
jb 0x140019030
mov dword [rsp + 0x4c], 1
jmp 0x140019038
mov dword [rsp + 0x4c], 0
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400190da
mov rax, qword [rsp + 0x38]
mov ecx, dword [rsp + 0xa0]
mov dword [rax + 0x10], ecx
mov eax, dword [rsp + 0xb0]
mov ecx, dword [rsp + 0x54]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x38]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
and eax, 0x80000000
test eax, eax
je 0x140019092
mov rax, qword [rsp + 0x38]
add rax, 0xc
mov qword [rsp + 0x58], rax
jmp 0x1400190b5
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x38]
movsxd rcx, dword [rcx + 0xc]
mov rax, qword [rax + 0x10]
lea rax, [rax + rcx + 4]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x50]
mov r8d, eax
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x60]
call fcn.140161160
jmp 0x1400190e5
mov ecx, Ordinal_54
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0x30]
add rsp, 0x78
ret
Function at 0x14001d200
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov dword [rsp + 0x3c], 0
cmp qword [rsp + 0x108], 0
je 0x14001d233
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x48], rax
jmp 0x14001d23f
lea rax, [0x1401dd5f8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x68], 0x10
mov dword [rsp + 0x6c], 0x10
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x100]
mov eax, dword [rax]
add eax, 0x14
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 8], 0
je 0x14001d450
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0
je 0x14001d450
mov rax, qword [rsp + 0x100]
cmp dword [rax], 0
je 0x14001d442
mov rax, qword [rsp + 0x100]
cmp qword [rax + 8], 0
je 0x14001d442
mov eax, dword [rsp + 0x38]
mov ecx, eax
call fcn.14001bbb0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14001d440
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x100]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x30]
add rcx, 0x14
mov r8d, eax
mov rax, qword [rsp + 0x100]
mov rdx, qword [rax + 8]
call fcn.140161160
mov rax, qword [rsp + 0x30]
add rax, 0x10
mov rcx, qword [rsp + 0x30]
add rcx, 0x14
mov dword [rsp + 0x20], 4
mov r9, rax
mov rax, qword [rsp + 0x100]
mov r8d, dword [rax]
mov rdx, rcx
mov ecx, 0x8000
call fcn.1400064b0
test eax, eax
je 0x14001d42a
mov rax, qword [rsp + 0x30]
mov edx, 0x10
mov rcx, rax
call qword [sym.imp.cryptdll.dll_CDGenerateRandomBits]
lea rcx, [rsp + 0x80]
call qword [sym.imp.cryptdll.dll_MD5Init]
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 8]
lea rcx, [rsp + 0x80]
call qword [sym.imp.cryptdll.dll_MD5Update]
mov rax, qword [rsp + 0x30]
mov r8d, 0x10
mov rdx, rax
lea rcx, [rsp + 0x80]
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rcx, [rsp + 0x80]
call qword [sym.imp.cryptdll.dll_MD5Final]
mov eax, dword [rsp + 0x38]
sub eax, 0x10
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x30]
add rax, 0x10
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_SystemFunction032]
test eax, eax
jl 0x14001d41c
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x30]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x100]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
mov dword [rsp + 0x3c], 1
jmp 0x14001d428
lea rcx, str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___RtlEncryptData2_n
call fcn.140013fd0
jmp 0x14001d436
lea rcx, str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___Unable_to_calculate_CRC32_n
call fcn.140013fd0
mov rcx, qword [rsp + 0x50]
call fcn.14000bfd0
jmp 0x14001d44e
lea rcx, str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___No_valid_data_n
call fcn.140013fd0
jmp 0x14001d45c
lea rcx, str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___No_Session_Key_n
call fcn.140013fd0
mov eax, dword [rsp + 0x3c]
add rsp, 0xf8
ret
Function at 0x14001f480
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x30], 0
mov r8d, 1
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14001f517
mov r8d, 4
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14001f50c
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, reloc.WLDAP32.dll_Ordinal_36
mov r8, qword [rsp + 0x68]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x30]
add rsp, 0x58
ret

Function at 0x14001f5b0
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
mov r8d, 1
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14001f62b
mov r8d, 0x10000
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14001f620
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x140021080
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x68]
mov qword [rax], 0
mov rax, qword [rsp + 0x70]
mov dword [rax], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x140021167
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov rax, qword [rsp + 0x68]
cmp qword [rax], 0
je 0x140021167
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x68]
mov r9, qword [rax]
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140021167
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x140021170
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x68]
mov qword [rax], 0
mov rax, qword [rsp + 0x70]
mov dword [rax], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x140021257
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov rax, qword [rsp + 0x68]
cmp qword [rax], 0
je 0x140021257
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x68]
mov r9, qword [rax]
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140021257
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x1400214e0
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x40000001
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x140021594
mov eax, dword [rsp + 0x30]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x140021594
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x60]
mov r9, qword [rax]
mov r8d, 0x40000001
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x140021594
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret

Function at 0x140021690
Capabilities:
Encode data using base64 via winapi

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 dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x80000001
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x140021758
mov eax, dword [rsp + 0x30]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140021758
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x38]
mov r8d, 0x80000001
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x14002174d
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x50]
lea rdx, str._____BEGIN__s______n_s_____END__s______n
mov rcx, qword [rsp + 0x68]
call fcn.140021840
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret
Function at 0x140021f70
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x38]
mov edx, 8
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140022073
cmp dword [rsp + 0x38], 1
jne 0x140022013
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
mov r9d, 1
xor r8d, r8d
mov edx, 8
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140022011
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___DuplicateTokenEx__0x_08x__n
call fcn.140013fd0
jmp 0x14002201d
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x30], 0
jne 0x14002202b
cmp dword [rsp + 0x38], 1
je 0x140022071
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14002205f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___CheckTokenMembership__0x_08x__n
call fcn.140013fd0
cmp dword [rsp + 0x30], 0
je 0x140022071
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140022087
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___GetTokenInformation__0x_08x__n
call fcn.140013fd0
mov eax, dword [rsp + 0x34]
add rsp, 0x58
ret
Function at 0x140022280
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x40], 0
cmp qword [rsp + 0x88], 0
je 0x1400222ba
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x50], rax
jmp 0x1400222c4
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x14002240f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002240f
mov eax, dword [rsp + 0x48]
shl rax, 1
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x78]
mov qword [rcx], rax
mov rax, qword [rsp + 0x78]
cmp qword [rax], 0
je 0x14002240f
mov eax, dword [rsp + 0x44]
shl rax, 1
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax], 0
je 0x1400223f2
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov rax, qword [rsp + 0x78]
mov r8, qword [rax]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1400223f2
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
cmp dword [rsp + 0x40], 0
jne 0x14002240f
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x78]
mov qword [rcx], rax
mov eax, dword [rsp + 0x40]
add rsp, 0x68
ret

Function at 0x140022ac0
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r8, qword [rsp + 0x38]
lea rdx, [0x140172ee0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
add rsp, 0x28
ret
Function at 0x1400814b0
Capabilities:
Reference sql statements

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, str.sqlite_master
mov r8, qword [rsp + 0x48]
lea rdx, str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
mov rcx, qword [rsp + 0x40]
call fcn.140088170
cmp dword [rsp + 0x50], 0
jne 0x140081516
mov r9, qword [rsp + 0x48]
lea r8, str.sqlite_master
lea rdx, str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
mov rcx, qword [rsp + 0x40]
call fcn.140088170
add rsp, 0x38
ret
Function at 0x1400e0d70
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
call fcn.1400142a0
lea rcx, str.mimi_3.2.0_x64__Custom_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov edx, 1
lea rcx, [0x1400e0e10]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, str._n__..___mimi_3.2.0__x64__19041_Mar_28_2024_10:45:45_n_.__.___asx_____Custom__n
call fcn.140013fd0
mov ecx, 1
call fcn.1400e0e30
add rsp, 0x28
ret

Function at 0x1400e0dc0
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x28
xor ecx, ecx
call fcn.1400e0e30
xor edx, edx
lea rcx, [0x1400e0e10]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call fcn.140014310
cmp dword [rsp + 0x30], 0xc000004b
jne 0x1400e0df7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]