Function at 0x140132b00
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x4e8]
sub rsp, 0x5d0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rbp + 0x4c0], rax
mov rsi, rdx
mov qword [rsp + 0x48], rdx
lea r15, vtable.CCrypt.0
mov qword [rbp + 0x78], r15
xor r14d, r14d
mov qword [rbp + 0x80], r14
mov qword [rbp + 0x88], r14
mov qword [rbp + 0x90], r14
lea rdx, str.4C78F73E_E4A3_4406_9967_AC8DBCC9B811
lea rcx, [rbp + 0x78]
call fcn.14006f490
lea rdi, [r14 - 1]
test eax, eax
je 0x140132daa
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], r14
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x2b0]
call fcn.140222790
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xa0]
call fcn.140222790
mov r8d, 0x104
lea rdx, [rbp + 0xa0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [rdi + 0x5d]
lea rcx, [rbp + 0xa0]
call fcn.140221398
test rax, rax
je 0x140132be7
mov word [rax + 2], r14w
jmp 0x140132bef
mov word [rbp + 0xa0], r14w
lea r8, str.NoiseRiderSupportedDeviceInfo.xml
mov edx, 0x104
lea rcx, [rbp + 0xa0]
call fcn.140242df8
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x50]
call fcn.140222790
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x50]
call fcn.14012e990
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
cmp dword [rsp + rcx + 0x60], 0
jne 0x140132c57
mov r9d, 0x103
lea r8, [rbp + 0xa0]
lea edx, [r9 + 1]
lea rcx, [rbp + 0x2b0]
call fcn.140247d24
lea rax, [rbp + 0x2b0]
mov rbx, rdi
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140132c61
lea rcx, [rsp + 0x50]
call fcn.14005a820
test rbx, rbx
je 0x140132d35
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x2b0]
call fcn.14012e0b0
test al, al
je 0x140132d35
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x60]
sub rax, rcx
mov dword [rbp + 0x98], eax
lea rax, [rbp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptDecrypt]
test eax, eax
je 0x140132d35
mov r8, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
sub r8, rdx
mov rcx, rsi
call fcn.140133880
nop
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x140132dfe
mov rdx, qword [rbp + 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140132d1f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140132e82
call fcn.140202ee8
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], r14
jmp 0x140132dfe
lea rax, str.CNoiseRiderSupportedDevice::DecryptXML_fail
mov qword [rsp + 0x30], rax
lea rax, [0x14031b830]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov r9d, 2
lea r8, [0x1404675c0]
lea edx, [r9 + 0x2b]
lea rcx, str.d:jenkinsworkspacemainrel4_dellconsumermainrel4_dellconsumerplatform_vista_shared_noiseridersupporteddevice.cpp
call fcn.140039f30
nop
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x140132daa
mov rdx, qword [rbp + 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140132da5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140132e88
call fcn.140202ee8
call fcn.140039c50
mov rcx, rax
test rax, rax
je 0x140132e77
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14004487d.0]
add rax, 0x18
mov qword [rsi], rax
lea rbx, [0x14031b7bc]
mov rdx, rbx
mov rcx, rsi
call fcn.14003b370
test al, al
jne 0x140132dfe
inc rdi
cmp word [rbx + rdi*2], 0
jne 0x140132de5
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
call fcn.14003beb0
nop
mov rcx, qword [rbp + 0x88]
test rcx, rcx
mov qword [rbp + 0x78], r15
je 0x140132e1b
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptDestroyHash]
mov qword [rbp + 0x88], r14
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x140132e34
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptDestroyKey]
mov qword [rbp + 0x80], r14
mov rcx, qword [rbp + 0x90]
test rcx, rcx
je 0x140132e48
xor edx, edx
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptReleaseContext]
mov rax, rsi
mov rcx, qword [rbp + 0x4c0]
xor rcx, rsp
call fcn.140202880
lea r11, [rsp + 0x5d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 0x80004005
call fcn.140039950
int3
call fcn.140238390
int3
call fcn.140238390
int3