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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov r10, rdx
mov edx, dword [rcx]
mov r14, r9
mov r11d, r8d
mov r13, rcx
mov edi, r15d
cmp edx, r15d
je 0x14000f289
cmp edx, 1
jne 0x14000f2e0
cmp r10, r15
jne 0x14000f107
mov rax, qword [rcx + 8]
mov r10, qword [rax + 0x18]
mov eax, 0x6b6e
cmp word [r10 + 4], ax
jne 0x14000f2e0
cmp dword [r10 + 0x28], r15d
je 0x14000f2e0
cmp r11d, dword [r10 + 0x28]
jae 0x14000f2e0
cmp dword [r10 + 0x2c], 0xffffffff
je 0x14000f2e0
mov rax, qword [rcx + 8]
mov r8, qword [rax + 0x10]
movsxd rax, dword [r10 + 0x2c]
lea rcx, [r8 + rax]
mov eax, 0x6b76
movsxd rbx, dword [rcx + r11*4 + 4]
add rbx, r8
cmp word [rbx + 4], ax
jne 0x14000f2e0
cmp r9, r15
je 0x14000f2e0
mov rsi, qword [rsp + 0x90]
cmp rsi, r15
je 0x14000f2e0
cmp word [rbx + 6], r15w
je 0x14000f20c
test byte [rbx + 0x14], 1
movzx edx, word [rbx + 6]
je 0x14000f19e
lea rcx, [rbx + 0x18]
lea r12d, [rdx + 1]
call fcn.140012a98
mov rbp, rax
jmp 0x14000f1d3
mov r12d, edx
mov ecx, 0x40
add rdx, 2
shr r12d, 1
inc r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
cmp rax, r15
je 0x14000f2e0
movzx r8d, word [rbx + 6]
lea rdx, [rbx + 0x18]
mov rcx, rax
call sub.msvcrt.dll_memcpy
cmp rbp, r15
je 0x14000f2e0
cmp dword [rsi], r12d
setae dil
cmp edi, r15d
je 0x14000f201
mov r8d, r12d
mov rdx, rbp
mov rcx, r14
add r8, r8
call sub.msvcrt.dll_memcpy
lea r11d, [r12 - 1]
mov dword [rsi], r11d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000f20f
mov dword [rsi], r15d
cmp edi, r15d
je 0x14000f2e0
mov esi, dword [rbx + 8]
mov rcx, qword [rsp + 0xa0]
btr esi, 0x1f
cmp rcx, r15
je 0x14000f231
mov eax, dword [rbx + 0x10]
mov dword [rcx], eax
mov rbp, qword [rsp + 0xb0]
cmp rbp, r15
je 0x14000f2e0
mov rcx, qword [rsp + 0xa8]
cmp rcx, r15
je 0x14000f284
cmp dword [rbp], esi
mov edi, r15d
setae dil
cmp edi, r15d
je 0x14000f284
bt dword [rbx + 8], 0x1f
jae 0x14000f26b
lea rdx, [rbx + 0xc]
jmp 0x14000f27c
mov rax, qword [r13 + 8]
movsxd r8, dword [rbx + 0xc]
mov rdx, qword [rax + 0x10]
lea rdx, [r8 + rdx + 4]
mov r8d, esi
call sub.msvcrt.dll_memcpy
mov dword [rbp], esi
jmp 0x14000f2e0
mov rax, qword [rsp + 0xb0]
mov r9, qword [rsp + 0x90]
mov r8, r14
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xa8]
mov edx, r11d
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa0]
mov rcx, r10
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, r15d
sete dil
cmp edi, r15d
jne 0x14000f2e0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r11, [rsp + 0x40]
mov eax, edi
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 0x140011794
Capabilities:
Encrypt data using rc4 via systemfunction033

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
sub rsp, 0xc0
mov rsi, qword [rcx + 8]
xor ebp, ebp
lea rax, [rax - 0x30]
lea edi, [rbp + 0x10]
mov rbx, rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x44], edi
cmp qword [0x14013b178], rbp
je 0x14001190e
cmp dword [0x14013b170], ebp
je 0x14001190e
cmp dword [rcx], 0x14
jb 0x140011905
test rsi, rsi
je 0x140011905
lea rcx, [rsp + 0x50]
call sub.cryptdll.dll_MD5Init
mov r8d, dword [0x14013b170]
mov rdx, qword [0x14013b178]
lea rcx, [rsp + 0x50]
call sub.cryptdll.dll_MD5Update
lea rcx, [rsp + 0x50]
mov r8d, edi
mov rdx, rsi
call sub.cryptdll.dll_MD5Update
lea rcx, [rsp + 0x50]
call sub.cryptdll.dll_MD5Final
mov r11d, dword [rbx]
lea r12, [rsi + 0x10]
sub r11d, edi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x34], r11d
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x38], r12
call sub.ADVAPI32.dll_SystemFunction033
test eax, eax
js 0x1400118fc
mov edi, dword [rbx]
lea r13, [rsi + 0x14]
lea r9, [rsp + 0xe8]
sub edi, 0x14
mov rdx, r13
mov ecx, 0x8000
mov r8d, edi
mov dword [rsp + 0x20], 4
call fcn.140003970
test eax, eax
je 0x1400118f3
mov edx, dword [rsp + 0xe8]
cmp edx, dword [r12]
jne 0x1400118e1
mov rsi, qword [rbx + 8]
lea ecx, [rbp + 0x40]
mov edx, edi
mov r12d, edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx + 8], rax
test rax, rax
je 0x14001191a
mov r8, r12
mov rdx, r13
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov dword [rbx], edi
mov ebp, 1
test rsi, rsi
je 0x14001191a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14001191a
mov r8d, dword [r12]
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___Checksums_dont_match__C:0x_08x___R:0x_08x__n
call fcn.14000c020
jmp 0x14001191a
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___Unable_to_calculate_CRC32_n
jmp 0x140011915
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___RtlDecryptData2_n
jmp 0x140011915
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_valid_data_n
jmp 0x140011915
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_Session_Key_n
call fcn.14000c020
lea r11, [rsp + 0xc0]
mov eax, ebp
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1400122f0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rbp, rdx
mov rdx, rcx
xor ebx, ebx
mov rcx, rdi
lea r8d, [rbx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
cmp rax, rbx
je 0x14001234b
lea rax, [rsp + 0x58]
lea r9d, [rbx + 0x24]
mov r8, rbp
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
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 rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400123e8
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
lea rdx, str.ServicesActive
lea r8d, [rbx + 1]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
cmp rax, rbx
je 0x14001244e
mov r8d, 0x10000
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
cmp rax, rbx
je 0x140012445
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 0x1400126e0
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 r13
push r14
sub rsp, 0x70
mov r13, r8
mov r14, rdx
mov rbx, rcx
xor esi, esi
lea rdx, str.ServicesActive
xor ecx, ecx
lea r8d, [rsi + 3]
mov r12d, r9d
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x140012889
lea r8d, [rsi + 0x10]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140012756
lea rcx, str.____s_service_already_registered_n
mov rdx, rbx
call fcn.14000c020
jmp 0x140012821
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x14001280d
lea rcx, str.____s_service_not_present_n
mov rdx, rbx
call fcn.14000c020
and qword [rsp + 0x60], rsi
and qword [rsp + 0x58], rsi
and qword [rsp + 0x50], rsi
and qword [rsp + 0x48], rsi
and qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 1
mov r9d, 0x60010
mov r8, r14
mov rdx, rbx
mov rcx, rbp
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
je 0x1400127fe
lea rcx, str.____s_service_successfully_registered_n
mov rdx, rbx
call fcn.14000c020
mov rcx, rdi
call fcn.140012550
mov esi, eax
test eax, eax
je 0x1400127ef
lea rcx, str.____s_service_ACL_to_everyone_n
jmp 0x140012749
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___kull_m_service_addWorldToSD__0x_08x__n
jmp 0x14001281a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___CreateService__0x_08x__n
jmp 0x14001281a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___OpenService__0x_08x__n
mov edx, eax
call fcn.14000c020
test rdi, rdi
je 0x14001287e
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov esi, eax
test eax, eax
je 0x140012843
lea rcx, str.____s_service_started_n
jmp 0x140012857
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x140012861
lea rcx, str.____s_service_already_started_n
mov rdx, rbx
call fcn.14000c020
jmp 0x140012875
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___StartService__0x_08x__n
mov edx, eax
call fcn.14000c020
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14001289d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___OpenSCManager_create___0x_08x__n
mov edx, eax
call fcn.14000c020
lea r11, [rsp + 0x70]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x1400133cc
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
mov rbx, rdx
and qword [rax - 0x18], rdi
and qword [rdx], rdi
and qword [rax - 0x20], rdi
and dword [r8], edi
mov qword [rax - 0x28], r8
lea r8d, [rdi + 1]
xor r9d, r9d
xor edx, edx
mov rbp, rcx
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x140013456
mov edx, dword [rsi]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x140013456
and qword [rsp + 0x30], rdi
and qword [rsp + 0x28], rdi
lea r8d, [rdi + 1]
mov r9, rax
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov edi, eax
test eax, eax
jne 0x140013456
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x40
pop rdi
ret

Function at 0x140013540
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 r13
push r14
sub rsp, 0x40
mov r13, r8
mov rbp, rdx
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [rbx + 0x40]
mov r12d, eax
and eax, 3
lea edx, [rax + r12 + 1]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
cmp rax, rbx
je 0x140013652
mov r8, r12
mov rdx, r14
mov rcx, rax
mov rsi, r12
call sub.msvcrt.dll_memcpy
cmp r12d, ebx
jbe 0x1400135cb
mov rax, rdi
cmp byte [rax], 0x2d
jne 0x1400135b1
mov byte [rax], reloc.ODBC32.dll_SQLGetData
jmp 0x1400135c2
cmp byte [rax], 0x5f
jne 0x1400135bb
mov byte [rax], 0x2f
jmp 0x1400135c2
cmp byte [rax], bl
jne 0x1400135c2
mov byte [rax], 0x3d
inc rax
sub rsi, 1
jne 0x1400135a7
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, rdi
mov qword [rsp + 0x28], rbx
mov esi, ebx
mov qword [rbp], rbx
mov dword [r13], ebx
mov qword [rsp + 0x20], r13
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
cmp eax, ebx
je 0x140013647
mov edx, dword [r13]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp], rax
cmp rax, rbx
je 0x140013647
xor edx, edx
mov qword [rsp + 0x30], rbx
mov r9, rax
lea r8d, [rdx + 1]
mov rcx, rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r13
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov esi, eax
cmp eax, ebx
jne 0x140013647
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbp], rax
mov rcx, rdi
mov ebx, esi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop r13
pop r12
ret
Function at 0x140013674
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
and dword [rax], edi
xor r9d, r9d
mov r8d, 0x40000001
mov qword [rsp + 0x20], rax
mov esi, edx
mov rbp, rcx
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x1400136f5
mov edx, dword [rsp + 0x58]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400136f5
lea rcx, [rsp + 0x58]
mov r9, rax
mov r8d, 0x40000001
mov qword [rsp + 0x20], rcx
mov rcx, rbp
mov edx, esi
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov edi, eax
test eax, eax
jne 0x1400136f5
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
ret

Function at 0x140013768
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
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r12, qword [rsp + 0x70]
mov r14, rdx
mov rsi, rcx
mov edx, dword [r12]
xor ebx, ebx
mov rbp, r9
lea ecx, [rbx + 0x40]
mov r13d, r8d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
cmp rax, rbx
je 0x1400137f0
mov r9, rax
mov r8d, 0x80000001
mov edx, r13d
mov rcx, r14
mov qword [rsp + 0x20], r12
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
cmp eax, ebx
je 0x1400137e7
lea rdx, str._____BEGIN__s______n_s_____END__s______n
mov r9, rdi
mov r8, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rsi
call fcn.140013898
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x140013cd8
Capabilities:
Get token membership

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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
xor esi, esi
test r9, r9
lea rbp, [r11 - 0x24]
cmovne rbp, r9
and dword [rsp + 0x40], esi
and dword [r11 + 0x20], esi
mov qword [r11 - 0x38], rbp
mov rbx, rdx
mov r12, rcx
lea rax, [r11 + 0x20]
mov rdx, rcx
mov rcx, qword [rsp + 0x90]
mov rdi, r8
mov qword [r11 - 0x40], rax
and qword [r11 - 0x48], rsi
lea r9, [r11 - 0x28]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140013fd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140013fd1
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 0x140013fd1
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 0x140013fc5
mov r8, qword [rbx]
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x90]
lea r9, [rsp + 0x40]
mov rdx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test eax, eax
jne 0x140013fd1
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 rbp, qword [rsp + 0x78]
mov eax, esi
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret
Function at 0x140030150
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, 0x38
mov rax, qword [rcx + 8]
mov r15, rcx
mov ebp, edx
mov r11, qword [rax + 8]
mov rax, qword [rcx + 0x28]
mov ecx, dword [r11 + 0x30]
mov r10, qword [rax + 8]
mov r12, qword [r11]
movsxd rax, dword [r10 + 0x30]
mov r8d, ecx
mov dword [rsp + 0x80], ecx
cmp eax, ecx
mov r14, rax
cmovl r8d, eax
xor ebx, ebx
mov dword [rsp + 0x88], r8d
imul rbp, rax
cmp eax, ecx
je 0x1400301ba
cmp byte [r12 + 0x10], bl
lea eax, [rbx + 8]
cmovne ebx, eax
mov rdi, rbp
sub rdi, r14
jmp 0x1400302b0
cmp rdi, rbp
jge 0x1400302b8
and qword [rsp + 0x20], 0
movsxd r13, ecx
mov rax, rdi
cqo
idiv r13
mov rsi, rdx
xor edx, edx
lea r10d, [rax + 1]
mov rax, qword [r15 + 8]
mov rcx, qword [rax + 8]
mov eax, 0x40000000
div dword [rcx + 0x30]
inc eax
cmp r10d, eax
je 0x1400302a6
lea r8, [rsp + 0x20]
xor r9d, r9d
mov edx, r10d
mov rcx, r12
call qword [r12 + 0x108]
mov ebx, eax
test eax, eax
jne 0x140030297
mov rcx, qword [rsp + 0x20]
call fcn.14002273c
mov ebx, eax
test eax, eax
jne 0x140030297
mov rax, qword [rsp + 0x20]
movsxd r8, dword [rsp + 0x88]
add rsi, qword [rax + 8]
mov rax, rdi
cqo
mov rcx, rsi
idiv r14
add rdx, qword [rsp + 0x90]
call sub.msvcrt.dll_memcpy
mov r11, qword [rsp + 0x20]
mov rax, qword [r11 + 0x10]
mov byte [rax], bl
test rdi, rdi
jne 0x140030297
cmp dword [rsp + 0x98], edi
jne 0x140030297
mov rax, qword [r15 + 0x28]
mov rcx, qword [rax + 8]
mov edx, dword [rcx + 0x3c]
mov eax, edx
mov byte [rsi + 0x1f], dl
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 rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400302a6
call fcn.140022124
mov ecx, dword [rsp + 0x80]
add rdi, r13
test ebx, ebx
je 0x1400301c5
mov eax, ebx
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140049408
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
mov rdi, rdx
mov r8, rdx
mov dword [rax - 0x10], ebx
mov qword [rax - 0x18], rdx
lea r9, str.sqlite_master
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.14004da4c
test ebx, ebx
jne 0x14004945b
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 r9, rdi
mov rcx, rsi
call fcn.14004da4c
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14005a340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov r12, qword [rcx]
mov rbp, qword [rcx + 0x10]
mov rsi, qword [rcx + 0x88]
mov rdi, rcx
jmp 0x14005a41d
movsxd r8, dword [rsi + 0x10]
mov rax, qword [r12 + 0x20]
mov ebx, dword [rsi + 0x14]
mov r9, r8
xor edx, edx
mov rcx, rdi
shl r9, 5
mov dword [rsp + 0x20], reloc.WLDAP32.dll_Ordinal_97
mov r9, qword [r9 + rax + 0x18]
mov r9, qword [r9 + 0x68]
call fcn.140059edc
mov r8, qword [rsi + 8]
lea r13d, [rbx - 1]
mov r8, qword [r8]
mov edx, r13d
mov rcx, rbp
call fcn.1400320d4
xor r9d, r9d
lea r8, [0x1400d5410]
lea edx, [r9 + 0xc]
mov rcx, rbp
call fcn.1400325dc
test rax, rax
je 0x14005a426
mov ecx, 0x10
lea edx, [rbx + 2]
mov dword [rax + 8], ebx
mov word [rax + 0x4a], cx
lea ecx, [rbx + 1]
mov dword [rax + 0x3c], ebx
mov dword [rax + 0xc], edx
mov dword [rax + 0x4c], r13d
mov dword [rax + 0x54], ebx
mov dword [rax + 0x68], ecx
mov dword [rax + 0x84], ebx
mov dword [rax + 0x94], ebx
mov dword [rax + 0xb0], edx
mov dword [rax + 0xac], ebx
mov dword [rax + 0xf8], ebx
cmp dword [rdi + 0x34], 0
jne 0x14005a41a
mov dword [rdi + 0x34], 1
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14005a36e
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret

Function at 0x14005a440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, qword [rcx + 0x88]
mov r14, qword [rcx + 0x10]
mov r13, qword [rcx]
mov rbx, rcx
test rdi, rdi
je 0x14005a54a
mov r15d, 8
movsxd rbp, dword [rdi + 0x10]
mov al, byte [rbx + 0x1f]
mov r12d, dword [rdi + 0x14]
shl rbp, 5
add rbp, qword [r13 + 0x20]
test al, al
jne 0x14005a49b
inc dword [rbx + 0x38]
mov esi, dword [rbx + 0x38]
jmp 0x14005a4aa
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov esi, dword [rbx + rax*4 + 0xbc]
mov r9d, dword [r14 + 0x90]
lea r8d, [r12 + 2]
mov edx, 0x37
mov rcx, r14
add r9d, 7
mov dword [rsp + 0x20], r12d
call fcn.140032058
mov r9, qword [rbp + 0x18]
mov r8d, dword [rdi + 0x10]
mov r9, qword [r9 + 0x68]
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], 0x62
call fcn.140059edc
xor r9d, r9d
lea r8, [0x1400d5448]
lea edx, [r9 + 5]
mov rcx, r14
call fcn.1400325dc
test rax, rax
je 0x14005a54a
lea edx, [r12 + 1]
lea ecx, [r12 - 1]
mov dword [rax + 0x3c], esi
mov dword [rax + 0x50], esi
mov word [rax + 0x4a], r15w
mov dword [rax + 4], edx
mov dword [rax + 0x20], edx
mov dword [rax + 0x34], ecx
mov dword [rax + 0x54], edx
test esi, esi
je 0x14005a53e
cmp byte [rbx + 0x1f], r15b
jae 0x14005a53e
movzx eax, byte [rbx + 0x1f]
mov dword [rbx + rax*4 + 0xbc], esi
inc byte [rbx + 0x1f]
mov rdi, qword [rdi]
test rdi, rdi
jne 0x14005a47c
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret