joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e978
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov r9d, dword [rcx]
xor edi, edi
mov r10, r8
mov r11, rdx
mov r14, rcx
test r9d, r9d
je 0x14000ea25
cmp r9d, 1
jne 0x14000ea5f
call fcn.14000e840
test rax, rax
mov rcx, rax
setne dil
test rax, rax
je 0x14000ea5f
mov ebx, dword [rax + 8]
mov rdx, qword [rsp + 0x60]
btr ebx, 0x1f
test rdx, rdx
je 0x14000e9dc
mov eax, dword [rax + 0x10]
mov dword [rdx], eax
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x14000ea5f
mov r9, qword [rsp + 0x68]
test r9, r9
je 0x14000ea21
xor edi, edi
cmp dword [rsi], ebx
setae dil
jb 0x14000ea21
cmp dword [rcx + 8], 0
lea rdx, [rcx + 0xc]
jl 0x14000ea16
mov rax, qword [r14 + 8]
movsxd rdx, dword [rdx]
mov rax, qword [rax + 0x10]
add rax, 4
add rdx, rax
mov r8d, ebx
mov rcx, r9
call fcn.1400c2820
mov dword [rsi], ebx
jmp 0x14000ea5f
mov rax, qword [rsp + 0x70]
xor r8d, r8d
mov r9, qword [rsp + 0x60]
mov rdx, r10
mov qword [rsp + 0x28], rax
mov rcx, r11
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete dil
test eax, eax
je 0x14000ea5f
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop r14
ret

Function at 0x14000ea78
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov r9d, dword [rcx]
xor ebx, ebx
mov r10, r8
mov r11, rdx
mov rdi, rcx
test r9d, r9d
je 0x14000eb09
cmp r9d, 1
jne 0x14000eb40
call fcn.14000e840
mov r8, rax
test rax, rax
je 0x14000eb40
mov ecx, dword [rax + 8]
mov edx, ecx
mov r9d, dword [rsp + 0x70]
btr edx, 0x1f
cmp edx, r9d
setae bl
jb 0x14000eb02
mov eax, dword [rsp + 0x60]
and ecx, 0x80000000
or ecx, r9d
mov dword [r8 + 0x10], eax
mov dword [r8 + 8], ecx
lea rcx, [r8 + 0xc]
jl 0x14000eaf3
mov rax, qword [rdi + 8]
movsxd rcx, dword [rcx]
mov rax, qword [rax + 0x10]
add rax, 4
add rcx, rax
mov r8d, edx
mov rdx, qword [rsp + 0x68]
call fcn.1400c2820
jmp 0x14000eb40
mov ecx, Ordinal_54
jmp 0x14000eb3a
mov eax, dword [rsp + 0x70]
xor r8d, r8d
mov r9d, dword [rsp + 0x60]
mov rdx, r10
mov dword [rsp + 0x28], eax
mov rcx, r11
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test eax, eax
je 0x14000eb40
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000eb50
Capabilities:
Query or enumerate registry key

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 r12
push r14
push r15
sub rsp, 0x40
mov r10d, dword [rcx]
xor r12d, r12d
mov r14, qword [rsp + 0x80]
mov rsi, r9
mov r11d, r8d
mov rbp, rdx
mov edi, r12d
test r10d, r10d
je 0x14000ec90
cmp r10d, 1
jne 0x14000ecc8
cmp dword [rdx + 0x18], r12d
je 0x14000ecc8
cmp r11d, dword [rdx + 0x18]
jae 0x14000ecc8
cmp dword [rdx + 0x20], 0xffffffff
je 0x14000ecc8
mov rax, qword [rcx + 8]
movsxd rcx, dword [rdx + 0x20]
mov r8, qword [rax + 0x10]
mov eax, 0x666c
add rcx, r8
cmp word [rcx + 4], ax
je 0x14000ebe1
mov eax, 0x686c
cmp word [rcx + 4], ax
jne 0x14000ecc8
cmp word [rcx + 6], r12w
je 0x14000ecc8
movzx eax, word [rcx + 6]
cmp r11d, eax
jae 0x14000ecc8
movsxd rdx, dword [rcx + r11*8 + 8]
mov eax, 0x6b6e
add rdx, r8
cmp word [rdx + 4], ax
jne 0x14000ecc8
test rsi, rsi
je 0x14000ecc8
test r14, r14
je 0x14000ecc8
test byte [rdx + 6], 0x20
je 0x14000ec62
movzx ebx, word [rdx + 0x4c]
cmp dword [r14], ebx
seta dil
jbe 0x14000ec82
lea rcx, [rdx + 0x50]
mov edx, ebx
call fcn.14001259c
mov rbp, rax
test rax, rax
je 0x14000ec82
lea r8, [rbx + rbx]
mov rdx, rax
mov rcx, rsi
call fcn.1400c2820
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000ec82
movzx ebx, word [rdx + 0x4c]
shr ebx, 1
cmp dword [r14], ebx
seta dil
jbe 0x14000ec82
movzx r8d, word [rbp + 0x4c]
add rdx, 0x50
mov rcx, rsi
call fcn.1400c2820
test edi, edi
je 0x14000ec8b
mov word [rsi + rbx*2], r12w
mov dword [r14], ebx
jmp 0x14000ecc8
mov qword [rsp + 0x38], r12
mov r9, r14
mov qword [rsp + 0x30], r12
mov r8, rsi
mov qword [rsp + 0x28], r12
mov edx, r11d
mov rcx, rbp
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
sete dil
test eax, eax
je 0x14000ecc8
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x14000ecec
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor ebp, ebp
mov r11d, r8d
mov r10, rdx
mov rdi, r9
mov edx, dword [rcx]
mov r13, rcx
mov esi, ebp
test edx, edx
je 0x14000eeb5
cmp edx, 1
jne 0x14000ef0a
test r10, r10
jne 0x14000ed3c
mov rax, qword [rcx + 8]
mov r10, qword [rax + 0x18]
mov eax, 0x6b6e
cmp word [r10 + 4], ax
jne 0x14000ef0a
cmp dword [r10 + 0x28], ebp
je 0x14000ef0a
cmp r11d, dword [r10 + 0x28]
jae 0x14000ef0a
cmp dword [r10 + 0x2c], 0xffffffff
je 0x14000ef0a
mov rax, qword [rcx + 8]
movsxd rcx, dword [r10 + 0x2c]
add rcx, qword [rax + 0x10]
movsxd rbx, dword [rcx + r11*4 + 4]
add rbx, qword [rax + 0x10]
mov eax, 0x6b76
cmp word [rbx + 4], ax
jne 0x14000ef0a
test rdi, rdi
je 0x14000ef0a
mov r14, qword [rsp + 0x90]
test r14, r14
je 0x14000ef0a
movzx eax, word [rbx + 6]
test ax, ax
je 0x14000eeb0
test byte [rbx + 0x14], 1
mov edi, eax
mov edx, eax
je 0x14000edd9
lea rcx, [rbx + 0x18]
inc edi
call fcn.14001259c
mov r15, rax
test rax, rax
je 0x14000ef0a
jmp 0x14000ee09
shr edi, 1
add rdx, 2
mov ecx, 0x40
inc edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
test rax, rax
je 0x14000ef0a
movzx r8d, word [rbx + 6]
lea rdx, [rbx + 0x18]
mov rcx, rax
call fcn.1400c2820
mov r12d, dword [r14]
cmp r12d, edi
setae bpl
jb 0x14000ee31
mov rcx, qword [rsp + 0x88]
mov rdx, r15
mov r8d, edi
add r8, r8
call fcn.1400c2820
lea eax, [rdi - 1]
mov dword [r14], eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, ebp
cmp r12d, edi
jb 0x14000ef0a
mov edi, dword [rbx + 8]
mov rcx, qword [rsp + 0xa0]
btr edi, 0x1f
test rcx, rcx
je 0x14000ee5e
mov eax, dword [rbx + 0x10]
mov dword [rcx], eax
mov r14, qword [rsp + 0xb0]
test r14, r14
je 0x14000ef0a
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x14000eeab
xor esi, esi
cmp dword [r14], edi
setae sil
jb 0x14000eeab
cmp dword [rbx + 8], 0
lea rdx, [rbx + 0xc]
jl 0x14000eea3
mov rax, qword [r13 + 8]
movsxd rdx, dword [rdx]
mov rax, qword [rax + 0x10]
add rax, 4
add rdx, rax
mov r8d, edi
call fcn.1400c2820
mov dword [r14], edi
jmp 0x14000ef0a
mov dword [r14], ebp
jmp 0x14000ef0a
mov rax, qword [rsp + 0xb0]
mov r8, rdi
mov r9, qword [rsp + 0x90]
mov edx, r11d
mov qword [rsp + 0x38], rax
mov rcx, r10
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
sete sil
test eax, eax
je 0x14000ef0a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r11, [rsp + 0x40]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140011ddc
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, rdx
mov rsi, rcx
xor ebx, ebx
lea rdx, str.ServicesActive
xor ecx, ecx
lea r8d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140011e5b
lea r8d, [rbx + 4]
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140011e52
lea rax, [rsp + 0x50]
mov r8, rbp
lea r9d, [rbx + 0x24]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140011ef0
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rdx, str.ServicesActive
xor ebx, ebx
xor ecx, ecx
lea r8d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140011f56
mov r8d, 0x10000
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140011f4d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400121b4
Capabilities:
Create service
Persist via windows service
Start service

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 r12
push r14
push r15
sub rsp, 0x70
mov r15, r8
mov r12, rdx
mov rbx, rcx
lea rdx, str.ServicesActive
xor edi, edi
xor ecx, ecx
mov r14d, r9d
lea r8d, [rdi + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x140012369
lea r8d, [rdi + 0x10]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x14001222a
mov rdx, rbx
lea rcx, str.____s_service_already_registered_n
call fcn.14000bdb8
jmp 0x1400122f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x14001234a
mov rdx, rbx
lea rcx, str.____s_service_not_present_n
call fcn.14000bdb8
and qword [rsp + 0x60], rdi
mov r9d, 0x60010
and qword [rsp + 0x58], rdi
mov r8, r12
and qword [rsp + 0x50], rdi
mov rdx, rbx
and qword [rsp + 0x48], rdi
mov rcx, rbp
and qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
test rax, rax
je 0x1400122d7
mov rdx, rbx
lea rcx, str.____s_service_successfully_registered_n
call fcn.14000bdb8
mov rcx, rsi
call fcn.140012050
mov edi, eax
test eax, eax
je 0x1400122c8
mov rdx, rbx
lea rcx, str.____s_service_ACL_to_everyone_n
call fcn.14000bdb8
jmp 0x1400122eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___kull_m_service_addWorldToSD__0x_08x__n
jmp 0x1400122e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___CreateService__0x_08x__n
mov edx, eax
call fcn.14000bdb8
test rsi, rsi
je 0x14001235e
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov edi, eax
test eax, eax
je 0x14001230d
lea rcx, str.____s_service_started_n
jmp 0x140012321
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x14001232b
lea rcx, str.____s_service_already_started_n
mov rdx, rbx
call fcn.14000bdb8
jmp 0x14001233f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_service_install___StartService__0x_08x__n
call fcn.14000bdb8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14001235e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_service_install___OpenService__0x_08x__n
call fcn.14000bdb8
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14001237d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_service_install___OpenSCManager_create___0x_08x__n
call fcn.14000bdb8
lea r11, [rsp + 0x70]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140012ea8
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov rsi, r8
and qword [rax - 0x18], rdi
mov rbx, rdx
and qword [rdx], rdi
xor r9d, r9d
and qword [rax - 0x20], rdi
xor edx, edx
and dword [r8], edi
mov rbp, rcx
mov qword [rax - 0x28], r8
lea r8d, [rdi + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x140012f32
mov edx, dword [rsi]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x140012f32
and qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
and qword [rsp + 0x28], rdi
mov r9, rax
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov edi, eax
test eax, eax
jne 0x140012f32
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

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

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 r12
push r14
push r15
sub rsp, 0x40
mov r15, r8
mov r14, rdx
mov r12, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
lea ecx, [rbx + 0x40]
and eax, 3
lea edx, [rax + 1]
add edx, ebp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140013129
mov r8d, ebp
mov rdx, r12
mov rcx, rax
mov esi, ebp
call fcn.1400c2820
test ebp, ebp
je 0x1400130a8
mov rax, rdi
cmp byte [rax], 0x2d
jne 0x14001308e
mov byte [rax], reloc.ODBC32.dll_SQLGetData
jmp 0x14001309f
cmp byte [rax], 0x5f
jne 0x140013098
mov byte [rax], 0x2f
jmp 0x14001309f
cmp byte [rax], bl
jne 0x14001309f
mov byte [rax], 0x3d
inc rax
sub rsi, 1
jne 0x140013084
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov rcx, rdi
mov qword [r14], rbx
mov esi, ebx
mov dword [r15], ebx
lea r8d, [r9 + 1]
mov qword [rsp + 0x20], r15
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x14001311e
mov edx, dword [r15]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r14], rax
test rax, rax
je 0x14001311e
xor edx, edx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov r9, rax
mov rcx, rdi
mov qword [rsp + 0x20], r15
lea r8d, [rdx + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov esi, eax
test eax, eax
jne 0x14001311e
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [r14], rax
mov rcx, rdi
mov ebx, esi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x14001314c
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
lea rax, [rax + 0x20]
mov rbx, r8
xor edi, edi
mov qword [rsp + 0x20], rax
and dword [rax], edi
xor r9d, r9d
mov r8d, 0x40000001
mov esi, edx
mov rbp, rcx
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x1400131cd
mov edx, dword [rsp + 0x58]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400131cd
lea rcx, [rsp + 0x58]
mov r9, rax
mov qword [rsp + 0x20], rcx
mov r8d, 0x40000001
mov rcx, rbp
mov edx, esi
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov edi, eax
test eax, eax
jne 0x1400131cd
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r14d, r8d
lea rax, [rax - 0x28]
mov r15, rdx
mov qword [rsp + 0x20], rax
mov rbp, r9
mov rsi, rcx
xor ebx, ebx
xor r9d, r9d
mov dword [rax], ebx
mov r8d, 0x80000001
mov edx, r14d
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x1400132e7
mov edx, dword [rsp + 0x30]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400132e7
lea rax, [rsp + 0x30]
mov r9, rdi
mov r8d, 0x80000001
mov qword [rsp + 0x20], rax
mov edx, r14d
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x1400132de
mov r9, rdi
mov qword [rsp + 0x20], rsi
mov r8, rsi
lea rdx, str._____BEGIN__s______n_s_____END__s______n
mov rcx, rbp
call fcn.1400133c4
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1400137b0
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
lea rax, [r11 - 0x28]
mov rbp, r8
mov qword [r11 - 0x38], rax
mov r14, rdx
lea r8, [r11 + 0x20]
mov rsi, rcx
xor edi, edi
lea r9d, [rbx + 4]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140013885
mov eax, dword [rsp + 0x78]
cmp eax, 1
jne 0x14001383f
lea rax, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9d, [rbx + 1]
lea edx, [rbx + 8]
mov dword [rsp + 0x20], 2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov edi, eax
test eax, eax
jne 0x140013849
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___DuplicateTokenEx__0x_08x__n
call fcn.14000bdb8
mov eax, dword [rsp + 0x78]
jmp 0x140013844
mov qword [rsp + 0x38], rsi
cmp eax, 1
je 0x140013899
mov rcx, qword [rsp + 0x38]
mov r8, rbp
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ebx, eax
test eax, eax
jne 0x140013874
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___CheckTokenMembership__0x_08x__n
call fcn.14000bdb8
test edi, edi
je 0x140013899
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140013899
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___GetTokenInformation__0x_08x__n
call fcn.14000bdb8
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400139b8
Capabilities:
Get user security identifier

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
xor esi, esi
lea rbp, [r11 - 0x24]
test r9, r9
lea rax, [r11 + 0x20]
mov rbx, rdx
mov rdi, r8
cmovne rbp, r9
mov r14, rcx
and dword [rsp + 0x40], esi
lea r9, [r11 - 0x28]
and dword [r11 + 0x20], esi
mov rdx, rcx
mov rcx, qword [rsp + 0x90]
xor r8d, r8d
mov qword [r11 - 0x38], rbp
mov qword [r11 - 0x40], rax
and qword [r11 - 0x48], rsi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140013aa9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140013aa9
mov edx, dword [rsp + 0x40]
lea ecx, [rsi + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x140013aa9
mov edx, dword [rsp + 0x88]
lea ecx, [rsi + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi], rax
test rax, rax
je 0x140013a9d
mov r8, qword [rbx]
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov rdx, r14
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test eax, eax
jne 0x140013aa9
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rdi], rax
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x70]
mov eax, esi
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x14001ca98
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movsxd r10, dword [rcx + 0xc]
mov r9, rcx
movsxd r11, r8d
test r8d, r8d
jle 0x14001caef
mov rsi, qword [rcx]
mov rbx, r10
movsxd rbp, dword [rcx + 8]
xor edi, edi
mov al, byte [rdi + rdx]
lea rcx, [rbx + 1]
xor byte [rbx + rsi], al
lea eax, [r10 + 1]
xor r10d, r10d
cmp rcx, rbp
cmovl r10d, eax
xor ebx, ebx
inc rdi
cmp rcx, rbp
cmovl rbx, rcx
cmp rdi, r11
jl 0x14001cac6
add dword [r9 + 0x10], r8d
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov dword [r9 + 0xc], r10d
ret
Function at 0x14002f630
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x28
mov rax, qword [rcx + 8]
mov r13, rcx
mov ebp, edx
mov r11, qword [rax + 8]
mov rax, qword [rcx + 0x28]
mov r14, qword [r11]
mov r10, qword [rax + 8]
movsxd rax, dword [r10 + 0x30]
movsxd r10, dword [r11 + 0x30]
mov r12, rax
cmp eax, r10d
mov ecx, r10d
cmovl ecx, eax
imul rbp, rax
mov dword [rsp + 0x78], ecx
cmp eax, r10d
je 0x14002f694
cmp byte [r14 + 0x10], 0
je 0x14002f694
mov ebx, 8
jmp 0x14002f784
mov rdi, rbp
mov r15, r10
sub rdi, r12
xor ebx, ebx
cmp rdi, rbp
jge 0x14002f784
and qword [rsp + 0x70], 0
mov rax, rdi
cqo
idiv r15
mov rsi, rdx
xor edx, edx
lea r10d, [rax + 1]
mov rax, qword [r13 + 8]
mov rcx, qword [rax + 8]
mov eax, 0x40000000
div dword [rcx + 0x30]
inc eax
cmp r10d, eax
je 0x14002f779
xor r9d, r9d
lea r8, [rsp + 0x70]
mov edx, r10d
mov rcx, r14
call qword [r14 + 0x108]
mov ebx, eax
test eax, eax
jne 0x14002f76a
mov rcx, qword [rsp + 0x70]
call fcn.14002209c
mov ebx, eax
test eax, eax
jne 0x14002f76a
mov rax, qword [rsp + 0x70]
movsxd r8, dword [rsp + 0x78]
add rsi, qword [rax + 8]
mov rax, rdi
cqo
mov rcx, rsi
idiv r12
add rdx, qword [rsp + 0x80]
call fcn.1400c2820
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x10]
mov byte [rcx], bl
test rdi, rdi
jne 0x14002f76a
cmp dword [rsp + 0x88], edi
jne 0x14002f76a
mov rax, qword [r13 + 0x28]
mov rcx, qword [rax + 8]
mov edx, dword [rcx + 0x3c]
mov eax, edx
shr eax, 0x18
mov byte [rsi + 0x1c], al
mov eax, edx
shr eax, 0x10
mov byte [rsi + 0x1d], al
mov eax, edx
shr eax, 8
mov byte [rsi + 0x1e], al
mov byte [rsi + 0x1f], dl
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14002f779
call fcn.140021aa8
add rdi, r15
test ebx, ebx
je 0x14002f69f
mov eax, ebx
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140047dcc
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
mov ebx, r8d
lea r9, str.sqlite_master
mov dword [rax - 0x10], ebx
mov rdi, rdx
mov qword [rax - 0x18], rdx
mov r8, rdx
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 rsi, rcx
call fcn.14004c450
test ebx, ebx
jne 0x140047e1f
mov r9, rdi
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, rsi
call fcn.14004c450
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret