joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140332dd0
Capabilities:
Encrypt or decrypt via wincrypt
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor r14d, r14d
mov r13, r9
mov dword [rax + 0x10], r14d
mov r12d, r8d
mov rbp, rdx
mov rsi, rcx
mov ebx, r14d
mov edi, r14d
test rdx, rdx
je 0x140332fe7
test r9, r9
je 0x140332fe7
mov r15, qword [rsp + 0xb0]
test r15, r15
je 0x140332fe7
cmp qword [rcx + 0x30], r14
jne 0x140332e36
mov ebx, 0x80049e51
jmp 0x140332fec
mov eax, dword [r15]
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes128_cbc
mov rcx, rbp
mov dword [rsp + 0x40], eax
mov dword [r15], r14d
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140332e5d
cmp dword [rsi + 0xc], 1
lea r14d, [rax + 0x10]
jmp 0x140332e99
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes192_cbc
mov rcx, rbp
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140332e7a
cmp dword [rsi + 0xc], 2
lea r14d, [rax + 0x18]
jmp 0x140332e99
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes256_cbc
mov rcx, rbp
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140332fe0
cmp dword [rsi + 0xc], 3
lea r14d, [rax + 0x20]
je 0x140332ea5
mov ebx, 0x80049e2e
jmp 0x140332fec
mov rcx, qword [rsi + 0x30]
lea rax, [rsp + 0x98]
xor r9d, r9d
add r12d, r14d
mov dword [rsp + 0x30], r12d
xor edx, edx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
mov dword [rsp + 0x98], r12d
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x140332f9b
mov ebp, dword [rsp + 0x98]
mov dword [r15], ebp
mov r15, qword [rsp + 0xb8]
test r15, r15
je 0x140332fec
cmp dword [rsp + 0x40], ebp
jae 0x140332f0d
mov ebx, 0x80049e19
jmp 0x140332fec
mov rcx, rbp
mov dword [rsp + 0x98], r12d
call fcn.1400b74d4
mov rdi, rax
test rax, rax
jne 0x140332f2f
mov ebx, 0x8007000e
jmp 0x140332fec
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.14001bade
mov r8d, dword [rsp + 0xa0]
mov rdx, r13
mov ecx, r14d
add rcx, rdi
call sub.msvcrt.dll_memcpy
mov ebx, 2
mov r8d, r14d
mov r9d, ebx
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
jne 0x140332fc7
mov rcx, qword [rsi + 0x30]
lea rax, [rsp + 0x98]
mov dword [rsp + 0x30], ebp
xor ebx, ebx
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rdi
lea r8d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x140332fb2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140332fec
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140332fec
mov r8d, dword [rsp + 0x98]
mov rdx, rdi
mov rcx, r15
call sub.msvcrt.dll_memcpy
jmp 0x140332fec
mov r9d, ebx
mov r8d, r14d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov ebx, eax
bts ebx, 0x1c
jmp 0x140332fec
mov ebx, 0x80049e5b
jmp 0x140332fec
mov ebx, 0x80070057
mov rcx, rdi
call fcn.14010bc98
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140333290
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi

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
xor ebp, ebp
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
je 0x140333421
test rbx, rbx
je 0x140333421
mov rcx, qword [rcx + 0x20]
call fcn.14010bc98
mov rcx, qword [rdi + 0x10]
mov qword [rdi + 0x20], rbp
call fcn.14010bc98
lea r15, [rdi + 0x30]
mov qword [rdi + 0x10], rbp
mov rcx, qword [r15]
mov dword [rdi + 0x18], ebp
test rcx, rcx
je 0x1403332f7
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [r15], rbp
lea r14, [rdi + 0x38]
cmp qword [r14], rbp
jne 0x140333328
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetElement
mov dword [rsp + 0x20], 0xf0000000
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140333403
mov rcx, qword [rdi + 0x10]
call fcn.14010bc98
or r8, 0xffffffffffffffff
mov qword [rdi + 0x10], rbp
mov rax, r8
inc rax
cmp word [rbx + rax*2], bp
jne 0x14033333c
lea ecx, [rax + 1]
mov dword [rdi + 0x18], eax
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.1400b74d4
mov qword [rdi + 0x10], rax
mov rcx, rax
test rax, rax
jne 0x140333375
mov ebx, 0x8007000e
jmp 0x14033342a
mov edx, dword [rdi + 0x18]
mov r8, rbx
inc edx
call fcn.140079ed4
mov ebx, eax
test eax, eax
jne 0x140333426
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes128_cbc
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1403333ad
mov edx, 0x660e
mov dword [rdi + 0xc], 1
jmp 0x1403333ed
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes192_cbc
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1403333ce
mov edx, 0x660f
mov dword [rdi + 0xc], 2
jmp 0x1403333ed
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes256_cbc
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14033341a
mov edx, 0x6610
mov dword [rdi + 0xc], 3
mov rcx, qword [r14]
mov r9, r15
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x140333447
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140333426
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140333426
mov ebx, 0x80049e2e
jmp 0x14033342a
mov ebx, 0x80070057
test ebx, ebx
jns 0x140333447
mov rcx, qword [rdi + 0x20]
call fcn.14010bc98
mov rcx, qword [rdi + 0x10]
mov qword [rdi + 0x20], rbp
call fcn.14010bc98
mov qword [rdi + 0x10], rbp
mov dword [rdi + 0x18], ebp
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140333618
Capabilities:
Create new key via cryptacquirecontext

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 rbp, r8
mov r15d, edx
mov rdi, rcx
test r8, r8
je 0x14033377a
cmp edx, 0x14
jbe 0x14033377a
mov rcx, qword [rcx + 0x20]
call fcn.14010bc98
mov rcx, qword [rdi + 0x10]
and qword [rdi + 0x20], 0
call fcn.14010bc98
and qword [rdi + 0x10], 0
lea r14, [rdi + 0x30]
mov rcx, qword [r14]
and dword [rdi + 0x18], 0
test rcx, rcx
je 0x140333681
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and qword [r14], 0
mov ecx, dword [rbp + 0xc]
shr ecx, 3
mov dword [rdi + 0x28], ecx
mov eax, dword [rbp + 0x10]
mov dword [rdi + 0x2c], eax
mov eax, ecx
shr eax, 1
add eax, 4
lea eax, [rax + rax*4]
lea ecx, [rax + rcx*2]
cmp r15d, ecx
jne 0x14033377a
mov rcx, qword [rdi + 0x20]
call fcn.14010bc98
mov ecx, dword [rdi + 0x28]
and qword [rdi + 0x20], 0
call fcn.1400b74d4
mov qword [rdi + 0x20], rax
test rax, rax
jne 0x1403336cf
mov ebx, 0x8007000e
jmp 0x14033377f
mov r8d, dword [rdi + 0x28]
lea rdx, [rbp + 0x14]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov r8d, 4
lea rdx, [rdi + 0x2c]
call fcn.140333dbc
mov ebx, eax
test eax, eax
jne 0x14033377f
mov r8d, dword [rdi + 0x28]
mov rdx, qword [rdi + 0x20]
call fcn.140333dbc
mov ebx, eax
test eax, eax
jne 0x14033377f
lea rsi, [rdi + 0x38]
cmp qword [rsi], 0
jne 0x140333737
lea r9d, [rax + 0x18]
mov dword [rsp + 0x20], 0xf0000000
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14033375a
mov rcx, qword [rsi]
xor r9d, r9d
mov qword [rsp + 0x28], r14
mov r8d, r15d
mov rdx, rbp
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x140333771
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14033377f
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14033377f
mov dword [rdi + 0xc], 4
jmp 0x14033377f
mov ebx, 0x80070057
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140333fdc
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x30
and qword [rbp + 0x28], 0
mov rdi, rdx
and qword [rbp + 0x30], 0
mov rsi, rcx
test rdx, rdx
jne 0x14033400a
mov ebx, 0x80070057
jmp 0x1403340f3
call fcn.140333f98
mov ebx, eax
test eax, eax
jne 0x1403340d3
lea r9d, [rax + 0x18]
mov dword [rsp + 0x20], 0xf0000000
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
xor edx, edx
lea rcx, [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1403340a5
lea rdx, str.http:__www.w3.org_2000_09_xmldsigsha1
mov rcx, rdi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140334056
mov edx, 0x8004
jmp 0x140334088
lea rdx, str.http:__www.w3.org_2001_04_xmlencsha256
mov rcx, rdi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140334070
mov edx, 0x800c
jmp 0x140334088
lea rdx, str.http:__www.w3.org_2001_04_xmlencsha512
mov rcx, rdi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1403340ce
mov edx, 0x800e
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1403340bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1403340d3
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1403340d3
mov rax, qword [rbp + 0x28]
mov qword [rsi + 0x10], rax
mov rax, qword [rbp + 0x30]
mov qword [rsi + 0x18], rax
jmp 0x1403340f3
mov ebx, 0x80049e5b
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x1403340e2
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x1403340f3
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140019f00
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140019f22
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140019f9c
mov rdi, r14
mov rcx, rbx
call fcn.14001ab10
test rax, rax
jle 0x140019f74
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1403ebbf0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140019f8c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140019f94
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140019f36
sub r14, rdi
jmp 0x14001a07f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140019fb3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140019fb5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140019fe7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1403ebbf0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14001a07c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001a022
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14001a05d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140161158
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14001a07c
cmp rbp, rax
ja 0x14001a030
test rbp, rbp
je 0x14001a07c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140161158
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140027970
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rbx, rcx
cmp qword [rcx + 0x30], rsi
jbe 0x1400279b5
add rcx, 0x20
cmp qword [rbx + 0x38], 7
jbe 0x140027999
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [rbx + 0x38], 7
lea rax, [rbx + 0x20]
jbe 0x1400279ae
mov rax, qword [rbx + 0x20]
mov qword [rbx + 0x30], rsi
mov word [rax], si
cmp qword [rbx + 0x10], rsi
lea rdi, [rbx + 0x10]
jbe 0x1400279e2
cmp qword [rbx + 0x18], 7
mov rcx, rbx
jbe 0x1400279cc
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp qword [rbx + 0x18], 7
jbe 0x1400279dc
mov rbx, qword [rbx]
mov qword [rdi], rsi
mov word [rbx], si
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400689d0
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14057b900]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, str.MBSetup
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rdi, rax
test rax, rax
jne 0x140068adb
lea rcx, [rsp + 0x30]
call fcn.140067d40
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 7
jbe 0x140068a2d
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x140594d50]
call fcn.14001df00
lea rdx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonSetupUtilities.cpp
mov rcx, rax
call fcn.140021910
mov rcx, rax
lea rdx, [0x1404df780]
call fcn.140021910
mov edx, 0x235
mov rcx, rax
call fcn.140020fa0
mov rcx, rax
lea rdx, str.:_Error_on_WinHttpOpen:
call fcn.140021910
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14001dd00
mov rcx, rax
call fcn.14001d5c0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140068ad4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140068acf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140068b76
call fcn.14014f510
xor eax, eax
jmp 0x140068b5e
mov dword [rsp + 0x54], 0x2a0
mov dword [rsp + 0x50], 0xaa0
mov r9d, 4
lea r8, [rsp + 0x50]
lea edx, [r9 + 0x50]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x140068b5b
lea r9d, [rax + 4]
lea r8, [rsp + 0x54]
lea edx, [rax + 0x54]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x140068b5b
lea rdx, str.Error_on_WinHttpSetOption_SECURE_PROTOCOLS_:
lea rcx, [0x140594d50]
call fcn.140021910
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14001dd00
mov rcx, rax
call fcn.14001d5c0
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x140068b5e
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014f4f0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
call fcn.14015fa1c
int3
Function at 0x1400846a0
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x14057b900]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov qword [rbp - 0x11], rsi
mov qword [rbp - 0x19], rsi
lea rax, vtable.std::_Func_impl_no_alloc_class__public:_static_bool___cdecl_MBCrypto::CalculateSHA256Hash_class_std::vector_unsigned_char__class_std::allocator_unsigned_char______ptr64__class_std::array_unsigned_char__32_____ptr64_::_2::_lambda_1___void___.0
mov qword [rbp - 0x61], rax
lea rax, [rbp - 0x19]
mov qword [rbp - 0x59], rax
lea rax, [rbp - 0x11]
mov qword [rbp - 0x51], rax
lea rax, [rbp - 0x61]
mov qword [rbp - 0x29], rax
lea rax, [rbp - 0x61]
mov qword [rbp - 0x69], rax
lea rax, [rbp - 9]
mov qword [rbp - 0x21], rax
mov qword [rbp + 0x2f], rsi
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x61]
call fcn.1400853b0
mov qword [rbp + 0x2f], rax
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140084733
mov rax, qword [rcx]
lea rdx, [rbp - 0x61]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1404f7378]
lea rcx, [rbp - 0x11]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
jns 0x140084752
xor bl, bl
jmp 0x1400847b4
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x19]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
js 0x1400847b2
mov rdx, qword [rbx]
mov r8, qword [rbx + 8]
sub r8, rdx
xor r9d, r9d
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
jns 0x140084796
xor bl, bl
jmp 0x1400847b4
xor r9d, r9d
lea r8d, [r9 + 0x20]
mov rdx, rdi
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
jns 0x1400847b2
xor bl, bl
jmp 0x1400847b4
mov bl, 1
mov rcx, qword [rbp + 0x2f]
test rcx, rcx
je 0x140084803
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x2f]
test rcx, rcx
je 0x1400847e1
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x20]
lea rax, [rbp - 9]
cmp rcx, rax
setne dl
call r8
nop
movzx eax, bl
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14014f4f0
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret
call fcn.14012da9c
nop
int3
Function at 0x140085560
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14057b900]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbp
mov ecx, 0x138a7
call fcn.14014f518
test rax, rax
je 0x14008570d
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
mov qword [rsp + 0x50], rdi
lea rsi, [rdi + 0x13880]
mov qword [rsp + 0x60], rsi
xor edx, edx
mov r8d, 0x13880
mov rcx, rdi
call fcn.1403ec370
mov qword [rsp + 0x58], rsi
mov rdi, qword [rsp + 0x50]
sub rsi, rdi
sar rsi, 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, esi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
mov dword [rsp + 0x20], 1
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov rdx, qword [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140085640
lea rcx, [rsp + 0x28]
call fcn.14001fb40
nop
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1400970f0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x1400856a3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008569d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140085707
call fcn.14014f510
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400856e1
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rdi, rcx
cmp rdx, 0x1000
jb 0x1400856dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rdi, rcx
add rdi, 0xfffffffffffffff8
cmp rdi, 0x1f
ja 0x14008570d
call fcn.14014f510
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14014f4f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14015fa1c
nop
call fcn.14015fa1c
int3

Function at 0x140086030
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14057b900]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call fcn.1403ec370
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
test eax, eax
jne 0x140086096
mov qword [rbx + 0x18], 7
mov word [rbx], di
jmp 0x1400860aa
mov qword [rbx + 0x18], rdi
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14001fb40
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14014f4f0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x140091090
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x60
mov rax, qword [0x14057b900]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r14d, r14d
mov rsi, rdx
cmp qword [rcx + 0x18], 0xf
mov rbx, rcx
mov dword [rsp + 0x54], r14d
jbe 0x1400910c0
mov rcx, qword [rcx]
mov edx, dword [rbx + 0x10]
lea rax, [rsp + 0x54]
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x98], rdi
lea r8d, [r9 + 6]
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x1400911fc
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x1400911fc
mov rbp, qword [rsi + 8]
mov edi, eax
mov rdx, qword [rsi]
mov rcx, rbp
sub rcx, rdx
mov byte [rsp + 0x50], r14b
cmp rax, rcx
jae 0x140091126
add rax, rdx
jmp 0x14009115a
jbe 0x14009115e
mov rax, qword [rsi + 0x10]
sub rax, rdx
cmp rdi, rax
jbe 0x140091146
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, rsi
call fcn.1400851d0
jmp 0x14009115e
sub rdi, rcx
xor edx, edx
mov r8, rdi
mov rcx, rbp
call fcn.1403ec370
lea rax, [rdi + rbp]
mov qword [rsi + 8], rax
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
jbe 0x14009116b
mov rcx, qword [rbx]
mov r9, qword [rsi]
lea rax, [rsp + 0x54]
mov edx, dword [rbx + 0x10]
mov r8d, 6
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x1400911f8
call fcn.14002c3f0
mov rdi, rax
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 0xf
jbe 0x1400911b4
mov rbx, qword [rbx]
mov dword [rsp + 0x40], eax
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonCrypto.cpp
mov qword [rsp + 0x38], rbx
lea rax, str.CryptStringToBinaryA_failed_for__hs._Error__u
mov qword [rsp + 0x30], rax
lea rdx, str.mb::common::crypto::DecodeBase64CertString
lea rax, [0x140500d10]
mov r9d, 0x3c6
mov qword [rsp + 0x28], rax
mov rcx, rdi
mov dword [rsp + 0x20], 1
call rsi
jmp 0x140091265
mov al, 1
jmp 0x140091267
call fcn.14002c3f0
mov ebp, dword [rsp + 0x54]
mov rdi, rax
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 0xf
jbe 0x14009121f
mov rbx, qword [rbx]
mov dword [rsp + 0x48], ebp
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonCrypto.cpp
mov dword [rsp + 0x40], eax
lea rdx, str.mb::common::crypto::DecodeBase64CertString
mov qword [rsp + 0x38], rbx
lea rax, str.CryptStringToBinaryA_returned_invalid_size_for__hs._Error__u_Size__u
mov qword [rsp + 0x30], rax
mov r9d, 0x3bf
lea rax, [0x140500d10]
mov rcx, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
call rsi
xor al, al
mov rdi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014f4f0
add rsp, 0x60
pop r14
pop rsi
pop rbx
ret