Function at 0x102257a0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x38
call fcn.10315d90
mov dword [ebp - 8], 0
cmp dword [ebp + 0x1c], 2
je 0x1022585e
cmp dword [ebp + 0x10], 0
je 0x102257fa
mov eax, dword [ebp + 0x10]
push eax
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0
call fcn.101f6a30
add esp, 0x10
cmp dword [ebp - 0x38], 0xffffffff
je 0x102257fa
push 0
push 0
push 0x66
push 0x10a
push 0x10
call fcn.101bc660
add esp, 0x14
xor eax, eax
jmp 0x10225b5b
cmp dword [ebp + 0x14], 0
je 0x10225842
cmp dword [ebp + 0xc], 0x40a
je 0x10225833
cmp dword [ebp + 0xc], 0x43f
je 0x10225833
cmp dword [ebp + 0xc], 0x40b
jne 0x10225824
mov dword [ebp - 0x14], 0x38
jmp 0x1022582b
mov dword [ebp - 0x14], 0x39
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
jmp 0x1022583a
mov dword [ebp - 0x18], 0x20
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp - 0x18]
je 0x1022585e
push 0
push 0
push 0x66
push 0x10a
push 0x10
call fcn.101bc660
add esp, 0x14
xor eax, eax
jmp 0x10225b5b
push 0
push 0x103bd95f
push 0x40
call fcn.101cb9c0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10225894
push 0
push 0
push 0x41
push 0x10a
push 0x10
call fcn.101bc660
add esp, 0x14
xor eax, eax
jmp 0x10225b5b
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0x1c], 0
jne 0x102258b9
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10316b20
add esp, 0xc
jmp case.0x10225ade.2
cmp dword [ebp + 0xc], 0x40a
je 0x102258ec
cmp dword [ebp + 0xc], 0x43f
je 0x102258ec
cmp dword [ebp + 0xc], 0x40b
jne 0x102258dd
mov dword [ebp - 0x1c], 0x38
jmp 0x102258e4
mov dword [ebp - 0x1c], 0x39
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
jmp 0x102258f3
mov dword [ebp - 0x20], 0x20
push 0
push 0x103bd95f
mov eax, dword [ebp - 0x20]
push eax
call fcn.101cba70
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 0x3c], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10225938
push 0
push 0
push 0x41
push 0x10a
push 0x10
call fcn.101bc660
add esp, 0x14
jmp 0x10225b46
cmp dword [ebp + 0x1c], 2
jne 0x10225a6f
cmp dword [ebp + 0xc], 0x40a
je 0x10225975
cmp dword [ebp + 0xc], 0x43f
je 0x10225975
cmp dword [ebp + 0xc], 0x40b
jne 0x10225966
mov dword [ebp - 0x28], 0x38
jmp 0x1022596d
mov dword [ebp - 0x28], 0x39
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
jmp 0x1022597c
mov dword [ebp - 0x2c], 0x20
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.101cc680
add esp, 8
test eax, eax
jg 0x102259b2
push 0
push 0x103bd95f
mov ecx, dword [ebp - 4]
push ecx
call fcn.101cba50
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [edx + 0x3c], 0
jmp 0x10225b46
cmp dword [ebp + 0xc], 0x40a
jne 0x10225a1f
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx]
and eax, 0xf8
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp - 4]
mov byte [ecx + edx], al
mov edx, 1
imul eax, edx, 0x1f
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + eax]
and edx, 0x7f
mov eax, 1
imul ecx, eax, 0x1f
mov eax, dword [ebp - 4]
mov byte [eax + ecx], dl
mov ecx, 1
imul edx, ecx, 0x1f
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + edx]
or ecx, 0x40
mov edx, 1
imul eax, edx, 0x1f
mov edx, dword [ebp - 4]
mov byte [edx + eax], cl
jmp 0x10225a6d
cmp dword [ebp + 0xc], 0x40b
jne 0x10225a6d
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx]
and eax, 0xfc
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp - 4]
mov byte [ecx + edx], al
mov edx, 1
imul eax, edx, 0x37
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + eax]
or edx, 0x80
mov eax, 1
imul ecx, eax, 0x37
mov eax, dword [ebp - 4]
mov byte [eax + ecx], dl
jmp 0x10225abd
cmp dword [ebp + 0xc], 0x40a
je 0x10225aa2
cmp dword [ebp + 0xc], 0x43f
je 0x10225aa2
cmp dword [ebp + 0xc], 0x40b
jne 0x10225a93
mov dword [ebp - 0x30], 0x38
jmp 0x10225a9a
mov dword [ebp - 0x30], 0x39
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
jmp 0x10225aa9
mov dword [ebp - 0x34], 0x20
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.10316b20
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
sub eax, 0x40a
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x36
ja case.0x10225ade.2
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 0x10225b74]
jmp dword [edx*4 + 0x10225b60]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.102947b0
add esp, 8
jmp case.0x10225ade.2
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.10294200
add esp, 8
jmp case.0x10225ade.2
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.102a2a60
add esp, 8
jmp case.0x10225ade.2
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.102a50c0
add esp, 8
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.101c6840
add esp, 0xc
mov eax, 1
jmp 0x10225b5b
push 0
push 0x103bd95f
mov edx, dword [ebp - 8]
push edx
call fcn.101cb7f0
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret