Function at 0x180021f40
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0x150
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180272190]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r14, rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
cmp qword [rcx + 0x28], r12
je 0x18002226d
lea r15, [0x1801ca568]
mov rbx, r15
mov rbx, qword [rcx + 0x18]
lea rdx, [0x1801de1f0]
mov rcx, rbx
call fcn.180169dd0
mov rsi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1800222a8
mov edx, 5
lea rcx, [rsp + 0xb0]
call sym.WebKeyAPICPPDLLx64.dll_public:_void___cdecl_WKDataPackage::constructor_enum_WKDP_Enum::ERole____ptr64
nop
mov rbx, qword [r14 + 0x60]
mov rax, qword [rsp + 0x138]
test rax, rax
jne 0x180021ffc
lea ecx, [rax + 0x38]
call fcn.180152604
mov qword [rsp + 0x40], rax
mov rcx, rax
call fcn.1800cb7d0
nop
mov qword [rsp + 0x138], rax
xor r9d, r9d
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.1800cd010
mov rdi, r12
nop
cmp rdi, qword [r14 + 0x60]
jae 0x1800220be
mov qword [rsp + 0x38], r12
mov rax, qword [r14 + 0x58]
lea rdx, [rsp + 0x50]
mov rcx, qword [rax + rdi*8]
call sym.WebKeyAPICPPDLLx64.dll_public:_class_WKBinary___cdecl_WKCertData::ToBinary_void____ptr64
mov rbx, qword [rax]
mov qword [rsp + 0x38], rbx
test rbx, rbx
je 0x180022041
inc dword [rbx + 0x10]
lea rcx, [rsp + 0x50]
call sym.WebKeyAPICPPDLLx64.dll_public:_void___cdecl_WKBinary::Clear_void____ptr64
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x180022058
inc dword [rbx + 0x10]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x138]
test rax, rax
jne 0x18002208d
lea ecx, [rax + 0x38]
call fcn.180152604
mov qword [rsp + 0x48], rax
mov rcx, rax
call fcn.1800cb7d0
nop
mov qword [rsp + 0x138], rax
lea edx, [rdi + 1]
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rcx, rax
call fcn.1800cd320
nop
lea rcx, [rsp + 0x30]
call sym.WebKeyAPICPPDLLx64.dll_public:_void___cdecl_WKBinary::Clear_void____ptr64
nop
lea rcx, [rsp + 0x38]
call sym.WebKeyAPICPPDLLx64.dll_public:_void___cdecl_WKBinary::Clear_void____ptr64
inc rdi
jmp 0x180022010
mov rdx, r15
lea rcx, [rsp + 0xb0]
call sym.WebKeyAPICPPDLLx64.dll_protected:_void___cdecl_WKString::Set_char_const____ptr64____ptr64
lea rcx, [rsp + 0xb0]
call sym.WebKeyAPICPPDLLx64.dll_public:_bool___cdecl_WKDataPackage::EncodeMessage_void____ptr64
test al, al
je 0x1800222b8
mov rbx, qword [rsp + 0x128]
mov qword [rsp + 0x48], rbx
test rbx, rbx
je 0x1800220f8
inc dword [rbx + 0x10]
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x180022105
inc dword [rbx + 0x10]
lea rcx, [rsp + 0x48]
call sym.WebKeyAPICPPDLLx64.dll_public:_void___cdecl_WKBinary::Clear_void____ptr64
cmp qword [r14 + 0x50], 0
jbe 0x1800221e5
mov qword [rsp + 0x48], r12
mov r15, qword [r14 + 0x40]
mov r8, r15
lea rdx, [rsp + 0x38]
mov rcx, r14
call sym.WebKeyAPICPPDLLx64.dll_private:_class_WKBinary___cdecl_WKCertFileStorage::MakeAESKeyFromPassword_char_const____ptr64____ptr64
mov rdi, qword [rax]
mov qword [rsp + 0x48], rdi
test rdi, rdi
je 0x180022143
inc dword [rdi + 0x10]
lea rcx, [rsp + 0x38]
call sym.WebKeyAPICPPDLLx64.dll_public:_void___cdecl_WKBinary::Clear_void____ptr64
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], rbx
test rbx, rbx
je 0x18002215f
inc dword [rbx + 0x10]
test rdi, rdi
je 0x180022169
mov r8, qword [rdi]
jmp 0x18002216c
mov r8, r12
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call sym.WebKeyAPICPPDLLx64.dll_public:_static_class_WKBinary___cdecl_WKCertFileStorage::EncryptBlob_class_WKBinary__unsigned_char____ptr64_
mov rdi, qword [rax]
mov qword [rsp + 0x30], rdi
test rdi, rdi
je 0x18002218b
inc dword [rdi + 0x10]
lea rcx, [rsp + 0x40]
call sym.WebKeyAPICPPDLLx64.dll_public:_void___cdecl_WKBinary::Clear_void____ptr64
test rbx, rbx
je 0x1800221c0
sub dword [rbx + 0x10], 1
jne 0x1800221c0
cmp byte [rbx + 0xc], 0
je 0x1800221b3
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800221b3
call fcn.1801525f4
mov edx, Ordinal_26
mov rcx, rbx
call fcn.1801525f4
mov rbx, rdi
mov qword [rsp + 0x50], rbx
test rdi, rdi
je 0x1800221d0
inc dword [rdi + 0x10]
lea rcx, [rsp + 0x30]
call sym.WebKeyAPICPPDLLx64.dll_public:_void___cdecl_WKBinary::Clear_void____ptr64
nop
lea rcx, [rsp + 0x48]
call sym.WebKeyAPICPPDLLx64.dll_public:_void___cdecl_WKBinary::Clear_void____ptr64
test rbx, rbx
je 0x1800221f2
mov eax, dword [rbx + 8]
mov rcx, qword [rbx]
jmp 0x1800221f8
mov eax, r12d
mov rcx, r12
movsxd rbx, eax
mov r8d, eax
mov r9, rsi
mov edx, 1
call fcn.18016a114
cmp rax, rbx
jne 0x18002235a
test rsi, rsi
je 0x180022221
mov rcx, rsi
call fcn.180169e60
mov qword [rsp + 0x58], r12
lea rcx, [rsp + 0x50]
call sym.WebKeyAPICPPDLLx64.dll_public:_void___cdecl_WKBinary::Clear_void____ptr64
nop
lea rcx, [rsp + 0xb0]
call sym.WebKeyAPICPPDLLx64.dll_public:_void___cdecl_WKDataPackage::destructor_void____ptr64
nop
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1801525d0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
lea ecx, [r12 + 0x38]
call fcn.180152604
mov qword [rsp + 0x58], rax
lea r8, str.Certificate_storage_not_open
mov edx, 0x40d
mov rcx, rax
call sym.WebKeyAPICPPDLLx64.dll_public:_void___cdecl_WKException::constructor_unsigned_int__char_const____ptr64____ptr64
nop
mov qword [rsp + 0x60], rax
lea rdx, [0x1802460c0]
lea rcx, [rsp + 0x60]
call fcn.180155078
nop
call fcn.18016ad64
mov rdx, rbx
mov ecx, dword [rax]
call fcn.1800cb250
nop
cmp qword [rsp + 0xd0], 0
cmovne r15, qword [rsp + 0xc0]
mov qword [rsp + 0x28], r15
lea rax, str.false
mov qword [rsp + 0x20], rax
lea r9, str.EncodeMessage_RC_s__ErrorStr:__s
lea r8, str.Encode
mov edx, 0x1b1
lea rcx, str.d:projectsweb_key4.1wkey4.1commonwebkeyutilwkdatapackage.cpp
call fcn.1800cb650
mov ecx, gethostname
call fcn.180152604
mov rbx, rax
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0xb0]
call sym.WebKeyAPICPPDLLx64.dll_public:_class_WKString___cdecl_WKSkin::GetGUID_void____ptr64
nop
mov dword [rsp + 0x30], 1
mov rcx, rax
call sym.WebKeyAPICPPDLLx64.dll_public:_char____ptr64___cdecl_WKString::operator_char____ptr64_void____ptr64
mov r8, rax
mov edx, 0x3ea
mov rcx, rbx
call sym.WebKeyAPICPPDLLx64.dll_public:_void___cdecl_WKException::constructor_unsigned_int__char_const____ptr64____ptr64
nop
mov qword [rsp + 0x68], rax
lea rdx, [0x1802460c0]
lea rcx, [rsp + 0x68]
call fcn.180155078
nop
call fcn.18016ad64
xor edx, edx
mov ecx, dword [rax]
call fcn.1800cb250
int3