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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov r9d, dword [rcx]
xor ebx, ebx
mov r10, r8
mov r11, rdx
mov rbp, rcx
test r9d, r9d
je 0x14000edff
cmp r9d, 1
jne 0x14000ee38
call fcn.14000ec04
test rax, rax
mov r11, rax
setne bl
test ebx, ebx
je 0x14000ee38
mov edi, dword [rax + 8]
mov rcx, qword [rsp + 0x60]
btr edi, 0x1f
test rcx, rcx
je 0x14000edb5
mov eax, dword [rax + 0x10]
mov dword [rcx], eax
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x14000ee38
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000edfb
xor ebx, ebx
cmp dword [rsi], edi
setae bl
test ebx, ebx
je 0x14000edfb
bt dword [r11 + 8], 0x1f
jae 0x14000ede2
lea rdx, [r11 + 0xc]
jmp 0x14000edf3
mov rax, qword [rbp + 8]
movsxd r8, dword [r11 + 0xc]
mov rdx, qword [rax + 0x10]
lea rdx, [r8 + rdx + 4]
mov r8d, edi
call sub.msvcrt.dll_memcpy
mov dword [rsi], edi
jmp 0x14000ee38
mov rax, qword [rsp + 0x70]
mov r9, qword [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov rdx, r10
mov rcx, r11
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
test ebx, ebx
jne 0x14000ee38
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
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 0x14000ee50
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 0x14000eee5
cmp r9d, 1
jne 0x14000ef1c
call fcn.14000ec04
mov r11, rax
test rax, rax
je 0x14000ef1c
mov ecx, dword [rax + 8]
mov r8d, ecx
btr r8d, 0x1f
cmp r8d, dword [rsp + 0x70]
setae bl
test ebx, ebx
je 0x14000eede
mov eax, dword [rsp + 0x60]
and ecx, 0x80000000
or ecx, dword [rsp + 0x70]
mov dword [r11 + 0x10], eax
bt ecx, 0x1f
mov dword [r11 + 8], ecx
jae 0x14000eec1
lea rcx, [r11 + 0xc]
jmp 0x14000eed2
mov rax, qword [rdi + 8]
movsxd rdx, dword [r11 + 0xc]
mov rcx, qword [rax + 0x10]
lea rcx, [rdx + rcx + 4]
mov rdx, qword [rsp + 0x68]
call sub.msvcrt.dll_memcpy
jmp 0x14000ef1c
mov ecx, Ordinal_54
jmp 0x14000ef16
mov eax, dword [rsp + 0x70]
mov r9d, dword [rsp + 0x60]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x68]
mov rdx, r10
mov rcx, r11
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test ebx, ebx
jne 0x14000ef1c
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 0x140011790
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 [0x140140278], rbp
je 0x14001190a
cmp dword [0x140140270], ebp
je 0x14001190a
cmp dword [rcx], 0x14
jb 0x140011901
test rsi, rsi
je 0x140011901
lea rcx, [rsp + 0x50]
call sub.cryptdll.dll_MD5Init
mov r8d, dword [0x140140270]
mov rdx, qword [0x140140278]
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 0x1400118f8
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 0x1400118ef
mov edx, dword [rsp + 0xe8]
cmp edx, dword [r12]
jne 0x1400118dd
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 0x140011916
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 0x140011916
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140011916
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.14000c030
jmp 0x140011916
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___Unable_to_calculate_CRC32_n
jmp 0x140011911
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___RtlDecryptData2_n
jmp 0x140011911
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_valid_data_n
jmp 0x140011911
lea rcx, str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_Session_Key_n
call fcn.14000c030
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 0x1400125c4
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 0x14001261f
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 0x1400126bc
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 0x140012722
mov r8d, 0x10000
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
cmp rax, rbx
je 0x140012719
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 0x1400129b4
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 0x140012b5d
lea r8d, [rsi + 0x10]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140012a2a
lea rcx, str.____s_service_already_registered_n
mov rdx, rbx
call fcn.14000c030
jmp 0x140012af5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x140012ae1
lea rcx, str.____s_service_not_present_n
mov rdx, rbx
call fcn.14000c030
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 0x140012ad2
lea rcx, str.____s_service_successfully_registered_n
mov rdx, rbx
call fcn.14000c030
mov rcx, rdi
call fcn.140012824
mov esi, eax
test eax, eax
je 0x140012ac3
lea rcx, str.____s_service_ACL_to_everyone_n
jmp 0x140012a1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___kull_m_service_addWorldToSD__0x_08x__n
jmp 0x140012aee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___CreateService__0x_08x__n
jmp 0x140012aee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___OpenService__0x_08x__n
mov edx, eax
call fcn.14000c030
test rdi, rdi
je 0x140012b52
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov esi, eax
test eax, eax
je 0x140012b17
lea rcx, str.____s_service_started_n
jmp 0x140012b2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x140012b35
lea rcx, str.____s_service_already_started_n
mov rdx, rbx
call fcn.14000c030
jmp 0x140012b49
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___StartService__0x_08x__n
mov edx, eax
call fcn.14000c030
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140012b71
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.14000c030
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 0x1400136d4
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 0x14001375e
mov edx, dword [rsi]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x14001375e
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 0x14001375e
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 0x140013848
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 0x14001395a
mov r8, r12
mov rdx, r14
mov rcx, rax
mov rsi, r12
call sub.msvcrt.dll_memcpy
cmp r12d, ebx
jbe 0x1400138d3
mov rax, rdi
cmp byte [rax], 0x2d
jne 0x1400138b9
mov byte [rax], reloc.ODBC32.dll_SQLGetData
jmp 0x1400138ca
cmp byte [rax], 0x5f
jne 0x1400138c3
mov byte [rax], 0x2f
jmp 0x1400138ca
cmp byte [rax], bl
jne 0x1400138ca
mov byte [rax], 0x3d
inc rax
sub rsi, 1
jne 0x1400138af
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 0x14001394f
mov edx, dword [r13]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp], rax
cmp rax, rbx
je 0x14001394f
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 0x14001394f
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 0x140013fe0
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 0x1400140b5
mov eax, dword [rsp + 0x78]
cmp eax, 1
jne 0x14001406f
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 0x140014079
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___DuplicateTokenEx__0x_08x__n
mov edx, eax
call fcn.14000c030
mov eax, dword [rsp + 0x78]
jmp 0x140014074
mov qword [rsp + 0x38], rsi
cmp eax, 1
je 0x1400140c9
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 0x1400140a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___CheckTokenMembership__0x_08x__n
mov edx, eax
call fcn.14000c030
test edi, edi
je 0x1400140c9
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400140c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___GetTokenInformation__0x_08x__n
mov edx, eax
call fcn.14000c030
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 0x14005a64c
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 0x14005a729
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.14005a1e8
mov r8, qword [rsi + 8]
lea r13d, [rbx - 1]
mov r8, qword [r8]
mov edx, r13d
mov rcx, rbp
call fcn.1400323e0
xor r9d, r9d
lea r8, [0x1400d7540]
lea edx, [r9 + 0xc]
mov rcx, rbp
call fcn.1400328e8
test rax, rax
je 0x14005a732
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 0x14005a726
mov dword [rdi + 0x34], 1
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14005a67a
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 0x14005a74c
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 0x14005a856
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 0x14005a7a7
inc dword [rbx + 0x38]
mov esi, dword [rbx + 0x38]
jmp 0x14005a7b6
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.140032364
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.14005a1e8
xor r9d, r9d
lea r8, [0x1400d7578]
lea edx, [r9 + 5]
mov rcx, r14
call fcn.1400328e8
test rax, rax
je 0x14005a856
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 0x14005a84a
cmp byte [rbx + 0x1f], r15b
jae 0x14005a84a
movzx eax, byte [rbx + 0x1f]
mov dword [rbx + rax*4 + 0xbc], esi
inc byte [rbx + 0x1f]
mov rdi, qword [rdi]
test rdi, rdi
jne 0x14005a788
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
Function at 0x1400854b4
Capabilities:
Set console window title

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 r14
mov eax, 0x20020
call sub.ntdll.dll___chkstk
sub rsp, rax
movsxd rdi, ecx
mov rcx, qword [sym.imp.msvcrt.dll__iob]
xor r14d, r14d
add rcx, 0x30
mov rbp, rdx
mov ebx, r14d
call qword [sym.imp.msvcrt.dll__fileno]
mov esi, 0x40000
mov ecx, eax
mov edx, esi
call qword [sym.imp.msvcrt.dll__setmode]
mov rcx, qword [sym.imp.msvcrt.dll__iob]
add rcx, 0x60
mov dword [0x140140838], eax
call qword [sym.imp.msvcrt.dll__fileno]
mov edx, esi
mov ecx, eax
call qword [sym.imp.msvcrt.dll__setmode]
mov dword [0x140140840], eax
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ecx, 0xfde9
mov dword [0x14014083c], eax
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea rcx, str.mimikatz_2.2.0_x64__oe.eo_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea edx, [r14 + 1]
lea rcx, [0x1400856e0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, str._n__..___mimikatz_2.2.0__x64__19041_Sep_19_2022_17:44:08_n_.__.___A_La_Vie__A_LAmour_____oe.eo__n_________Benjamin_DELPY__gentilkiwi____benjamin_gentilkiwi.com___n______________https:__blog.gentilkiwi.com_mimikatz_n__v________Vincent_LE_TOUX_______________vincent.letoux_gmail.com___n____________https:__pingcastle.com___https:__mysmartlogon.com___n
call fcn.14000c030
lea ecx, [r14 + 1]
call fcn.1400856f4
lea esi, [r14 + 1]
cmp rsi, rdi
jge 0x1400855be
cmp ebx, 0xc000010a
je 0x140085655
cmp ebx, 0xc000004b
je 0x140085649
mov rdx, qword [rbp + rsi*8]
lea rcx, str._nmimikatz_commandline____s_n
call fcn.14000c030
mov rcx, qword [rbp + rsi*8]
call fcn.1400857f4
inc rsi
cmp rsi, rdi
mov ebx, eax
jl 0x14008557c
jmp 0x140085649
cmp ebx, 0xc000004b
je 0x140085655
lea rcx, str._nmimikatz_
call fcn.14000c030
mov rcx, qword [sym.imp.msvcrt.dll__iob]
call qword [sym.imp.msvcrt.dll_fflush]
mov r8, qword [sym.imp.msvcrt.dll__iob]
lea rcx, [rsp + 0x20]
mov edx, 0xffff
call qword [sym.imp.msvcrt.dll_fgetws]
cmp rax, r14
je 0x140085649
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
je 0x140085649
cmp word [rsp + 0x20], 0xa
je 0x140085649
cmp word [rsp + rcx*2 + 0x1e], 0xa
jne 0x14008562c
mov word [rsp + rcx*2 + 0x1e], r14w
lea rdx, [rsp + 0x20]
lea rcx, [0x1400f7d88]
call fcn.14000c178
lea rcx, [rsp + 0x20]
call fcn.1400857f4
mov ebx, eax
cmp ebx, 0xc000010a
jne 0x1400855be
mov ecx, ebx
call fcn.140085660
int3
Function at 0x14008e8a4
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xc0
mov rdi, r9
mov esi, edx
mov rbx, rcx
cmp edx, 3
jb 0x14008ea08
mov r11w, word [rcx]
lea r10, [0x1400d3fc4]
cmp r11w, word [r10]
jne 0x14008e8e6
mov r11b, byte [rcx + 2]
cmp r11b, byte [r10 + 2]
jne 0x14008e8e6
xor eax, eax
jmp 0x14008e8eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x14008ea08
test r8, r8
je 0x14008e9fa
test r9, r9
je 0x14008e9fa
lea rcx, str.__using_BCrypt_with_AES_256_GCM_n
call fcn.14000c030
xor edx, edx
lea rcx, [rsp + 0x60]
lea r8d, [rdx + 0x58]
call sub.msvcrt.dll_memset
lea eax, [rsi - 0x1f]
lea rcx, [rbx + 3]
mov qword [rsp + 0x68], rcx
lea rcx, [rsi + rcx - 0x13]
mov edx, eax
mov qword [rsp + 0x88], rcx
mov ecx, 0x40
mov dword [rsp + 0x60], reloc.WLDAP32.dll_Ordinal_88
mov dword [rsp + 0x64], 1
mov dword [rsp + 0x70], reloc.WLDAP32.dll_Ordinal_12
mov dword [rsp + 0x90], SQLAllocHandle
mov dword [rsp + 0xd8], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14008ea7f
and dword [rsp + 0x48], 0
mov edx, dword [rsp + 0x70]
mov r8d, dword [rsp + 0xd8]
add rdx, qword [rsp + 0x68]
lea rax, [rsp + 0xd8]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r8d
mov qword [rsp + 0x30], rbx
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov rcx, rdi
call sub.bcrypt.dll_BCryptDecrypt
test eax, eax
js 0x14008e9e7
mov r8d, dword [rsp + 0xd8]
mov rdx, qword [rsp + 0x100]
lea rcx, str._s:__.S_n
mov r9, rbx
call fcn.14000c030
jmp 0x14008e9f5
lea rcx, str.ERROR_kuhl_m_dpapi_chrome_decrypt___BCryptDecrypt:_0x_08x_n
mov edx, eax
call fcn.14000c030
mov rcx, rbx
jmp 0x14008ea79
lea rcx, str.ERROR_kuhl_m_dpapi_chrome_decrypt___No_Alg_and_or_Key_handle_despite_AES_encryption_n
call fcn.14000c030
jmp 0x14008ea7f
and qword [rsp + 0x48], 0
mov r9d, dword [rsp + 0xf0]
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xf8]
and dword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov edx, esi
mov qword [rsp + 0x20], rax
call fcn.14008c9b4
test eax, eax
je 0x14008ea7f
mov r9, qword [rsp + 0x50]
mov r8d, dword [rsp + 0xd8]
mov rdx, qword [rsp + 0x100]
lea rcx, str._s:__.S_n
call fcn.14000c030
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret