Function at 0x10004480
Capabilities:
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1016a75e
push eax
mov dword fs:[0], esp
sub esp, 0xa74
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov eax, dword [esi + 0xc]
cmp eax, ebp
jne 0x100044c1
push 0x10198828
lea ecx, [esi + 0x10]
call fcn.10154630
mov eax, 0x9d1
jmp 0x1000500e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.C_DestroyObject
push eax
call edi
cmp eax, ebp
mov dword [esp + 0x20], eax
jne 0x100044e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.C_DestroyObject
jmp 0x10004570
mov eax, dword [esi + 0xc]
push str.C_GenerateKey
push eax
call edi
cmp eax, ebp
mov dword [esp + 0x80], eax
jne 0x1000450c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.C_GenerateKey
jmp 0x10004570
mov ecx, dword [esi + 0xc]
push str.C_EncryptInit
push ecx
call edi
cmp eax, ebp
mov dword [esp + 0x7c], eax
jne 0x1000452d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.C_EncryptInit
jmp 0x10004570
mov edx, dword [esi + 0xc]
push str.C_Encrypt
push edx
call edi
cmp eax, ebp
mov dword [esp + 0x84], eax
jne 0x10004551
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.C_Encrypt
jmp 0x10004570
mov eax, dword [esi + 0xc]
push str.C_UnwrapKey
push eax
call edi
cmp eax, ebp
mov dword [esp + 0x78], eax
jne 0x1000458b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.C_UnwrapKey
add esi, 0x10
push 0x1019879c
push esi
call fcn.101552a0
add esp, 0x10
mov eax, 0x9d0
jmp 0x1000500e
lea edi, [esi + 0x24]
mov dword [esp + 0x38], ebp
mov ecx, edi
call fcn.10154280
test eax, eax
jne 0x100045b4
push str.set_CKA_ID.
lea ecx, [esi + 0x10]
call fcn.10154630
mov eax, 0x9ca
jmp 0x1000500e
lea ecx, [esp + 0x38]
mov ebx, 1
push ecx
push edi
push ebx
mov ecx, esi
call fcn.1000a060
test eax, eax
jne 0x1000465f
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x1000465f
mov edx, dword [esi + 8]
push eax
push edx
call dword [esp + 0x28]
add esp, 8
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x1000465f
lea ecx, [esp + 0xa8]
call fcn.10154190
push str.private_key
lea eax, [esp + 0xac]
push 0x10198c40
push eax
mov dword [esp + 0xa98], ebp
call fcn.101552a0
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
lea ecx, [esp + 0xac]
call fcn.10154a90
push eax
push str.C_DestroyObject
push 0x1f50
mov ecx, esi
call fcn.1000a610
lea ecx, [esp + 0xa8]
mov esi, eax
mov dword [esp + 0xa8c], 0xffffffff
call fcn.10154250
mov eax, esi
jmp 0x1000500e
lea ecx, [esp + 0x50]
mov dword [esp + 0x30], 4
mov dword [esp + 0x24], 0x15
mov byte [esp + 0x13], bl
mov byte [esp + 0x14], 0
call fcn.10154190
push str.bsDES3Label
lea ecx, [esp + 0x54]
mov dword [esp + 0xa90], ebx
call fcn.10154630
lea edx, [esp + 0x30]
lea ecx, [esp + 0x24]
mov dword [esp + 0x164], edx
mov eax, 4
mov dword [esp + 0x170], ecx
lea edx, [esp + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0x168], eax
mov dword [esp + 0x174], eax
mov dword [esp + 0x17c], edx
lea eax, [esp + 0x13]
mov dword [esp + 0x194], ecx
lea edx, [esp + 0x13]
lea ecx, [esp + 0x14]
mov dword [esp + 0x188], eax
mov dword [esp + 0x1a0], edx
lea eax, [esp + 0x13]
mov dword [esp + 0x1b8], ecx
lea edx, [esp + 0x14]
lea ecx, [esp + 0x13]
mov dword [esp + 0x1ac], eax
mov dword [esp + 0x1c4], edx
lea eax, [esp + 0x13]
mov dword [esp + 0x1dc], ecx
lea edx, [esp + 0x13]
lea ecx, [esp + 0x50]
mov dword [esp + 0x160], ebp
mov dword [esp + 0x16c], 0x100
mov dword [esp + 0x178], ebx
mov dword [esp + 0x180], ebx
mov dword [esp + 0x184], 0x103
mov dword [esp + 0x18c], ebx
mov dword [esp + 0x190], 2
mov dword [esp + 0x198], ebx
mov dword [esp + 0x19c], 0x104
mov dword [esp + 0x1a4], ebx
mov dword [esp + 0x1a8], 0x105
mov dword [esp + 0x1b0], ebx
mov dword [esp + 0x1b4], 0x108
mov dword [esp + 0x1bc], ebx
mov dword [esp + 0x1c0], 0x10a
mov dword [esp + 0x1c8], ebx
mov dword [esp + 0x1cc], 0x106
mov dword [esp + 0x1d0], eax
mov dword [esp + 0x1d4], ebx
mov dword [esp + 0x1d8], 0x107
mov dword [esp + 0x1e0], ebx
mov dword [esp + 0x1e4], 0x10c
mov dword [esp + 0x1e8], edx
mov dword [esp + 0x1ec], ebx
mov dword [esp + 0x1f0], 3
call fcn.10154a90
lea ecx, [esp + 0x50]
mov dword [esp + 0x1f4], eax
call fcn.10154280
mov dword [esp + 0x1f8], eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esi + 8]
lea ecx, [esp + 0x164]
push 0xd
lea edx, [esp + 0xc4]
push ecx
push edx
push eax
mov dword [esp + 0xd0], 0x131
mov dword [esp + 0xd4], ebp
mov dword [esp + 0xd8], ebp
call dword [esp + 0x94]
add esp, 0x14
cmp eax, ebp
je 0x1000487a
push eax
push 0x10198c14
push str.C_GenerateKey
push 0x1397
mov ecx, esi
call fcn.1000a610
mov esi, eax
jmp 0x10004ee8
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], 0x31
mov dword [esp + 0x8c], ecx
lea ecx, [esp + 0x64]
mov byte [esp + 0x29], 0x32
mov byte [esp + 0x2a], 0x33
mov byte [esp + 0x2b], 0x34
mov byte [esp + 0x2c], 0x35
mov byte [esp + 0x2d], 0x36
mov byte [esp + 0x2e], 0x37
mov byte [esp + 0x2f], 0x38
mov dword [esp + 0x88], 0x133
mov dword [esp + 0x90], 8
mov dword [esp + 0x34], 0x800
mov byte [esp + 0x15], 0
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], 0
call fcn.10154190
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa8c], 2
call fcn.10154190
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 8]
lea eax, [esp + 0x88]
push edx
push eax
push ecx
mov byte [esp + 0xa98], 3
call dword [esp + 0x88]
add esp, 0xc
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x10004951
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 8]
push edx
push eax
call dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add esp, 8
push ecx
push 0x10198bec
push str.C_EncryptInit
push 0x138d
mov ecx, esi
call fcn.1000a610
mov esi, eax
jmp 0x10004ec7
mov edx, dword [esp + 0xa9c]
lea ecx, [esp + 0x64]
push edx
call fcn.101546c0
mov ecx, dword [esp + 0xa9c]
mov dword [esp + 0x18], ebp
call fcn.10154280
and eax, 0x80000007
jns 0x1000497e
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, 8
sub ecx, eax
test ecx, ecx
jle 0x100049c3
push ebp
lea ecx, [esp + 0x68]
call fcn.10154780
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xa9c]
inc edx
mov dword [esp + 0x18], edx
call fcn.10154280
and eax, 0x80000007
jns 0x100049b4
dec eax
or eax, 0xfffffff8
inc eax
mov edx, 8
sub edx, eax
mov eax, dword [esp + 0x18]
cmp eax, edx
jl 0x10004989
lea eax, [esp + 0x34]
lea ecx, [esp + 0x284]
push eax
push ecx
lea ecx, [esp + 0x6c]
call fcn.10154280
push eax
lea ecx, [esp + 0x70]
call fcn.10154ab0
mov edx, dword [esi + 8]
push eax
push edx
call dword [esp + 0x98]
add esp, 0x14
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x10004a2c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [esp + 0x28]
mov edx, dword [esp + 0x20]
add esp, 8
mov ecx, esi
push edx
push 0x10198bec
push str.C_Encrypt
push 0x138d
call fcn.1000a610
mov esi, eax
jmp 0x10004ec7
lea ecx, [esp + 0x214]
mov dword [esp + 0x30], 3
call fcn.10053cd0
mov eax, dword [esp + 0xa9c]
lea ecx, [esp + 0x214]
push eax
mov byte [esp + 0xa90], 4
call fcn.10054180
test eax, eax
jle 0x10004a8f
lea ecx, [esp + 0x214]
call fcn.10053cc0
mov ecx, eax
call fcn.10154a90
push eax
push 0x10198bd0
add esi, 0x10
push str._s__caoslib___s
push esi
call fcn.101552a0
add esp, 0x10
jmp 0x10004b2d
lea ecx, [esp + 0x94]
call fcn.10154190
lea ecx, [esp + 0xc8]
mov byte [esp + 0xa8c], 5
call fcn.10154190
lea ecx, [esp + 0xc8]
lea edx, [esp + 0x94]
push ecx
push edx
lea ecx, [esp + 0x21c]
mov byte [esp + 0xa94], 6
call fcn.10057b00
test eax, eax
jle 0x10004b80
lea ecx, [esp + 0x214]
call fcn.10053cc0
mov ecx, eax
call fcn.10154a90
push eax
push 0x10198bd0
add esi, 0x10
push str._s__caoslib___s
push esi
call fcn.101552a0
add esp, 0x10
lea ecx, [esp + 0xc8]
mov byte [esp + 0xa8c], 5
call fcn.10154250
lea ecx, [esp + 0x94]
mov byte [esp + 0xa8c], 4
call fcn.10154250
lea ecx, [esp + 0x214]
mov byte [esp + 0xa8c], 3
call fcn.10053d60
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa8c], 2
call fcn.10154250
lea ecx, [esp + 0x64]
mov byte [esp + 0xa8c], bl
call fcn.10154250
lea ecx, [esp + 0x50]
mov dword [esp + 0xa8c], 0xffffffff
call fcn.10154250
mov eax, 0x7d0
jmp 0x1000500e
push str.1_2_840_113549_1_1_1
lea ecx, [esp + 0x98]
call fcn.101549c0
test al, al
je 0x10004b9b
mov dword [esp + 0x24], ebp
jmp 0x10004bbc
push str.1_2_410_200004_1_21
lea ecx, [esp + 0x98]
call fcn.101549c0
test al, al
je 0x10004f8b
mov dword [esp + 0x24], 0x81000001
mov eax, dword [esp + 0xa94]
cmp eax, 2
jne 0x10004c0d
lea eax, [esp + 0xa8]
mov ecx, edi
push eax
call fcn.10154ba0
mov ecx, eax
mov byte [esp + 0xa8c], 7
call fcn.10154a90
push eax
lea ecx, [esp + 0x40]
push str.SIGN_PRI_KEY_s
push ecx
call fcn.101552a0
add esp, 0xc
mov byte [esp + 0xa8c], 6
lea ecx, [esp + 0xa8]
jmp 0x10004ca4
cmp eax, ebp
jne 0x10004c64
lea edx, [esp + 0xa8]
mov ecx, edi
push edx
call fcn.10154ba0
mov ecx, eax
mov byte [esp + 0xa8c], 8
call fcn.10154a90
push eax
lea eax, [esp + 0x40]
push str.SIGN_PRI_KEY_s
push eax
call fcn.101552a0
add esp, 0xc
lea ecx, [esp + 0xa8]
mov byte [esp + 0xa8c], 6
call fcn.10154250
mov cl, byte [esp + 0x13]
mov al, byte [esp + 0x14]
mov byte [esp + 0x15], cl
jmp 0x10004cb1
lea edx, [esp + 0x200]
mov ecx, edi
push edx
call fcn.10154ba0
mov ecx, eax
mov byte [esp + 0xa8c], 9
call fcn.10154a90
push eax
lea eax, [esp + 0x40]
push str.KM_PRI_KEY_s
push eax
call fcn.101552a0
add esp, 0xc
mov byte [esp + 0xa8c], 6
lea ecx, [esp + 0x200]
call fcn.10154250
mov al, byte [esp + 0x13]
mov byte [esp + 0x15], al
lea ecx, [esp + 0x30]
mov byte [esp + 0x17], al
mov byte [esp + 0x16], al
mov dword [esp + 0xe0], ecx
mov eax, 4
lea edx, [esp + 0x24]
lea ecx, [esp + 0x13]
mov dword [esp + 0xe4], eax
mov dword [esp + 0xec], edx
mov dword [esp + 0xf0], eax
lea eax, [esp + 0x13]
mov dword [esp + 0x104], ecx
lea edx, [esp + 0x13]
lea ecx, [esp + 0x15]
mov dword [esp + 0xf8], eax
mov dword [esp + 0x110], edx
lea eax, [esp + 0x17]
mov dword [esp + 0x128], ecx
lea edx, [esp + 0x16]
mov ecx, edi
mov dword [esp + 0xdc], ebp
mov dword [esp + 0xe8], 0x100
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x100], 2
mov dword [esp + 0x108], ebx
mov dword [esp + 0x10c], 0x162
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], 0x105
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], 0x108
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x130], 0x107
mov dword [esp + 0x134], edx
mov dword [esp + 0x138], ebx
mov dword [esp + 0x13c], 0x102
call fcn.10154a90
mov ecx, edi
mov dword [esp + 0x140], eax
call fcn.10154280
lea ecx, [esp + 0x3c]
mov dword [esp + 0x144], eax
mov dword [esp + 0x148], 3
call fcn.10154a90
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14c], eax
call fcn.10154280
mov edi, dword [esp + 0xa98]
mov dword [esp + 0x150], eax
mov ecx, edi
mov dword [esp + 0x154], 0x101
call fcn.10154a90
mov ecx, edi
mov dword [esp + 0x158], eax
call fcn.10154280
mov edx, dword [esp + 0x34]
mov dword [esp + 0x15c], eax
lea eax, [esp + 0x1fc]
lea ecx, [esp + 0xdc]
push eax
push 0xb
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x290]
push edx
push eax
mov eax, dword [esi + 8]
lea edx, [esp + 0x9c]
push ecx
push edx
push eax
call dword [esp + 0x98]
mov edi, eax
add esp, 0x20
cmp edi, ebp
je 0x10004f03
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 8]
push ecx
push edx
call dword [esp + 0x28]
add esp, 8
mov ecx, esi
push edi
push 0x10198b60
push str.C_UnwrapKey
push 0x1f51
call fcn.1000a610
lea ecx, [esp + 0xc8]
mov esi, eax
mov byte [esp + 0xa8c], 5
call fcn.10154250
lea ecx, [esp + 0x94]
mov byte [esp + 0xa8c], 4
call fcn.10154250
lea ecx, [esp + 0x214]
mov byte [esp + 0xa8c], 3
call fcn.10053d60
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa8c], 2
call fcn.10154250
lea ecx, [esp + 0x64]
mov byte [esp + 0xa8c], bl
call fcn.10154250
lea ecx, [esp + 0x50]
mov dword [esp + 0xa8c], 0xffffffff
call fcn.10154250
mov eax, esi
jmp 0x1000500e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [esp + 0x28]
add esp, 8
lea ecx, [esp + 0xc8]
mov byte [esp + 0xa8c], 5
call fcn.10154250
lea ecx, [esp + 0x94]
mov byte [esp + 0xa8c], 4
call fcn.10154250
lea ecx, [esp + 0x214]
mov byte [esp + 0xa8c], 3
call fcn.10053d60
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa8c], 2
call fcn.10154250
lea ecx, [esp + 0x64]
mov byte [esp + 0xa8c], bl
call fcn.10154250
lea ecx, [esp + 0x50]
mov dword [esp + 0xa8c], 0xffffffff
call fcn.10154250
xor eax, eax
jmp 0x1000500e
push 0x10198b38
lea ecx, [esi + 0x10]
call fcn.10154630
lea ecx, [esp + 0xc8]
mov byte [esp + 0xa8c], 5
call fcn.10154250
lea ecx, [esp + 0x94]
mov byte [esp + 0xa8c], 4
call fcn.10154250
lea ecx, [esp + 0x214]
mov byte [esp + 0xa8c], 3
call fcn.10053d60
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa8c], 2
call fcn.10154250
lea ecx, [esp + 0x64]
mov byte [esp + 0xa8c], bl
call fcn.10154250
lea ecx, [esp + 0x50]
mov dword [esp + 0xa8c], 0xffffffff
call fcn.10154250
mov eax, 0x1398
mov ecx, dword [esp + 0xa84]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa80
ret 0xc