Function at 0x423460
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x338
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xa0], 0
jne 0x4234af
mov eax, dword [0x4a3920]
push 0x4c
test eax, eax
je 0x423488
call eax
jmp 0x42348d
call fcn.00471b73
add esp, 4
mov dword [esi + 0xa0], eax
test eax, eax
jne 0x4234a2
lea edi, [eax - 0x7d]
jmp 0x423d5d
push 0x4c
push 0
push eax
call fcn.00469c30
add esp, 0xc
mov edx, dword [esi + 0xa0]
mov eax, 0x800
mov dword [esp + 0xc], edx
test word [esi + 0x312], ax
je 0x4234da
cmp byte [esi + 0x320], 5
je 0x4234fd
mov edi, 0xffffff40
jmp 0x423d5d
mov byte [esi + 0x320], 0
xorps xmm0, xmm0
movups xmmword [edx + 4], xmm0
movups xmmword [edx + 0x14], xmm0
movq qword [edx + 0x24], xmm0
mov eax, dword [esi + 0xa0]
mov dword [eax], 0x423400
movzx eax, byte [esi + 0x320]
cmp eax, 5
ja case.default.0x42350f
xor edi, edi
jmp dword [eax*4 + 0x423e58]
mov al, byte [esi + 0x30c]
and al, 0xc
cmp al, 8
jne 0x42352a
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edx + 0x20], 0x266
cmp byte [esi + 0x304], 0
je 0x423551
cmp byte [esi + 0xc9], 0
je 0x423551
mov dword [edx + 0x20], 0x2cc
mov ecx, 0x2cc
jmp 0x423556
mov ecx, 0x266
call fcn.004439a0
mov ecx, eax
mov eax, dword [esp + 0xc]
mov dword [eax + 0x10], ecx
test ecx, ecx
jne 0x423570
lea edi, [ecx - 0x7d]
jmp 0x423d5d
mov dword [eax + 4], ecx
mov byte [esi + 0x320], 1
mov edx, dword [esi + 0x70]
mov ecx, esi
add edx, 0xa4
call fcn.0041c8e0
mov edi, eax
test edi, edi
jne 0x423d48
cmp dword [esi + 0x16c], eax
jne 0x4235a6
mov edi, 0xfffffec3
jmp 0x423d5d
mov eax, dword [esp + 0xc]
mov ecx, esi
add eax, 0x28
mov edx, eax
mov dword [esp + 0x10], eax
call fcn.0041f260
mov edi, eax
test edi, edi
jne 0x423d48
mov eax, dword [esp + 0x10]
cmp word [eax], di
jne 0x4235d7
mov edi, 0xfffffec3
jmp 0x423d5d
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 4]
add eax, 9
mov dword [ecx + 0x14], 9
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x18], 0
mov ecx, 0x200
mov dword [esi + 0x12c], 0x200
call fcn.004439a0
mov dword [esi + 0x128], eax
test eax, eax
jne 0x423618
lea edi, [eax - 0x7d]
jmp 0x423d5d
mov ecx, esi
call fcn.00412470
test eax, eax
jne 0x423649
mov eax, 0x8000
mov dword [esi + 0x134], 0x20
or word [esi + 0x310], ax
mov eax, dword [esi + 0x70]
add eax, 0xb8
mov dword [esi + 0x130], eax
jmp 0x423655
movzx edx, byte [esi + 0x317]
call fcn.004135d0
mov eax, dword [esi + 0xa8]
cmp eax, 0xa
jne 0x423690
mov ecx, esi
call fcn.00412470
test eax, eax
je 0x423685
mov cl, byte [esi + 0x317]
mov edx, 1
movzx eax, word [esi + 0x396]
shl edx, cl
test eax, edx
mov al, 8
jne 0x423687
mov al, 1
mov edx, dword [esp + 0xc]
mov byte [edx + 0x2a], al
jmp 0x4236b3
mov edx, dword [esp + 0xc]
cmp eax, 0x25
jne 0x42369f
mov byte [edx + 0x2a], 3
jmp 0x4236b3
cmp eax, 0x46
jne 0x4236aa
mov byte [edx + 0x2a], 9
jmp 0x4236b3
cmp eax, 0x5c
jne 0x4236b3
mov byte [edx + 0x2a], 0xb
mov ecx, esi
call fcn.00412470
test eax, eax
je 0x4236eb
push dword [edx + 0xc]
mov dl, byte [edx + 0x2a]
mov cl, byte [esi + 0x317]
call fcn.00413560
mov eax, dword [esp + 0x10]
add esp, 4
mov ecx, esi
mov dword [eax + 0x18], 2
movzx edx, byte [esi + 0x317]
call fcn.004135d0
mov edx, dword [esp + 0xc]
mov al, byte [edx + 0x2a]
cmp al, 1
jne 0x42374c
mov dword [esi + 0x12c], 0x24
mov ecx, esi
mov dword [edx + 0x1c], 0x200
call fcn.00412470
test eax, eax
je 0x423743
movzx ecx, byte [esi + 0x317]
call fcn.00413690
mov edx, dword [esi + 0x130]
mov ecx, dword [esi + 0x128]
push eax
push dword [esi + 0x134]
call fcn.00439800
mov edx, dword [esp + 0x14]
add esp, 8
mov dword [esi + 0x12c], eax
mov edx, dword [edx + 0x18]
mov eax, dword [esp + 0xc]
jmp 0x423784
cmp al, 8
jne 0x423799
push dword [esi + 0x134]
push dword [esi + 0x130]
push dword [esi + 0x128]
call fcn.0046ae20
mov eax, dword [esi + 0x134]
add esp, 0xc
mov dword [esi + 0x12c], eax
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0x18]
mov dword [eax + 0x1c], 0x200
add edx, dword [eax + 0xc]
movzx ecx, word [eax + 0x28]
mov eax, ecx
shr eax, 8
mov byte [edx], al
mov byte [edx + 1], cl
mov edx, dword [esp + 0xc]
cmp byte [edx + 0x2a], 9
jne 0x4237b0
mov ecx, esi
call fcn.00413f90
mov edi, eax
test edi, edi
jne 0x423d48
mov byte [esi + 0x320], 2
cmp dword [esi + 0xa8], 0x25
jne 0x4237ec
push dword [esi + 0xa4]
mov edx, dword [esi + 0x134]
lea eax, [esi + 0x12c]
push dword [esi + 0x7c]
mov ecx, dword [esi + 0x130]
push eax
push dword [esi + 0x128]
call fcn.00430640
add esp, 0x10
mov edi, eax
cmp dword [esi + 0xa8], 0x46
lea edx, [esi + 0x12c]
jne 0x423b12
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0xa4]
mov edi, dword [esi + 0x128]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x3e4]
mov eax, dword [eax + 0x3e0]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x423b0d
test edi, edi
je 0x423b0d
test edx, edx
je 0x423b0d
test ecx, ecx
je 0x423b0d
test byte [ecx + 0x60], 2
je 0x423b0d
mov eax, dword [edx]
mov dword [edx], 0x40
cmp eax, 0x40
jae 0x42386f
mov edi, 0xffffff7c
jmp 0x423b12
lea eax, [esp + 0x60]
push eax
push ecx
lea edx, [ecx + 0x20]
call fcn.0044c4b0
mov edi, eax
add esp, 8
test edi, edi
jne 0x423b12
mov al, byte [esp + 0x7f]
and byte [esp + 0x60], 0xf8
and al, 0x3f
or al, 0x40
push 0xe0
mov byte [esp + 0x83], al
lea eax, [esp + 0x1c4]
push edi
push eax
call fcn.00469c30
mov eax, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [eax + 0x64]
mov dword [esp + 0x298], eax
lea eax, [esp + 0x1c0]
push eax
call fcn.00428550
mov edi, eax
add esp, 4
test edi, edi
je 0x4238e3
js 0x423b12
jmp 0x423976
push 0x20
lea edx, [esp + 0x84]
lea ecx, [esp + 0x1c4]
call fcn.0042afc0
mov edi, eax
add esp, 4
test edi, edi
jne 0x423976
push dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c4]
call fcn.0042afc0
mov edi, eax
add esp, 4
test edi, edi
jne 0x423976
lea ecx, [esp + 0x1c0]
call fcn.0042b190
mov edi, eax
test edi, edi
jne 0x423976
movups xmm0, xmmword [esp + 0x1c0]
lea eax, [esp + 0x1c0]
push eax
movups xmmword [esp + 0x24], xmm0
movups xmm0, xmmword [esp + 0x1d4]
movups xmmword [esp + 0x34], xmm0
movups xmm0, xmmword [esp + 0x1e4]
movups xmmword [esp + 0x44], xmm0
movups xmm0, xmmword [esp + 0x1f4]
movups xmmword [esp + 0x54], xmm0
call fcn.00428550
add esp, 4
mov edi, eax
mov eax, 0xe0
lea ecx, [esp + 0x1c0]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x423982
test edi, edi
jne 0x423b12
lea ecx, [esp + 0x20]
call fcn.00462ac0
lea edx, [esp + 0x20]
lea ecx, [esp + 0x2a0]
call fcn.00466680
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2a0]
call fcn.00467e30
push 0xe0
lea eax, [esp + 0xe4]
push edi
push eax
call fcn.00469c30
mov eax, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [eax + 0x64]
mov dword [esp + 0x1b8], eax
lea eax, [esp + 0xe0]
push eax
call fcn.00428550
mov edi, eax
add esp, 4
test edi, edi
je 0x423a03
js 0x423b12
jmp 0x423ac2
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xe0]
push 0x20
call fcn.0042afc0
mov edi, eax
add esp, 4
test edi, edi
jne 0x423ac2
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xe0]
push 0x20
call fcn.0042afc0
mov edi, eax
add esp, 4
test edi, edi
jne 0x423ac2
push dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xe4]
call fcn.0042afc0
mov edi, eax
add esp, 4
test edi, edi
jne 0x423ac2
lea ecx, [esp + 0xe0]
call fcn.0042b190
mov edi, eax
test edi, edi
jne 0x423ac2
movups xmm0, xmmword [esp + 0xe0]
lea eax, [esp + 0xe0]
push eax
movups xmmword [esp + 0xa4], xmm0
movups xmm0, xmmword [esp + 0xf4]
movups xmmword [esp + 0xb4], xmm0
movups xmm0, xmmword [esp + 0x104]
movups xmmword [esp + 0xc4], xmm0
movups xmm0, xmmword [esp + 0x114]
movups xmmword [esp + 0xd4], xmm0
call fcn.00428550
add esp, 4
mov edi, eax
mov eax, 0xe0
lea ecx, [esp + 0xe0]
nop
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x423ad0
test edi, edi
jne 0x423b12
lea ecx, [esp + 0xa0]
call fcn.00462ac0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [ecx + 0x20]
lea edx, [esp + 0xa8]
call fcn.00463fe0
add esp, 8
jmp 0x423b12
mov edi, 0xffffff53
cmp dword [esi + 0xa8], 0xa
jne 0x423bd6
mov edx, dword [esp + 0xc]
mov edi, dword [esi + 0xa4]
mov ecx, dword [edx + 0x14]
add ecx, dword [edx + 4]
mov eax, dword [edx + 0x18]
add eax, 2
mov dword [edx + 0xc], ecx
add eax, ecx
cmp byte [edx + 0x2a], 8
mov dword [esp + 0x10], eax
jne 0x423b9c
movzx eax, byte [esi + 0x317]
sub eax, 4
je 0x423b78
sub eax, 1
je 0x423b6e
sub eax, 1
je 0x423b64
mov edi, 0xffffff53
jmp 0x423d5d
mov eax, 8
lea ecx, [eax - 5]
jmp 0x423b82
mov eax, 7
lea ecx, [eax - 5]
jmp 0x423b82
mov eax, 6
mov ecx, 1
push dword [esi + 0x7c]
push 0xffffffffffffffff
sub esp, 8
push ecx
push eax
push 2
push 1
push 2
push edi
push dword [edx + 0x1c]
push dword [esp + 0x3c]
jmp 0x423bb3
push dword [esi + 0x7c]
push 0
sub esp, 8
push 0
push 0
push 0
push 1
push 2
push edi
push dword [edx + 0x1c]
push eax
mov edx, dword [esi + 0x12c]
mov ecx, dword [esi + 0x128]
call fcn.00458630
mov edi, eax
add esp, 0x30
test edi, edi
jle 0x423bd8
mov eax, dword [esp + 0xc]
mov dword [eax + 0x1c], edi
xor edi, edi
test edi, edi
jne 0x423d48
mov edx, dword [esp + 0xc]
mov byte [esi + 0x320], 3
mov ecx, dword [edx + 0x14]
add ecx, dword [edx + 4]
mov dword [edx + 0xc], ecx
mov eax, dword [esi + 0xa8]
cmp eax, 0xa
je 0x423c52
cmp eax, 0x25
je 0x423c0b
cmp eax, 0x46
jne 0x423cea
movzx eax, word [esi + 0x12c]
mov word [edx + 0x28], ax
mov edx, dword [edx + 0x18]
add edx, ecx
mov ecx, eax
shr eax, 8
mov byte [edx], al
mov eax, dword [esp + 0xc]
mov byte [edx + 1], cl
push dword [esi + 0x12c]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
add ecx, 2
push dword [esi + 0x128]
add eax, ecx
push eax
call fcn.0046ae20
mov edx, dword [esp + 0x18]
add esp, 0xc
jmp 0x423cea
cmp dword [edx + 8], 0
mov edi, dword [esi + 0xa4]
jne 0x423c97
mov ecx, dword [edx + 0x1c]
call fcn.004439a0
mov edx, eax
mov eax, dword [esp + 0xc]
mov dword [eax + 8], edx
test edx, edx
jne 0x423c7b
lea edi, [edx - 0x7d]
jmp 0x423d5d
push dword [eax + 0x1c]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
add ecx, 2
add eax, ecx
push eax
push edx
call fcn.0046ae20
mov edx, dword [esp + 0x18]
add esp, 0xc
movzx eax, byte [esi + 0x317]
push ecx
push edi
push eax
movzx eax, byte [edx + 0x2a]
push eax
push dword [esi + 0x12c]
push dword [esi + 0x128]
push dword [edx + 0x1c]
mov edx, dword [edx + 8]
call fcn.00413780
mov edi, eax
add esp, 0x1c
cmp edi, 0xffffff94
je 0x423d48
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x423cdf
call fcn.004439c0
mov edx, dword [esp + 0xc]
mov dword [edx + 8], 0
test edi, edi
jne 0x423d48
mov byte [esi + 0x320], 4
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x423cff
mov edi, 0xfffffeb8
jmp 0x423d5d
mov eax, dword [esp + 0xc]
movzx edx, word [edx + 0x28]
push esi
push 0xf
mov eax, dword [eax + 0x18]
add eax, 2
add edx, eax
call fcn.00416630
mov edx, dword [esp + 0x14]
add esp, 8
mov byte [esi + 0x320], 5
movzx ecx, word [edx + 0x28]
sub esp, 8
mov eax, dword [edx + 0x18]
add ecx, 2
mov edx, dword [edx + 4]
add eax, ecx
mov ecx, esi
push eax
call fcn.004166a0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x423d5d
cmp edi, 0xfffffeb9
jne 0x423d5d
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, 0xfffffed3
mov eax, dword [esi + 0x130]
test eax, eax
je 0x423d88
cmp word [esi + 0x310], 0
jl 0x423d88
mov ecx, dword [0x4a3918]
push eax
test ecx, ecx
je 0x423d80
call ecx
jmp 0x423d85
call fcn.00471b58
add esp, 4
mov eax, 0x7fff
mov dword [esi + 0x130], 0
and word [esi + 0x310], ax
mov eax, dword [esi + 0xa0]
mov dword [esi + 0x134], 0
mov dword [esp + 0x10], eax
test eax, eax
je 0x423e46
mov ecx, dword [eax]
test ecx, ecx
je 0x423e46
add eax, 4
cmp ecx, 0x423400
jne 0x423e33
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x423dfa
mov eax, dword [0x4a3918]
push ecx
test eax, eax
je 0x423de4
call eax
jmp 0x423de9
call fcn.00471b58
mov eax, dword [esp + 0x14]
add esp, 4
add eax, 4
mov dword [eax + 4], 0
mov eax, dword [eax + 0xc]
test eax, eax
je 0x423e3a
mov ecx, dword [0x4a3918]
push eax
test ecx, ecx
je 0x423e1e
call ecx
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [eax + 0x10], 0
jmp 0x423e3a
call fcn.00471b58
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [eax + 0x10], 0
jmp 0x423e3a
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0xa0]
mov dword [eax], 0
mov ecx, esi
call fcn.004157e0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret