Function at 0x40c960
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420b40
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x433fbc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x38]
xor ebx, ebx
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x34333241
mov dword [ebp - 0x1c], 0x38373635
mov dword [ebp - 0x18], 0x35343342
mov dword [ebp - 0x14], 0x39383736
mov dword [ebp - 0xa4], 0x1082
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], 0x10
mov dword [ebp - 0xb0], 0x1082
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], 0x10
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
xor eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
lea eax, [esi + 0x74]
mov dword [ebp - 0x40], eax
lea eax, [esi + 0x80]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x98]
mov dword [esi + 0x94], eax
lea eax, [ebp - 0x68]
push 1
push eax
push dword [esi + 0x34]
mov byte [ebp - 4], 1
push dword [esi + 0x64]
mov dword [ebp - 0x98], 1
mov dword [ebp - 0x44], pe_nt_image_headers32
mov dword [ebp - 0x3c], 4
mov dword [ebp - 0x38], 0x161
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x2c], 0x162
mov dword [ebp - 0x28], 0x4328c1
mov dword [ebp - 0x24], 1
mov dword [esi + 0x90], 0x1050
mov dword [esi + 0x98], 0x14
mov dword [ebp - 0x68], 0x181
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
call sub.cryptoki.dll_C_GetAttributeValue
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40cae1
push str._nError:_runEcdhDeriveWrapTests:_error_trying_to_get_CKA_EC_POINT_attribute__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.004148f0
add esp, 8
jmp 0x40cd8b
push dword [ebp - 0x60]
call fcn.0041e619
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x40cb10
push str._nError:_runEcdhDeriveWrapTests:_could_not_allocate_buffer_for_public_key__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.004148f0
add esp, 8
jmp 0x40cd8b
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x68]
push 1
push eax
push dword [esi + 0x34]
mov dword [ebp - 0x88], ecx
push dword [esi + 0x64]
mov dword [ebp - 0x64], ecx
call sub.cryptoki.dll_C_GetAttributeValue
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40cb5a
push str._nError:_runEcdhDeriveWrapTests:_error_trying_to_read_public_key_value__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.004148f0
add esp, 8
jmp 0x40cd8b
mov eax, dword [esi + 0xc8]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x90], eax
mov eax, dword [esi + 0xcc]
mov dword [ebp - 0x94], eax
mov eax, dword [esi + 0x8c]
push 0x400
mov dword [ebp - 0x98], eax
call fcn.0040a4a0
push 0x400
lea ecx, [ebp - 0x74]
call fcn.0040a4a0
mov al, byte [0x4342c8]
mov ebx, dword [ebp - 0x80]
test al, al
jne 0x40cd85
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x50], ecx
nop
cmp byte [esi + 0xb1], 0
jne 0x40cbe2
nop dword [eax]
push 1
call fcn.00401170
add esp, 4
cmp byte [0x4342c8], 0
jne 0x40cd8b
cmp byte [esi + 0xb1], 0
je 0x40cbc0
jmp 0x40cbea
test al, al
jne 0x40cd8b
cmp dword [ebp - 0x84], 0x74
jne 0x40cd63
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
push 3
lea eax, [ebp - 0x44]
push eax
push dword [esi + 0x30]
lea eax, [esi + 0x90]
push eax
push dword [esi + 0x64]
call sub.cryptoki.dll_C_DeriveKey
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x40cd3d
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x400
push eax
push ebx
push dword [ebp - 0x48]
lea eax, [ebp - 0xa4]
push dword [ebp - 0x58]
push eax
push dword [esi + 0x64]
call sub.cryptoki.dll_C_WrapKey
add esp, 0x18
mov edi, eax
cmp byte [0x4328c0], 0
je 0x40cc70
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x40cc70
push eax
push dword [esi + 0x64]
call sub.cryptoki.dll_C_DestroyObject
add esp, 8
mov dword [ebp - 0x48], 0
test edi, edi
jne 0x40cd17
cmp dword [ebp - 0x54], edi
jne 0x40ccc2
push dword [ebp - 0x58]
lea eax, [ebp - 0xb0]
mov dword [ebp - 0x54], 1
push eax
push dword [esi + 0x64]
mov dword [ebp - 0x5c], 0x400
call sub.cryptoki.dll_C_DecryptInit
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40ccf1
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x4c]
push ebx
push dword [esi + 0x64]
call sub.cryptoki.dll_C_Decrypt
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x40ccf1
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], 0x3f800000
push dword [esi + 0x54]
call fcn.00415cd0
mov al, byte [0x4342c8]
add esp, 0xc
test al, al
je 0x40cbb0
jmp 0x40cd8b
push edi
call fcn.0041e470
add esp, 4
push eax
push edi
push str._nError:_runEcdhDeriveWrapTests:_Error__08lx___s__on_C_Decrypt_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.004148f0
add esp, 0x10
jmp 0x40cd8b
push edi
call fcn.0041e470
add esp, 4
push eax
push edi
push str._nError:_runEcdhDeriveWrapTests:_Error__08lx___s__on_C_WrapKey_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.004148f0
add esp, 0x10
jmp 0x40cd8b
push edi
call fcn.0041e470
add esp, 4
push eax
push edi
push str._nError:_runEcdhDeriveWrapTests:_Error__08lx___s__on_C_DeriveKey_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.004148f0
add esp, 0x10
jmp 0x40cd8b
push str._nError:_CA_DeriveKeyAndWrap_not_available_n
push 2
mov dword [ebp - 0x4c], 0x400
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.004148f0
add esp, 8
jmp 0x40cd8b
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x50], eax
mov dword [esi + 0x24], edi
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x40cdbe
mov ecx, dword [ebp - 0x6c]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x40cdb4
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cde1
push ecx
push esi
call fcn.0041e5a7
add esp, 8
test ebx, ebx
je 0x40cdf1
mov ecx, dword [ebp - 0x78]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x40cde7
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40cde7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.0041e5a7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e5b5
mov esp, ebp
pop ebp
ret